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