Android.mk revision 88b5b0be887fc5dc3b0b879b4179dde200d2e4d6
1LOCAL_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__
7LOCAL_CFLAGS += -Wno-unused-parameter -Wno-int-to-pointer-cast
8LOCAL_CFLAGS += -Wno-non-virtual-dtor
9LOCAL_CFLAGS += -Wno-maybe-uninitialized -Wno-parentheses
10LOCAL_CPPFLAGS += -Wno-conversion-null
11
12ifeq ($(TARGET_ARCH), arm)
13	LOCAL_CFLAGS += -DPACKED="__attribute__ ((packed))"
14else
15	LOCAL_CFLAGS += -DPACKED=""
16endif
17
18ifeq ($(USE_OPENGL_RENDERER),true)
19	LOCAL_CFLAGS += -DUSE_OPENGL_RENDERER
20endif
21
22LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
23
24LOCAL_SRC_FILES:= \
25	AndroidRuntime.cpp \
26	Time.cpp \
27	com_android_internal_content_NativeLibraryHelper.cpp \
28	com_google_android_gles_jni_EGLImpl.cpp \
29	com_google_android_gles_jni_GLImpl.cpp.arm \
30	android_app_NativeActivity.cpp \
31	android_opengl_EGL14.cpp \
32	android_opengl_EGLExt.cpp \
33	android_opengl_GLES10.cpp \
34	android_opengl_GLES10Ext.cpp \
35	android_opengl_GLES11.cpp \
36	android_opengl_GLES11Ext.cpp \
37	android_opengl_GLES20.cpp \
38	android_opengl_GLES30.cpp \
39	android_opengl_GLES31.cpp \
40	android_opengl_GLES31Ext.cpp \
41	android_database_CursorWindow.cpp \
42	android_database_SQLiteCommon.cpp \
43	android_database_SQLiteConnection.cpp \
44	android_database_SQLiteGlobal.cpp \
45	android_database_SQLiteDebug.cpp \
46	android_emoji_EmojiFactory.cpp \
47	android_view_DisplayEventReceiver.cpp \
48	android_view_Surface.cpp \
49	android_view_SurfaceControl.cpp \
50	android_view_SurfaceSession.cpp \
51	android_view_TextureView.cpp \
52	android_view_InputChannel.cpp \
53	android_view_InputDevice.cpp \
54	android_view_InputEventReceiver.cpp \
55	android_view_InputEventSender.cpp \
56	android_view_InputQueue.cpp \
57	android_view_KeyEvent.cpp \
58	android_view_KeyCharacterMap.cpp \
59	android_view_GraphicBuffer.cpp \
60	android_view_GLES20Canvas.cpp \
61	android_view_HardwareLayer.cpp \
62	android_view_ThreadedRenderer.cpp \
63	android_view_MotionEvent.cpp \
64	android_view_PointerIcon.cpp \
65	android_view_RenderNode.cpp \
66	android_view_RenderNodeAnimator.cpp \
67	android_view_VelocityTracker.cpp \
68	android_text_AndroidCharacter.cpp \
69	android_text_AndroidBidi.cpp \
70	android_text_StaticLayout.cpp \
71	android_os_Debug.cpp \
72	android_os_MemoryFile.cpp \
73	android_os_MessageQueue.cpp \
74	android_os_Parcel.cpp \
75	android_os_SELinux.cpp \
76	android_os_SystemClock.cpp \
77	android_os_SystemProperties.cpp \
78	android_os_Trace.cpp \
79	android_os_UEventObserver.cpp \
80	android_net_LocalSocketImpl.cpp \
81	android_net_NetUtils.cpp \
82	android_net_TrafficStats.cpp \
83	android_nio_utils.cpp \
84	android_text_format_Time.cpp \
85	android_util_AssetManager.cpp \
86	android_util_Binder.cpp \
87	android_util_EventLog.cpp \
88	android_util_Log.cpp \
89	android_util_FloatMath.cpp \
90	android_util_Process.cpp \
91	android_util_StringBlock.cpp \
92	android_util_XmlBlock.cpp \
93	android_graphics_Picture.cpp \
94	android/graphics/AutoDecodeCancel.cpp \
95	android/graphics/Bitmap.cpp \
96	android/graphics/BitmapFactory.cpp \
97	android/graphics/Camera.cpp \
98	android/graphics/Canvas.cpp \
99	android/graphics/CanvasProperty.cpp \
100	android/graphics/ColorFilter.cpp \
101	android/graphics/DrawFilter.cpp \
102	android/graphics/FontFamily.cpp \
103	android/graphics/CreateJavaOutputStreamAdaptor.cpp \
104	android/graphics/Graphics.cpp \
105	android/graphics/HarfBuzzNGFaceSkia.cpp \
106	android/graphics/Interpolator.cpp \
107	android/graphics/MaskFilter.cpp \
108	android/graphics/Matrix.cpp \
109	android/graphics/MinikinSkia.cpp \
110	android/graphics/MinikinUtils.cpp \
111	android/graphics/Movie.cpp \
112	android/graphics/NinePatch.cpp \
113	android/graphics/NinePatchImpl.cpp \
114	android/graphics/NinePatchPeeker.cpp \
115	android/graphics/Paint.cpp \
116	android/graphics/Path.cpp \
117	android/graphics/PathMeasure.cpp \
118	android/graphics/PathEffect.cpp \
119	android/graphics/Picture.cpp \
120	android/graphics/PorterDuff.cpp \
121	android/graphics/BitmapRegionDecoder.cpp \
122	android/graphics/Rasterizer.cpp \
123	android/graphics/Region.cpp \
124	android/graphics/Shader.cpp \
125	android/graphics/SurfaceTexture.cpp \
126	android/graphics/Typeface.cpp \
127	android/graphics/TypefaceImpl.cpp \
128	android/graphics/Utils.cpp \
129	android/graphics/Xfermode.cpp \
130	android/graphics/YuvToJpegEncoder.cpp \
131	android/graphics/pdf/PdfDocument.cpp \
132	android/graphics/pdf/PdfRenderer.cpp \
133	android_media_AudioRecord.cpp \
134	android_media_AudioSystem.cpp \
135	android_media_AudioTrack.cpp \
136	android_media_JetPlayer.cpp \
137	android_media_RemoteDisplay.cpp \
138	android_media_ToneGenerator.cpp \
139	android_hardware_Camera.cpp \
140	android_hardware_camera2_CameraMetadata.cpp \
141	android_hardware_camera2_legacy_LegacyCameraDevice.cpp \
142	android_hardware_camera2_DngCreator.cpp \
143	android_hardware_SensorManager.cpp \
144	android_hardware_SerialPort.cpp \
145	android_hardware_SoundTrigger.cpp \
146	android_hardware_UsbDevice.cpp \
147	android_hardware_UsbDeviceConnection.cpp \
148	android_hardware_UsbRequest.cpp \
149	android_util_FileObserver.cpp \
150	android/opengl/poly_clip.cpp.arm \
151	android/opengl/util.cpp.arm \
152	android_server_FingerprintManager.cpp \
153	android_server_NetworkManagementSocketTagger.cpp \
154	android_server_Watchdog.cpp \
155	android_ddm_DdmHandleNativeHeap.cpp \
156	com_android_internal_os_ZygoteInit.cpp \
157	android_backup_BackupDataInput.cpp \
158	android_backup_BackupDataOutput.cpp \
159	android_backup_FileBackupHelperBase.cpp \
160	android_backup_BackupHelperDispatcher.cpp \
161	android_app_backup_FullBackup.cpp \
162	android_content_res_ObbScanner.cpp \
163	android_content_res_Configuration.cpp \
164	android_animation_PropertyValuesHolder.cpp \
165	com_android_internal_net_NetworkStatsFactory.cpp \
166	com_android_internal_os_Zygote.cpp \
167	com_android_internal_util_VirtualRefBasePtr.cpp \
168	com_android_internal_view_animation_NativeInterpolatorFactoryHelper.cpp
169
170LOCAL_C_INCLUDES += \
171	$(JNI_H_INCLUDE) \
172	$(LOCAL_PATH)/android/graphics \
173	$(LOCAL_PATH)/../../libs/hwui \
174	$(LOCAL_PATH)/../../../native/opengl/libs \
175	$(call include-path-for, bluedroid) \
176	$(call include-path-for, libhardware)/hardware \
177	$(call include-path-for, libhardware_legacy)/hardware_legacy \
178	$(TOP)/bionic/libc/dns/include \
179	$(TOP)/frameworks/av/include \
180	$(TOP)/system/media/camera/include \
181	$(TOP)/system/netd/include \
182	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 \
191	external/openssl/include \
192	external/tremor/Tremor \
193	external/icu4c/i18n \
194	external/icu4c/common \
195	external/jpeg \
196	external/harfbuzz_ng/src \
197	external/zlib \
198	frameworks/opt/emoji \
199	libcore/include \
200	$(call include-path-for, audio-utils) \
201	frameworks/minikin/include \
202	external/freetype/include
203# TODO: clean up Minikin so it doesn't need the freetype include
204
205LOCAL_SHARED_LIBRARIES := \
206	libmemtrack \
207	libandroidfw \
208	libexpat \
209	libnativehelper \
210	liblog \
211	libcutils \
212	libutils \
213	libbinder \
214	libnetutils \
215	libui \
216	libgui \
217	libinput \
218	libinputflinger \
219	libcamera_client \
220	libcamera_metadata \
221	libskia \
222	libsqlite \
223	libEGL \
224	libGLESv1_CM \
225	libGLESv2 \
226	libETC1 \
227	libhardware \
228	libhardware_legacy \
229	libselinux \
230	libsonivox \
231	libcrypto \
232	libssl \
233	libicuuc \
234	libicui18n \
235	libmedia \
236	libjpeg \
237	libusbhost \
238	libharfbuzz_ng \
239	libz \
240	libaudioutils \
241	libpdfium \
242	libimg_utils \
243	libnetd_client \
244	libsoundtrigger \
245	libminikin \
246	libstlport
247
248ifeq ($(USE_OPENGL_RENDERER),true)
249	LOCAL_SHARED_LIBRARIES += libhwui
250endif
251
252LOCAL_SHARED_LIBRARIES += \
253	libdl
254# we need to access the private Bionic header
255# <bionic_tls.h> in com_google_android_gles_jni_GLImpl.cpp
256LOCAL_CFLAGS += -I$(LOCAL_PATH)/../../../../bionic/libc/private
257
258ifeq ($(WITH_MALLOC_LEAK_CHECK),true)
259	LOCAL_CFLAGS += -DMALLOC_LEAK_CHECK
260endif
261
262LOCAL_MODULE:= libandroid_runtime
263
264include external/stlport/libstlport.mk
265include $(BUILD_SHARED_LIBRARY)
266
267include $(call all-makefiles-under,$(LOCAL_PATH))
268