blob: 84568e4389e6e09fdc960eb314c374077d49ea17 [file] [log] [blame]
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08001LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
Dan Albert88ba3392014-09-11 16:20:16 -07003LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08004
5LOCAL_CFLAGS += -DHAVE_CONFIG_H -DKHTML_NO_EXCEPTIONS -DGKWQ_NO_JAVA
6LOCAL_CFLAGS += -DNO_SUPPORT_JS_BINDING -DQT_NO_WHEELEVENT -DKHTML_NO_XBL
7LOCAL_CFLAGS += -U__APPLE__
Dan Albert10caf032015-02-23 10:41:10 -08008LOCAL_CFLAGS += -Wno-unused-parameter
Svetoslav29617692014-04-24 18:40:42 -07009LOCAL_CFLAGS += -Wno-non-virtual-dtor
Kristian Monsenf5fabdf2013-12-11 19:46:41 -080010LOCAL_CFLAGS += -Wno-maybe-uninitialized -Wno-parentheses
11LOCAL_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
Mathias Agopian1473f462009-04-10 14:24:30 -070019LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
20
Elliott Hughes4c5806b2015-03-07 11:00:50 -080021LOCAL_CFLAGS += -DU_USING_ICU_NAMESPACE=0
22
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080023LOCAL_SRC_FILES:= \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080024 AndroidRuntime.cpp \
25 com_android_internal_content_NativeLibraryHelper.cpp \
26 com_google_android_gles_jni_EGLImpl.cpp \
27 com_google_android_gles_jni_GLImpl.cpp.arm \
28 android_app_NativeActivity.cpp \
29 android_opengl_EGL14.cpp \
30 android_opengl_EGLExt.cpp \
31 android_opengl_GLES10.cpp \
32 android_opengl_GLES10Ext.cpp \
33 android_opengl_GLES11.cpp \
34 android_opengl_GLES11Ext.cpp \
35 android_opengl_GLES20.cpp \
36 android_opengl_GLES30.cpp \
37 android_opengl_GLES31.cpp \
38 android_opengl_GLES31Ext.cpp \
39 android_database_CursorWindow.cpp \
40 android_database_SQLiteCommon.cpp \
41 android_database_SQLiteConnection.cpp \
42 android_database_SQLiteGlobal.cpp \
43 android_database_SQLiteDebug.cpp \
44 android_emoji_EmojiFactory.cpp \
45 android_view_DisplayEventReceiver.cpp \
Chris Craikc9070eb2015-03-09 18:50:14 -070046 android_view_DisplayListCanvas.cpp \
47 android_view_GraphicBuffer.cpp \
48 android_view_HardwareLayer.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080049 android_view_InputChannel.cpp \
50 android_view_InputDevice.cpp \
51 android_view_InputEventReceiver.cpp \
52 android_view_InputEventSender.cpp \
53 android_view_InputQueue.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080054 android_view_KeyCharacterMap.cpp \
Chris Craikc9070eb2015-03-09 18:50:14 -070055 android_view_KeyEvent.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080056 android_view_MotionEvent.cpp \
57 android_view_PointerIcon.cpp \
58 android_view_RenderNode.cpp \
59 android_view_RenderNodeAnimator.cpp \
Chris Craikc9070eb2015-03-09 18:50:14 -070060 android_view_Surface.cpp \
61 android_view_SurfaceControl.cpp \
62 android_view_SurfaceSession.cpp \
63 android_view_TextureView.cpp \
64 android_view_ThreadedRenderer.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080065 android_view_VelocityTracker.cpp \
66 android_text_AndroidCharacter.cpp \
67 android_text_AndroidBidi.cpp \
68 android_text_StaticLayout.cpp \
69 android_os_Debug.cpp \
70 android_os_MemoryFile.cpp \
71 android_os_MessageQueue.cpp \
72 android_os_Parcel.cpp \
73 android_os_SELinux.cpp \
74 android_os_SystemClock.cpp \
75 android_os_SystemProperties.cpp \
76 android_os_Trace.cpp \
77 android_os_UEventObserver.cpp \
78 android_net_LocalSocketImpl.cpp \
79 android_net_NetUtils.cpp \
80 android_net_TrafficStats.cpp \
81 android_nio_utils.cpp \
82 android_util_AssetManager.cpp \
83 android_util_Binder.cpp \
84 android_util_EventLog.cpp \
85 android_util_Log.cpp \
86 android_util_Process.cpp \
87 android_util_StringBlock.cpp \
88 android_util_XmlBlock.cpp \
89 android_graphics_Canvas.cpp \
90 android_graphics_Picture.cpp \
91 android/graphics/AutoDecodeCancel.cpp \
Leon Scroggins IIIed1ce372015-01-30 09:05:11 -050092 android/graphics/AvoidXfermode.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080093 android/graphics/Bitmap.cpp \
94 android/graphics/BitmapFactory.cpp \
95 android/graphics/Camera.cpp \
96 android/graphics/CanvasProperty.cpp \
97 android/graphics/ColorFilter.cpp \
98 android/graphics/DrawFilter.cpp \
99 android/graphics/FontFamily.cpp \
100 android/graphics/CreateJavaOutputStreamAdaptor.cpp \
101 android/graphics/Graphics.cpp \
102 android/graphics/HarfBuzzNGFaceSkia.cpp \
103 android/graphics/Interpolator.cpp \
104 android/graphics/MaskFilter.cpp \
105 android/graphics/Matrix.cpp \
106 android/graphics/MinikinSkia.cpp \
107 android/graphics/MinikinUtils.cpp \
108 android/graphics/Movie.cpp \
109 android/graphics/NinePatch.cpp \
110 android/graphics/NinePatchImpl.cpp \
111 android/graphics/NinePatchPeeker.cpp \
112 android/graphics/Paint.cpp \
113 android/graphics/PaintImpl.cpp \
114 android/graphics/Path.cpp \
115 android/graphics/PathMeasure.cpp \
116 android/graphics/PathEffect.cpp \
117 android/graphics/Picture.cpp \
118 android/graphics/PorterDuff.cpp \
119 android/graphics/BitmapRegionDecoder.cpp \
120 android/graphics/Rasterizer.cpp \
121 android/graphics/Region.cpp \
122 android/graphics/Shader.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800123 android/graphics/SurfaceTexture.cpp \
124 android/graphics/Typeface.cpp \
125 android/graphics/TypefaceImpl.cpp \
126 android/graphics/Utils.cpp \
127 android/graphics/Xfermode.cpp \
128 android/graphics/YuvToJpegEncoder.cpp \
129 android/graphics/pdf/PdfDocument.cpp \
130 android/graphics/pdf/PdfEditor.cpp \
131 android/graphics/pdf/PdfRenderer.cpp \
132 android_media_AudioRecord.cpp \
133 android_media_AudioSystem.cpp \
134 android_media_AudioTrack.cpp \
135 android_media_JetPlayer.cpp \
136 android_media_RemoteDisplay.cpp \
137 android_media_ToneGenerator.cpp \
138 android_hardware_Camera.cpp \
139 android_hardware_camera2_CameraMetadata.cpp \
140 android_hardware_camera2_legacy_LegacyCameraDevice.cpp \
141 android_hardware_camera2_legacy_PerfMeasurement.cpp \
142 android_hardware_camera2_DngCreator.cpp \
Eric Laurent633cb562015-03-05 15:17:20 -0800143 android_hardware_Radio.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800144 android_hardware_SensorManager.cpp \
145 android_hardware_SerialPort.cpp \
146 android_hardware_SoundTrigger.cpp \
147 android_hardware_UsbDevice.cpp \
148 android_hardware_UsbDeviceConnection.cpp \
149 android_hardware_UsbRequest.cpp \
150 android_hardware_location_ActivityRecognitionHardware.cpp \
151 android_util_FileObserver.cpp \
152 android/opengl/poly_clip.cpp.arm \
John Reckf4faeac2015-03-05 13:50:31 -0800153 android/opengl/util.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800154 android_server_FingerprintManager.cpp \
155 android_server_NetworkManagementSocketTagger.cpp \
156 android_server_Watchdog.cpp \
157 android_ddm_DdmHandleNativeHeap.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800158 android_backup_BackupDataInput.cpp \
159 android_backup_BackupDataOutput.cpp \
160 android_backup_FileBackupHelperBase.cpp \
161 android_backup_BackupHelperDispatcher.cpp \
162 android_app_backup_FullBackup.cpp \
163 android_content_res_ObbScanner.cpp \
164 android_content_res_Configuration.cpp \
165 android_animation_PropertyValuesHolder.cpp \
166 com_android_internal_net_NetworkStatsFactory.cpp \
167 com_android_internal_os_Zygote.cpp \
168 com_android_internal_util_VirtualRefBasePtr.cpp \
169 com_android_internal_view_animation_NativeInterpolatorFactoryHelper.cpp
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800170
171LOCAL_C_INCLUDES += \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800172 $(JNI_H_INCLUDE) \
173 $(LOCAL_PATH)/android/graphics \
174 $(LOCAL_PATH)/../../libs/hwui \
175 $(LOCAL_PATH)/../../../native/opengl/libs \
176 $(call include-path-for, bluedroid) \
177 $(call include-path-for, libhardware)/hardware \
178 $(call include-path-for, libhardware_legacy)/hardware_legacy \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800179 $(TOP)/frameworks/av/include \
180 $(TOP)/system/media/camera/include \
181 $(TOP)/system/netd/include \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800182 external/pdfium/core/include/fpdfapi \
183 external/pdfium/core/include/fpdfdoc \
184 external/pdfium/fpdfsdk/include \
185 external/skia/src/core \
186 external/skia/src/effects \
187 external/skia/src/images \
188 external/sqlite/dist \
189 external/sqlite/android \
190 external/expat/lib \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800191 external/tremor/Tremor \
192 external/jpeg \
193 external/harfbuzz_ng/src \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800194 frameworks/opt/emoji \
195 libcore/include \
196 $(call include-path-for, audio-utils) \
197 frameworks/minikin/include \
198 external/freetype/include
Raph Levien36607892014-06-25 16:32:13 -0700199# TODO: clean up Minikin so it doesn't need the freetype include
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800200
201LOCAL_SHARED_LIBRARIES := \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800202 libmemtrack \
203 libandroidfw \
204 libexpat \
205 libnativehelper \
206 liblog \
207 libcutils \
208 libutils \
209 libbinder \
210 libnetutils \
211 libui \
212 libgui \
213 libinput \
214 libinputflinger \
215 libcamera_client \
216 libcamera_metadata \
217 libskia \
218 libsqlite \
219 libEGL \
220 libGLESv1_CM \
221 libGLESv2 \
222 libETC1 \
223 libhardware \
224 libhardware_legacy \
225 libselinux \
226 libsonivox \
227 libcrypto \
228 libssl \
229 libicuuc \
230 libicui18n \
231 libmedia \
232 libjpeg \
233 libusbhost \
234 libharfbuzz_ng \
235 libz \
236 libaudioutils \
237 libpdfium \
238 libimg_utils \
239 libnetd_client \
Eric Laurent633cb562015-03-05 15:17:20 -0800240 libradio \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800241 libsoundtrigger \
242 libminikin \
243 libprocessgroup \
Eric Laurent633cb562015-03-05 15:17:20 -0800244 libnativebridge \
245 libradio_metadata
Mike Lockwood755fd612010-05-25 19:08:48 -0400246
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800247LOCAL_SHARED_LIBRARIES += \
John Recka2732a22014-12-18 13:52:33 -0800248 libhwui \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800249 libdl
Dan Albert88ba3392014-09-11 16:20:16 -0700250
Jeff Brownbd882b12011-07-11 22:12:16 -0700251# we need to access the private Bionic header
252# <bionic_tls.h> in com_google_android_gles_jni_GLImpl.cpp
Dan Albert88ba3392014-09-11 16:20:16 -0700253LOCAL_C_INCLUDES += bionic/libc/private
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800254
Andreas Huber9ae000c2014-02-13 17:22:33 +0000255LOCAL_MODULE:= libandroid_runtime
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800256
Andreas Gampe26109fd2014-11-18 14:38:00 -0800257# -Wno-unknown-pragmas: necessary for Clang as the GL bindings need to turn
258# off a GCC warning that Clang doesn't know.
259LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code -Wno-unknown-pragmas
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800260
Andreas Gampeed6b9df2014-11-20 22:02:20 -0800261# -Wno-c++11-extensions: Clang warns about Skia using the C++11 override keyword, but this project
262# is not being compiled with that level. Remove once this has changed.
263LOCAL_CFLAGS += -Wno-c++11-extensions
264
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800265include $(BUILD_SHARED_LIBRARY)
266
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800267include $(call all-makefiles-under,$(LOCAL_PATH))