The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 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 | |
Ben Cheng | 52b0e73 | 2009-06-19 13:31:12 -0700 | [diff] [blame] | 14 | ifeq ($(WITH_JIT),true) |
| 15 | LOCAL_CFLAGS += -DWITH_JIT |
| 16 | endif |
| 17 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 18 | ifneq ($(USE_CUSTOM_RUNTIME_HEAP_MAX),) |
| 19 | LOCAL_CFLAGS += -DCUSTOM_RUNTIME_HEAP_MAX=$(USE_CUSTOM_RUNTIME_HEAP_MAX) |
| 20 | endif |
| 21 | |
Romain Guy | 1639351 | 2010-08-08 00:14:31 -0700 | [diff] [blame] | 22 | ifeq ($(USE_OPENGL_RENDERER),true) |
| 23 | LOCAL_CFLAGS += -DUSE_OPENGL_RENDERER |
| 24 | endif |
| 25 | |
Mathias Agopian | 1473f46 | 2009-04-10 14:24:30 -0700 | [diff] [blame] | 26 | LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES |
| 27 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 28 | LOCAL_SRC_FILES:= \ |
| 29 | ActivityManager.cpp \ |
| 30 | AndroidRuntime.cpp \ |
Mathias Agopian | 864c0d5 | 2009-06-24 23:12:06 -0700 | [diff] [blame] | 31 | Time.cpp \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 32 | com_google_android_gles_jni_EGLImpl.cpp \ |
| 33 | com_google_android_gles_jni_GLImpl.cpp.arm \ |
Dianne Hackborn | 69969e4 | 2010-05-04 11:40:40 -0700 | [diff] [blame] | 34 | android_app_NativeActivity.cpp \ |
Jack Palevich | 1c4907e | 2009-04-13 16:22:25 -0700 | [diff] [blame] | 35 | android_opengl_GLES10.cpp \ |
| 36 | android_opengl_GLES10Ext.cpp \ |
| 37 | android_opengl_GLES11.cpp \ |
| 38 | android_opengl_GLES11Ext.cpp \ |
Jack Palevich | 560814f | 2009-11-19 16:34:55 +0800 | [diff] [blame] | 39 | android_opengl_GLES20.cpp \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 40 | android_database_CursorWindow.cpp \ |
Vasu Nori | 5a03f36 | 2009-10-20 15:16:35 -0700 | [diff] [blame] | 41 | android_database_SQLiteCompiledSql.cpp \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 42 | android_database_SQLiteDebug.cpp \ |
| 43 | android_database_SQLiteDatabase.cpp \ |
| 44 | android_database_SQLiteProgram.cpp \ |
| 45 | android_database_SQLiteQuery.cpp \ |
| 46 | android_database_SQLiteStatement.cpp \ |
The Android Open Source Project | b2a3dd8 | 2009-03-09 11:52:12 -0700 | [diff] [blame] | 47 | android_emoji_EmojiFactory.cpp \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 48 | android_view_Display.cpp \ |
| 49 | android_view_Surface.cpp \ |
| 50 | android_view_ViewRoot.cpp \ |
Jeff Brown | 46b9ac0 | 2010-04-22 18:58:52 -0700 | [diff] [blame] | 51 | android_view_InputChannel.cpp \ |
| 52 | android_view_InputQueue.cpp \ |
Jeff Brown | 46b9ac0 | 2010-04-22 18:58:52 -0700 | [diff] [blame] | 53 | android_view_KeyEvent.cpp \ |
Romain Guy | e4d0112 | 2010-06-16 18:44:05 -0700 | [diff] [blame] | 54 | android_view_GLES20Canvas.cpp \ |
Jeff Brown | 46b9ac0 | 2010-04-22 18:58:52 -0700 | [diff] [blame] | 55 | android_view_MotionEvent.cpp \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 56 | android_text_AndroidCharacter.cpp \ |
Doug Felt | dae8e94 | 2010-02-24 14:33:15 -0800 | [diff] [blame] | 57 | android_text_AndroidBidi.cpp \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 58 | android_text_KeyCharacterMap.cpp \ |
| 59 | android_os_Debug.cpp \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 60 | android_os_FileUtils.cpp \ |
| 61 | android_os_MemoryFile.cpp \ |
Christopher Tate | fa9e7c0 | 2010-05-06 12:07:10 -0700 | [diff] [blame] | 62 | android_os_MessageQueue.cpp \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 63 | android_os_ParcelFileDescriptor.cpp \ |
| 64 | android_os_Power.cpp \ |
| 65 | android_os_StatFs.cpp \ |
| 66 | android_os_SystemClock.cpp \ |
| 67 | android_os_SystemProperties.cpp \ |
| 68 | android_os_UEventObserver.cpp \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 69 | android_net_LocalSocketImpl.cpp \ |
| 70 | android_net_NetUtils.cpp \ |
Dan Egnor | 2b4abcd | 2010-04-07 17:30:50 -0700 | [diff] [blame] | 71 | android_net_TrafficStats.cpp \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 72 | android_net_wifi_Wifi.cpp \ |
| 73 | android_nio_utils.cpp \ |
Nick Pelly | cd0e839 | 2010-10-13 17:25:24 -0700 | [diff] [blame] | 74 | android_nfc_NdefMessage.cpp \ |
| 75 | android_nfc_NdefRecord.cpp \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 76 | android_pim_EventRecurrence.cpp \ |
| 77 | android_text_format_Time.cpp \ |
| 78 | android_security_Md5MessageDigest.cpp \ |
| 79 | android_util_AssetManager.cpp \ |
| 80 | android_util_Binder.cpp \ |
| 81 | android_util_EventLog.cpp \ |
| 82 | android_util_Log.cpp \ |
| 83 | android_util_FloatMath.cpp \ |
| 84 | android_util_Process.cpp \ |
| 85 | android_util_StringBlock.cpp \ |
| 86 | android_util_XmlBlock.cpp \ |
Joseph Wen | f1f48bc | 2010-07-19 16:59:51 +0800 | [diff] [blame] | 87 | android/graphics/AutoDecodeCancel.cpp \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 88 | android/graphics/Bitmap.cpp \ |
| 89 | android/graphics/BitmapFactory.cpp \ |
| 90 | android/graphics/Camera.cpp \ |
| 91 | android/graphics/Canvas.cpp \ |
| 92 | android/graphics/ColorFilter.cpp \ |
| 93 | android/graphics/DrawFilter.cpp \ |
| 94 | android/graphics/CreateJavaOutputStreamAdaptor.cpp \ |
| 95 | android/graphics/Graphics.cpp \ |
| 96 | android/graphics/Interpolator.cpp \ |
| 97 | android/graphics/LayerRasterizer.cpp \ |
| 98 | android/graphics/MaskFilter.cpp \ |
| 99 | android/graphics/Matrix.cpp \ |
| 100 | android/graphics/Movie.cpp \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 101 | android/graphics/NinePatch.cpp \ |
| 102 | android/graphics/NinePatchImpl.cpp \ |
| 103 | android/graphics/Paint.cpp \ |
| 104 | android/graphics/Path.cpp \ |
| 105 | android/graphics/PathMeasure.cpp \ |
| 106 | android/graphics/PathEffect.cpp \ |
| 107 | android_graphics_PixelFormat.cpp \ |
| 108 | android/graphics/Picture.cpp \ |
| 109 | android/graphics/PorterDuff.cpp \ |
Wei-Ta Chen | 6b849e2 | 2010-09-07 17:32:18 +0800 | [diff] [blame] | 110 | android/graphics/BitmapRegionDecoder.cpp \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 111 | android/graphics/Rasterizer.cpp \ |
| 112 | android/graphics/Region.cpp \ |
| 113 | android/graphics/Shader.cpp \ |
Doug Felt | f7cb1f7 | 2010-07-01 16:20:43 -0700 | [diff] [blame] | 114 | android/graphics/TextLayout.cpp \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 115 | android/graphics/Typeface.cpp \ |
Wei-Ta Chen | 6b849e2 | 2010-09-07 17:32:18 +0800 | [diff] [blame] | 116 | android/graphics/Utils.cpp \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 117 | android/graphics/Xfermode.cpp \ |
Wei-Ta Chen | bca2d61 | 2009-11-30 17:52:05 +0800 | [diff] [blame] | 118 | android/graphics/YuvToJpegEncoder.cpp \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 119 | android_media_AudioRecord.cpp \ |
| 120 | android_media_AudioSystem.cpp \ |
| 121 | android_media_AudioTrack.cpp \ |
| 122 | android_media_JetPlayer.cpp \ |
| 123 | android_media_ToneGenerator.cpp \ |
| 124 | android_hardware_Camera.cpp \ |
| 125 | android_hardware_SensorManager.cpp \ |
| 126 | android_debug_JNITest.cpp \ |
| 127 | android_util_FileObserver.cpp \ |
| 128 | android/opengl/poly_clip.cpp.arm \ |
| 129 | android/opengl/util.cpp.arm \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 130 | android_bluetooth_HeadsetBase.cpp \ |
| 131 | android_bluetooth_common.cpp \ |
| 132 | android_bluetooth_BluetoothAudioGateway.cpp \ |
Nick Pelly | 0b6955a | 2009-05-26 19:13:43 -0700 | [diff] [blame] | 133 | android_bluetooth_BluetoothSocket.cpp \ |
Nick Pelly | bd022f4 | 2009-08-14 18:33:38 -0700 | [diff] [blame] | 134 | android_server_BluetoothService.cpp \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 135 | android_server_BluetoothEventLoop.cpp \ |
| 136 | android_server_BluetoothA2dpService.cpp \ |
Christopher Tate | ecaa7b4 | 2010-06-04 14:55:02 -0700 | [diff] [blame] | 137 | android_server_Watchdog.cpp \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 138 | android_message_digest_sha1.cpp \ |
| 139 | android_ddm_DdmHandleNativeHeap.cpp \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 140 | com_android_internal_os_ZygoteInit.cpp \ |
Joe Onorato | b1a7ffe | 2009-05-06 18:06:21 -0700 | [diff] [blame] | 141 | com_android_internal_graphics_NativeUtils.cpp \ |
Joe Onorato | 1cf5874 | 2009-06-12 11:06:24 -0700 | [diff] [blame] | 142 | android_backup_BackupDataInput.cpp \ |
Joe Onorato | d2110db | 2009-05-19 13:41:21 -0700 | [diff] [blame] | 143 | android_backup_BackupDataOutput.cpp \ |
Joe Onorato | 4ababd9 | 2009-06-25 18:29:18 -0400 | [diff] [blame] | 144 | android_backup_FileBackupHelperBase.cpp \ |
Kenny Root | 02c8730 | 2010-07-01 08:10:18 -0700 | [diff] [blame] | 145 | android_backup_BackupHelperDispatcher.cpp \ |
Dianne Hackborn | 08d5b8f | 2010-08-04 11:12:40 -0700 | [diff] [blame] | 146 | android_content_res_ObbScanner.cpp \ |
Chet Haase | 6e0ecb4 | 2010-11-03 19:41:18 -0700 | [diff] [blame^] | 147 | android_content_res_Configuration.cpp \ |
| 148 | android_animation_PropertyValuesHolder.cpp |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 149 | |
| 150 | LOCAL_C_INCLUDES += \ |
| 151 | $(JNI_H_INCLUDE) \ |
| 152 | $(LOCAL_PATH)/android/graphics \ |
Romain Guy | e4d0112 | 2010-06-16 18:44:05 -0700 | [diff] [blame] | 153 | $(LOCAL_PATH)/../../libs/hwui \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 154 | $(call include-path-for, bluedroid) \ |
| 155 | $(call include-path-for, libhardware)/hardware \ |
| 156 | $(call include-path-for, libhardware_legacy)/hardware_legacy \ |
| 157 | $(LOCAL_PATH)/../../include/ui \ |
| 158 | $(LOCAL_PATH)/../../include/utils \ |
| 159 | external/skia/include/core \ |
| 160 | external/skia/include/effects \ |
| 161 | external/skia/include/images \ |
Mike Reed | c70e06b | 2009-04-24 11:09:12 -0400 | [diff] [blame] | 162 | external/skia/src/ports \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 163 | external/skia/include/utils \ |
| 164 | external/sqlite/dist \ |
| 165 | external/sqlite/android \ |
| 166 | external/expat/lib \ |
| 167 | external/openssl/include \ |
| 168 | external/tremor/Tremor \ |
| 169 | external/icu4c/i18n \ |
| 170 | external/icu4c/common \ |
Wei-Ta Chen | bca2d61 | 2009-11-30 17:52:05 +0800 | [diff] [blame] | 171 | external/jpeg \ |
The Android Open Source Project | b2a3dd8 | 2009-03-09 11:52:12 -0700 | [diff] [blame] | 172 | frameworks/opt/emoji |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 173 | |
| 174 | LOCAL_SHARED_LIBRARIES := \ |
| 175 | libexpat \ |
| 176 | libnativehelper \ |
| 177 | libcutils \ |
| 178 | libutils \ |
Mathias Agopian | 25ba5b6 | 2009-05-18 15:08:03 -0700 | [diff] [blame] | 179 | libbinder \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 180 | libnetutils \ |
| 181 | libui \ |
Mathias Agopian | 1bf7978 | 2010-07-14 23:41:37 -0700 | [diff] [blame] | 182 | libgui \ |
Mathias Agopian | 000479f | 2010-02-09 17:46:37 -0800 | [diff] [blame] | 183 | libsurfaceflinger_client \ |
| 184 | libcamera_client \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 185 | libskiagl \ |
Mike Reed | b5af325 | 2009-07-10 15:33:21 -0400 | [diff] [blame] | 186 | libskia \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 187 | libsqlite \ |
| 188 | libdvm \ |
| 189 | libEGL \ |
| 190 | libGLESv1_CM \ |
Jack Palevich | 560814f | 2009-11-19 16:34:55 +0800 | [diff] [blame] | 191 | libGLESv2 \ |
Jack Palevich | a6276fd | 2009-12-28 19:31:43 +0800 | [diff] [blame] | 192 | libETC1 \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 193 | libhardware \ |
| 194 | libhardware_legacy \ |
| 195 | libsonivox \ |
| 196 | libcrypto \ |
| 197 | libssl \ |
| 198 | libicuuc \ |
| 199 | libicui18n \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 200 | libmedia \ |
Wei-Ta Chen | bca2d61 | 2009-11-30 17:52:05 +0800 | [diff] [blame] | 201 | libwpa_client \ |
Nick Pelly | cd0e839 | 2010-10-13 17:25:24 -0700 | [diff] [blame] | 202 | libjpeg \ |
| 203 | libnfc_ndef |
Mike Lockwood | 755fd61 | 2010-05-25 19:08:48 -0400 | [diff] [blame] | 204 | |
Romain Guy | 1639351 | 2010-08-08 00:14:31 -0700 | [diff] [blame] | 205 | ifeq ($(USE_OPENGL_RENDERER),true) |
| 206 | LOCAL_SHARED_LIBRARIES += libhwui |
| 207 | endif |
| 208 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 209 | ifeq ($(BOARD_HAVE_BLUETOOTH),true) |
| 210 | LOCAL_C_INCLUDES += \ |
| 211 | external/dbus \ |
The Android Open Source Project | b2a3dd8 | 2009-03-09 11:52:12 -0700 | [diff] [blame] | 212 | system/bluetooth/bluez-clean-headers |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 213 | LOCAL_CFLAGS += -DHAVE_BLUETOOTH |
| 214 | LOCAL_SHARED_LIBRARIES += libbluedroid libdbus |
| 215 | endif |
| 216 | |
| 217 | ifneq ($(TARGET_SIMULATOR),true) |
| 218 | LOCAL_SHARED_LIBRARIES += \ |
| 219 | libdl |
| 220 | # we need to access the private Bionic header |
| 221 | # <bionic_tls.h> in com_google_android_gles_jni_GLImpl.cpp |
| 222 | LOCAL_CFLAGS += -I$(LOCAL_PATH)/../../../../bionic/libc/private |
| 223 | endif |
| 224 | |
| 225 | LOCAL_LDLIBS += -lpthread -ldl |
| 226 | |
| 227 | ifeq ($(TARGET_SIMULATOR),true) |
| 228 | ifeq ($(TARGET_OS)-$(TARGET_ARCH),linux-x86) |
| 229 | LOCAL_LDLIBS += -lrt |
| 230 | endif |
| 231 | endif |
| 232 | |
| 233 | ifeq ($(WITH_MALLOC_LEAK_CHECK),true) |
| 234 | LOCAL_CFLAGS += -DMALLOC_LEAK_CHECK |
| 235 | endif |
| 236 | |
| 237 | LOCAL_MODULE:= libandroid_runtime |
| 238 | |
| 239 | include $(BUILD_SHARED_LIBRARY) |
| 240 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 241 | include $(call all-makefiles-under,$(LOCAL_PATH)) |