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