blob: 9d763350da25d98d823eae0a5d8e9d1def843789 [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
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080021LOCAL_SRC_FILES:= \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080022 AndroidRuntime.cpp \
23 com_android_internal_content_NativeLibraryHelper.cpp \
24 com_google_android_gles_jni_EGLImpl.cpp \
25 com_google_android_gles_jni_GLImpl.cpp.arm \
26 android_app_NativeActivity.cpp \
27 android_opengl_EGL14.cpp \
28 android_opengl_EGLExt.cpp \
29 android_opengl_GLES10.cpp \
30 android_opengl_GLES10Ext.cpp \
31 android_opengl_GLES11.cpp \
32 android_opengl_GLES11Ext.cpp \
33 android_opengl_GLES20.cpp \
34 android_opengl_GLES30.cpp \
35 android_opengl_GLES31.cpp \
36 android_opengl_GLES31Ext.cpp \
37 android_database_CursorWindow.cpp \
38 android_database_SQLiteCommon.cpp \
39 android_database_SQLiteConnection.cpp \
40 android_database_SQLiteGlobal.cpp \
41 android_database_SQLiteDebug.cpp \
42 android_emoji_EmojiFactory.cpp \
43 android_view_DisplayEventReceiver.cpp \
Chris Craikc9070eb2015-03-09 18:50:14 -070044 android_view_DisplayListCanvas.cpp \
45 android_view_GraphicBuffer.cpp \
46 android_view_HardwareLayer.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080047 android_view_InputChannel.cpp \
48 android_view_InputDevice.cpp \
49 android_view_InputEventReceiver.cpp \
50 android_view_InputEventSender.cpp \
51 android_view_InputQueue.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080052 android_view_KeyCharacterMap.cpp \
Chris Craikc9070eb2015-03-09 18:50:14 -070053 android_view_KeyEvent.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080054 android_view_MotionEvent.cpp \
55 android_view_PointerIcon.cpp \
56 android_view_RenderNode.cpp \
57 android_view_RenderNodeAnimator.cpp \
Chris Craikc9070eb2015-03-09 18:50:14 -070058 android_view_Surface.cpp \
59 android_view_SurfaceControl.cpp \
60 android_view_SurfaceSession.cpp \
61 android_view_TextureView.cpp \
62 android_view_ThreadedRenderer.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080063 android_view_VelocityTracker.cpp \
64 android_text_AndroidCharacter.cpp \
65 android_text_AndroidBidi.cpp \
66 android_text_StaticLayout.cpp \
67 android_os_Debug.cpp \
68 android_os_MemoryFile.cpp \
69 android_os_MessageQueue.cpp \
70 android_os_Parcel.cpp \
71 android_os_SELinux.cpp \
72 android_os_SystemClock.cpp \
73 android_os_SystemProperties.cpp \
74 android_os_Trace.cpp \
75 android_os_UEventObserver.cpp \
76 android_net_LocalSocketImpl.cpp \
77 android_net_NetUtils.cpp \
78 android_net_TrafficStats.cpp \
79 android_nio_utils.cpp \
80 android_util_AssetManager.cpp \
81 android_util_Binder.cpp \
82 android_util_EventLog.cpp \
83 android_util_Log.cpp \
84 android_util_Process.cpp \
85 android_util_StringBlock.cpp \
86 android_util_XmlBlock.cpp \
87 android_graphics_Canvas.cpp \
88 android_graphics_Picture.cpp \
89 android/graphics/AutoDecodeCancel.cpp \
Leon Scroggins IIIed1ce372015-01-30 09:05:11 -050090 android/graphics/AvoidXfermode.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -080091 android/graphics/Bitmap.cpp \
92 android/graphics/BitmapFactory.cpp \
93 android/graphics/Camera.cpp \
94 android/graphics/CanvasProperty.cpp \
95 android/graphics/ColorFilter.cpp \
96 android/graphics/DrawFilter.cpp \
97 android/graphics/FontFamily.cpp \
98 android/graphics/CreateJavaOutputStreamAdaptor.cpp \
99 android/graphics/Graphics.cpp \
100 android/graphics/HarfBuzzNGFaceSkia.cpp \
101 android/graphics/Interpolator.cpp \
102 android/graphics/MaskFilter.cpp \
103 android/graphics/Matrix.cpp \
104 android/graphics/MinikinSkia.cpp \
105 android/graphics/MinikinUtils.cpp \
106 android/graphics/Movie.cpp \
107 android/graphics/NinePatch.cpp \
108 android/graphics/NinePatchImpl.cpp \
109 android/graphics/NinePatchPeeker.cpp \
110 android/graphics/Paint.cpp \
111 android/graphics/PaintImpl.cpp \
112 android/graphics/Path.cpp \
113 android/graphics/PathMeasure.cpp \
114 android/graphics/PathEffect.cpp \
115 android/graphics/Picture.cpp \
116 android/graphics/PorterDuff.cpp \
117 android/graphics/BitmapRegionDecoder.cpp \
118 android/graphics/Rasterizer.cpp \
119 android/graphics/Region.cpp \
120 android/graphics/Shader.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800121 android/graphics/SurfaceTexture.cpp \
122 android/graphics/Typeface.cpp \
123 android/graphics/TypefaceImpl.cpp \
124 android/graphics/Utils.cpp \
125 android/graphics/Xfermode.cpp \
126 android/graphics/YuvToJpegEncoder.cpp \
127 android/graphics/pdf/PdfDocument.cpp \
128 android/graphics/pdf/PdfEditor.cpp \
129 android/graphics/pdf/PdfRenderer.cpp \
130 android_media_AudioRecord.cpp \
131 android_media_AudioSystem.cpp \
132 android_media_AudioTrack.cpp \
133 android_media_JetPlayer.cpp \
134 android_media_RemoteDisplay.cpp \
135 android_media_ToneGenerator.cpp \
136 android_hardware_Camera.cpp \
137 android_hardware_camera2_CameraMetadata.cpp \
138 android_hardware_camera2_legacy_LegacyCameraDevice.cpp \
139 android_hardware_camera2_legacy_PerfMeasurement.cpp \
140 android_hardware_camera2_DngCreator.cpp \
141 android_hardware_SensorManager.cpp \
142 android_hardware_SerialPort.cpp \
143 android_hardware_SoundTrigger.cpp \
144 android_hardware_UsbDevice.cpp \
145 android_hardware_UsbDeviceConnection.cpp \
146 android_hardware_UsbRequest.cpp \
147 android_hardware_location_ActivityRecognitionHardware.cpp \
148 android_util_FileObserver.cpp \
149 android/opengl/poly_clip.cpp.arm \
John Reckf4faeac2015-03-05 13:50:31 -0800150 android/opengl/util.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800151 android_server_FingerprintManager.cpp \
152 android_server_NetworkManagementSocketTagger.cpp \
153 android_server_Watchdog.cpp \
154 android_ddm_DdmHandleNativeHeap.cpp \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800155 android_backup_BackupDataInput.cpp \
156 android_backup_BackupDataOutput.cpp \
157 android_backup_FileBackupHelperBase.cpp \
158 android_backup_BackupHelperDispatcher.cpp \
159 android_app_backup_FullBackup.cpp \
160 android_content_res_ObbScanner.cpp \
161 android_content_res_Configuration.cpp \
162 android_animation_PropertyValuesHolder.cpp \
163 com_android_internal_net_NetworkStatsFactory.cpp \
164 com_android_internal_os_Zygote.cpp \
165 com_android_internal_util_VirtualRefBasePtr.cpp \
166 com_android_internal_view_animation_NativeInterpolatorFactoryHelper.cpp
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800167
168LOCAL_C_INCLUDES += \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800169 $(JNI_H_INCLUDE) \
170 $(LOCAL_PATH)/android/graphics \
171 $(LOCAL_PATH)/../../libs/hwui \
172 $(LOCAL_PATH)/../../../native/opengl/libs \
173 $(call include-path-for, bluedroid) \
174 $(call include-path-for, libhardware)/hardware \
175 $(call include-path-for, libhardware_legacy)/hardware_legacy \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800176 $(TOP)/frameworks/av/include \
177 $(TOP)/system/media/camera/include \
178 $(TOP)/system/netd/include \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800179 external/pdfium/core/include/fpdfapi \
180 external/pdfium/core/include/fpdfdoc \
181 external/pdfium/fpdfsdk/include \
182 external/skia/src/core \
183 external/skia/src/effects \
184 external/skia/src/images \
185 external/sqlite/dist \
186 external/sqlite/android \
187 external/expat/lib \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800188 external/tremor/Tremor \
189 external/jpeg \
190 external/harfbuzz_ng/src \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800191 frameworks/opt/emoji \
192 libcore/include \
193 $(call include-path-for, audio-utils) \
194 frameworks/minikin/include \
195 external/freetype/include
Raph Levien36607892014-06-25 16:32:13 -0700196# TODO: clean up Minikin so it doesn't need the freetype include
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800197
198LOCAL_SHARED_LIBRARIES := \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800199 libmemtrack \
200 libandroidfw \
201 libexpat \
202 libnativehelper \
203 liblog \
204 libcutils \
205 libutils \
206 libbinder \
207 libnetutils \
208 libui \
209 libgui \
210 libinput \
211 libinputflinger \
212 libcamera_client \
213 libcamera_metadata \
214 libskia \
215 libsqlite \
216 libEGL \
217 libGLESv1_CM \
218 libGLESv2 \
219 libETC1 \
220 libhardware \
221 libhardware_legacy \
222 libselinux \
223 libsonivox \
224 libcrypto \
225 libssl \
226 libicuuc \
227 libicui18n \
228 libmedia \
229 libjpeg \
230 libusbhost \
231 libharfbuzz_ng \
232 libz \
233 libaudioutils \
234 libpdfium \
235 libimg_utils \
236 libnetd_client \
237 libsoundtrigger \
238 libminikin \
239 libprocessgroup \
240 libnativebridge
Mike Lockwood755fd612010-05-25 19:08:48 -0400241
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800242LOCAL_SHARED_LIBRARIES += \
John Recka2732a22014-12-18 13:52:33 -0800243 libhwui \
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800244 libdl
Dan Albert88ba3392014-09-11 16:20:16 -0700245
Jeff Brownbd882b12011-07-11 22:12:16 -0700246# we need to access the private Bionic header
247# <bionic_tls.h> in com_google_android_gles_jni_GLImpl.cpp
Dan Albert88ba3392014-09-11 16:20:16 -0700248LOCAL_C_INCLUDES += bionic/libc/private
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800249
Andreas Huber9ae000c2014-02-13 17:22:33 +0000250LOCAL_MODULE:= libandroid_runtime
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800251
Andreas Gampe26109fd2014-11-18 14:38:00 -0800252# -Wno-unknown-pragmas: necessary for Clang as the GL bindings need to turn
253# off a GCC warning that Clang doesn't know.
254LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code -Wno-unknown-pragmas
Andreas Gampe0f0b4912014-11-12 08:03:48 -0800255
Andreas Gampeed6b9df2014-11-20 22:02:20 -0800256# -Wno-c++11-extensions: Clang warns about Skia using the C++11 override keyword, but this project
257# is not being compiled with that level. Remove once this has changed.
258LOCAL_CFLAGS += -Wno-c++11-extensions
259
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800260include $(BUILD_SHARED_LIBRARY)
261
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800262include $(call all-makefiles-under,$(LOCAL_PATH))