blob: 4be365944982876d006ca7be12da6dad5dc67ca1 [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
John Reck0bed0322016-02-25 15:02:02 -080010#LOCAL_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
Tim Murray6d43a8612015-08-05 14:31:05 -070023ifneq ($(ENABLE_SCHED_BOOST),)
24 LOCAL_CFLAGS += -DENABLE_SCHED_BOOST
25endif
26
Mathias Agopian1473f462009-04-10 14:24:30 -070027LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
28
Elliott Hughes4c5806b2015-03-07 11:00:50 -080029LOCAL_CFLAGS += -DU_USING_ICU_NAMESPACE=0
30
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080031LOCAL_SRC_FILES:= \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080032 AndroidRuntime.cpp \
33 com_android_internal_content_NativeLibraryHelper.cpp \
34 com_google_android_gles_jni_EGLImpl.cpp \
35 com_google_android_gles_jni_GLImpl.cpp.arm \
36 android_app_NativeActivity.cpp \
Rubin Xu75431fb2016-01-07 21:12:14 +000037 android_auditing_SecurityLog.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080038 android_opengl_EGL14.cpp \
39 android_opengl_EGLExt.cpp \
40 android_opengl_GLES10.cpp \
41 android_opengl_GLES10Ext.cpp \
42 android_opengl_GLES11.cpp \
43 android_opengl_GLES11Ext.cpp \
44 android_opengl_GLES20.cpp \
45 android_opengl_GLES30.cpp \
46 android_opengl_GLES31.cpp \
47 android_opengl_GLES31Ext.cpp \
Pablo Ceballos38c1a7e2015-10-30 10:34:30 -070048 android_opengl_GLES32.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080049 android_database_CursorWindow.cpp \
50 android_database_SQLiteCommon.cpp \
51 android_database_SQLiteConnection.cpp \
52 android_database_SQLiteGlobal.cpp \
53 android_database_SQLiteDebug.cpp \
Doris Liu766431a2016-02-04 22:17:11 +000054 android_graphics_drawable_AnimatedVectorDrawable.cpp \
Doris Liu4bbc2932015-12-01 17:59:40 -080055 android_graphics_drawable_VectorDrawable.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080056 android_view_DisplayEventReceiver.cpp \
Chris Craikc9070eb2015-03-09 18:50:14 -070057 android_view_DisplayListCanvas.cpp \
58 android_view_GraphicBuffer.cpp \
59 android_view_HardwareLayer.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080060 android_view_InputChannel.cpp \
61 android_view_InputDevice.cpp \
62 android_view_InputEventReceiver.cpp \
63 android_view_InputEventSender.cpp \
64 android_view_InputQueue.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080065 android_view_KeyCharacterMap.cpp \
Chris Craikc9070eb2015-03-09 18:50:14 -070066 android_view_KeyEvent.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080067 android_view_MotionEvent.cpp \
68 android_view_PointerIcon.cpp \
69 android_view_RenderNode.cpp \
70 android_view_RenderNodeAnimator.cpp \
Chris Craikc9070eb2015-03-09 18:50:14 -070071 android_view_Surface.cpp \
72 android_view_SurfaceControl.cpp \
73 android_view_SurfaceSession.cpp \
74 android_view_TextureView.cpp \
75 android_view_ThreadedRenderer.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080076 android_view_VelocityTracker.cpp \
77 android_text_AndroidCharacter.cpp \
78 android_text_AndroidBidi.cpp \
79 android_text_StaticLayout.cpp \
80 android_os_Debug.cpp \
81 android_os_MemoryFile.cpp \
82 android_os_MessageQueue.cpp \
83 android_os_Parcel.cpp \
84 android_os_SELinux.cpp \
85 android_os_SystemClock.cpp \
86 android_os_SystemProperties.cpp \
87 android_os_Trace.cpp \
88 android_os_UEventObserver.cpp \
89 android_net_LocalSocketImpl.cpp \
90 android_net_NetUtils.cpp \
91 android_net_TrafficStats.cpp \
92 android_nio_utils.cpp \
93 android_util_AssetManager.cpp \
94 android_util_Binder.cpp \
95 android_util_EventLog.cpp \
96 android_util_Log.cpp \
Doris Liucdd23f92015-11-11 14:31:13 -080097 android_util_PathParser.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080098 android_util_Process.cpp \
99 android_util_StringBlock.cpp \
100 android_util_XmlBlock.cpp \
Przemyslaw Szczepaniak8a7c1602015-11-03 09:47:56 +0000101 android_util_jar_StrictJarFile.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800102 android_graphics_Canvas.cpp \
103 android_graphics_Picture.cpp \
Leon Scroggins IIIed1ce372015-01-30 09:05:11 -0500104 android/graphics/AvoidXfermode.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800105 android/graphics/Bitmap.cpp \
106 android/graphics/BitmapFactory.cpp \
107 android/graphics/Camera.cpp \
108 android/graphics/CanvasProperty.cpp \
109 android/graphics/ColorFilter.cpp \
110 android/graphics/DrawFilter.cpp \
111 android/graphics/FontFamily.cpp \
112 android/graphics/CreateJavaOutputStreamAdaptor.cpp \
113 android/graphics/Graphics.cpp \
114 android/graphics/HarfBuzzNGFaceSkia.cpp \
115 android/graphics/Interpolator.cpp \
116 android/graphics/MaskFilter.cpp \
117 android/graphics/Matrix.cpp \
118 android/graphics/MinikinSkia.cpp \
119 android/graphics/MinikinUtils.cpp \
120 android/graphics/Movie.cpp \
121 android/graphics/NinePatch.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800122 android/graphics/NinePatchPeeker.cpp \
123 android/graphics/Paint.cpp \
124 android/graphics/PaintImpl.cpp \
125 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 \
136 android/graphics/TypefaceImpl.cpp \
137 android/graphics/Utils.cpp \
138 android/graphics/Xfermode.cpp \
139 android/graphics/YuvToJpegEncoder.cpp \
140 android/graphics/pdf/PdfDocument.cpp \
141 android/graphics/pdf/PdfEditor.cpp \
142 android/graphics/pdf/PdfRenderer.cpp \
143 android_media_AudioRecord.cpp \
144 android_media_AudioSystem.cpp \
145 android_media_AudioTrack.cpp \
Eric Laurent4bcdba82015-05-01 11:37:49 -0700146 android_media_DeviceCallback.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800147 android_media_JetPlayer.cpp \
148 android_media_RemoteDisplay.cpp \
149 android_media_ToneGenerator.cpp \
150 android_hardware_Camera.cpp \
151 android_hardware_camera2_CameraMetadata.cpp \
152 android_hardware_camera2_legacy_LegacyCameraDevice.cpp \
153 android_hardware_camera2_legacy_PerfMeasurement.cpp \
154 android_hardware_camera2_DngCreator.cpp \
Eric Laurent633cb562015-03-05 15:17:20 -0800155 android_hardware_Radio.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800156 android_hardware_SensorManager.cpp \
157 android_hardware_SerialPort.cpp \
158 android_hardware_SoundTrigger.cpp \
159 android_hardware_UsbDevice.cpp \
160 android_hardware_UsbDeviceConnection.cpp \
161 android_hardware_UsbRequest.cpp \
162 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 \
178 com_android_internal_os_Zygote.cpp \
179 com_android_internal_util_VirtualRefBasePtr.cpp \
Polina Bondarenkof8754ac2016-02-12 20:38:23 +0100180 com_android_internal_view_animation_NativeInterpolatorFactoryHelper.cpp
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800181
182LOCAL_C_INCLUDES += \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800183 $(JNI_H_INCLUDE) \
184 $(LOCAL_PATH)/android/graphics \
185 $(LOCAL_PATH)/../../libs/hwui \
186 $(LOCAL_PATH)/../../../native/opengl/libs \
Michael Lentine03d8f7682016-01-31 15:37:11 -0600187 $(LOCAL_PATH)/../../../native/vulkan/include \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800188 $(call include-path-for, bluedroid) \
189 $(call include-path-for, libhardware)/hardware \
190 $(call include-path-for, libhardware_legacy)/hardware_legacy \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800191 $(TOP)/frameworks/av/include \
Andy Hungfe48e0d2015-04-27 18:14:02 -0700192 $(TOP)/frameworks/base/media/jni \
Andreas Gampe8413db82015-12-14 13:54:51 -0800193 $(TOP)/system/core/base/include \
194 $(TOP)/system/core/include \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800195 $(TOP)/system/media/camera/include \
196 $(TOP)/system/netd/include \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800197 external/pdfium/core/include/fpdfapi \
198 external/pdfium/core/include/fpdfdoc \
199 external/pdfium/fpdfsdk/include \
Svet Ganovfbd02882015-06-04 14:49:16 -0700200 external/pdfium/public \
Leon Scroggins IIIf35b9892015-07-31 10:38:40 -0400201 external/skia/include/private \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800202 external/skia/src/core \
203 external/skia/src/effects \
204 external/skia/src/images \
205 external/sqlite/dist \
206 external/sqlite/android \
207 external/expat/lib \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800208 external/tremor/Tremor \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800209 external/harfbuzz_ng/src \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800210 libcore/include \
211 $(call include-path-for, audio-utils) \
212 frameworks/minikin/include \
213 external/freetype/include
Raph Levien36607892014-06-25 16:32:13 -0700214# TODO: clean up Minikin so it doesn't need the freetype include
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800215
216LOCAL_SHARED_LIBRARIES := \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800217 libmemtrack \
218 libandroidfw \
219 libexpat \
220 libnativehelper \
221 liblog \
222 libcutils \
223 libutils \
224 libbinder \
225 libnetutils \
226 libui \
227 libgui \
228 libinput \
229 libinputflinger \
230 libcamera_client \
231 libcamera_metadata \
232 libskia \
233 libsqlite \
234 libEGL \
235 libGLESv1_CM \
236 libGLESv2 \
Michael Lentine03d8f7682016-01-31 15:37:11 -0600237 libvulkan \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800238 libETC1 \
239 libhardware \
240 libhardware_legacy \
241 libselinux \
242 libsonivox \
243 libcrypto \
244 libssl \
245 libicuuc \
246 libicui18n \
247 libmedia \
Matt Sarett5c3252e2015-11-23 15:22:39 -0500248 libjpeg \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800249 libusbhost \
250 libharfbuzz_ng \
251 libz \
252 libaudioutils \
253 libpdfium \
254 libimg_utils \
255 libnetd_client \
Eric Laurent633cb562015-03-05 15:17:20 -0800256 libradio \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800257 libsoundtrigger \
258 libminikin \
259 libprocessgroup \
Eric Laurent633cb562015-03-05 15:17:20 -0800260 libnativebridge \
Dmitriy Ivanov048a0db2015-11-15 14:58:36 -0800261 libradio_metadata \
262 libnativeloader
Mike Lockwood755fd612010-05-25 19:08:48 -0400263
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800264LOCAL_SHARED_LIBRARIES += \
John Recka2732a22014-12-18 13:52:33 -0800265 libhwui \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800266 libdl
Dan Albert88ba3392014-09-11 16:20:16 -0700267
Jeff Brownbd882b12011-07-11 22:12:16 -0700268# we need to access the private Bionic header
269# <bionic_tls.h> in com_google_android_gles_jni_GLImpl.cpp
Dan Albert88ba3392014-09-11 16:20:16 -0700270LOCAL_C_INCLUDES += bionic/libc/private
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800271
Dan Willemsen81944da2015-09-24 20:45:35 -0700272# AndroidRuntime.h depends on nativehelper/jni.h
273LOCAL_EXPORT_C_INCLUDE_DIRS := libnativehelper/include
274
Andreas Huber9ae000c2014-02-13 17:22:33 +0000275LOCAL_MODULE:= libandroid_runtime
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800276
Andreas Gampe26109fd2014-11-18 14:38:00 -0800277# -Wno-unknown-pragmas: necessary for Clang as the GL bindings need to turn
278# off a GCC warning that Clang doesn't know.
Glenn Kasten85d99542015-05-18 12:27:57 -0700279LOCAL_CFLAGS += -Wall -Werror -Wno-error=deprecated-declarations -Wunused -Wunreachable-code \
280 -Wno-unknown-pragmas
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800281
Andreas Gampeed6b9df2014-11-20 22:02:20 -0800282# -Wno-c++11-extensions: Clang warns about Skia using the C++11 override keyword, but this project
283# is not being compiled with that level. Remove once this has changed.
Dan Albert0eadf572015-11-05 00:59:09 -0800284LOCAL_CLANG_CFLAGS += -Wno-c++11-extensions
Andreas Gampeed6b9df2014-11-20 22:02:20 -0800285
Andreas Gampe2bc67a12015-07-10 21:46:17 -0700286# b/22414716: thread_local (android/graphics/Paint.cpp) and Clang don't like each other at the
287# moment.
288LOCAL_CLANG := false
289
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800290include $(BUILD_SHARED_LIBRARY)
291
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800292include $(call all-makefiles-under,$(LOCAL_PATH))