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 ifeq ($(USE_OPENGL_RENDERER),true) 23 LOCAL_CFLAGS += -DUSE_OPENGL_RENDERER 24 endif 25 26 LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES 27 28 LOCAL_SRC_FILES:= \ 29 ActivityManager.cpp \ 30 AndroidRuntime.cpp \ 31 Time.cpp \ 32 com_android_internal_content_NativeLibraryHelper.cpp \ 33 com_google_android_gles_jni_EGLImpl.cpp \ 34 com_google_android_gles_jni_GLImpl.cpp.arm \ 35 android_app_NativeActivity.cpp \ 36 android_opengl_GLES10.cpp \ 37 android_opengl_GLES10Ext.cpp \ 38 android_opengl_GLES11.cpp \ 39 android_opengl_GLES11Ext.cpp \ 40 android_opengl_GLES20.cpp \ 41 android_database_CursorWindow.cpp \ 42 android_database_SQLiteCompiledSql.cpp \ 43 android_database_SQLiteDebug.cpp \ 44 android_database_SQLiteDatabase.cpp \ 45 android_database_SQLiteProgram.cpp \ 46 android_database_SQLiteQuery.cpp \ 47 android_database_SQLiteStatement.cpp \ 48 android_emoji_EmojiFactory.cpp \ 49 android_view_Display.cpp \ 50 android_view_Surface.cpp \ 51 android_view_TextureView.cpp \ 52 android_view_InputChannel.cpp \ 53 android_view_InputQueue.cpp \ 54 android_view_KeyEvent.cpp \ 55 android_view_KeyCharacterMap.cpp \ 56 android_view_HardwareRenderer.cpp \ 57 android_view_GLES20Canvas.cpp \ 58 android_view_MotionEvent.cpp \ 59 android_view_PointerIcon.cpp \ 60 android_view_VelocityTracker.cpp \ 61 android_text_AndroidCharacter.cpp \ 62 android_text_AndroidBidi.cpp \ 63 android_os_Debug.cpp \ 64 android_os_FileUtils.cpp \ 65 android_os_MemoryFile.cpp \ 66 android_os_MessageQueue.cpp \ 67 android_os_ParcelFileDescriptor.cpp \ 68 android_os_Power.cpp \ 69 android_os_StatFs.cpp \ 70 android_os_SystemClock.cpp \ 71 android_os_SystemProperties.cpp \ 72 android_os_UEventObserver.cpp \ 73 android_net_LocalSocketImpl.cpp \ 74 android_net_NetUtils.cpp \ 75 android_net_TrafficStats.cpp \ 76 android_net_wifi_Wifi.cpp \ 77 android_nio_utils.cpp \ 78 android_nfc_NdefMessage.cpp \ 79 android_nfc_NdefRecord.cpp \ 80 android_text_format_Time.cpp \ 81 android_util_AssetManager.cpp \ 82 android_util_Binder.cpp \ 83 android_util_EventLog.cpp \ 84 android_util_Log.cpp \ 85 android_util_FloatMath.cpp \ 86 android_util_Process.cpp \ 87 android_util_StringBlock.cpp \ 88 android_util_XmlBlock.cpp \ 89 android/graphics/AutoDecodeCancel.cpp \ 90 android/graphics/Bitmap.cpp \ 91 android/graphics/BitmapFactory.cpp \ 92 android/graphics/Camera.cpp \ 93 android/graphics/Canvas.cpp \ 94 android/graphics/ColorFilter.cpp \ 95 android/graphics/DrawFilter.cpp \ 96 android/graphics/CreateJavaOutputStreamAdaptor.cpp \ 97 android/graphics/Graphics.cpp \ 98 android/graphics/HarfbuzzSkia.cpp \ 99 android/graphics/Interpolator.cpp \ 100 android/graphics/LayerRasterizer.cpp \ 101 android/graphics/MaskFilter.cpp \ 102 android/graphics/Matrix.cpp \ 103 android/graphics/Movie.cpp \ 104 android/graphics/NinePatch.cpp \ 105 android/graphics/NinePatchImpl.cpp \ 106 android/graphics/NinePatchPeeker.cpp \ 107 android/graphics/Paint.cpp \ 108 android/graphics/Path.cpp \ 109 android/graphics/PathMeasure.cpp \ 110 android/graphics/PathEffect.cpp \ 111 android_graphics_PixelFormat.cpp \ 112 android/graphics/Picture.cpp \ 113 android/graphics/PorterDuff.cpp \ 114 android/graphics/BitmapRegionDecoder.cpp \ 115 android/graphics/Rasterizer.cpp \ 116 android/graphics/Region.cpp \ 117 android/graphics/Shader.cpp \ 118 android/graphics/SurfaceTexture.cpp \ 119 android/graphics/TextLayout.cpp \ 120 android/graphics/TextLayoutCache.cpp \ 121 android/graphics/Typeface.cpp \ 122 android/graphics/Utils.cpp \ 123 android/graphics/Xfermode.cpp \ 124 android/graphics/YuvToJpegEncoder.cpp \ 125 android_media_AudioRecord.cpp \ 126 android_media_AudioSystem.cpp \ 127 android_media_AudioTrack.cpp \ 128 android_media_JetPlayer.cpp \ 129 android_media_ToneGenerator.cpp \ 130 android_hardware_Camera.cpp \ 131 android_hardware_SensorManager.cpp \ 132 android_hardware_UsbDevice.cpp \ 133 android_hardware_UsbDeviceConnection.cpp \ 134 android_hardware_UsbRequest.cpp \ 135 android_debug_JNITest.cpp \ 136 android_util_FileObserver.cpp \ 137 android/opengl/poly_clip.cpp.arm \ 138 android/opengl/util.cpp.arm \ 139 android_bluetooth_HeadsetBase.cpp \ 140 android_bluetooth_common.cpp \ 141 android_bluetooth_BluetoothAudioGateway.cpp \ 142 android_bluetooth_BluetoothSocket.cpp \ 143 android_bluetooth_c.c \ 144 android_server_BluetoothService.cpp \ 145 android_server_BluetoothEventLoop.cpp \ 146 android_server_BluetoothA2dpService.cpp \ 147 android_server_NetworkManagementSocketTagger.cpp \ 148 android_server_Watchdog.cpp \ 149 android_ddm_DdmHandleNativeHeap.cpp \ 150 com_android_internal_os_ZygoteInit.cpp \ 151 android_backup_BackupDataInput.cpp \ 152 android_backup_BackupDataOutput.cpp \ 153 android_backup_FileBackupHelperBase.cpp \ 154 android_backup_BackupHelperDispatcher.cpp \ 155 android_app_backup_FullBackup.cpp \ 156 android_content_res_ObbScanner.cpp \ 157 android_content_res_Configuration.cpp \ 158 android_animation_PropertyValuesHolder.cpp 159 160 LOCAL_C_INCLUDES += \ 161 $(JNI_H_INCLUDE) \ 162 $(LOCAL_PATH)/android/graphics \ 163 $(LOCAL_PATH)/../../libs/hwui \ 164 $(LOCAL_PATH)/../../opengl/libs \ 165 $(call include-path-for, bluedroid) \ 166 $(call include-path-for, libhardware)/hardware \ 167 $(call include-path-for, libhardware_legacy)/hardware_legacy \ 168 $(LOCAL_PATH)/../../include/ui \ 169 $(LOCAL_PATH)/../../include/utils \ 170 external/skia/include/core \ 171 external/skia/include/effects \ 172 external/skia/include/images \ 173 external/skia/src/ports \ 174 external/skia/include/utils \ 175 external/sqlite/dist \ 176 external/sqlite/android \ 177 external/expat/lib \ 178 external/openssl/include \ 179 external/tremor/Tremor \ 180 external/icu4c/i18n \ 181 external/icu4c/common \ 182 external/jpeg \ 183 external/harfbuzz/contrib \ 184 external/harfbuzz/src \ 185 external/zlib \ 186 frameworks/opt/emoji \ 187 libcore/include 188 189 LOCAL_SHARED_LIBRARIES := \ 190 libexpat \ 191 libnativehelper \ 192 libcutils \ 193 libutils \ 194 libbinder \ 195 libnetutils \ 196 libui \ 197 libgui \ 198 libcamera_client \ 199 libskia \ 200 libsqlite \ 201 libdvm \ 202 libEGL \ 203 libGLESv1_CM \ 204 libGLESv2 \ 205 libETC1 \ 206 libhardware \ 207 libhardware_legacy \ 208 libsonivox \ 209 libcrypto \ 210 libssl \ 211 libicuuc \ 212 libicui18n \ 213 libmedia \ 214 libwpa_client \ 215 libjpeg \ 216 libnfc_ndef \ 217 libusbhost \ 218 libharfbuzz \ 219 libz \ 220 221 ifeq ($(USE_OPENGL_RENDERER),true) 222 LOCAL_SHARED_LIBRARIES += libhwui 223 endif 224 225 ifeq ($(BOARD_HAVE_BLUETOOTH),true) 226 LOCAL_C_INCLUDES += \ 227 external/dbus \ 228 system/bluetooth/bluez-clean-headers 229 LOCAL_CFLAGS += -DHAVE_BLUETOOTH 230 LOCAL_SHARED_LIBRARIES += libbluedroid libdbus 231 endif 232 233 LOCAL_SHARED_LIBRARIES += \ 234 libdl 235 # we need to access the private Bionic header 236 # <bionic_tls.h> in com_google_android_gles_jni_GLImpl.cpp 237 LOCAL_CFLAGS += -I$(LOCAL_PATH)/../../../../bionic/libc/private 238 239 LOCAL_LDLIBS += -lpthread -ldl 240 241 ifeq ($(WITH_MALLOC_LEAK_CHECK),true) 242 LOCAL_CFLAGS += -DMALLOC_LEAK_CHECK 243 endif 244 245 LOCAL_MODULE:= libandroid_runtime 246 247 include $(BUILD_SHARED_LIBRARY) 248 249 include $(call all-makefiles-under,$(LOCAL_PATH)) 250