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 \ |
Jeff Brown | 49ed71d | 2010-12-06 17:13:33 -0800 | [diff] [blame] | 54 | android_view_KeyCharacterMap.cpp \ |
Romain Guy | e4d0112 | 2010-06-16 18:44:05 -0700 | [diff] [blame] | 55 | android_view_GLES20Canvas.cpp \ |
Jeff Brown | 46b9ac0 | 2010-04-22 18:58:52 -0700 | [diff] [blame] | 56 | android_view_MotionEvent.cpp \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 57 | android_text_AndroidCharacter.cpp \ |
Doug Felt | dae8e94 | 2010-02-24 14:33:15 -0800 | [diff] [blame] | 58 | android_text_AndroidBidi.cpp \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 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 \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 78 | android_util_AssetManager.cpp \ |
| 79 | android_util_Binder.cpp \ |
| 80 | android_util_EventLog.cpp \ |
| 81 | android_util_Log.cpp \ |
| 82 | android_util_FloatMath.cpp \ |
| 83 | android_util_Process.cpp \ |
| 84 | android_util_StringBlock.cpp \ |
| 85 | android_util_XmlBlock.cpp \ |
Joseph Wen | f1f48bc | 2010-07-19 16:59:51 +0800 | [diff] [blame] | 86 | android/graphics/AutoDecodeCancel.cpp \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 87 | android/graphics/Bitmap.cpp \ |
| 88 | android/graphics/BitmapFactory.cpp \ |
| 89 | android/graphics/Camera.cpp \ |
| 90 | android/graphics/Canvas.cpp \ |
| 91 | android/graphics/ColorFilter.cpp \ |
| 92 | android/graphics/DrawFilter.cpp \ |
| 93 | android/graphics/CreateJavaOutputStreamAdaptor.cpp \ |
| 94 | android/graphics/Graphics.cpp \ |
| 95 | android/graphics/Interpolator.cpp \ |
| 96 | android/graphics/LayerRasterizer.cpp \ |
| 97 | android/graphics/MaskFilter.cpp \ |
| 98 | android/graphics/Matrix.cpp \ |
| 99 | android/graphics/Movie.cpp \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 100 | android/graphics/NinePatch.cpp \ |
| 101 | android/graphics/NinePatchImpl.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 \ |
Wei-Ta Chen | 6b849e2 | 2010-09-07 17:32:18 +0800 | [diff] [blame] | 109 | android/graphics/BitmapRegionDecoder.cpp \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 110 | android/graphics/Rasterizer.cpp \ |
| 111 | android/graphics/Region.cpp \ |
| 112 | android/graphics/Shader.cpp \ |
Jamie Gennis | 6714efc | 2010-12-20 12:09:37 -0800 | [diff] [blame] | 113 | android/graphics/SurfaceTexture.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 \ |
Mike Lockwood | e7d511e | 2010-12-30 13:39:37 -0500 | [diff] [blame] | 126 | android_hardware_UsbDevice.cpp \ |
Mike Lockwood | acc29cc | 2011-03-11 08:18:08 -0500 | [diff] [blame] | 127 | android_hardware_UsbDeviceConnection.cpp \ |
Mike Lockwood | e7d511e | 2010-12-30 13:39:37 -0500 | [diff] [blame] | 128 | android_hardware_UsbRequest.cpp \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 129 | android_debug_JNITest.cpp \ |
| 130 | android_util_FileObserver.cpp \ |
| 131 | android/opengl/poly_clip.cpp.arm \ |
| 132 | android/opengl/util.cpp.arm \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 133 | android_bluetooth_HeadsetBase.cpp \ |
| 134 | android_bluetooth_common.cpp \ |
| 135 | android_bluetooth_BluetoothAudioGateway.cpp \ |
Nick Pelly | 0b6955a | 2009-05-26 19:13:43 -0700 | [diff] [blame] | 136 | android_bluetooth_BluetoothSocket.cpp \ |
Nick Pelly | bd022f4 | 2009-08-14 18:33:38 -0700 | [diff] [blame] | 137 | android_server_BluetoothService.cpp \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 138 | android_server_BluetoothEventLoop.cpp \ |
| 139 | android_server_BluetoothA2dpService.cpp \ |
Christopher Tate | ecaa7b4 | 2010-06-04 14:55:02 -0700 | [diff] [blame] | 140 | android_server_Watchdog.cpp \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 141 | android_ddm_DdmHandleNativeHeap.cpp \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 142 | com_android_internal_os_ZygoteInit.cpp \ |
Joe Onorato | b1a7ffe | 2009-05-06 18:06:21 -0700 | [diff] [blame] | 143 | com_android_internal_graphics_NativeUtils.cpp \ |
Joe Onorato | 1cf5874 | 2009-06-12 11:06:24 -0700 | [diff] [blame] | 144 | android_backup_BackupDataInput.cpp \ |
Joe Onorato | d2110db | 2009-05-19 13:41:21 -0700 | [diff] [blame] | 145 | android_backup_BackupDataOutput.cpp \ |
Joe Onorato | 4ababd9 | 2009-06-25 18:29:18 -0400 | [diff] [blame] | 146 | android_backup_FileBackupHelperBase.cpp \ |
Kenny Root | 02c8730 | 2010-07-01 08:10:18 -0700 | [diff] [blame] | 147 | android_backup_BackupHelperDispatcher.cpp \ |
Dianne Hackborn | 08d5b8f | 2010-08-04 11:12:40 -0700 | [diff] [blame] | 148 | android_content_res_ObbScanner.cpp \ |
Chet Haase | 6e0ecb4 | 2010-11-03 19:41:18 -0700 | [diff] [blame] | 149 | android_content_res_Configuration.cpp \ |
| 150 | android_animation_PropertyValuesHolder.cpp |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 151 | |
| 152 | LOCAL_C_INCLUDES += \ |
| 153 | $(JNI_H_INCLUDE) \ |
| 154 | $(LOCAL_PATH)/android/graphics \ |
Romain Guy | e4d0112 | 2010-06-16 18:44:05 -0700 | [diff] [blame] | 155 | $(LOCAL_PATH)/../../libs/hwui \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 156 | $(call include-path-for, bluedroid) \ |
| 157 | $(call include-path-for, libhardware)/hardware \ |
| 158 | $(call include-path-for, libhardware_legacy)/hardware_legacy \ |
| 159 | $(LOCAL_PATH)/../../include/ui \ |
| 160 | $(LOCAL_PATH)/../../include/utils \ |
| 161 | external/skia/include/core \ |
| 162 | external/skia/include/effects \ |
| 163 | external/skia/include/images \ |
Mike Reed | c70e06b | 2009-04-24 11:09:12 -0400 | [diff] [blame] | 164 | external/skia/src/ports \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 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 \ |
Wei-Ta Chen | bca2d61 | 2009-11-30 17:52:05 +0800 | [diff] [blame] | 173 | external/jpeg \ |
The Android Open Source Project | b2a3dd8 | 2009-03-09 11:52:12 -0700 | [diff] [blame] | 174 | frameworks/opt/emoji |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 175 | |
| 176 | LOCAL_SHARED_LIBRARIES := \ |
| 177 | libexpat \ |
| 178 | libnativehelper \ |
| 179 | libcutils \ |
| 180 | libutils \ |
Mathias Agopian | 25ba5b6 | 2009-05-18 15:08:03 -0700 | [diff] [blame] | 181 | libbinder \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 182 | libnetutils \ |
| 183 | libui \ |
Mathias Agopian | 1bf7978 | 2010-07-14 23:41:37 -0700 | [diff] [blame] | 184 | libgui \ |
Mathias Agopian | 000479f | 2010-02-09 17:46:37 -0800 | [diff] [blame] | 185 | libsurfaceflinger_client \ |
| 186 | libcamera_client \ |
Mike Reed | b5af325 | 2009-07-10 15:33:21 -0400 | [diff] [blame] | 187 | libskia \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 188 | libsqlite \ |
| 189 | libdvm \ |
| 190 | libEGL \ |
| 191 | libGLESv1_CM \ |
Jack Palevich | 560814f | 2009-11-19 16:34:55 +0800 | [diff] [blame] | 192 | libGLESv2 \ |
Jack Palevich | a6276fd | 2009-12-28 19:31:43 +0800 | [diff] [blame] | 193 | libETC1 \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 194 | libhardware \ |
| 195 | libhardware_legacy \ |
| 196 | libsonivox \ |
| 197 | libcrypto \ |
| 198 | libssl \ |
| 199 | libicuuc \ |
| 200 | libicui18n \ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 201 | libmedia \ |
Wei-Ta Chen | bca2d61 | 2009-11-30 17:52:05 +0800 | [diff] [blame] | 202 | libwpa_client \ |
Nick Pelly | cd0e839 | 2010-10-13 17:25:24 -0700 | [diff] [blame] | 203 | libjpeg \ |
Mike Lockwood | d07c9d5 | 2010-12-29 08:48:46 -0500 | [diff] [blame] | 204 | libnfc_ndef \ |
Mike Lockwood | e7d511e | 2010-12-30 13:39:37 -0500 | [diff] [blame] | 205 | libusbhost \ |
Mike Lockwood | 755fd61 | 2010-05-25 19:08:48 -0400 | [diff] [blame] | 206 | |
Romain Guy | 1639351 | 2010-08-08 00:14:31 -0700 | [diff] [blame] | 207 | ifeq ($(USE_OPENGL_RENDERER),true) |
| 208 | LOCAL_SHARED_LIBRARIES += libhwui |
| 209 | endif |
| 210 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 211 | ifeq ($(BOARD_HAVE_BLUETOOTH),true) |
| 212 | LOCAL_C_INCLUDES += \ |
| 213 | external/dbus \ |
The Android Open Source Project | b2a3dd8 | 2009-03-09 11:52:12 -0700 | [diff] [blame] | 214 | system/bluetooth/bluez-clean-headers |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 215 | LOCAL_CFLAGS += -DHAVE_BLUETOOTH |
| 216 | LOCAL_SHARED_LIBRARIES += libbluedroid libdbus |
| 217 | endif |
| 218 | |
| 219 | ifneq ($(TARGET_SIMULATOR),true) |
| 220 | LOCAL_SHARED_LIBRARIES += \ |
| 221 | libdl |
| 222 | # we need to access the private Bionic header |
| 223 | # <bionic_tls.h> in com_google_android_gles_jni_GLImpl.cpp |
| 224 | LOCAL_CFLAGS += -I$(LOCAL_PATH)/../../../../bionic/libc/private |
| 225 | endif |
| 226 | |
| 227 | LOCAL_LDLIBS += -lpthread -ldl |
| 228 | |
| 229 | ifeq ($(TARGET_SIMULATOR),true) |
| 230 | ifeq ($(TARGET_OS)-$(TARGET_ARCH),linux-x86) |
| 231 | LOCAL_LDLIBS += -lrt |
| 232 | endif |
| 233 | endif |
| 234 | |
| 235 | ifeq ($(WITH_MALLOC_LEAK_CHECK),true) |
| 236 | LOCAL_CFLAGS += -DMALLOC_LEAK_CHECK |
| 237 | endif |
| 238 | |
| 239 | LOCAL_MODULE:= libandroid_runtime |
| 240 | |
| 241 | include $(BUILD_SHARED_LIBRARY) |
| 242 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 243 | include $(call all-makefiles-under,$(LOCAL_PATH)) |