blob: 65142abd0e386489585628401374ad064e69db4f [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 \
122 android/graphics/Graphics.cpp \
123 android/graphics/HarfBuzzNGFaceSkia.cpp \
124 android/graphics/Interpolator.cpp \
125 android/graphics/MaskFilter.cpp \
126 android/graphics/Matrix.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800127 android/graphics/Movie.cpp \
128 android/graphics/NinePatch.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800129 android/graphics/NinePatchPeeker.cpp \
130 android/graphics/Paint.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800131 android/graphics/Path.cpp \
132 android/graphics/PathMeasure.cpp \
133 android/graphics/PathEffect.cpp \
134 android/graphics/Picture.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800135 android/graphics/BitmapRegionDecoder.cpp \
136 android/graphics/Rasterizer.cpp \
137 android/graphics/Region.cpp \
138 android/graphics/Shader.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800139 android/graphics/SurfaceTexture.cpp \
140 android/graphics/Typeface.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800141 android/graphics/Utils.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800142 android/graphics/YuvToJpegEncoder.cpp \
143 android/graphics/pdf/PdfDocument.cpp \
144 android/graphics/pdf/PdfEditor.cpp \
145 android/graphics/pdf/PdfRenderer.cpp \
Philip P. Moltmann12328c02016-06-10 14:47:16 -0700146 android/graphics/pdf/PdfUtils.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800147 android_media_AudioRecord.cpp \
148 android_media_AudioSystem.cpp \
149 android_media_AudioTrack.cpp \
Eric Laurent4bcdba82015-05-01 11:37:49 -0700150 android_media_DeviceCallback.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800151 android_media_JetPlayer.cpp \
152 android_media_RemoteDisplay.cpp \
153 android_media_ToneGenerator.cpp \
154 android_hardware_Camera.cpp \
155 android_hardware_camera2_CameraMetadata.cpp \
156 android_hardware_camera2_legacy_LegacyCameraDevice.cpp \
157 android_hardware_camera2_legacy_PerfMeasurement.cpp \
158 android_hardware_camera2_DngCreator.cpp \
Eric Laurent633cb562015-03-05 15:17:20 -0800159 android_hardware_Radio.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800160 android_hardware_SensorManager.cpp \
161 android_hardware_SerialPort.cpp \
162 android_hardware_SoundTrigger.cpp \
163 android_hardware_UsbDevice.cpp \
164 android_hardware_UsbDeviceConnection.cpp \
165 android_hardware_UsbRequest.cpp \
Peng Xu9ff7d222016-02-11 13:02:05 -0800166 android_hardware_location_ContextHubService.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800167 android_hardware_location_ActivityRecognitionHardware.cpp \
168 android_util_FileObserver.cpp \
169 android/opengl/poly_clip.cpp.arm \
John Reckf4faeac2015-03-05 13:50:31 -0800170 android/opengl/util.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800171 android_server_NetworkManagementSocketTagger.cpp \
172 android_server_Watchdog.cpp \
173 android_ddm_DdmHandleNativeHeap.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800174 android_backup_BackupDataInput.cpp \
175 android_backup_BackupDataOutput.cpp \
176 android_backup_FileBackupHelperBase.cpp \
177 android_backup_BackupHelperDispatcher.cpp \
178 android_app_backup_FullBackup.cpp \
179 android_content_res_ObbScanner.cpp \
180 android_content_res_Configuration.cpp \
181 android_animation_PropertyValuesHolder.cpp \
182 com_android_internal_net_NetworkStatsFactory.cpp \
Dimitry Ivanov5d7d7772016-04-20 14:09:32 -0700183 com_android_internal_os_PathClassLoaderFactory.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800184 com_android_internal_os_Zygote.cpp \
185 com_android_internal_util_VirtualRefBasePtr.cpp \
Andreas Huberc0b6c532016-08-15 09:25:02 -0700186 com_android_internal_view_animation_NativeInterpolatorFactoryHelper.cpp \
187 hwbinder/EphemeralStorage.cpp \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800188
189LOCAL_C_INCLUDES += \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800190 $(JNI_H_INCLUDE) \
191 $(LOCAL_PATH)/android/graphics \
192 $(LOCAL_PATH)/../../libs/hwui \
193 $(LOCAL_PATH)/../../../native/opengl/libs \
Michael Lentine03d8f7682016-01-31 15:37:11 -0600194 $(LOCAL_PATH)/../../../native/vulkan/include \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800195 $(call include-path-for, bluedroid) \
196 $(call include-path-for, libhardware)/hardware \
197 $(call include-path-for, libhardware_legacy)/hardware_legacy \
Andy Hungfe48e0d2015-04-27 18:14:02 -0700198 $(TOP)/frameworks/base/media/jni \
Andreas Gampe8413db82015-12-14 13:54:51 -0800199 $(TOP)/system/core/base/include \
200 $(TOP)/system/core/include \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800201 $(TOP)/system/media/camera/include \
202 $(TOP)/system/netd/include \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800203 external/pdfium/core/include/fpdfapi \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800204 external/pdfium/fpdfsdk/include \
Svet Ganovfbd02882015-06-04 14:49:16 -0700205 external/pdfium/public \
Philip P. Moltmann79bd8d42016-03-07 09:19:45 -0800206 external/pdfium \
Leon Scroggins IIIf35b9892015-07-31 10:38:40 -0400207 external/skia/include/private \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800208 external/skia/src/core \
209 external/skia/src/effects \
210 external/skia/src/images \
211 external/sqlite/dist \
212 external/sqlite/android \
213 external/expat/lib \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800214 external/tremor/Tremor \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800215 external/harfbuzz_ng/src \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800216 libcore/include \
217 $(call include-path-for, audio-utils) \
218 frameworks/minikin/include \
219 external/freetype/include
Raph Levien36607892014-06-25 16:32:13 -0700220# TODO: clean up Minikin so it doesn't need the freetype include
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800221
222LOCAL_SHARED_LIBRARIES := \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800223 libmemtrack \
224 libandroidfw \
225 libexpat \
226 libnativehelper \
227 liblog \
228 libcutils \
229 libutils \
230 libbinder \
231 libnetutils \
232 libui \
233 libgui \
234 libinput \
235 libinputflinger \
236 libcamera_client \
237 libcamera_metadata \
238 libskia \
239 libsqlite \
240 libEGL \
241 libGLESv1_CM \
242 libGLESv2 \
Michael Lentine03d8f7682016-01-31 15:37:11 -0600243 libvulkan \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800244 libETC1 \
245 libhardware \
246 libhardware_legacy \
247 libselinux \
248 libsonivox \
249 libcrypto \
250 libssl \
251 libicuuc \
252 libicui18n \
253 libmedia \
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 \
Martijn Coenend2b42cc2016-08-19 14:23:42 +0200270 libhidl \
Andreas Huberc0b6c532016-08-15 09:25:02 -0700271 libhwbinder \
Mike Lockwood755fd612010-05-25 19:08:48 -0400272
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800273LOCAL_SHARED_LIBRARIES += \
John Recka2732a22014-12-18 13:52:33 -0800274 libhwui \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800275 libdl
Dan Albert88ba3392014-09-11 16:20:16 -0700276
Jeff Brownbd882b12011-07-11 22:12:16 -0700277# we need to access the private Bionic header
278# <bionic_tls.h> in com_google_android_gles_jni_GLImpl.cpp
Dan Albert88ba3392014-09-11 16:20:16 -0700279LOCAL_C_INCLUDES += bionic/libc/private
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800280
Dan Willemsen81944da2015-09-24 20:45:35 -0700281# AndroidRuntime.h depends on nativehelper/jni.h
282LOCAL_EXPORT_C_INCLUDE_DIRS := libnativehelper/include
283
Andreas Huber9ae000c2014-02-13 17:22:33 +0000284LOCAL_MODULE:= libandroid_runtime
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800285
Andreas Gampe26109fd2014-11-18 14:38:00 -0800286# -Wno-unknown-pragmas: necessary for Clang as the GL bindings need to turn
287# off a GCC warning that Clang doesn't know.
Glenn Kasten85d99542015-05-18 12:27:57 -0700288LOCAL_CFLAGS += -Wall -Werror -Wno-error=deprecated-declarations -Wunused -Wunreachable-code \
289 -Wno-unknown-pragmas
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800290
Andreas Gampeed6b9df2014-11-20 22:02:20 -0800291# -Wno-c++11-extensions: Clang warns about Skia using the C++11 override keyword, but this project
292# is not being compiled with that level. Remove once this has changed.
Dan Albert0eadf572015-11-05 00:59:09 -0800293LOCAL_CLANG_CFLAGS += -Wno-c++11-extensions
Andreas Gampeed6b9df2014-11-20 22:02:20 -0800294
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800295include $(BUILD_SHARED_LIBRARY)
296
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800297include $(call all-makefiles-under,$(LOCAL_PATH))