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", |
| 113 | "android_view_KeyCharacterMap.cpp", |
| 114 | "android_view_KeyEvent.cpp", |
| 115 | "android_view_MotionEvent.cpp", |
| 116 | "android_view_PointerIcon.cpp", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 117 | "android_view_RenderNodeAnimator.cpp", |
| 118 | "android_view_Surface.cpp", |
| 119 | "android_view_SurfaceControl.cpp", |
Robert Carr | 48ec4e0 | 2019-07-16 14:28:47 -0700 | [diff] [blame] | 120 | "android_graphics_BLASTBufferQueue.cpp", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 121 | "android_view_SurfaceSession.cpp", |
| 122 | "android_view_TextureView.cpp", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 123 | "android_view_VelocityTracker.cpp", |
| 124 | "android_text_AndroidCharacter.cpp", |
| 125 | "android_text_Hyphenator.cpp", |
| 126 | "android_os_Debug.cpp", |
| 127 | "android_os_GraphicsEnvironment.cpp", |
Ytai Ben-Tsvi | 4659e18 | 2019-11-06 09:53:34 -0800 | [diff] [blame] | 128 | "android_os_HidlMemory.cpp", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 129 | "android_os_HidlSupport.cpp", |
| 130 | "android_os_HwBinder.cpp", |
| 131 | "android_os_HwBlob.cpp", |
| 132 | "android_os_HwParcel.cpp", |
| 133 | "android_os_HwRemoteBinder.cpp", |
| 134 | "android_os_NativeHandle.cpp", |
| 135 | "android_os_MemoryFile.cpp", |
Jerome Gaillard | 482d755 | 2019-07-02 19:32:39 +0100 | [diff] [blame] | 136 | "android_os_MessageQueue.cpp", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 137 | "android_os_Parcel.cpp", |
| 138 | "android_os_SELinux.cpp", |
| 139 | "android_os_SharedMemory.cpp", |
Jerome Gaillard | 482d755 | 2019-07-02 19:32:39 +0100 | [diff] [blame] | 140 | "android_os_Trace.cpp", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 141 | "android_os_UEventObserver.cpp", |
| 142 | "android_os_VintfObject.cpp", |
| 143 | "android_os_VintfRuntimeInfo.cpp", |
Songchun Fan | 3c82a30 | 2019-11-29 14:23:45 -0800 | [diff] [blame] | 144 | "android_os_incremental_IncrementalManager.cpp", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 145 | "android_net_LocalSocketImpl.cpp", |
| 146 | "android_net_NetUtils.cpp", |
Alex Buynytskyy | 89247d2 | 2019-12-11 12:07:23 -0800 | [diff] [blame] | 147 | "android_service_DataLoaderService.cpp", |
Jerome Gaillard | 482d755 | 2019-07-02 19:32:39 +0100 | [diff] [blame] | 148 | "android_util_AssetManager.cpp", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 149 | "android_util_Binder.cpp", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 150 | "android_util_StatsLog.cpp", |
| 151 | "android_util_MemoryIntArray.cpp", |
| 152 | "android_util_Process.cpp", |
Jerome Gaillard | 482d755 | 2019-07-02 19:32:39 +0100 | [diff] [blame] | 153 | "android_util_StringBlock.cpp", |
| 154 | "android_util_XmlBlock.cpp", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 155 | "android_util_jar_StrictJarFile.cpp", |
Jean-Michel Trivi | 21cd541 | 2019-10-30 08:16:51 -0700 | [diff] [blame] | 156 | "android_media_AudioDeviceAddress.cpp", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 157 | "android_media_AudioEffectDescriptor.cpp", |
| 158 | "android_media_AudioRecord.cpp", |
| 159 | "android_media_AudioSystem.cpp", |
| 160 | "android_media_AudioTrack.cpp", |
| 161 | "android_media_AudioAttributes.cpp", |
| 162 | "android_media_AudioProductStrategies.cpp", |
| 163 | "android_media_AudioVolumeGroups.cpp", |
| 164 | "android_media_AudioVolumeGroupCallback.cpp", |
| 165 | "android_media_DeviceCallback.cpp", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 166 | "android_media_MediaMetricsJNI.cpp", |
| 167 | "android_media_MicrophoneInfo.cpp", |
| 168 | "android_media_midi.cpp", |
| 169 | "android_media_RemoteDisplay.cpp", |
| 170 | "android_media_ToneGenerator.cpp", |
| 171 | "android_hardware_Camera.cpp", |
| 172 | "android_hardware_camera2_CameraMetadata.cpp", |
| 173 | "android_hardware_camera2_legacy_LegacyCameraDevice.cpp", |
| 174 | "android_hardware_camera2_legacy_PerfMeasurement.cpp", |
| 175 | "android_hardware_camera2_DngCreator.cpp", |
| 176 | "android_hardware_display_DisplayViewport.cpp", |
| 177 | "android_hardware_HardwareBuffer.cpp", |
| 178 | "android_hardware_SensorManager.cpp", |
| 179 | "android_hardware_SerialPort.cpp", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 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", |
Suren Baghdasaryan | 5bf4706 | 2019-11-25 19:24:46 -0800 | [diff] [blame] | 211 | "libdmabufinfo", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 212 | "libgif", |
| 213 | "libseccomp_policy", |
| 214 | "libgrallocusage", |
| 215 | "libscrypt_static", |
| 216 | "libstatssocket", |
| 217 | ], |
| 218 | |
| 219 | shared_libs: [ |
Jerome Gaillard | 1d27830 | 2019-06-28 13:37:33 +0100 | [diff] [blame] | 220 | "libandroidicu", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 221 | "libbpf_android", |
| 222 | "libnetdbpf", |
| 223 | "libnetdutils", |
| 224 | "libmemtrack", |
| 225 | "libandroidfw", |
| 226 | "libappfuse", |
| 227 | "libcrypto", |
| 228 | "libcutils", |
| 229 | "libdebuggerd_client", |
| 230 | "libutils", |
| 231 | "libbinder", |
| 232 | "libui", |
| 233 | "libgraphicsenv", |
| 234 | "libgui", |
| 235 | "libsensor", |
| 236 | "libinput", |
| 237 | "libcamera_client", |
| 238 | "libcamera_metadata", |
| 239 | "libsqlite", |
| 240 | "libEGL", |
| 241 | "libGLESv1_CM", |
| 242 | "libGLESv2", |
| 243 | "libGLESv3", |
Songchun Fan | 1a52cf7 | 2019-12-05 13:00:47 -0800 | [diff] [blame] | 244 | "libincfs", |
Alex Buynytskyy | 89247d2 | 2019-12-11 12:07:23 -0800 | [diff] [blame] | 245 | "libdataloader", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 246 | "libvulkan", |
| 247 | "libETC1", |
| 248 | "libhardware", |
| 249 | "libhardware_legacy", |
| 250 | "libselinux", |
| 251 | "libmedia", |
| 252 | "libmedia_helper", |
| 253 | "libmediametrics", |
| 254 | "libmeminfo", |
| 255 | "libaudioclient", |
jiabin | 3436a24 | 2019-11-04 14:16:21 -0800 | [diff] [blame] | 256 | "libaudiofoundation", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 257 | "libaudiopolicy", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 258 | "libusbhost", |
| 259 | "libpdfium", |
| 260 | "libimg_utils", |
| 261 | "libnetd_client", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 262 | "libprocessgroup", |
| 263 | "libnativebridge_lazy", |
| 264 | "libnativeloader_lazy", |
| 265 | "libmemunreachable", |
| 266 | "libhidlbase", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 267 | "libvintf", |
Alec Mouri | 22d753f | 2019-09-05 17:11:45 -0700 | [diff] [blame] | 268 | "libnativedisplay", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 269 | "libnativewindow", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 270 | "libdl", |
| 271 | "libdl_android", |
| 272 | "libstatslog", |
| 273 | "server_configurable_flags", |
| 274 | ], |
| 275 | export_shared_lib_headers: [ |
| 276 | // AndroidRuntime.h depends on nativehelper/jni.h |
| 277 | "libnativehelper", |
| 278 | |
| 279 | // our headers include libnativewindow's public headers |
| 280 | "libnativewindow", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 281 | ], |
| 282 | generated_sources: ["android_util_StatsLogInternal.cpp"], |
Christopher Ferris | 8269f3a3 | 2019-09-11 19:08:52 -0700 | [diff] [blame] | 283 | header_libs: ["bionic_libc_platform_headers"], |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 284 | }, |
| 285 | host: { |
| 286 | cflags: [ |
| 287 | "-Wno-unused-const-variable", |
| 288 | "-Wno-unused-function", |
| 289 | ], |
| 290 | srcs: [ |
| 291 | "LayoutlibLoader.cpp", |
| 292 | ], |
| 293 | include_dirs: [ |
| 294 | "external/vulkan-headers/include", |
Fedor Kudasov | a887116 | 2019-07-04 12:54:28 +0100 | [diff] [blame] | 295 | "frameworks/native/libs/nativebase/include", |
| 296 | "frameworks/native/libs/nativewindow/include" |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 297 | ], |
Jerome Gaillard | 1d27830 | 2019-06-28 13:37:33 +0100 | [diff] [blame] | 298 | shared_libs: [ |
| 299 | "libicui18n", |
| 300 | "libicuuc", |
| 301 | ], |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 302 | static_libs: [ |
| 303 | "libandroidfw", |
| 304 | "libcompiler_rt", |
| 305 | "libutils", |
Fedor Kudasov | a887116 | 2019-07-04 12:54:28 +0100 | [diff] [blame] | 306 | "libhostgraphics", |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 307 | ], |
| 308 | }, |
Jerome Gaillard | 482d755 | 2019-07-02 19:32:39 +0100 | [diff] [blame] | 309 | linux_glibc: { |
| 310 | srcs: [ |
| 311 | "android_content_res_ApkAssets.cpp", |
| 312 | "android_os_MessageQueue.cpp", |
| 313 | "android_os_Trace.cpp", |
| 314 | "android_util_AssetManager.cpp", |
Brett Chabot | dcb31f2 | 2019-06-28 15:59:33 -0700 | [diff] [blame] | 315 | "android_util_FileObserver.cpp", |
Jerome Gaillard | 482d755 | 2019-07-02 19:32:39 +0100 | [diff] [blame] | 316 | "android_util_StringBlock.cpp", |
| 317 | "android_util_XmlBlock.cpp", |
| 318 | ], |
| 319 | }, |
Jerome Gaillard | 21e7e2d | 2019-05-14 14:34:46 +0100 | [diff] [blame] | 320 | }, |
Fedor Kudasov | 182cbf9 | 2019-06-05 10:30:20 +0100 | [diff] [blame] | 321 | } |
Derek Sollenberger | 5d0ca63 | 2019-07-19 16:17:12 -0400 | [diff] [blame] | 322 | |
| 323 | cc_library_static { |
| 324 | name: "libandroid_graphics", |
| 325 | host_supported: true, |
| 326 | cflags: [ |
| 327 | "-Wno-unused-parameter", |
| 328 | "-Wno-non-virtual-dtor", |
| 329 | "-Wno-maybe-uninitialized", |
| 330 | "-Wno-parentheses", |
| 331 | |
| 332 | "-DGL_GLEXT_PROTOTYPES", |
| 333 | "-DEGL_EGLEXT_PROTOTYPES", |
| 334 | |
| 335 | "-DU_USING_ICU_NAMESPACE=0", |
| 336 | |
| 337 | "-Wall", |
| 338 | "-Werror", |
| 339 | "-Wno-error=deprecated-declarations", |
| 340 | "-Wunused", |
| 341 | "-Wunreachable-code", |
| 342 | ], |
| 343 | |
| 344 | cppflags: ["-Wno-conversion-null"], |
| 345 | |
| 346 | srcs: [ |
Derek Sollenberger | 9ca5bbe | 2019-08-14 15:50:59 -0400 | [diff] [blame] | 347 | "android/graphics/apex/android_bitmap.cpp", |
Derek Sollenberger | 40d7813 | 2019-08-12 11:06:08 -0400 | [diff] [blame] | 348 | "android/graphics/apex/android_region.cpp", |
Derek Sollenberger | 9ca5bbe | 2019-08-14 15:50:59 -0400 | [diff] [blame] | 349 | "android/graphics/apex/android_paint.cpp", |
Derek Sollenberger | 40d7813 | 2019-08-12 11:06:08 -0400 | [diff] [blame] | 350 | |
Derek Sollenberger | 5d0ca63 | 2019-07-19 16:17:12 -0400 | [diff] [blame] | 351 | "android_graphics_Canvas.cpp", |
| 352 | "android_graphics_ColorSpace.cpp", |
| 353 | "android_graphics_drawable_AnimatedVectorDrawable.cpp", |
| 354 | "android_graphics_drawable_VectorDrawable.cpp", |
Derek Sollenberger | c4ef2c7 | 2019-12-09 12:38:59 -0500 | [diff] [blame] | 355 | "android_graphics_HardwareRendererObserver.cpp", |
Derek Sollenberger | 5d0ca63 | 2019-07-19 16:17:12 -0400 | [diff] [blame] | 356 | "android_graphics_Picture.cpp", |
| 357 | "android_nio_utils.cpp", |
| 358 | "android_view_DisplayListCanvas.cpp", |
| 359 | "android_view_RenderNode.cpp", |
| 360 | "android_util_PathParser.cpp", |
| 361 | |
| 362 | "android/graphics/AnimatedImageDrawable.cpp", |
| 363 | "android/graphics/Bitmap.cpp", |
| 364 | "android/graphics/BitmapFactory.cpp", |
| 365 | "android/graphics/ByteBufferStreamAdaptor.cpp", |
| 366 | "android/graphics/Camera.cpp", |
| 367 | "android/graphics/CanvasProperty.cpp", |
| 368 | "android/graphics/ColorFilter.cpp", |
| 369 | "android/graphics/CreateJavaOutputStreamAdaptor.cpp", |
| 370 | "android/graphics/FontFamily.cpp", |
| 371 | "android/graphics/FontUtils.cpp", |
| 372 | "android/graphics/Graphics.cpp", |
| 373 | "android/graphics/ImageDecoder.cpp", |
| 374 | "android/graphics/Interpolator.cpp", |
| 375 | "android/graphics/MaskFilter.cpp", |
| 376 | "android/graphics/Matrix.cpp", |
| 377 | "android/graphics/NinePatch.cpp", |
| 378 | "android/graphics/NinePatchPeeker.cpp", |
| 379 | "android/graphics/Paint.cpp", |
| 380 | "android/graphics/PaintFilter.cpp", |
| 381 | "android/graphics/Path.cpp", |
| 382 | "android/graphics/PathEffect.cpp", |
| 383 | "android/graphics/PathMeasure.cpp", |
| 384 | "android/graphics/Picture.cpp", |
| 385 | "android/graphics/Region.cpp", |
| 386 | "android/graphics/Shader.cpp", |
| 387 | "android/graphics/Typeface.cpp", |
| 388 | "android/graphics/Utils.cpp", |
| 389 | "android/graphics/YuvToJpegEncoder.cpp", |
| 390 | "android/graphics/fonts/Font.cpp", |
| 391 | "android/graphics/fonts/FontFamily.cpp", |
| 392 | "android/graphics/text/LineBreaker.cpp", |
| 393 | "android/graphics/text/MeasuredText.cpp", |
| 394 | ], |
| 395 | |
| 396 | local_include_dirs: [ |
| 397 | "include", // NEEDED FOR ANDROID RUNTIME |
| 398 | "android/graphics", |
Derek Sollenberger | c287a77 | 2019-08-02 13:44:31 -0400 | [diff] [blame] | 399 | "android/graphics/apex/include", |
Derek Sollenberger | 5d0ca63 | 2019-07-19 16:17:12 -0400 | [diff] [blame] | 400 | ], |
| 401 | |
| 402 | export_include_dirs: [ |
Derek Sollenberger | c287a77 | 2019-08-02 13:44:31 -0400 | [diff] [blame] | 403 | "android/graphics/apex/include", |
Derek Sollenberger | 5d0ca63 | 2019-07-19 16:17:12 -0400 | [diff] [blame] | 404 | ], |
| 405 | |
| 406 | include_dirs: [ |
| 407 | "external/skia/include/private", |
| 408 | "external/skia/src/codec", |
| 409 | "external/skia/src/core", |
| 410 | "external/skia/src/effects", |
| 411 | "external/skia/src/image", |
| 412 | "external/skia/src/images", |
| 413 | ], |
| 414 | |
| 415 | shared_libs: [ |
| 416 | "libbase", |
| 417 | "libcutils", |
| 418 | "libharfbuzz_ng", |
| 419 | "libhwui", |
| 420 | "liblog", |
| 421 | "libminikin", |
| 422 | "libnativehelper", |
| 423 | "libz", |
| 424 | "libziparchive", |
| 425 | "libjpeg", |
| 426 | ], |
| 427 | |
| 428 | target: { |
| 429 | android: { |
| 430 | srcs: [ // sources that depend on android only libraries |
Derek Sollenberger | c287a77 | 2019-08-02 13:44:31 -0400 | [diff] [blame] | 431 | "android/graphics/apex/android_canvas.cpp", |
Derek Sollenberger | eec1b86 | 2019-10-24 09:44:55 -0400 | [diff] [blame] | 432 | "android/graphics/apex/renderthread.cpp", |
Derek Sollenberger | 9ca0c52 | 2019-08-29 13:08:02 -0400 | [diff] [blame] | 433 | "android/graphics/apex/jni_runtime.cpp", |
Derek Sollenberger | c287a77 | 2019-08-02 13:44:31 -0400 | [diff] [blame] | 434 | |
Derek Sollenberger | 5d0ca63 | 2019-07-19 16:17:12 -0400 | [diff] [blame] | 435 | "android_view_TextureLayer.cpp", |
| 436 | "android_view_ThreadedRenderer.cpp", |
| 437 | "android/graphics/BitmapRegionDecoder.cpp", |
| 438 | "android/graphics/GIFMovie.cpp", |
Derek Sollenberger | 5d0ca63 | 2019-07-19 16:17:12 -0400 | [diff] [blame] | 439 | "android/graphics/Movie.cpp", |
| 440 | "android/graphics/MovieImpl.cpp", |
Derek Sollenberger | 5d0ca63 | 2019-07-19 16:17:12 -0400 | [diff] [blame] | 441 | "android/graphics/pdf/PdfDocument.cpp", |
| 442 | "android/graphics/pdf/PdfEditor.cpp", |
| 443 | "android/graphics/pdf/PdfRenderer.cpp", |
| 444 | "android/graphics/pdf/PdfUtils.cpp", |
| 445 | ], |
| 446 | shared_libs: [ |
| 447 | "libandroidfw", |
Alec Mouri | 22d753f | 2019-09-05 17:11:45 -0700 | [diff] [blame] | 448 | "libnativedisplay", |
Derek Sollenberger | 5d0ca63 | 2019-07-19 16:17:12 -0400 | [diff] [blame] | 449 | "libnativewindow", |
| 450 | "libgui", |
| 451 | "libpdfium", |
| 452 | ], |
| 453 | static_libs: [ |
| 454 | "libgif", |
| 455 | ], |
| 456 | }, |
| 457 | host: { |
| 458 | cflags: [ |
| 459 | "-Wno-unused-const-variable", |
| 460 | "-Wno-unused-function", |
| 461 | ], |
| 462 | static_libs: [ |
| 463 | "libandroidfw", |
| 464 | ], |
| 465 | } |
| 466 | }, |
| 467 | } |