[picopc] Added ethernet patch based on Yi Sun <beyounn@gmail.com> from android-x86.org
[picopc-android-gingerbread:frameworks-base.git] / core / jni / Android.mk
1 LOCAL_PATH:= $(call my-dir)
2 include $(CLEAR_VARS)
3
4 LOCAL_CFLAGS += -DHAVE_CONFIG_H -DKHTML_NO_EXCEPTIONS -DGKWQ_NO_JAVA
5 LOCAL_CFLAGS += -DNO_SUPPORT_JS_BINDING -DQT_NO_WHEELEVENT -DKHTML_NO_XBL
6 LOCAL_CFLAGS += -U__APPLE__
7
8 ifeq ($(TARGET_ARCH), arm)
9         LOCAL_CFLAGS += -DPACKED="__attribute__ ((packed))"
10 else
11         LOCAL_CFLAGS += -DPACKED=""
12 endif
13
14 ifeq ($(WITH_JIT),true)
15         LOCAL_CFLAGS += -DWITH_JIT
16 endif
17
18 ifneq ($(USE_CUSTOM_RUNTIME_HEAP_MAX),)
19   LOCAL_CFLAGS += -DCUSTOM_RUNTIME_HEAP_MAX=$(USE_CUSTOM_RUNTIME_HEAP_MAX)
20 endif
21
22 LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
23
24 LOCAL_SRC_FILES:= \
25         ActivityManager.cpp \
26         AndroidRuntime.cpp \
27         CursorWindow.cpp \
28         Time.cpp \
29         com_google_android_gles_jni_EGLImpl.cpp \
30         com_google_android_gles_jni_GLImpl.cpp.arm \
31         android_app_NativeActivity.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_database_CursorWindow.cpp \
38         android_database_SQLiteCompiledSql.cpp \
39         android_database_SQLiteDebug.cpp \
40         android_database_SQLiteDatabase.cpp \
41         android_database_SQLiteProgram.cpp \
42         android_database_SQLiteQuery.cpp \
43         android_database_SQLiteStatement.cpp \
44         android_emoji_EmojiFactory.cpp \
45         android_view_Display.cpp \
46         android_view_Surface.cpp \
47         android_view_ViewRoot.cpp \
48         android_view_InputChannel.cpp \
49         android_view_InputQueue.cpp \
50         android_view_KeyEvent.cpp \
51         android_view_MotionEvent.cpp \
52         android_text_AndroidCharacter.cpp \
53         android_text_AndroidBidi.cpp \
54         android_text_KeyCharacterMap.cpp \
55         android_os_Debug.cpp \
56         android_os_FileUtils.cpp \
57         android_os_MemoryFile.cpp \
58         android_os_MessageQueue.cpp \
59         android_os_ParcelFileDescriptor.cpp \
60         android_os_Power.cpp \
61         android_os_StatFs.cpp \
62         android_os_SystemClock.cpp \
63         android_os_SystemProperties.cpp \
64         android_os_UEventObserver.cpp \
65         android_net_LocalSocketImpl.cpp \
66         android_net_NetUtils.cpp \
67         android_net_TrafficStats.cpp \
68         android_net_wifi_Wifi.cpp \
69         android_net_ethernet.cpp \
70         android_nio_utils.cpp \
71         android_nfc_NdefMessage.cpp \
72         android_nfc_NdefRecord.cpp \
73         android_pim_EventRecurrence.cpp \
74         android_text_format_Time.cpp \
75         android_security_Md5MessageDigest.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/Interpolator.cpp \
94         android/graphics/LayerRasterizer.cpp \
95         android/graphics/MaskFilter.cpp \
96         android/graphics/Matrix.cpp \
97         android/graphics/Movie.cpp \
98         android/graphics/NinePatch.cpp \
99         android/graphics/NinePatchImpl.cpp \
100         android/graphics/Paint.cpp \
101         android/graphics/Path.cpp \
102         android/graphics/PathMeasure.cpp \
103         android/graphics/PathEffect.cpp \
104         android_graphics_PixelFormat.cpp \
105         android/graphics/Picture.cpp \
106         android/graphics/PorterDuff.cpp \
107         android/graphics/BitmapRegionDecoder.cpp \
108         android/graphics/Rasterizer.cpp \
109         android/graphics/Region.cpp \
110         android/graphics/Shader.cpp \
111         android/graphics/Typeface.cpp \
112         android/graphics/Utils.cpp \
113         android/graphics/Xfermode.cpp \
114         android/graphics/YuvToJpegEncoder.cpp \
115         android_media_AudioRecord.cpp \
116         android_media_AudioSystem.cpp \
117         android_media_AudioTrack.cpp \
118         android_media_JetPlayer.cpp \
119         android_media_ToneGenerator.cpp \
120         android_hardware_Camera.cpp \
121         android_hardware_SensorManager.cpp \
122         android_debug_JNITest.cpp \
123         android_util_FileObserver.cpp \
124         android/opengl/poly_clip.cpp.arm \
125         android/opengl/util.cpp.arm \
126         android_bluetooth_HeadsetBase.cpp \
127         android_bluetooth_common.cpp \
128         android_bluetooth_BluetoothAudioGateway.cpp \
129         android_bluetooth_BluetoothSocket.cpp \
130         android_bluetooth_ScoSocket.cpp \
131         android_server_BluetoothService.cpp \
132         android_server_BluetoothEventLoop.cpp \
133         android_server_BluetoothA2dpService.cpp \
134         android_server_Watchdog.cpp \
135         android_message_digest_sha1.cpp \
136         android_ddm_DdmHandleNativeHeap.cpp \
137         com_android_internal_os_ZygoteInit.cpp \
138         com_android_internal_graphics_NativeUtils.cpp \
139         android_backup_BackupDataInput.cpp \
140         android_backup_BackupDataOutput.cpp \
141         android_backup_FileBackupHelperBase.cpp \
142         android_backup_BackupHelperDispatcher.cpp \
143         android_content_res_ObbScanner.cpp \
144     android_content_res_Configuration.cpp
145
146 LOCAL_C_INCLUDES += \
147         $(JNI_H_INCLUDE) \
148         $(LOCAL_PATH)/android/graphics \
149         $(call include-path-for, bluedroid) \
150         $(call include-path-for, libhardware)/hardware \
151         $(call include-path-for, libhardware_legacy)/hardware_legacy \
152         $(LOCAL_PATH)/../../include/ui \
153         $(LOCAL_PATH)/../../include/utils \
154         external/skia/include/core \
155         external/skia/include/effects \
156         external/skia/include/images \
157         external/skia/src/ports \
158         external/skia/include/utils \
159         external/sqlite/dist \
160         external/sqlite/android \
161         external/expat/lib \
162         external/openssl/include \
163         external/tremor/Tremor \
164         external/icu4c/i18n \
165         external/icu4c/common \
166         external/jpeg \
167         frameworks/opt/emoji
168
169 LOCAL_SHARED_LIBRARIES := \
170         libexpat \
171         libnativehelper \
172         libcutils \
173         libutils \
174         libbinder \
175         libnetutils \
176         libui \
177         libgui \
178         libsurfaceflinger_client \
179         libcamera_client \
180         libskiagl \
181         libskia \
182         libsqlite \
183         libdvm \
184         libEGL \
185         libGLESv1_CM \
186         libGLESv2 \
187         libETC1 \
188         libhardware \
189         libhardware_legacy \
190         libsonivox \
191         libcrypto \
192         libssl \
193         libicuuc \
194         libicui18n \
195         libmedia \
196         libwpa_client \
197         libjpeg \
198         libnfc_ndef
199
200 ifeq ($(BOARD_HAVE_BLUETOOTH),true)
201 LOCAL_C_INCLUDES += \
202         external/dbus \
203         system/bluetooth/bluez-clean-headers
204 LOCAL_CFLAGS += -DHAVE_BLUETOOTH
205 LOCAL_SHARED_LIBRARIES += libbluedroid libdbus
206 endif
207
208 ifneq ($(TARGET_SIMULATOR),true)
209 LOCAL_SHARED_LIBRARIES += \
210         libdl
211   # we need to access the private Bionic header
212   # <bionic_tls.h> in com_google_android_gles_jni_GLImpl.cpp
213   LOCAL_CFLAGS += -I$(LOCAL_PATH)/../../../../bionic/libc/private
214 endif
215
216 LOCAL_LDLIBS += -lpthread -ldl
217
218 ifeq ($(TARGET_SIMULATOR),true)
219 ifeq ($(TARGET_OS)-$(TARGET_ARCH),linux-x86)
220 LOCAL_LDLIBS += -lrt
221 endif
222 endif
223
224 ifeq ($(WITH_MALLOC_LEAK_CHECK),true)
225         LOCAL_CFLAGS += -DMALLOC_LEAK_CHECK
226 endif
227
228 LOCAL_MODULE:= libandroid_runtime
229
230 include $(BUILD_SHARED_LIBRARY)
231
232 include $(call all-makefiles-under,$(LOCAL_PATH))