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