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