Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 1 | |
| 2 | genrule { |
Tej Singh | be0482b | 2019-03-19 22:01:57 -0700 | [diff] [blame] | 3 | name: "android_util_StatsLogInternal.cpp", |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 4 | tools: ["stats-log-api-gen"], |
Tej Singh | be0482b | 2019-03-19 22:01:57 -0700 | [diff] [blame] | 5 | cmd: "$(location stats-log-api-gen) --jni $(genDir)/android_util_StatsLogInternal.cpp", |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 6 | out: [ |
Tej Singh | be0482b | 2019-03-19 22:01:57 -0700 | [diff] [blame] | 7 | "android_util_StatsLogInternal.cpp", |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 8 | ], |
| 9 | } |
| 10 | |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 11 | cc_library_shared { |
| 12 | name: "libandroid_runtime", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 13 | host_supported: true, |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 14 | cflags: [ |
| 15 | "-Wno-unused-parameter", |
| 16 | "-Wno-non-virtual-dtor", |
| 17 | "-Wno-maybe-uninitialized", |
| 18 | "-Wno-parentheses", |
| 19 | |
| 20 | "-DGL_GLEXT_PROTOTYPES", |
| 21 | "-DEGL_EGLEXT_PROTOTYPES", |
| 22 | |
| 23 | "-DU_USING_ICU_NAMESPACE=0", |
| 24 | |
| 25 | "-Wall", |
| 26 | "-Werror", |
| 27 | "-Wno-error=deprecated-declarations", |
| 28 | "-Wunused", |
| 29 | "-Wunreachable-code", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 30 | ], |
| 31 | |
| 32 | cppflags: ["-Wno-conversion-null"], |
| 33 | |
| 34 | srcs: [ |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 35 | "android_animation_PropertyValuesHolder.cpp", |
Brett Chabot | 78aaa0e | 2019-06-10 22:06:18 -0700 | [diff] [blame] | 36 | "android_os_SystemClock.cpp", |
Brett Chabot | 96495db | 2019-06-12 14:33:55 -0700 | [diff] [blame] | 37 | "android_os_SystemProperties.cpp", |
Brett Chabot | 6f014b4 | 2019-06-21 16:51:12 -0700 | [diff] [blame] | 38 | "android_util_EventLog.cpp", |
Brett Chabot | f6565d8 | 2019-06-12 15:42:38 -0700 | [diff] [blame] | 39 | "android_util_Log.cpp", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 40 | "com_android_internal_util_VirtualRefBasePtr.cpp", |
| 41 | "com_android_internal_view_animation_NativeInterpolatorFactoryHelper.cpp", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 42 | ], |
| 43 | |
| 44 | include_dirs: [ |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 45 | "external/skia/include/private", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 46 | "frameworks/base/media/jni", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 47 | "system/media/camera/include", |
| 48 | "system/media/private/camera/include", |
| 49 | ], |
| 50 | |
Derek Sollenberger | 5d0ca63 | 2019-07-19 16:17:12 -0400 | [diff] [blame] | 51 | static_libs: [ |
| 52 | "libandroid_graphics", |
| 53 | ], |
| 54 | |
| 55 | whole_static_libs: ["libandroid_graphics"], |
| 56 | |
Derek Sollenberger | 9ca5bbe | 2019-08-14 15:50:59 -0400 | [diff] [blame] | 57 | export_static_lib_headers: ["libandroid_graphics"], |
| 58 | |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 59 | shared_libs: [ |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 60 | "libbase", |
| 61 | "libcutils", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 62 | "libharfbuzz_ng", |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 63 | "libhwui", |
Derek Sollenberger | 5d0ca63 | 2019-07-19 16:17:12 -0400 | [diff] [blame] | 64 | "libjpeg", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 65 | "liblog", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 66 | "libminikin", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 67 | "libnativehelper", |
| 68 | "libz", |
| 69 | "libziparchive", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 70 | ], |
| 71 | |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 72 | export_include_dirs: [ |
| 73 | ".", |
| 74 | "include", |
| 75 | ], |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 76 | |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 77 | target: { |
| 78 | android: { |
| 79 | srcs: [ |
| 80 | "AndroidRuntime.cpp", |
| 81 | "com_android_internal_content_NativeLibraryHelper.cpp", |
| 82 | "com_google_android_gles_jni_EGLImpl.cpp", |
| 83 | "com_google_android_gles_jni_GLImpl.cpp", // TODO: .arm |
| 84 | "android_app_Activity.cpp", |
| 85 | "android_app_ActivityThread.cpp", |
| 86 | "android_app_NativeActivity.cpp", |
| 87 | "android_app_admin_SecurityLog.cpp", |
| 88 | "android_opengl_EGL14.cpp", |
| 89 | "android_opengl_EGL15.cpp", |
| 90 | "android_opengl_EGLExt.cpp", |
| 91 | "android_opengl_GLES10.cpp", |
| 92 | "android_opengl_GLES10Ext.cpp", |
| 93 | "android_opengl_GLES11.cpp", |
| 94 | "android_opengl_GLES11Ext.cpp", |
| 95 | "android_opengl_GLES20.cpp", |
| 96 | "android_opengl_GLES30.cpp", |
| 97 | "android_opengl_GLES31.cpp", |
| 98 | "android_opengl_GLES31Ext.cpp", |
| 99 | "android_opengl_GLES32.cpp", |
| 100 | "android_database_CursorWindow.cpp", |
| 101 | "android_database_SQLiteCommon.cpp", |
| 102 | "android_database_SQLiteConnection.cpp", |
| 103 | "android_database_SQLiteGlobal.cpp", |
| 104 | "android_database_SQLiteDebug.cpp", |
Derek Sollenberger | e78f7c9 | 2019-07-31 15:18:47 -0400 | [diff] [blame] | 105 | "android_graphics_GraphicBuffer.cpp", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 106 | "android_view_CompositionSamplingListener.cpp", |
| 107 | "android_view_DisplayEventReceiver.cpp", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 108 | "android_view_InputChannel.cpp", |
| 109 | "android_view_InputDevice.cpp", |
| 110 | "android_view_InputEventReceiver.cpp", |
| 111 | "android_view_InputEventSender.cpp", |
| 112 | "android_view_InputQueue.cpp", |
Derek Sollenberger | eec1b86 | 2019-10-24 09:44:55 -0400 | [diff] [blame] | 113 | "android_view_FrameMetricsObserver.cpp", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 114 | "android_view_KeyCharacterMap.cpp", |
| 115 | "android_view_KeyEvent.cpp", |
| 116 | "android_view_MotionEvent.cpp", |
| 117 | "android_view_PointerIcon.cpp", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 118 | "android_view_RenderNodeAnimator.cpp", |
| 119 | "android_view_Surface.cpp", |
| 120 | "android_view_SurfaceControl.cpp", |
Robert Carr | 48ec4e0 | 2019-07-16 14:28:47 -0700 | [diff] [blame] | 121 | "android_graphics_BLASTBufferQueue.cpp", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 122 | "android_view_SurfaceSession.cpp", |
| 123 | "android_view_TextureView.cpp", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 124 | "android_view_VelocityTracker.cpp", |
| 125 | "android_text_AndroidCharacter.cpp", |
| 126 | "android_text_Hyphenator.cpp", |
| 127 | "android_os_Debug.cpp", |
| 128 | "android_os_GraphicsEnvironment.cpp", |
Ytai Ben-Tsvi | 4659e18 | 2019-11-06 09:53:34 -0800 | [diff] [blame] | 129 | "android_os_HidlMemory.cpp", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 130 | "android_os_HidlSupport.cpp", |
| 131 | "android_os_HwBinder.cpp", |
| 132 | "android_os_HwBlob.cpp", |
| 133 | "android_os_HwParcel.cpp", |
| 134 | "android_os_HwRemoteBinder.cpp", |
| 135 | "android_os_NativeHandle.cpp", |
| 136 | "android_os_MemoryFile.cpp", |
Jerome Gaillard | 482d755 | 2019-07-02 19:32:39 +0100 | [diff] [blame] | 137 | "android_os_MessageQueue.cpp", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 138 | "android_os_Parcel.cpp", |
| 139 | "android_os_SELinux.cpp", |
| 140 | "android_os_SharedMemory.cpp", |
Jerome Gaillard | 482d755 | 2019-07-02 19:32:39 +0100 | [diff] [blame] | 141 | "android_os_Trace.cpp", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 142 | "android_os_UEventObserver.cpp", |
| 143 | "android_os_VintfObject.cpp", |
| 144 | "android_os_VintfRuntimeInfo.cpp", |
| 145 | "android_net_LocalSocketImpl.cpp", |
| 146 | "android_net_NetUtils.cpp", |
Jerome Gaillard | 482d755 | 2019-07-02 19:32:39 +0100 | [diff] [blame] | 147 | "android_util_AssetManager.cpp", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 148 | "android_util_Binder.cpp", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 149 | "android_util_StatsLog.cpp", |
| 150 | "android_util_MemoryIntArray.cpp", |
| 151 | "android_util_Process.cpp", |
Jerome Gaillard | 482d755 | 2019-07-02 19:32:39 +0100 | [diff] [blame] | 152 | "android_util_StringBlock.cpp", |
| 153 | "android_util_XmlBlock.cpp", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 154 | "android_util_jar_StrictJarFile.cpp", |
Jean-Michel Trivi | 21cd541 | 2019-10-30 08:16:51 -0700 | [diff] [blame] | 155 | "android_media_AudioDeviceAddress.cpp", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 156 | "android_media_AudioEffectDescriptor.cpp", |
| 157 | "android_media_AudioRecord.cpp", |
| 158 | "android_media_AudioSystem.cpp", |
| 159 | "android_media_AudioTrack.cpp", |
| 160 | "android_media_AudioAttributes.cpp", |
| 161 | "android_media_AudioProductStrategies.cpp", |
| 162 | "android_media_AudioVolumeGroups.cpp", |
| 163 | "android_media_AudioVolumeGroupCallback.cpp", |
| 164 | "android_media_DeviceCallback.cpp", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 165 | "android_media_MediaMetricsJNI.cpp", |
| 166 | "android_media_MicrophoneInfo.cpp", |
| 167 | "android_media_midi.cpp", |
| 168 | "android_media_RemoteDisplay.cpp", |
| 169 | "android_media_ToneGenerator.cpp", |
| 170 | "android_hardware_Camera.cpp", |
| 171 | "android_hardware_camera2_CameraMetadata.cpp", |
| 172 | "android_hardware_camera2_legacy_LegacyCameraDevice.cpp", |
| 173 | "android_hardware_camera2_legacy_PerfMeasurement.cpp", |
| 174 | "android_hardware_camera2_DngCreator.cpp", |
| 175 | "android_hardware_display_DisplayViewport.cpp", |
| 176 | "android_hardware_HardwareBuffer.cpp", |
| 177 | "android_hardware_SensorManager.cpp", |
| 178 | "android_hardware_SerialPort.cpp", |
| 179 | "android_hardware_SoundTrigger.cpp", |
| 180 | "android_hardware_UsbDevice.cpp", |
| 181 | "android_hardware_UsbDeviceConnection.cpp", |
| 182 | "android_hardware_UsbRequest.cpp", |
| 183 | "android_hardware_location_ActivityRecognitionHardware.cpp", |
| 184 | "android_util_FileObserver.cpp", |
Stan Iliev | aaa9e83 | 2019-09-17 14:07:23 -0400 | [diff] [blame] | 185 | "android/graphics/SurfaceTexture.cpp", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 186 | "android/opengl/poly_clip.cpp", // TODO: .arm |
| 187 | "android/opengl/util.cpp", |
| 188 | "android_server_NetworkManagementSocketTagger.cpp", |
| 189 | "android_ddm_DdmHandleNativeHeap.cpp", |
| 190 | "android_backup_BackupDataInput.cpp", |
| 191 | "android_backup_BackupDataOutput.cpp", |
| 192 | "android_backup_FileBackupHelperBase.cpp", |
| 193 | "android_backup_BackupHelperDispatcher.cpp", |
| 194 | "android_app_backup_FullBackup.cpp", |
Jerome Gaillard | 482d755 | 2019-07-02 19:32:39 +0100 | [diff] [blame] | 195 | "android_content_res_ApkAssets.cpp", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 196 | "android_content_res_ObbScanner.cpp", |
| 197 | "android_content_res_Configuration.cpp", |
| 198 | "android_security_Scrypt.cpp", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 199 | "com_android_internal_os_ClassLoaderFactory.cpp", |
| 200 | "com_android_internal_os_FuseAppLoop.cpp", |
| 201 | "com_android_internal_os_Zygote.cpp", |
| 202 | "com_android_internal_os_ZygoteInit.cpp", |
| 203 | "hwbinder/EphemeralStorage.cpp", |
| 204 | "fd_utils.cpp", |
| 205 | "android_hardware_input_InputWindowHandle.cpp", |
| 206 | "android_hardware_input_InputApplicationHandle.cpp", |
| 207 | ], |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 208 | |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 209 | static_libs: [ |
| 210 | "libasync_safe", |
| 211 | "libgif", |
| 212 | "libseccomp_policy", |
| 213 | "libgrallocusage", |
| 214 | "libscrypt_static", |
| 215 | "libstatssocket", |
| 216 | ], |
| 217 | |
| 218 | shared_libs: [ |
Jerome Gaillard | 1d27830 | 2019-06-28 13:37:33 +0100 | [diff] [blame] | 219 | "libandroidicu", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 220 | "libbpf_android", |
| 221 | "libnetdbpf", |
| 222 | "libnetdutils", |
| 223 | "libmemtrack", |
| 224 | "libandroidfw", |
| 225 | "libappfuse", |
| 226 | "libcrypto", |
| 227 | "libcutils", |
| 228 | "libdebuggerd_client", |
| 229 | "libutils", |
| 230 | "libbinder", |
| 231 | "libui", |
| 232 | "libgraphicsenv", |
| 233 | "libgui", |
| 234 | "libsensor", |
| 235 | "libinput", |
| 236 | "libcamera_client", |
| 237 | "libcamera_metadata", |
| 238 | "libsqlite", |
| 239 | "libEGL", |
| 240 | "libGLESv1_CM", |
| 241 | "libGLESv2", |
| 242 | "libGLESv3", |
| 243 | "libvulkan", |
| 244 | "libETC1", |
| 245 | "libhardware", |
| 246 | "libhardware_legacy", |
| 247 | "libselinux", |
| 248 | "libmedia", |
| 249 | "libmedia_helper", |
| 250 | "libmediametrics", |
| 251 | "libmeminfo", |
| 252 | "libaudioclient", |
jiabin | 3436a24 | 2019-11-04 14:16:21 -0800 | [diff] [blame] | 253 | "libaudiofoundation", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 254 | "libaudiopolicy", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 255 | "libusbhost", |
| 256 | "libpdfium", |
| 257 | "libimg_utils", |
| 258 | "libnetd_client", |
| 259 | "libsoundtrigger", |
| 260 | "libprocessgroup", |
| 261 | "libnativebridge_lazy", |
| 262 | "libnativeloader_lazy", |
| 263 | "libmemunreachable", |
| 264 | "libhidlbase", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 265 | "libvintf", |
Alec Mouri | 22d753f | 2019-09-05 17:11:45 -0700 | [diff] [blame] | 266 | "libnativedisplay", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 267 | "libnativewindow", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 268 | "libdl", |
| 269 | "libdl_android", |
| 270 | "libstatslog", |
| 271 | "server_configurable_flags", |
| 272 | ], |
| 273 | export_shared_lib_headers: [ |
| 274 | // AndroidRuntime.h depends on nativehelper/jni.h |
| 275 | "libnativehelper", |
| 276 | |
| 277 | // our headers include libnativewindow's public headers |
| 278 | "libnativewindow", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 279 | ], |
| 280 | generated_sources: ["android_util_StatsLogInternal.cpp"], |
Christopher Ferris | 8269f3a3 | 2019-09-11 19:08:52 -0700 | [diff] [blame] | 281 | header_libs: ["bionic_libc_platform_headers"], |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 282 | }, |
| 283 | host: { |
| 284 | cflags: [ |
| 285 | "-Wno-unused-const-variable", |
| 286 | "-Wno-unused-function", |
| 287 | ], |
| 288 | srcs: [ |
| 289 | "LayoutlibLoader.cpp", |
| 290 | ], |
| 291 | include_dirs: [ |
| 292 | "external/vulkan-headers/include", |
Fedor Kudasov | a887116 | 2019-07-04 12:54:28 +0100 | [diff] [blame] | 293 | "frameworks/native/libs/nativebase/include", |
| 294 | "frameworks/native/libs/nativewindow/include" |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 295 | ], |
Jerome Gaillard | 1d27830 | 2019-06-28 13:37:33 +0100 | [diff] [blame] | 296 | shared_libs: [ |
| 297 | "libicui18n", |
| 298 | "libicuuc", |
| 299 | ], |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 300 | static_libs: [ |
| 301 | "libandroidfw", |
| 302 | "libcompiler_rt", |
| 303 | "libutils", |
Fedor Kudasov | a887116 | 2019-07-04 12:54:28 +0100 | [diff] [blame] | 304 | "libhostgraphics", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 305 | ], |
| 306 | }, |
Jerome Gaillard | 482d755 | 2019-07-02 19:32:39 +0100 | [diff] [blame] | 307 | linux_glibc: { |
| 308 | srcs: [ |
| 309 | "android_content_res_ApkAssets.cpp", |
| 310 | "android_os_MessageQueue.cpp", |
| 311 | "android_os_Trace.cpp", |
| 312 | "android_util_AssetManager.cpp", |
Brett Chabot | dcb31f2 | 2019-06-28 15:59:33 -0700 | [diff] [blame] | 313 | "android_util_FileObserver.cpp", |
Jerome Gaillard | 482d755 | 2019-07-02 19:32:39 +0100 | [diff] [blame] | 314 | "android_util_StringBlock.cpp", |
| 315 | "android_util_XmlBlock.cpp", |
| 316 | ], |
| 317 | }, |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 318 | }, |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 319 | } |
Derek Sollenberger | 5d0ca63 | 2019-07-19 16:17:12 -0400 | [diff] [blame] | 320 | |
| 321 | cc_library_static { |
| 322 | name: "libandroid_graphics", |
| 323 | host_supported: true, |
| 324 | cflags: [ |
| 325 | "-Wno-unused-parameter", |
| 326 | "-Wno-non-virtual-dtor", |
| 327 | "-Wno-maybe-uninitialized", |
| 328 | "-Wno-parentheses", |
| 329 | |
| 330 | "-DGL_GLEXT_PROTOTYPES", |
| 331 | "-DEGL_EGLEXT_PROTOTYPES", |
| 332 | |
| 333 | "-DU_USING_ICU_NAMESPACE=0", |
| 334 | |
| 335 | "-Wall", |
| 336 | "-Werror", |
| 337 | "-Wno-error=deprecated-declarations", |
| 338 | "-Wunused", |
| 339 | "-Wunreachable-code", |
| 340 | ], |
| 341 | |
| 342 | cppflags: ["-Wno-conversion-null"], |
| 343 | |
| 344 | srcs: [ |
Derek Sollenberger | 9ca5bbe | 2019-08-14 15:50:59 -0400 | [diff] [blame] | 345 | "android/graphics/apex/android_bitmap.cpp", |
Derek Sollenberger | 40d7813 | 2019-08-12 11:06:08 -0400 | [diff] [blame] | 346 | "android/graphics/apex/android_region.cpp", |
Derek Sollenberger | 9ca5bbe | 2019-08-14 15:50:59 -0400 | [diff] [blame] | 347 | "android/graphics/apex/android_paint.cpp", |
Derek Sollenberger | 40d7813 | 2019-08-12 11:06:08 -0400 | [diff] [blame] | 348 | |
Derek Sollenberger | 5d0ca63 | 2019-07-19 16:17:12 -0400 | [diff] [blame] | 349 | "android_graphics_Canvas.cpp", |
| 350 | "android_graphics_ColorSpace.cpp", |
| 351 | "android_graphics_drawable_AnimatedVectorDrawable.cpp", |
| 352 | "android_graphics_drawable_VectorDrawable.cpp", |
| 353 | "android_graphics_Picture.cpp", |
| 354 | "android_nio_utils.cpp", |
| 355 | "android_view_DisplayListCanvas.cpp", |
| 356 | "android_view_RenderNode.cpp", |
| 357 | "android_util_PathParser.cpp", |
| 358 | |
| 359 | "android/graphics/AnimatedImageDrawable.cpp", |
| 360 | "android/graphics/Bitmap.cpp", |
| 361 | "android/graphics/BitmapFactory.cpp", |
| 362 | "android/graphics/ByteBufferStreamAdaptor.cpp", |
| 363 | "android/graphics/Camera.cpp", |
| 364 | "android/graphics/CanvasProperty.cpp", |
| 365 | "android/graphics/ColorFilter.cpp", |
| 366 | "android/graphics/CreateJavaOutputStreamAdaptor.cpp", |
| 367 | "android/graphics/FontFamily.cpp", |
| 368 | "android/graphics/FontUtils.cpp", |
| 369 | "android/graphics/Graphics.cpp", |
| 370 | "android/graphics/ImageDecoder.cpp", |
| 371 | "android/graphics/Interpolator.cpp", |
| 372 | "android/graphics/MaskFilter.cpp", |
| 373 | "android/graphics/Matrix.cpp", |
| 374 | "android/graphics/NinePatch.cpp", |
| 375 | "android/graphics/NinePatchPeeker.cpp", |
| 376 | "android/graphics/Paint.cpp", |
| 377 | "android/graphics/PaintFilter.cpp", |
| 378 | "android/graphics/Path.cpp", |
| 379 | "android/graphics/PathEffect.cpp", |
| 380 | "android/graphics/PathMeasure.cpp", |
| 381 | "android/graphics/Picture.cpp", |
| 382 | "android/graphics/Region.cpp", |
| 383 | "android/graphics/Shader.cpp", |
| 384 | "android/graphics/Typeface.cpp", |
| 385 | "android/graphics/Utils.cpp", |
| 386 | "android/graphics/YuvToJpegEncoder.cpp", |
| 387 | "android/graphics/fonts/Font.cpp", |
| 388 | "android/graphics/fonts/FontFamily.cpp", |
| 389 | "android/graphics/text/LineBreaker.cpp", |
| 390 | "android/graphics/text/MeasuredText.cpp", |
| 391 | ], |
| 392 | |
| 393 | local_include_dirs: [ |
| 394 | "include", // NEEDED FOR ANDROID RUNTIME |
| 395 | "android/graphics", |
Derek Sollenberger | c287a77 | 2019-08-02 13:44:31 -0400 | [diff] [blame] | 396 | "android/graphics/apex/include", |
Derek Sollenberger | 5d0ca63 | 2019-07-19 16:17:12 -0400 | [diff] [blame] | 397 | ], |
| 398 | |
| 399 | export_include_dirs: [ |
Derek Sollenberger | c287a77 | 2019-08-02 13:44:31 -0400 | [diff] [blame] | 400 | "android/graphics/apex/include", |
Derek Sollenberger | 5d0ca63 | 2019-07-19 16:17:12 -0400 | [diff] [blame] | 401 | ], |
| 402 | |
| 403 | include_dirs: [ |
| 404 | "external/skia/include/private", |
| 405 | "external/skia/src/codec", |
| 406 | "external/skia/src/core", |
| 407 | "external/skia/src/effects", |
| 408 | "external/skia/src/image", |
| 409 | "external/skia/src/images", |
| 410 | ], |
| 411 | |
| 412 | shared_libs: [ |
| 413 | "libbase", |
| 414 | "libcutils", |
| 415 | "libharfbuzz_ng", |
| 416 | "libhwui", |
| 417 | "liblog", |
| 418 | "libminikin", |
| 419 | "libnativehelper", |
| 420 | "libz", |
| 421 | "libziparchive", |
| 422 | "libjpeg", |
| 423 | ], |
| 424 | |
| 425 | target: { |
| 426 | android: { |
| 427 | srcs: [ // sources that depend on android only libraries |
Derek Sollenberger | c287a77 | 2019-08-02 13:44:31 -0400 | [diff] [blame] | 428 | "android/graphics/apex/android_canvas.cpp", |
Derek Sollenberger | eec1b86 | 2019-10-24 09:44:55 -0400 | [diff] [blame] | 429 | "android/graphics/apex/renderthread.cpp", |
Derek Sollenberger | 9ca0c52 | 2019-08-29 13:08:02 -0400 | [diff] [blame] | 430 | "android/graphics/apex/jni_runtime.cpp", |
Derek Sollenberger | c287a77 | 2019-08-02 13:44:31 -0400 | [diff] [blame] | 431 | |
Derek Sollenberger | 5d0ca63 | 2019-07-19 16:17:12 -0400 | [diff] [blame] | 432 | "android_view_TextureLayer.cpp", |
| 433 | "android_view_ThreadedRenderer.cpp", |
| 434 | "android/graphics/BitmapRegionDecoder.cpp", |
| 435 | "android/graphics/GIFMovie.cpp", |
Derek Sollenberger | 5d0ca63 | 2019-07-19 16:17:12 -0400 | [diff] [blame] | 436 | "android/graphics/Movie.cpp", |
| 437 | "android/graphics/MovieImpl.cpp", |
Derek Sollenberger | 5d0ca63 | 2019-07-19 16:17:12 -0400 | [diff] [blame] | 438 | "android/graphics/pdf/PdfDocument.cpp", |
| 439 | "android/graphics/pdf/PdfEditor.cpp", |
| 440 | "android/graphics/pdf/PdfRenderer.cpp", |
| 441 | "android/graphics/pdf/PdfUtils.cpp", |
| 442 | ], |
| 443 | shared_libs: [ |
| 444 | "libandroidfw", |
Alec Mouri | 22d753f | 2019-09-05 17:11:45 -0700 | [diff] [blame] | 445 | "libnativedisplay", |
Derek Sollenberger | 5d0ca63 | 2019-07-19 16:17:12 -0400 | [diff] [blame] | 446 | "libnativewindow", |
| 447 | "libgui", |
| 448 | "libpdfium", |
| 449 | ], |
| 450 | static_libs: [ |
| 451 | "libgif", |
| 452 | ], |
| 453 | }, |
| 454 | host: { |
| 455 | cflags: [ |
| 456 | "-Wno-unused-const-variable", |
| 457 | "-Wno-unused-function", |
| 458 | ], |
| 459 | static_libs: [ |
| 460 | "libandroidfw", |
| 461 | ], |
| 462 | } |
| 463 | }, |
| 464 | } |