blob: 8c102e9e4dad7913740f751cac7067837062631b [file] [log] [blame]
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08001LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4LOCAL_CFLAGS += -DHAVE_CONFIG_H -DKHTML_NO_EXCEPTIONS -DGKWQ_NO_JAVA
5LOCAL_CFLAGS += -DNO_SUPPORT_JS_BINDING -DQT_NO_WHEELEVENT -DKHTML_NO_XBL
6LOCAL_CFLAGS += -U__APPLE__
Dan Albert10caf032015-02-23 10:41:10 -08007LOCAL_CFLAGS += -Wno-unused-parameter
Svetoslav29617692014-04-24 18:40:42 -07008LOCAL_CFLAGS += -Wno-non-virtual-dtor
Kristian Monsenf5fabdf2013-12-11 19:46:41 -08009LOCAL_CFLAGS += -Wno-maybe-uninitialized -Wno-parentheses
10LOCAL_CPPFLAGS += -Wno-conversion-null
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080011
12ifeq ($(TARGET_ARCH), arm)
Andreas Gampe0f0b4912014-11-12 08:03:48 -080013 LOCAL_CFLAGS += -DPACKED="__attribute__ ((packed))"
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080014else
Andreas Gampe0f0b4912014-11-12 08:03:48 -080015 LOCAL_CFLAGS += -DPACKED=""
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080016endif
17
Tim Murray9e41c742015-06-08 14:56:53 -070018ifneq ($(ENABLE_CPUSETS),)
19 LOCAL_CFLAGS += -DENABLE_CPUSETS
20endif
21
Romain Guy253f2c22016-09-28 17:34:42 -070022# TODO: Linear blending should be enabled by default, but we are
23# TODO: making it an opt-in while it's a work in progress
24# TODO: The final test should be:
25# TODO: ifneq ($(TARGET_ENABLE_LINEAR_BLENDING),false)
26ifeq ($(TARGET_ENABLE_LINEAR_BLENDING),true)
Romain Guyf60cc202016-10-12 18:25:05 -070027 LOCAL_CFLAGS += -DANDROID_ENABLE_LINEAR_BLENDING
Romain Guy253f2c22016-09-28 17:34:42 -070028endif
29
Mathias Agopian1473f462009-04-10 14:24:30 -070030LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
31
Elliott Hughes4c5806b2015-03-07 11:00:50 -080032LOCAL_CFLAGS += -DU_USING_ICU_NAMESPACE=0
33
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080034LOCAL_SRC_FILES:= \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080035 AndroidRuntime.cpp \
36 com_android_internal_content_NativeLibraryHelper.cpp \
37 com_google_android_gles_jni_EGLImpl.cpp \
38 com_google_android_gles_jni_GLImpl.cpp.arm \
Dimitry Ivanov4449ef52016-02-25 17:41:13 -080039 android_app_Activity.cpp \
Dimitry Ivanov09979082016-04-19 11:11:01 -070040 android_app_ApplicationLoaders.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080041 android_app_NativeActivity.cpp \
Michal Karpinski6235a942016-03-15 12:07:23 +000042 android_app_admin_SecurityLog.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080043 android_opengl_EGL14.cpp \
44 android_opengl_EGLExt.cpp \
45 android_opengl_GLES10.cpp \
46 android_opengl_GLES10Ext.cpp \
47 android_opengl_GLES11.cpp \
48 android_opengl_GLES11Ext.cpp \
49 android_opengl_GLES20.cpp \
50 android_opengl_GLES30.cpp \
51 android_opengl_GLES31.cpp \
52 android_opengl_GLES31Ext.cpp \
Pablo Ceballos38c1a7e2015-10-30 10:34:30 -070053 android_opengl_GLES32.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080054 android_database_CursorWindow.cpp \
55 android_database_SQLiteCommon.cpp \
56 android_database_SQLiteConnection.cpp \
57 android_database_SQLiteGlobal.cpp \
58 android_database_SQLiteDebug.cpp \
Doris Liu766431a2016-02-04 22:17:11 +000059 android_graphics_drawable_AnimatedVectorDrawable.cpp \
Doris Liu4bbc2932015-12-01 17:59:40 -080060 android_graphics_drawable_VectorDrawable.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080061 android_view_DisplayEventReceiver.cpp \
Chris Craikc9070eb2015-03-09 18:50:14 -070062 android_view_DisplayListCanvas.cpp \
63 android_view_GraphicBuffer.cpp \
64 android_view_HardwareLayer.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080065 android_view_InputChannel.cpp \
66 android_view_InputDevice.cpp \
67 android_view_InputEventReceiver.cpp \
68 android_view_InputEventSender.cpp \
69 android_view_InputQueue.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080070 android_view_KeyCharacterMap.cpp \
Chris Craikc9070eb2015-03-09 18:50:14 -070071 android_view_KeyEvent.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080072 android_view_MotionEvent.cpp \
73 android_view_PointerIcon.cpp \
74 android_view_RenderNode.cpp \
75 android_view_RenderNodeAnimator.cpp \
Chris Craikc9070eb2015-03-09 18:50:14 -070076 android_view_Surface.cpp \
77 android_view_SurfaceControl.cpp \
78 android_view_SurfaceSession.cpp \
79 android_view_TextureView.cpp \
80 android_view_ThreadedRenderer.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080081 android_view_VelocityTracker.cpp \
82 android_text_AndroidCharacter.cpp \
83 android_text_AndroidBidi.cpp \
84 android_text_StaticLayout.cpp \
85 android_os_Debug.cpp \
Andreas Huberc0b6c532016-08-15 09:25:02 -070086 android_os_HwBinder.cpp \
Andreas Huberdc263212016-08-25 11:21:21 -070087 android_os_HwBlob.cpp \
Andreas Huberc0b6c532016-08-15 09:25:02 -070088 android_os_HwParcel.cpp \
89 android_os_HwRemoteBinder.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080090 android_os_MemoryFile.cpp \
91 android_os_MessageQueue.cpp \
92 android_os_Parcel.cpp \
93 android_os_SELinux.cpp \
94 android_os_SystemClock.cpp \
95 android_os_SystemProperties.cpp \
96 android_os_Trace.cpp \
97 android_os_UEventObserver.cpp \
98 android_net_LocalSocketImpl.cpp \
99 android_net_NetUtils.cpp \
100 android_net_TrafficStats.cpp \
101 android_nio_utils.cpp \
102 android_util_AssetManager.cpp \
103 android_util_Binder.cpp \
104 android_util_EventLog.cpp \
Svet Ganov53a441c2016-04-19 19:38:00 -0700105 android_util_MemoryIntArray.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800106 android_util_Log.cpp \
Doris Liucdd23f92015-11-11 14:31:13 -0800107 android_util_PathParser.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800108 android_util_Process.cpp \
109 android_util_StringBlock.cpp \
110 android_util_XmlBlock.cpp \
Przemyslaw Szczepaniak8a7c1602015-11-03 09:47:56 +0000111 android_util_jar_StrictJarFile.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800112 android_graphics_Canvas.cpp \
113 android_graphics_Picture.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800114 android/graphics/Bitmap.cpp \
115 android/graphics/BitmapFactory.cpp \
116 android/graphics/Camera.cpp \
117 android/graphics/CanvasProperty.cpp \
118 android/graphics/ColorFilter.cpp \
119 android/graphics/DrawFilter.cpp \
120 android/graphics/FontFamily.cpp \
121 android/graphics/CreateJavaOutputStreamAdaptor.cpp \
Leon Scroggins IIIb5e74b92016-10-26 09:45:45 -0400122 android/graphics/GIFMovie.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800123 android/graphics/Graphics.cpp \
124 android/graphics/HarfBuzzNGFaceSkia.cpp \
125 android/graphics/Interpolator.cpp \
126 android/graphics/MaskFilter.cpp \
127 android/graphics/Matrix.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800128 android/graphics/Movie.cpp \
Leon Scroggins IIIb5e74b92016-10-26 09:45:45 -0400129 android/graphics/MovieImpl.cpp \
130 android/graphics/Movie_FactoryDefault.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800131 android/graphics/NinePatch.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800132 android/graphics/NinePatchPeeker.cpp \
133 android/graphics/Paint.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800134 android/graphics/Path.cpp \
135 android/graphics/PathMeasure.cpp \
136 android/graphics/PathEffect.cpp \
137 android/graphics/Picture.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800138 android/graphics/BitmapRegionDecoder.cpp \
139 android/graphics/Rasterizer.cpp \
140 android/graphics/Region.cpp \
141 android/graphics/Shader.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800142 android/graphics/SurfaceTexture.cpp \
143 android/graphics/Typeface.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800144 android/graphics/Utils.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800145 android/graphics/YuvToJpegEncoder.cpp \
146 android/graphics/pdf/PdfDocument.cpp \
147 android/graphics/pdf/PdfEditor.cpp \
148 android/graphics/pdf/PdfRenderer.cpp \
Philip P. Moltmann12328c02016-06-10 14:47:16 -0700149 android/graphics/pdf/PdfUtils.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800150 android_media_AudioRecord.cpp \
151 android_media_AudioSystem.cpp \
152 android_media_AudioTrack.cpp \
Eric Laurent4bcdba82015-05-01 11:37:49 -0700153 android_media_DeviceCallback.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800154 android_media_JetPlayer.cpp \
155 android_media_RemoteDisplay.cpp \
156 android_media_ToneGenerator.cpp \
157 android_hardware_Camera.cpp \
158 android_hardware_camera2_CameraMetadata.cpp \
159 android_hardware_camera2_legacy_LegacyCameraDevice.cpp \
160 android_hardware_camera2_legacy_PerfMeasurement.cpp \
161 android_hardware_camera2_DngCreator.cpp \
Eric Laurent633cb562015-03-05 15:17:20 -0800162 android_hardware_Radio.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800163 android_hardware_SensorManager.cpp \
164 android_hardware_SerialPort.cpp \
165 android_hardware_SoundTrigger.cpp \
166 android_hardware_UsbDevice.cpp \
167 android_hardware_UsbDeviceConnection.cpp \
168 android_hardware_UsbRequest.cpp \
Peng Xu9ff7d222016-02-11 13:02:05 -0800169 android_hardware_location_ContextHubService.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800170 android_hardware_location_ActivityRecognitionHardware.cpp \
171 android_util_FileObserver.cpp \
172 android/opengl/poly_clip.cpp.arm \
John Reckf4faeac2015-03-05 13:50:31 -0800173 android/opengl/util.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800174 android_server_NetworkManagementSocketTagger.cpp \
175 android_server_Watchdog.cpp \
176 android_ddm_DdmHandleNativeHeap.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800177 android_backup_BackupDataInput.cpp \
178 android_backup_BackupDataOutput.cpp \
179 android_backup_FileBackupHelperBase.cpp \
180 android_backup_BackupHelperDispatcher.cpp \
181 android_app_backup_FullBackup.cpp \
182 android_content_res_ObbScanner.cpp \
183 android_content_res_Configuration.cpp \
184 android_animation_PropertyValuesHolder.cpp \
185 com_android_internal_net_NetworkStatsFactory.cpp \
Dimitry Ivanov5d7d7772016-04-20 14:09:32 -0700186 com_android_internal_os_PathClassLoaderFactory.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800187 com_android_internal_os_Zygote.cpp \
188 com_android_internal_util_VirtualRefBasePtr.cpp \
Andreas Huberc0b6c532016-08-15 09:25:02 -0700189 com_android_internal_view_animation_NativeInterpolatorFactoryHelper.cpp \
190 hwbinder/EphemeralStorage.cpp \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800191
192LOCAL_C_INCLUDES += \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800193 $(JNI_H_INCLUDE) \
194 $(LOCAL_PATH)/android/graphics \
195 $(LOCAL_PATH)/../../libs/hwui \
196 $(LOCAL_PATH)/../../../native/opengl/libs \
Michael Lentine03d8f7682016-01-31 15:37:11 -0600197 $(LOCAL_PATH)/../../../native/vulkan/include \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800198 $(call include-path-for, bluedroid) \
199 $(call include-path-for, libhardware)/hardware \
200 $(call include-path-for, libhardware_legacy)/hardware_legacy \
Andy Hungfe48e0d2015-04-27 18:14:02 -0700201 $(TOP)/frameworks/base/media/jni \
Andreas Gampe8413db82015-12-14 13:54:51 -0800202 $(TOP)/system/core/base/include \
203 $(TOP)/system/core/include \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800204 $(TOP)/system/media/camera/include \
205 $(TOP)/system/netd/include \
Leon Scroggins IIIb5e74b92016-10-26 09:45:45 -0400206 external/giflib \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800207 external/pdfium/core/include/fpdfapi \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800208 external/pdfium/fpdfsdk/include \
Svet Ganovfbd02882015-06-04 14:49:16 -0700209 external/pdfium/public \
Philip P. Moltmann79bd8d42016-03-07 09:19:45 -0800210 external/pdfium \
Leon Scroggins IIIf35b9892015-07-31 10:38:40 -0400211 external/skia/include/private \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800212 external/skia/src/core \
213 external/skia/src/effects \
Derek Sollenberger450756a2016-11-07 15:55:47 -0500214 external/skia/src/image \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800215 external/skia/src/images \
216 external/sqlite/dist \
217 external/sqlite/android \
218 external/expat/lib \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800219 external/tremor/Tremor \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800220 external/harfbuzz_ng/src \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800221 libcore/include \
222 $(call include-path-for, audio-utils) \
223 frameworks/minikin/include \
224 external/freetype/include
Raph Levien36607892014-06-25 16:32:13 -0700225# TODO: clean up Minikin so it doesn't need the freetype include
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800226
Leon Scroggins IIIb5e74b92016-10-26 09:45:45 -0400227LOCAL_STATIC_LIBRARIES := \
228 libgif \
229
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800230LOCAL_SHARED_LIBRARIES := \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800231 libmemtrack \
232 libandroidfw \
Andreas Gampe7ad2f6e2016-10-05 12:59:18 -0700233 libbase \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800234 libexpat \
235 libnativehelper \
236 liblog \
237 libcutils \
238 libutils \
239 libbinder \
240 libnetutils \
241 libui \
242 libgui \
243 libinput \
244 libinputflinger \
245 libcamera_client \
246 libcamera_metadata \
247 libskia \
248 libsqlite \
249 libEGL \
250 libGLESv1_CM \
251 libGLESv2 \
Michael Lentine03d8f7682016-01-31 15:37:11 -0600252 libvulkan \
Jaekyun Seokef536522016-12-01 10:02:44 +0900253 libziparchive \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800254 libETC1 \
255 libhardware \
256 libhardware_legacy \
257 libselinux \
258 libsonivox \
259 libcrypto \
260 libssl \
261 libicuuc \
262 libicui18n \
263 libmedia \
Marco Nelissen20edcbc2016-11-03 10:58:33 -0700264 libaudioclient \
Matt Sarett5c3252e2015-11-23 15:22:39 -0500265 libjpeg \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800266 libusbhost \
267 libharfbuzz_ng \
268 libz \
269 libaudioutils \
270 libpdfium \
271 libimg_utils \
272 libnetd_client \
Eric Laurent633cb562015-03-05 15:17:20 -0800273 libradio \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800274 libsoundtrigger \
275 libminikin \
276 libprocessgroup \
Eric Laurent633cb562015-03-05 15:17:20 -0800277 libnativebridge \
Dmitriy Ivanov048a0db2015-11-15 14:58:36 -0800278 libradio_metadata \
Colin Crossc4fb5f92016-02-02 16:51:15 -0800279 libnativeloader \
280 libmemunreachable \
Yifan Hongd6658ac2016-11-16 15:48:49 -0800281 libhidlbase \
282 libhidltransport \
Andreas Huberc0b6c532016-08-15 09:25:02 -0700283 libhwbinder \
Mike Lockwood755fd612010-05-25 19:08:48 -0400284
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800285LOCAL_SHARED_LIBRARIES += \
John Recka2732a22014-12-18 13:52:33 -0800286 libhwui \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800287 libdl
Dan Albert88ba3392014-09-11 16:20:16 -0700288
Jeff Brownbd882b12011-07-11 22:12:16 -0700289# we need to access the private Bionic header
290# <bionic_tls.h> in com_google_android_gles_jni_GLImpl.cpp
Dan Albert88ba3392014-09-11 16:20:16 -0700291LOCAL_C_INCLUDES += bionic/libc/private
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800292
Dan Willemsen81944da2015-09-24 20:45:35 -0700293# AndroidRuntime.h depends on nativehelper/jni.h
294LOCAL_EXPORT_C_INCLUDE_DIRS := libnativehelper/include
295
Andreas Huber9ae000c2014-02-13 17:22:33 +0000296LOCAL_MODULE:= libandroid_runtime
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800297
Andreas Gampe26109fd2014-11-18 14:38:00 -0800298# -Wno-unknown-pragmas: necessary for Clang as the GL bindings need to turn
299# off a GCC warning that Clang doesn't know.
Glenn Kasten85d99542015-05-18 12:27:57 -0700300LOCAL_CFLAGS += -Wall -Werror -Wno-error=deprecated-declarations -Wunused -Wunreachable-code \
301 -Wno-unknown-pragmas
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800302
Andreas Gampeed6b9df2014-11-20 22:02:20 -0800303# -Wno-c++11-extensions: Clang warns about Skia using the C++11 override keyword, but this project
304# is not being compiled with that level. Remove once this has changed.
Dan Albert0eadf572015-11-05 00:59:09 -0800305LOCAL_CLANG_CFLAGS += -Wno-c++11-extensions
Andreas Gampeed6b9df2014-11-20 22:02:20 -0800306
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800307include $(BUILD_SHARED_LIBRARY)
308
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800309include $(call all-makefiles-under,$(LOCAL_PATH))