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__ |
Dan Albert | 10caf03 | 2015-02-23 10:41:10 -0800 | [diff] [blame] | 7 | LOCAL_CFLAGS += -Wno-unused-parameter |
Svetoslav | 2961769 | 2014-04-24 18:40:42 -0700 | [diff] [blame] | 8 | LOCAL_CFLAGS += -Wno-non-virtual-dtor |
Kristian Monsen | f5fabdf | 2013-12-11 19:46:41 -0800 | [diff] [blame] | 9 | LOCAL_CFLAGS += -Wno-maybe-uninitialized -Wno-parentheses |
| 10 | LOCAL_CPPFLAGS += -Wno-conversion-null |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 11 | |
| 12 | ifeq ($(TARGET_ARCH), arm) |
Andreas Gampe | 0f0b491 | 2014-11-12 08:03:48 -0800 | [diff] [blame] | 13 | LOCAL_CFLAGS += -DPACKED="__attribute__ ((packed))" |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 14 | else |
Andreas Gampe | 0f0b491 | 2014-11-12 08:03:48 -0800 | [diff] [blame] | 15 | LOCAL_CFLAGS += -DPACKED="" |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 16 | endif |
| 17 | |
Tim Murray | 9e41c74 | 2015-06-08 14:56:53 -0700 | [diff] [blame] | 18 | ifneq ($(ENABLE_CPUSETS),) |
| 19 | LOCAL_CFLAGS += -DENABLE_CPUSETS |
| 20 | endif |
| 21 | |
Tim Murray | 6d43a861 | 2015-08-05 14:31:05 -0700 | [diff] [blame] | 22 | ifneq ($(ENABLE_SCHED_BOOST),) |
| 23 | LOCAL_CFLAGS += -DENABLE_SCHED_BOOST |
| 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 | |
Elliott Hughes | 4c5806b | 2015-03-07 11:00:50 -0800 | [diff] [blame] | 28 | LOCAL_CFLAGS += -DU_USING_ICU_NAMESPACE=0 |
| 29 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 30 | LOCAL_SRC_FILES:= \ |
Andreas Gampe | 0f0b491 | 2014-11-12 08:03:48 -0800 | [diff] [blame] | 31 | AndroidRuntime.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_EGL14.cpp \ |
| 37 | android_opengl_EGLExt.cpp \ |
| 38 | android_opengl_GLES10.cpp \ |
| 39 | android_opengl_GLES10Ext.cpp \ |
| 40 | android_opengl_GLES11.cpp \ |
| 41 | android_opengl_GLES11Ext.cpp \ |
| 42 | android_opengl_GLES20.cpp \ |
| 43 | android_opengl_GLES30.cpp \ |
| 44 | android_opengl_GLES31.cpp \ |
| 45 | android_opengl_GLES31Ext.cpp \ |
| 46 | android_database_CursorWindow.cpp \ |
| 47 | android_database_SQLiteCommon.cpp \ |
| 48 | android_database_SQLiteConnection.cpp \ |
| 49 | android_database_SQLiteGlobal.cpp \ |
| 50 | android_database_SQLiteDebug.cpp \ |
Andreas Gampe | 0f0b491 | 2014-11-12 08:03:48 -0800 | [diff] [blame] | 51 | android_view_DisplayEventReceiver.cpp \ |
Chris Craik | c9070eb | 2015-03-09 18:50:14 -0700 | [diff] [blame] | 52 | android_view_DisplayListCanvas.cpp \ |
| 53 | android_view_GraphicBuffer.cpp \ |
| 54 | android_view_HardwareLayer.cpp \ |
Andreas Gampe | 0f0b491 | 2014-11-12 08:03:48 -0800 | [diff] [blame] | 55 | android_view_InputChannel.cpp \ |
| 56 | android_view_InputDevice.cpp \ |
| 57 | android_view_InputEventReceiver.cpp \ |
| 58 | android_view_InputEventSender.cpp \ |
| 59 | android_view_InputQueue.cpp \ |
Andreas Gampe | 0f0b491 | 2014-11-12 08:03:48 -0800 | [diff] [blame] | 60 | android_view_KeyCharacterMap.cpp \ |
Chris Craik | c9070eb | 2015-03-09 18:50:14 -0700 | [diff] [blame] | 61 | android_view_KeyEvent.cpp \ |
Andreas Gampe | 0f0b491 | 2014-11-12 08:03:48 -0800 | [diff] [blame] | 62 | android_view_MotionEvent.cpp \ |
| 63 | android_view_PointerIcon.cpp \ |
| 64 | android_view_RenderNode.cpp \ |
| 65 | android_view_RenderNodeAnimator.cpp \ |
Chris Craik | c9070eb | 2015-03-09 18:50:14 -0700 | [diff] [blame] | 66 | android_view_Surface.cpp \ |
| 67 | android_view_SurfaceControl.cpp \ |
| 68 | android_view_SurfaceSession.cpp \ |
| 69 | android_view_TextureView.cpp \ |
| 70 | android_view_ThreadedRenderer.cpp \ |
Andreas Gampe | 0f0b491 | 2014-11-12 08:03:48 -0800 | [diff] [blame] | 71 | android_view_VelocityTracker.cpp \ |
| 72 | android_text_AndroidCharacter.cpp \ |
| 73 | android_text_AndroidBidi.cpp \ |
| 74 | android_text_StaticLayout.cpp \ |
| 75 | android_os_Debug.cpp \ |
| 76 | android_os_MemoryFile.cpp \ |
| 77 | android_os_MessageQueue.cpp \ |
| 78 | android_os_Parcel.cpp \ |
| 79 | android_os_SELinux.cpp \ |
| 80 | android_os_SystemClock.cpp \ |
| 81 | android_os_SystemProperties.cpp \ |
| 82 | android_os_Trace.cpp \ |
| 83 | android_os_UEventObserver.cpp \ |
| 84 | android_net_LocalSocketImpl.cpp \ |
| 85 | android_net_NetUtils.cpp \ |
| 86 | android_net_TrafficStats.cpp \ |
| 87 | android_nio_utils.cpp \ |
| 88 | android_util_AssetManager.cpp \ |
| 89 | android_util_Binder.cpp \ |
| 90 | android_util_EventLog.cpp \ |
| 91 | android_util_Log.cpp \ |
Doris Liu | cdd23f9 | 2015-11-11 14:31:13 -0800 | [diff] [blame] | 92 | android_util_PathParser.cpp \ |
Andreas Gampe | 0f0b491 | 2014-11-12 08:03:48 -0800 | [diff] [blame] | 93 | android_util_Process.cpp \ |
| 94 | android_util_StringBlock.cpp \ |
| 95 | android_util_XmlBlock.cpp \ |
Przemyslaw Szczepaniak | 8a7c160 | 2015-11-03 09:47:56 +0000 | [diff] [blame] | 96 | android_util_jar_StrictJarFile.cpp \ |
Andreas Gampe | 0f0b491 | 2014-11-12 08:03:48 -0800 | [diff] [blame] | 97 | android_graphics_Canvas.cpp \ |
| 98 | android_graphics_Picture.cpp \ |
| 99 | android/graphics/AutoDecodeCancel.cpp \ |
Leon Scroggins III | ed1ce37 | 2015-01-30 09:05:11 -0500 | [diff] [blame] | 100 | android/graphics/AvoidXfermode.cpp \ |
Andreas Gampe | 0f0b491 | 2014-11-12 08:03:48 -0800 | [diff] [blame] | 101 | android/graphics/Bitmap.cpp \ |
| 102 | android/graphics/BitmapFactory.cpp \ |
| 103 | android/graphics/Camera.cpp \ |
| 104 | android/graphics/CanvasProperty.cpp \ |
| 105 | android/graphics/ColorFilter.cpp \ |
| 106 | android/graphics/DrawFilter.cpp \ |
| 107 | android/graphics/FontFamily.cpp \ |
| 108 | android/graphics/CreateJavaOutputStreamAdaptor.cpp \ |
| 109 | android/graphics/Graphics.cpp \ |
| 110 | android/graphics/HarfBuzzNGFaceSkia.cpp \ |
| 111 | android/graphics/Interpolator.cpp \ |
| 112 | android/graphics/MaskFilter.cpp \ |
| 113 | android/graphics/Matrix.cpp \ |
| 114 | android/graphics/MinikinSkia.cpp \ |
| 115 | android/graphics/MinikinUtils.cpp \ |
| 116 | android/graphics/Movie.cpp \ |
| 117 | android/graphics/NinePatch.cpp \ |
Andreas Gampe | 0f0b491 | 2014-11-12 08:03:48 -0800 | [diff] [blame] | 118 | android/graphics/NinePatchPeeker.cpp \ |
| 119 | android/graphics/Paint.cpp \ |
| 120 | android/graphics/PaintImpl.cpp \ |
| 121 | android/graphics/Path.cpp \ |
| 122 | android/graphics/PathMeasure.cpp \ |
| 123 | android/graphics/PathEffect.cpp \ |
| 124 | android/graphics/Picture.cpp \ |
| 125 | android/graphics/PorterDuff.cpp \ |
| 126 | android/graphics/BitmapRegionDecoder.cpp \ |
| 127 | android/graphics/Rasterizer.cpp \ |
| 128 | android/graphics/Region.cpp \ |
| 129 | android/graphics/Shader.cpp \ |
Andreas Gampe | 0f0b491 | 2014-11-12 08:03:48 -0800 | [diff] [blame] | 130 | android/graphics/SurfaceTexture.cpp \ |
| 131 | android/graphics/Typeface.cpp \ |
| 132 | android/graphics/TypefaceImpl.cpp \ |
| 133 | android/graphics/Utils.cpp \ |
| 134 | android/graphics/Xfermode.cpp \ |
| 135 | android/graphics/YuvToJpegEncoder.cpp \ |
| 136 | android/graphics/pdf/PdfDocument.cpp \ |
| 137 | android/graphics/pdf/PdfEditor.cpp \ |
| 138 | android/graphics/pdf/PdfRenderer.cpp \ |
| 139 | android_media_AudioRecord.cpp \ |
| 140 | android_media_AudioSystem.cpp \ |
| 141 | android_media_AudioTrack.cpp \ |
Eric Laurent | 4bcdba8 | 2015-05-01 11:37:49 -0700 | [diff] [blame] | 142 | android_media_DeviceCallback.cpp \ |
Andreas Gampe | 0f0b491 | 2014-11-12 08:03:48 -0800 | [diff] [blame] | 143 | android_media_JetPlayer.cpp \ |
| 144 | android_media_RemoteDisplay.cpp \ |
| 145 | android_media_ToneGenerator.cpp \ |
| 146 | android_hardware_Camera.cpp \ |
| 147 | android_hardware_camera2_CameraMetadata.cpp \ |
| 148 | android_hardware_camera2_legacy_LegacyCameraDevice.cpp \ |
| 149 | android_hardware_camera2_legacy_PerfMeasurement.cpp \ |
| 150 | android_hardware_camera2_DngCreator.cpp \ |
Eric Laurent | 633cb56 | 2015-03-05 15:17:20 -0800 | [diff] [blame] | 151 | android_hardware_Radio.cpp \ |
Andreas Gampe | 0f0b491 | 2014-11-12 08:03:48 -0800 | [diff] [blame] | 152 | android_hardware_SensorManager.cpp \ |
| 153 | android_hardware_SerialPort.cpp \ |
| 154 | android_hardware_SoundTrigger.cpp \ |
| 155 | android_hardware_UsbDevice.cpp \ |
| 156 | android_hardware_UsbDeviceConnection.cpp \ |
| 157 | android_hardware_UsbRequest.cpp \ |
| 158 | android_hardware_location_ActivityRecognitionHardware.cpp \ |
| 159 | android_util_FileObserver.cpp \ |
| 160 | android/opengl/poly_clip.cpp.arm \ |
John Reck | f4faeac | 2015-03-05 13:50:31 -0800 | [diff] [blame] | 161 | android/opengl/util.cpp \ |
Andreas Gampe | 0f0b491 | 2014-11-12 08:03:48 -0800 | [diff] [blame] | 162 | android_server_NetworkManagementSocketTagger.cpp \ |
| 163 | android_server_Watchdog.cpp \ |
| 164 | android_ddm_DdmHandleNativeHeap.cpp \ |
Andreas Gampe | 0f0b491 | 2014-11-12 08:03:48 -0800 | [diff] [blame] | 165 | android_backup_BackupDataInput.cpp \ |
| 166 | android_backup_BackupDataOutput.cpp \ |
| 167 | android_backup_FileBackupHelperBase.cpp \ |
| 168 | android_backup_BackupHelperDispatcher.cpp \ |
| 169 | android_app_backup_FullBackup.cpp \ |
| 170 | android_content_res_ObbScanner.cpp \ |
| 171 | android_content_res_Configuration.cpp \ |
| 172 | android_animation_PropertyValuesHolder.cpp \ |
| 173 | com_android_internal_net_NetworkStatsFactory.cpp \ |
| 174 | com_android_internal_os_Zygote.cpp \ |
| 175 | com_android_internal_util_VirtualRefBasePtr.cpp \ |
| 176 | com_android_internal_view_animation_NativeInterpolatorFactoryHelper.cpp |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 177 | |
| 178 | LOCAL_C_INCLUDES += \ |
Andreas Gampe | 0f0b491 | 2014-11-12 08:03:48 -0800 | [diff] [blame] | 179 | $(JNI_H_INCLUDE) \ |
| 180 | $(LOCAL_PATH)/android/graphics \ |
| 181 | $(LOCAL_PATH)/../../libs/hwui \ |
| 182 | $(LOCAL_PATH)/../../../native/opengl/libs \ |
| 183 | $(call include-path-for, bluedroid) \ |
| 184 | $(call include-path-for, libhardware)/hardware \ |
| 185 | $(call include-path-for, libhardware_legacy)/hardware_legacy \ |
Andreas Gampe | 0f0b491 | 2014-11-12 08:03:48 -0800 | [diff] [blame] | 186 | $(TOP)/frameworks/av/include \ |
Andy Hung | fe48e0d | 2015-04-27 18:14:02 -0700 | [diff] [blame] | 187 | $(TOP)/frameworks/base/media/jni \ |
Andreas Gampe | 0f0b491 | 2014-11-12 08:03:48 -0800 | [diff] [blame] | 188 | $(TOP)/system/media/camera/include \ |
| 189 | $(TOP)/system/netd/include \ |
Andreas Gampe | 0f0b491 | 2014-11-12 08:03:48 -0800 | [diff] [blame] | 190 | external/pdfium/core/include/fpdfapi \ |
| 191 | external/pdfium/core/include/fpdfdoc \ |
| 192 | external/pdfium/fpdfsdk/include \ |
Svet Ganov | fbd0288 | 2015-06-04 14:49:16 -0700 | [diff] [blame] | 193 | external/pdfium/public \ |
Leon Scroggins III | f35b989 | 2015-07-31 10:38:40 -0400 | [diff] [blame] | 194 | external/skia/include/private \ |
Andreas Gampe | 0f0b491 | 2014-11-12 08:03:48 -0800 | [diff] [blame] | 195 | external/skia/src/core \ |
| 196 | external/skia/src/effects \ |
| 197 | external/skia/src/images \ |
| 198 | external/sqlite/dist \ |
| 199 | external/sqlite/android \ |
| 200 | external/expat/lib \ |
Andreas Gampe | 0f0b491 | 2014-11-12 08:03:48 -0800 | [diff] [blame] | 201 | external/tremor/Tremor \ |
Andreas Gampe | 0f0b491 | 2014-11-12 08:03:48 -0800 | [diff] [blame] | 202 | external/harfbuzz_ng/src \ |
Andreas Gampe | 0f0b491 | 2014-11-12 08:03:48 -0800 | [diff] [blame] | 203 | libcore/include \ |
| 204 | $(call include-path-for, audio-utils) \ |
| 205 | frameworks/minikin/include \ |
| 206 | external/freetype/include |
Raph Levien | 3660789 | 2014-06-25 16:32:13 -0700 | [diff] [blame] | 207 | # TODO: clean up Minikin so it doesn't need the freetype include |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 208 | |
| 209 | LOCAL_SHARED_LIBRARIES := \ |
Andreas Gampe | 0f0b491 | 2014-11-12 08:03:48 -0800 | [diff] [blame] | 210 | libmemtrack \ |
| 211 | libandroidfw \ |
| 212 | libexpat \ |
| 213 | libnativehelper \ |
| 214 | liblog \ |
| 215 | libcutils \ |
| 216 | libutils \ |
| 217 | libbinder \ |
| 218 | libnetutils \ |
| 219 | libui \ |
| 220 | libgui \ |
| 221 | libinput \ |
| 222 | libinputflinger \ |
| 223 | libcamera_client \ |
| 224 | libcamera_metadata \ |
| 225 | libskia \ |
| 226 | libsqlite \ |
| 227 | libEGL \ |
| 228 | libGLESv1_CM \ |
| 229 | libGLESv2 \ |
| 230 | libETC1 \ |
| 231 | libhardware \ |
| 232 | libhardware_legacy \ |
| 233 | libselinux \ |
| 234 | libsonivox \ |
| 235 | libcrypto \ |
| 236 | libssl \ |
| 237 | libicuuc \ |
| 238 | libicui18n \ |
| 239 | libmedia \ |
Matt Sarett | 5c3252e | 2015-11-23 15:22:39 -0500 | [diff] [blame] | 240 | libjpeg \ |
Andreas Gampe | 0f0b491 | 2014-11-12 08:03:48 -0800 | [diff] [blame] | 241 | libusbhost \ |
| 242 | libharfbuzz_ng \ |
| 243 | libz \ |
| 244 | libaudioutils \ |
| 245 | libpdfium \ |
| 246 | libimg_utils \ |
| 247 | libnetd_client \ |
Eric Laurent | 633cb56 | 2015-03-05 15:17:20 -0800 | [diff] [blame] | 248 | libradio \ |
Andreas Gampe | 0f0b491 | 2014-11-12 08:03:48 -0800 | [diff] [blame] | 249 | libsoundtrigger \ |
| 250 | libminikin \ |
| 251 | libprocessgroup \ |
Eric Laurent | 633cb56 | 2015-03-05 15:17:20 -0800 | [diff] [blame] | 252 | libnativebridge \ |
Dmitriy Ivanov | 048a0db | 2015-11-15 14:58:36 -0800 | [diff] [blame] | 253 | libradio_metadata \ |
| 254 | libnativeloader |
Mike Lockwood | 755fd61 | 2010-05-25 19:08:48 -0400 | [diff] [blame] | 255 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 256 | LOCAL_SHARED_LIBRARIES += \ |
John Reck | a2732a2 | 2014-12-18 13:52:33 -0800 | [diff] [blame] | 257 | libhwui \ |
Andreas Gampe | 0f0b491 | 2014-11-12 08:03:48 -0800 | [diff] [blame] | 258 | libdl |
Dan Albert | 88ba339 | 2014-09-11 16:20:16 -0700 | [diff] [blame] | 259 | |
Jeff Brown | bd882b1 | 2011-07-11 22:12:16 -0700 | [diff] [blame] | 260 | # we need to access the private Bionic header |
| 261 | # <bionic_tls.h> in com_google_android_gles_jni_GLImpl.cpp |
Dan Albert | 88ba339 | 2014-09-11 16:20:16 -0700 | [diff] [blame] | 262 | LOCAL_C_INCLUDES += bionic/libc/private |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 263 | |
Dan Willemsen | 81944da | 2015-09-24 20:45:35 -0700 | [diff] [blame] | 264 | # AndroidRuntime.h depends on nativehelper/jni.h |
| 265 | LOCAL_EXPORT_C_INCLUDE_DIRS := libnativehelper/include |
| 266 | |
Andreas Huber | 9ae000c | 2014-02-13 17:22:33 +0000 | [diff] [blame] | 267 | LOCAL_MODULE:= libandroid_runtime |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 268 | |
Andreas Gampe | 26109fd | 2014-11-18 14:38:00 -0800 | [diff] [blame] | 269 | # -Wno-unknown-pragmas: necessary for Clang as the GL bindings need to turn |
| 270 | # off a GCC warning that Clang doesn't know. |
Glenn Kasten | 85d9954 | 2015-05-18 12:27:57 -0700 | [diff] [blame] | 271 | LOCAL_CFLAGS += -Wall -Werror -Wno-error=deprecated-declarations -Wunused -Wunreachable-code \ |
| 272 | -Wno-unknown-pragmas |
Andreas Gampe | 0f0b491 | 2014-11-12 08:03:48 -0800 | [diff] [blame] | 273 | |
Andreas Gampe | ed6b9df | 2014-11-20 22:02:20 -0800 | [diff] [blame] | 274 | # -Wno-c++11-extensions: Clang warns about Skia using the C++11 override keyword, but this project |
| 275 | # is not being compiled with that level. Remove once this has changed. |
Dan Albert | 0eadf57 | 2015-11-05 00:59:09 -0800 | [diff] [blame] | 276 | LOCAL_CLANG_CFLAGS += -Wno-c++11-extensions |
Andreas Gampe | ed6b9df | 2014-11-20 22:02:20 -0800 | [diff] [blame] | 277 | |
Andreas Gampe | 2bc67a1 | 2015-07-10 21:46:17 -0700 | [diff] [blame] | 278 | # b/22414716: thread_local (android/graphics/Paint.cpp) and Clang don't like each other at the |
| 279 | # moment. |
| 280 | LOCAL_CLANG := false |
| 281 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 282 | include $(BUILD_SHARED_LIBRARY) |
| 283 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 284 | include $(call all-makefiles-under,$(LOCAL_PATH)) |