blob: 29b01fbf296ffe6ba964fecc1f4752682d8c72a9 [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
Chris Craikf0a76082016-03-03 21:07:54 +000010LOCAL_CFLAGS += -DHWUI_NEW_OPS
Kristian Monsenf5fabdf2013-12-11 19:46:41 -080011LOCAL_CPPFLAGS += -Wno-conversion-null
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080012
13ifeq ($(TARGET_ARCH), arm)
Andreas Gampe0f0b4912014-11-12 08:03:48 -080014 LOCAL_CFLAGS += -DPACKED="__attribute__ ((packed))"
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080015else
Andreas Gampe0f0b4912014-11-12 08:03:48 -080016 LOCAL_CFLAGS += -DPACKED=""
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080017endif
18
Tim Murray9e41c742015-06-08 14:56:53 -070019ifneq ($(ENABLE_CPUSETS),)
20 LOCAL_CFLAGS += -DENABLE_CPUSETS
21endif
22
Mathias Agopian1473f462009-04-10 14:24:30 -070023LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
24
Elliott Hughes4c5806b2015-03-07 11:00:50 -080025LOCAL_CFLAGS += -DU_USING_ICU_NAMESPACE=0
26
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080027LOCAL_SRC_FILES:= \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080028 AndroidRuntime.cpp \
29 com_android_internal_content_NativeLibraryHelper.cpp \
30 com_google_android_gles_jni_EGLImpl.cpp \
31 com_google_android_gles_jni_GLImpl.cpp.arm \
Dimitry Ivanov4449ef52016-02-25 17:41:13 -080032 android_app_Activity.cpp \
Dimitry Ivanov09979082016-04-19 11:11:01 -070033 android_app_ApplicationLoaders.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080034 android_app_NativeActivity.cpp \
Michal Karpinski6235a942016-03-15 12:07:23 +000035 android_app_admin_SecurityLog.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080036 android_opengl_EGL14.cpp \
37 android_opengl_EGLExt.cpp \
38 android_opengl_GLES10.cpp \
39 android_opengl_GLES10Ext.cpp \
40 android_opengl_GLES11.cpp \
41 android_opengl_GLES11Ext.cpp \
42 android_opengl_GLES20.cpp \
43 android_opengl_GLES30.cpp \
44 android_opengl_GLES31.cpp \
45 android_opengl_GLES31Ext.cpp \
Pablo Ceballos38c1a7e2015-10-30 10:34:30 -070046 android_opengl_GLES32.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080047 android_database_CursorWindow.cpp \
48 android_database_SQLiteCommon.cpp \
49 android_database_SQLiteConnection.cpp \
50 android_database_SQLiteGlobal.cpp \
51 android_database_SQLiteDebug.cpp \
Doris Liu766431a2016-02-04 22:17:11 +000052 android_graphics_drawable_AnimatedVectorDrawable.cpp \
Doris Liu4bbc2932015-12-01 17:59:40 -080053 android_graphics_drawable_VectorDrawable.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080054 android_view_DisplayEventReceiver.cpp \
Chris Craikc9070eb2015-03-09 18:50:14 -070055 android_view_DisplayListCanvas.cpp \
56 android_view_GraphicBuffer.cpp \
57 android_view_HardwareLayer.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080058 android_view_InputChannel.cpp \
59 android_view_InputDevice.cpp \
60 android_view_InputEventReceiver.cpp \
61 android_view_InputEventSender.cpp \
62 android_view_InputQueue.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080063 android_view_KeyCharacterMap.cpp \
Chris Craikc9070eb2015-03-09 18:50:14 -070064 android_view_KeyEvent.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080065 android_view_MotionEvent.cpp \
66 android_view_PointerIcon.cpp \
67 android_view_RenderNode.cpp \
68 android_view_RenderNodeAnimator.cpp \
Chris Craikc9070eb2015-03-09 18:50:14 -070069 android_view_Surface.cpp \
70 android_view_SurfaceControl.cpp \
71 android_view_SurfaceSession.cpp \
72 android_view_TextureView.cpp \
73 android_view_ThreadedRenderer.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080074 android_view_VelocityTracker.cpp \
75 android_text_AndroidCharacter.cpp \
76 android_text_AndroidBidi.cpp \
77 android_text_StaticLayout.cpp \
78 android_os_Debug.cpp \
Jesse Hall17ee3aa2016-12-12 12:53:02 -080079 android_os_GraphicsEnvironment.cpp \
Andreas Huberdab5fc62016-08-15 09:25:02 -070080 android_os_HwBinder.cpp \
Andreas Huber9266f992016-08-25 11:21:21 -070081 android_os_HwBlob.cpp \
Andreas Huberdab5fc62016-08-15 09:25:02 -070082 android_os_HwParcel.cpp \
83 android_os_HwRemoteBinder.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080084 android_os_MemoryFile.cpp \
85 android_os_MessageQueue.cpp \
86 android_os_Parcel.cpp \
87 android_os_SELinux.cpp \
88 android_os_SystemClock.cpp \
89 android_os_SystemProperties.cpp \
90 android_os_Trace.cpp \
91 android_os_UEventObserver.cpp \
92 android_net_LocalSocketImpl.cpp \
93 android_net_NetUtils.cpp \
94 android_net_TrafficStats.cpp \
95 android_nio_utils.cpp \
96 android_util_AssetManager.cpp \
97 android_util_Binder.cpp \
98 android_util_EventLog.cpp \
Svet Ganov53a441c2016-04-19 19:38:00 -070099 android_util_MemoryIntArray.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800100 android_util_Log.cpp \
Doris Liucdd23f92015-11-11 14:31:13 -0800101 android_util_PathParser.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800102 android_util_Process.cpp \
103 android_util_StringBlock.cpp \
104 android_util_XmlBlock.cpp \
Przemyslaw Szczepaniak8a7c1602015-11-03 09:47:56 +0000105 android_util_jar_StrictJarFile.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800106 android_graphics_Canvas.cpp \
107 android_graphics_Picture.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800108 android/graphics/Bitmap.cpp \
109 android/graphics/BitmapFactory.cpp \
110 android/graphics/Camera.cpp \
111 android/graphics/CanvasProperty.cpp \
112 android/graphics/ColorFilter.cpp \
113 android/graphics/DrawFilter.cpp \
114 android/graphics/FontFamily.cpp \
115 android/graphics/CreateJavaOutputStreamAdaptor.cpp \
116 android/graphics/Graphics.cpp \
117 android/graphics/HarfBuzzNGFaceSkia.cpp \
118 android/graphics/Interpolator.cpp \
119 android/graphics/MaskFilter.cpp \
120 android/graphics/Matrix.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800121 android/graphics/Movie.cpp \
122 android/graphics/NinePatch.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800123 android/graphics/NinePatchPeeker.cpp \
124 android/graphics/Paint.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800125 android/graphics/Path.cpp \
126 android/graphics/PathMeasure.cpp \
127 android/graphics/PathEffect.cpp \
128 android/graphics/Picture.cpp \
129 android/graphics/PorterDuff.cpp \
130 android/graphics/BitmapRegionDecoder.cpp \
131 android/graphics/Rasterizer.cpp \
132 android/graphics/Region.cpp \
133 android/graphics/Shader.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800134 android/graphics/SurfaceTexture.cpp \
135 android/graphics/Typeface.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800136 android/graphics/Utils.cpp \
137 android/graphics/Xfermode.cpp \
138 android/graphics/YuvToJpegEncoder.cpp \
139 android/graphics/pdf/PdfDocument.cpp \
140 android/graphics/pdf/PdfEditor.cpp \
141 android/graphics/pdf/PdfRenderer.cpp \
142 android_media_AudioRecord.cpp \
143 android_media_AudioSystem.cpp \
144 android_media_AudioTrack.cpp \
Eric Laurent4bcdba82015-05-01 11:37:49 -0700145 android_media_DeviceCallback.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800146 android_media_JetPlayer.cpp \
147 android_media_RemoteDisplay.cpp \
148 android_media_ToneGenerator.cpp \
149 android_hardware_Camera.cpp \
150 android_hardware_camera2_CameraMetadata.cpp \
151 android_hardware_camera2_legacy_LegacyCameraDevice.cpp \
152 android_hardware_camera2_legacy_PerfMeasurement.cpp \
153 android_hardware_camera2_DngCreator.cpp \
Eric Laurent633cb562015-03-05 15:17:20 -0800154 android_hardware_Radio.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800155 android_hardware_SensorManager.cpp \
156 android_hardware_SerialPort.cpp \
157 android_hardware_SoundTrigger.cpp \
158 android_hardware_UsbDevice.cpp \
159 android_hardware_UsbDeviceConnection.cpp \
160 android_hardware_UsbRequest.cpp \
Peng Xu9ff7d222016-02-11 13:02:05 -0800161 android_hardware_location_ContextHubService.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800162 android_hardware_location_ActivityRecognitionHardware.cpp \
163 android_util_FileObserver.cpp \
164 android/opengl/poly_clip.cpp.arm \
John Reckf4faeac2015-03-05 13:50:31 -0800165 android/opengl/util.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800166 android_server_NetworkManagementSocketTagger.cpp \
167 android_server_Watchdog.cpp \
168 android_ddm_DdmHandleNativeHeap.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800169 android_backup_BackupDataInput.cpp \
170 android_backup_BackupDataOutput.cpp \
171 android_backup_FileBackupHelperBase.cpp \
172 android_backup_BackupHelperDispatcher.cpp \
173 android_app_backup_FullBackup.cpp \
174 android_content_res_ObbScanner.cpp \
175 android_content_res_Configuration.cpp \
176 android_animation_PropertyValuesHolder.cpp \
177 com_android_internal_net_NetworkStatsFactory.cpp \
Dimitry Ivanov5d7d7772016-04-20 14:09:32 -0700178 com_android_internal_os_PathClassLoaderFactory.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800179 com_android_internal_os_Zygote.cpp \
180 com_android_internal_util_VirtualRefBasePtr.cpp \
Andreas Huberdab5fc62016-08-15 09:25:02 -0700181 com_android_internal_view_animation_NativeInterpolatorFactoryHelper.cpp \
182 hwbinder/EphemeralStorage.cpp \
Robert Sesek8225b7c2016-12-16 14:02:31 -0500183 fd_utils.cpp \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800184
185LOCAL_C_INCLUDES += \
Colin Cross71044fe2016-12-14 13:29:28 -0800186 $(LOCAL_PATH)/include \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800187 $(JNI_H_INCLUDE) \
188 $(LOCAL_PATH)/android/graphics \
189 $(LOCAL_PATH)/../../libs/hwui \
190 $(LOCAL_PATH)/../../../native/opengl/libs \
Michael Lentine03d8f7682016-01-31 15:37:11 -0600191 $(LOCAL_PATH)/../../../native/vulkan/include \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800192 $(call include-path-for, bluedroid) \
193 $(call include-path-for, libhardware)/hardware \
194 $(call include-path-for, libhardware_legacy)/hardware_legacy \
Andy Hungfe48e0d2015-04-27 18:14:02 -0700195 $(TOP)/frameworks/base/media/jni \
Andreas Gampe8413db82015-12-14 13:54:51 -0800196 $(TOP)/system/core/base/include \
197 $(TOP)/system/core/include \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800198 $(TOP)/system/media/camera/include \
199 $(TOP)/system/netd/include \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800200 external/pdfium/core/include/fpdfapi \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800201 external/pdfium/fpdfsdk/include \
Svet Ganovfbd02882015-06-04 14:49:16 -0700202 external/pdfium/public \
Philip P. Moltmann79bd8d42016-03-07 09:19:45 -0800203 external/pdfium \
Leon Scroggins IIIf35b9892015-07-31 10:38:40 -0400204 external/skia/include/private \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800205 external/skia/src/core \
206 external/skia/src/effects \
207 external/skia/src/images \
208 external/sqlite/dist \
209 external/sqlite/android \
210 external/expat/lib \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800211 external/tremor/Tremor \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800212 external/harfbuzz_ng/src \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800213 libcore/include \
214 $(call include-path-for, audio-utils) \
215 frameworks/minikin/include \
216 external/freetype/include
Raph Levien36607892014-06-25 16:32:13 -0700217# TODO: clean up Minikin so it doesn't need the freetype include
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800218
219LOCAL_SHARED_LIBRARIES := \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800220 libmemtrack \
221 libandroidfw \
Andreas Gampe7ad2f6e2016-10-05 12:59:18 -0700222 libbase \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800223 libexpat \
224 libnativehelper \
225 liblog \
226 libcutils \
Josh Gao3ce36962017-01-05 18:28:24 -0800227 libdebuggerd_client \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800228 libutils \
229 libbinder \
230 libnetutils \
231 libui \
232 libgui \
233 libinput \
234 libinputflinger \
235 libcamera_client \
236 libcamera_metadata \
237 libskia \
238 libsqlite \
239 libEGL \
240 libGLESv1_CM \
241 libGLESv2 \
Michael Lentine03d8f7682016-01-31 15:37:11 -0600242 libvulkan \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800243 libETC1 \
244 libhardware \
245 libhardware_legacy \
246 libselinux \
247 libsonivox \
248 libcrypto \
249 libssl \
250 libicuuc \
251 libicui18n \
252 libmedia \
Marco Nelissen74abdda2016-11-03 10:58:33 -0700253 libaudioclient \
Matt Sarett5c3252e2015-11-23 15:22:39 -0500254 libjpeg \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800255 libusbhost \
256 libharfbuzz_ng \
257 libz \
258 libaudioutils \
259 libpdfium \
260 libimg_utils \
261 libnetd_client \
Eric Laurent633cb562015-03-05 15:17:20 -0800262 libradio \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800263 libsoundtrigger \
264 libminikin \
265 libprocessgroup \
Eric Laurent633cb562015-03-05 15:17:20 -0800266 libnativebridge \
Dmitriy Ivanov048a0db2015-11-15 14:58:36 -0800267 libradio_metadata \
Colin Crossc4fb5f92016-02-02 16:51:15 -0800268 libnativeloader \
269 libmemunreachable \
Yifan Hongc46d1b42016-11-16 15:48:49 -0800270 libhidlbase \
271 libhidltransport \
Andreas Huberdab5fc62016-08-15 09:25:02 -0700272 libhwbinder \
Mike Lockwood755fd612010-05-25 19:08:48 -0400273
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800274LOCAL_SHARED_LIBRARIES += \
John Recka2732a22014-12-18 13:52:33 -0800275 libhwui \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800276 libdl
Dan Albert88ba3392014-09-11 16:20:16 -0700277
Jeff Brownbd882b12011-07-11 22:12:16 -0700278# we need to access the private Bionic header
279# <bionic_tls.h> in com_google_android_gles_jni_GLImpl.cpp
Dan Albert88ba3392014-09-11 16:20:16 -0700280LOCAL_C_INCLUDES += bionic/libc/private
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800281
Colin Cross71044fe2016-12-14 13:29:28 -0800282LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
283
Dan Willemsen81944da2015-09-24 20:45:35 -0700284# AndroidRuntime.h depends on nativehelper/jni.h
Colin Cross71044fe2016-12-14 13:29:28 -0800285LOCAL_EXPORT_C_INCLUDE_DIRS += libnativehelper/include
Dan Willemsen81944da2015-09-24 20:45:35 -0700286
Andreas Huber9ae000c2014-02-13 17:22:33 +0000287LOCAL_MODULE:= libandroid_runtime
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800288
Andreas Gampe26109fd2014-11-18 14:38:00 -0800289# -Wno-unknown-pragmas: necessary for Clang as the GL bindings need to turn
290# off a GCC warning that Clang doesn't know.
Glenn Kasten85d99542015-05-18 12:27:57 -0700291LOCAL_CFLAGS += -Wall -Werror -Wno-error=deprecated-declarations -Wunused -Wunreachable-code \
292 -Wno-unknown-pragmas
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800293
Andreas Gampeed6b9df2014-11-20 22:02:20 -0800294# -Wno-c++11-extensions: Clang warns about Skia using the C++11 override keyword, but this project
295# is not being compiled with that level. Remove once this has changed.
Dan Albert0eadf572015-11-05 00:59:09 -0800296LOCAL_CLANG_CFLAGS += -Wno-c++11-extensions
Andreas Gampeed6b9df2014-11-20 22:02:20 -0800297
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800298include $(BUILD_SHARED_LIBRARY)
299
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800300include $(call all-makefiles-under,$(LOCAL_PATH))