Android.mk revision 63507babb6798d65bf965de6ea4622b7ec65aa28
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
14ifneq ($(USE_CUSTOM_RUNTIME_HEAP_MAX),)
15  LOCAL_CFLAGS += -DCUSTOM_RUNTIME_HEAP_MAX=$(USE_CUSTOM_RUNTIME_HEAP_MAX)
16endif
17
18LOCAL_SRC_FILES:= \
19	ActivityManager.cpp \
20	AndroidRuntime.cpp \
21	CursorWindow.cpp \
22	com_google_android_gles_jni_EGLImpl.cpp \
23	com_google_android_gles_jni_GLImpl.cpp.arm \
24	android_opengl_GLES10.cpp \
25	android_opengl_GLES10Ext.cpp \
26	android_opengl_GLES11.cpp \
27	android_opengl_GLES11Ext.cpp \
28	android_database_CursorWindow.cpp \
29	android_database_SQLiteDebug.cpp \
30	android_database_SQLiteDatabase.cpp \
31	android_database_SQLiteProgram.cpp \
32	android_database_SQLiteQuery.cpp \
33	android_database_SQLiteStatement.cpp \
34	android_emoji_EmojiFactory.cpp \
35	android_view_Display.cpp \
36	android_view_Surface.cpp \
37	android_view_ViewRoot.cpp \
38	android_text_AndroidCharacter.cpp \
39	android_text_KeyCharacterMap.cpp \
40	android_os_Debug.cpp \
41	android_os_Exec.cpp \
42	android_os_FileUtils.cpp \
43	android_os_MemoryFile.cpp \
44	android_os_ParcelFileDescriptor.cpp \
45	android_os_Power.cpp \
46	android_os_StatFs.cpp \
47	android_os_SystemClock.cpp \
48	android_os_SystemProperties.cpp \
49	android_os_UEventObserver.cpp \
50	android_os_Hardware.cpp \
51	android_net_LocalSocketImpl.cpp \
52	android_net_NetUtils.cpp \
53	android_net_wifi_Wifi.cpp \
54	android_nio_utils.cpp \
55	android_pim_EventRecurrence.cpp \
56	android_text_format_Time.cpp \
57	android_security_Md5MessageDigest.cpp \
58	android_util_AssetManager.cpp \
59	android_util_Binder.cpp \
60	android_util_EventLog.cpp \
61	android_util_Log.cpp \
62	android_util_FloatMath.cpp \
63	android_util_Process.cpp \
64	android_util_StringBlock.cpp \
65	android_util_XmlBlock.cpp \
66	android_util_Base64.cpp \
67	android/graphics/Bitmap.cpp \
68	android/graphics/BitmapFactory.cpp \
69	android/graphics/Camera.cpp \
70	android/graphics/Canvas.cpp \
71	android/graphics/ColorFilter.cpp \
72	android/graphics/DrawFilter.cpp \
73	android/graphics/CreateJavaOutputStreamAdaptor.cpp \
74	android/graphics/Graphics.cpp \
75	android/graphics/Interpolator.cpp \
76	android/graphics/LayerRasterizer.cpp \
77	android/graphics/MaskFilter.cpp \
78	android/graphics/Matrix.cpp \
79	android/graphics/Movie.cpp \
80	android/graphics/NIOBuffer.cpp \
81	android/graphics/NinePatch.cpp \
82	android/graphics/NinePatchImpl.cpp \
83	android/graphics/Paint.cpp \
84	android/graphics/Path.cpp \
85	android/graphics/PathMeasure.cpp \
86	android/graphics/PathEffect.cpp \
87	android_graphics_PixelFormat.cpp \
88	android/graphics/Picture.cpp \
89	android/graphics/PorterDuff.cpp \
90	android/graphics/Rasterizer.cpp \
91	android/graphics/Region.cpp \
92	android/graphics/Shader.cpp \
93	android/graphics/Typeface.cpp \
94	android/graphics/Xfermode.cpp \
95	android_media_AudioRecord.cpp \
96	android_media_AudioSystem.cpp \
97	android_media_AudioTrack.cpp \
98	android_media_JetPlayer.cpp \
99	android_media_ToneGenerator.cpp \
100	android_hardware_Camera.cpp \
101	android_hardware_SensorManager.cpp \
102	android_debug_JNITest.cpp \
103	android_util_FileObserver.cpp \
104	android/opengl/poly_clip.cpp.arm \
105	android/opengl/util.cpp.arm \
106	android_bluetooth_Database.cpp \
107	android_bluetooth_HeadsetBase.cpp \
108	android_bluetooth_common.cpp \
109	android_bluetooth_BluetoothAudioGateway.cpp \
110	android_bluetooth_RfcommSocket.cpp \
111	android_bluetooth_ScoSocket.cpp \
112	android_server_BluetoothDeviceService.cpp \
113	android_server_BluetoothEventLoop.cpp \
114	android_server_BluetoothA2dpService.cpp \
115	android_message_digest_sha1.cpp \
116	android_ddm_DdmHandleNativeHeap.cpp \
117	android_location_GpsLocationProvider.cpp \
118	com_android_internal_os_ZygoteInit.cpp \
119	com_android_internal_graphics_NativeUtils.cpp \
120	android_backup_BackupDataOutput.cpp \
121	android_backup_FileBackupHelper.cpp
122
123LOCAL_C_INCLUDES += \
124	$(JNI_H_INCLUDE) \
125	$(LOCAL_PATH)/android/graphics \
126	$(call include-path-for, bluedroid) \
127	$(call include-path-for, libhardware)/hardware \
128	$(call include-path-for, libhardware_legacy)/hardware_legacy \
129	$(LOCAL_PATH)/../../include/ui \
130	$(LOCAL_PATH)/../../include/utils \
131	external/skia/include/core \
132	external/skia/include/effects \
133	external/skia/include/images \
134	external/skia/src/ports \
135	external/skia/include/utils \
136	external/sqlite/dist \
137	external/sqlite/android \
138	external/expat/lib \
139	external/openssl/include \
140	external/tremor/Tremor \
141	external/icu4c/i18n \
142	external/icu4c/common \
143	frameworks/opt/emoji
144
145LOCAL_SHARED_LIBRARIES := \
146	libexpat \
147	libnativehelper \
148	libcutils \
149	libutils \
150	libnetutils \
151	libui \
152	libskiagl \
153	libsgl \
154	libcorecg \
155	libsqlite \
156	libdvm \
157	libEGL \
158	libGLESv1_CM \
159	libhardware \
160	libhardware_legacy \
161	libsonivox \
162	libcrypto \
163	libssl \
164	libicuuc \
165	libicui18n \
166	libicudata \
167	libmedia \
168	libwpa_client
169
170ifeq ($(BOARD_HAVE_BLUETOOTH),true)
171LOCAL_C_INCLUDES += \
172	external/dbus \
173	system/bluetooth/bluez-clean-headers
174LOCAL_CFLAGS += -DHAVE_BLUETOOTH
175LOCAL_SHARED_LIBRARIES += libbluedroid libdbus
176endif
177
178ifneq ($(TARGET_SIMULATOR),true)
179LOCAL_SHARED_LIBRARIES += \
180	libdl
181  # we need to access the private Bionic header
182  # <bionic_tls.h> in com_google_android_gles_jni_GLImpl.cpp
183  LOCAL_CFLAGS += -I$(LOCAL_PATH)/../../../../bionic/libc/private
184endif
185
186LOCAL_LDLIBS += -lpthread -ldl
187
188ifeq ($(TARGET_SIMULATOR),true)
189ifeq ($(TARGET_OS)-$(TARGET_ARCH),linux-x86)
190LOCAL_LDLIBS += -lrt
191endif
192endif
193
194ifeq ($(WITH_MALLOC_LEAK_CHECK),true)
195	LOCAL_CFLAGS += -DMALLOC_LEAK_CHECK
196endif
197
198LOCAL_MODULE:= libandroid_runtime
199
200include $(BUILD_SHARED_LIBRARY)
201
202include $(call all-makefiles-under,$(LOCAL_PATH))
203