blob: 327f142fc319e780dc641f22912a45d953e35b14 [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 \
Chris Craikc9070eb2015-03-09 18:50:14 -070063 android_view_HardwareLayer.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080064 android_view_InputChannel.cpp \
65 android_view_InputDevice.cpp \
66 android_view_InputEventReceiver.cpp \
67 android_view_InputEventSender.cpp \
68 android_view_InputQueue.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080069 android_view_KeyCharacterMap.cpp \
Chris Craikc9070eb2015-03-09 18:50:14 -070070 android_view_KeyEvent.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080071 android_view_MotionEvent.cpp \
72 android_view_PointerIcon.cpp \
73 android_view_RenderNode.cpp \
74 android_view_RenderNodeAnimator.cpp \
Chris Craikc9070eb2015-03-09 18:50:14 -070075 android_view_Surface.cpp \
76 android_view_SurfaceControl.cpp \
77 android_view_SurfaceSession.cpp \
78 android_view_TextureView.cpp \
79 android_view_ThreadedRenderer.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080080 android_view_VelocityTracker.cpp \
81 android_text_AndroidCharacter.cpp \
82 android_text_AndroidBidi.cpp \
83 android_text_StaticLayout.cpp \
84 android_os_Debug.cpp \
Jesse Hallb12249b2016-12-12 12:53:02 -080085 android_os_GraphicsEnvironment.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 \
sergeyv0a0f2312017-01-04 13:58:52 -0800123 android/graphics/GraphicBuffer.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800124 android/graphics/Graphics.cpp \
125 android/graphics/HarfBuzzNGFaceSkia.cpp \
126 android/graphics/Interpolator.cpp \
127 android/graphics/MaskFilter.cpp \
128 android/graphics/Matrix.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800129 android/graphics/Movie.cpp \
Leon Scroggins IIIb5e74b92016-10-26 09:45:45 -0400130 android/graphics/MovieImpl.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 \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800139 android/graphics/Region.cpp \
140 android/graphics/Shader.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800141 android/graphics/SurfaceTexture.cpp \
142 android/graphics/Typeface.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800143 android/graphics/Utils.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800144 android/graphics/YuvToJpegEncoder.cpp \
145 android/graphics/pdf/PdfDocument.cpp \
146 android/graphics/pdf/PdfEditor.cpp \
147 android/graphics/pdf/PdfRenderer.cpp \
Philip P. Moltmann12328c02016-06-10 14:47:16 -0700148 android/graphics/pdf/PdfUtils.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800149 android_media_AudioRecord.cpp \
150 android_media_AudioSystem.cpp \
151 android_media_AudioTrack.cpp \
Eric Laurent4bcdba82015-05-01 11:37:49 -0700152 android_media_DeviceCallback.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800153 android_media_JetPlayer.cpp \
154 android_media_RemoteDisplay.cpp \
155 android_media_ToneGenerator.cpp \
156 android_hardware_Camera.cpp \
157 android_hardware_camera2_CameraMetadata.cpp \
158 android_hardware_camera2_legacy_LegacyCameraDevice.cpp \
159 android_hardware_camera2_legacy_PerfMeasurement.cpp \
160 android_hardware_camera2_DngCreator.cpp \
Craig Donner1a4d07d2017-01-09 13:01:22 -0800161 android_hardware_HardwareBuffer.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 \
169 android_hardware_location_ActivityRecognitionHardware.cpp \
170 android_util_FileObserver.cpp \
171 android/opengl/poly_clip.cpp.arm \
John Reckf4faeac2015-03-05 13:50:31 -0800172 android/opengl/util.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800173 android_server_NetworkManagementSocketTagger.cpp \
174 android_server_Watchdog.cpp \
175 android_ddm_DdmHandleNativeHeap.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800176 android_backup_BackupDataInput.cpp \
177 android_backup_BackupDataOutput.cpp \
178 android_backup_FileBackupHelperBase.cpp \
179 android_backup_BackupHelperDispatcher.cpp \
180 android_app_backup_FullBackup.cpp \
181 android_content_res_ObbScanner.cpp \
182 android_content_res_Configuration.cpp \
183 android_animation_PropertyValuesHolder.cpp \
184 com_android_internal_net_NetworkStatsFactory.cpp \
Daichi Hirono878e86f2016-10-31 09:33:30 +0900185 com_android_internal_os_FuseAppLoop.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 \
Robert Sesek44afe8b2016-12-16 14:02:31 -0500191 fd_utils.cpp \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800192
193LOCAL_C_INCLUDES += \
Colin Cross71044fe2016-12-14 13:29:28 -0800194 $(LOCAL_PATH)/include \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800195 $(JNI_H_INCLUDE) \
196 $(LOCAL_PATH)/android/graphics \
197 $(LOCAL_PATH)/../../libs/hwui \
198 $(LOCAL_PATH)/../../../native/opengl/libs \
Michael Lentine03d8f7682016-01-31 15:37:11 -0600199 $(LOCAL_PATH)/../../../native/vulkan/include \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800200 $(call include-path-for, bluedroid) \
201 $(call include-path-for, libhardware)/hardware \
202 $(call include-path-for, libhardware_legacy)/hardware_legacy \
Andy Hungfe48e0d2015-04-27 18:14:02 -0700203 $(TOP)/frameworks/base/media/jni \
Andreas Gampe8413db82015-12-14 13:54:51 -0800204 $(TOP)/system/core/base/include \
205 $(TOP)/system/core/include \
Daichi Hirono878e86f2016-10-31 09:33:30 +0900206 $(TOP)/system/core/libappfuse/include \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800207 $(TOP)/system/media/camera/include \
208 $(TOP)/system/netd/include \
Leon Scroggins IIIb5e74b92016-10-26 09:45:45 -0400209 external/giflib \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800210 external/pdfium/core/include/fpdfapi \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800211 external/pdfium/fpdfsdk/include \
Svet Ganovfbd02882015-06-04 14:49:16 -0700212 external/pdfium/public \
Philip P. Moltmann79bd8d42016-03-07 09:19:45 -0800213 external/pdfium \
Leon Scroggins IIIf35b9892015-07-31 10:38:40 -0400214 external/skia/include/private \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800215 external/skia/src/core \
216 external/skia/src/effects \
Derek Sollenberger450756a2016-11-07 15:55:47 -0500217 external/skia/src/image \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800218 external/skia/src/images \
Matt Sarett33e37412016-12-21 12:17:17 -0500219 external/skia/src/utils \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800220 external/sqlite/dist \
221 external/sqlite/android \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800222 external/tremor/Tremor \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800223 external/harfbuzz_ng/src \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800224 libcore/include \
225 $(call include-path-for, audio-utils) \
226 frameworks/minikin/include \
227 external/freetype/include
Raph Levien36607892014-06-25 16:32:13 -0700228# TODO: clean up Minikin so it doesn't need the freetype include
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800229
Leon Scroggins IIIb5e74b92016-10-26 09:45:45 -0400230LOCAL_STATIC_LIBRARIES := \
231 libgif \
232
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800233LOCAL_SHARED_LIBRARIES := \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800234 libmemtrack \
235 libandroidfw \
Daichi Hirono878e86f2016-10-31 09:33:30 +0900236 libappfuse \
Andreas Gampe7ad2f6e2016-10-05 12:59:18 -0700237 libbase \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800238 libnativehelper \
239 liblog \
240 libcutils \
Josh Gao3ce36962017-01-05 18:28:24 -0800241 libdebuggerd_client \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800242 libutils \
243 libbinder \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800244 libui \
245 libgui \
246 libinput \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800247 libcamera_client \
248 libcamera_metadata \
249 libskia \
250 libsqlite \
251 libEGL \
252 libGLESv1_CM \
253 libGLESv2 \
Michael Lentine03d8f7682016-01-31 15:37:11 -0600254 libvulkan \
Jaekyun Seokef536522016-12-01 10:02:44 +0900255 libziparchive \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800256 libETC1 \
257 libhardware \
258 libhardware_legacy \
259 libselinux \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800260 libicuuc \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800261 libmedia \
Marco Nelissen20edcbc2016-11-03 10:58:33 -0700262 libaudioclient \
Matt Sarett5c3252e2015-11-23 15:22:39 -0500263 libjpeg \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800264 libusbhost \
265 libharfbuzz_ng \
266 libz \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800267 libpdfium \
268 libimg_utils \
269 libnetd_client \
Eric Laurent633cb562015-03-05 15:17:20 -0800270 libradio \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800271 libsoundtrigger \
272 libminikin \
273 libprocessgroup \
Eric Laurent633cb562015-03-05 15:17:20 -0800274 libnativebridge \
Dmitriy Ivanov048a0db2015-11-15 14:58:36 -0800275 libradio_metadata \
Colin Crossc4fb5f92016-02-02 16:51:15 -0800276 libnativeloader \
277 libmemunreachable \
Yifan Hongd6658ac2016-11-16 15:48:49 -0800278 libhidlbase \
279 libhidltransport \
Andreas Huberc0b6c532016-08-15 09:25:02 -0700280 libhwbinder \
Mike Lockwood755fd612010-05-25 19:08:48 -0400281
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800282LOCAL_SHARED_LIBRARIES += \
John Recka2732a22014-12-18 13:52:33 -0800283 libhwui \
Ashutosh Joshi19753cc2016-11-23 13:56:39 -0800284 libdl \
Dan Albert88ba3392014-09-11 16:20:16 -0700285
Jeff Brownbd882b12011-07-11 22:12:16 -0700286# we need to access the private Bionic header
287# <bionic_tls.h> in com_google_android_gles_jni_GLImpl.cpp
Dan Albert88ba3392014-09-11 16:20:16 -0700288LOCAL_C_INCLUDES += bionic/libc/private
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800289
Colin Cross71044fe2016-12-14 13:29:28 -0800290LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
291
Dan Willemsen81944da2015-09-24 20:45:35 -0700292# AndroidRuntime.h depends on nativehelper/jni.h
Colin Cross71044fe2016-12-14 13:29:28 -0800293LOCAL_EXPORT_C_INCLUDE_DIRS += libnativehelper/include
Dan Willemsen81944da2015-09-24 20:45:35 -0700294
Andreas Huber9ae000c2014-02-13 17:22:33 +0000295LOCAL_MODULE:= libandroid_runtime
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800296
Andreas Gampe26109fd2014-11-18 14:38:00 -0800297# -Wno-unknown-pragmas: necessary for Clang as the GL bindings need to turn
298# off a GCC warning that Clang doesn't know.
Glenn Kasten85d99542015-05-18 12:27:57 -0700299LOCAL_CFLAGS += -Wall -Werror -Wno-error=deprecated-declarations -Wunused -Wunreachable-code \
300 -Wno-unknown-pragmas
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800301
Andreas Gampeed6b9df2014-11-20 22:02:20 -0800302# -Wno-c++11-extensions: Clang warns about Skia using the C++11 override keyword, but this project
303# is not being compiled with that level. Remove once this has changed.
Dan Albert0eadf572015-11-05 00:59:09 -0800304LOCAL_CLANG_CFLAGS += -Wno-c++11-extensions
Andreas Gampeed6b9df2014-11-20 22:02:20 -0800305
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800306include $(BUILD_SHARED_LIBRARY)
307
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800308include $(call all-makefiles-under,$(LOCAL_PATH))