Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 1 | |
| 2 | genrule { |
| 3 | name: "android_util_StatsLog.cpp", |
| 4 | tools: ["stats-log-api-gen"], |
| 5 | cmd: "$(location stats-log-api-gen) --jni $(genDir)/android_util_StatsLog.cpp", |
| 6 | out: [ |
| 7 | "android_util_StatsLog.cpp", |
| 8 | ], |
| 9 | } |
| 10 | |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 11 | cc_library_shared { |
| 12 | name: "libandroid_runtime", |
| 13 | |
| 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", |
| 30 | |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 31 | // TODO: Linear blending should be enabled by default, but we are |
| 32 | // TODO: making it an opt-in while it's a work in progress |
| 33 | //"-DANDROID_ENABLE_LINEAR_BLENDING", |
| 34 | ], |
| 35 | |
| 36 | cppflags: ["-Wno-conversion-null"], |
John Reck | f8441e6 | 2017-10-23 13:10:41 -0700 | [diff] [blame] | 37 | cpp_std: "c++17", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 38 | |
| 39 | srcs: [ |
| 40 | "AndroidRuntime.cpp", |
| 41 | "com_android_internal_content_NativeLibraryHelper.cpp", |
| 42 | "com_google_android_gles_jni_EGLImpl.cpp", |
| 43 | "com_google_android_gles_jni_GLImpl.cpp", // TODO: .arm |
| 44 | "android_app_Activity.cpp", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 45 | "android_app_NativeActivity.cpp", |
| 46 | "android_app_admin_SecurityLog.cpp", |
| 47 | "android_opengl_EGL14.cpp", |
| 48 | "android_opengl_EGLExt.cpp", |
| 49 | "android_opengl_GLES10.cpp", |
| 50 | "android_opengl_GLES10Ext.cpp", |
| 51 | "android_opengl_GLES11.cpp", |
| 52 | "android_opengl_GLES11Ext.cpp", |
| 53 | "android_opengl_GLES20.cpp", |
| 54 | "android_opengl_GLES30.cpp", |
| 55 | "android_opengl_GLES31.cpp", |
| 56 | "android_opengl_GLES31Ext.cpp", |
| 57 | "android_opengl_GLES32.cpp", |
| 58 | "android_database_CursorWindow.cpp", |
| 59 | "android_database_SQLiteCommon.cpp", |
| 60 | "android_database_SQLiteConnection.cpp", |
| 61 | "android_database_SQLiteGlobal.cpp", |
| 62 | "android_database_SQLiteDebug.cpp", |
| 63 | "android_graphics_drawable_AnimatedVectorDrawable.cpp", |
| 64 | "android_graphics_drawable_VectorDrawable.cpp", |
| 65 | "android_view_DisplayEventReceiver.cpp", |
| 66 | "android_view_DisplayListCanvas.cpp", |
John Reck | 9d8d99d | 2018-02-21 12:55:41 -0800 | [diff] [blame] | 67 | "android_view_TextureLayer.cpp", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 68 | "android_view_InputChannel.cpp", |
| 69 | "android_view_InputDevice.cpp", |
| 70 | "android_view_InputEventReceiver.cpp", |
| 71 | "android_view_InputEventSender.cpp", |
| 72 | "android_view_InputQueue.cpp", |
| 73 | "android_view_KeyCharacterMap.cpp", |
| 74 | "android_view_KeyEvent.cpp", |
| 75 | "android_view_MotionEvent.cpp", |
| 76 | "android_view_PointerIcon.cpp", |
| 77 | "android_view_RenderNode.cpp", |
| 78 | "android_view_RenderNodeAnimator.cpp", |
| 79 | "android_view_Surface.cpp", |
| 80 | "android_view_SurfaceControl.cpp", |
| 81 | "android_view_SurfaceSession.cpp", |
| 82 | "android_view_TextureView.cpp", |
| 83 | "android_view_ThreadedRenderer.cpp", |
| 84 | "android_view_VelocityTracker.cpp", |
| 85 | "android_text_AndroidCharacter.cpp", |
Seigo Nonaka | 44a1df2 | 2017-08-31 18:22:38 -0700 | [diff] [blame] | 86 | "android_text_Hyphenator.cpp", |
Seigo Nonaka | 9d3bd08 | 2018-01-11 10:02:12 -0800 | [diff] [blame] | 87 | "android_text_MeasuredParagraph.cpp", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 88 | "android_text_StaticLayout.cpp", |
| 89 | "android_os_Debug.cpp", |
| 90 | "android_os_GraphicsEnvironment.cpp", |
Yifan Hong | bb0bd00 | 2017-11-14 16:14:04 -0800 | [diff] [blame] | 91 | "android_os_HidlSupport.cpp", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 92 | "android_os_HwBinder.cpp", |
| 93 | "android_os_HwBlob.cpp", |
| 94 | "android_os_HwParcel.cpp", |
| 95 | "android_os_HwRemoteBinder.cpp", |
| 96 | "android_os_MemoryFile.cpp", |
| 97 | "android_os_MessageQueue.cpp", |
| 98 | "android_os_Parcel.cpp", |
| 99 | "android_os_SELinux.cpp", |
John Reck | dea6a02 | 2017-05-25 17:09:33 -0700 | [diff] [blame] | 100 | "android_os_SharedMemory.cpp", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 101 | "android_os_SystemClock.cpp", |
| 102 | "android_os_SystemProperties.cpp", |
| 103 | "android_os_Trace.cpp", |
| 104 | "android_os_UEventObserver.cpp", |
| 105 | "android_os_VintfObject.cpp", |
| 106 | "android_os_VintfRuntimeInfo.cpp", |
| 107 | "android_net_LocalSocketImpl.cpp", |
| 108 | "android_net_NetUtils.cpp", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 109 | "android_nio_utils.cpp", |
| 110 | "android_util_AssetManager.cpp", |
| 111 | "android_util_Binder.cpp", |
| 112 | "android_util_EventLog.cpp", |
Adam Lesinski | bde1df2 | 2018-02-09 11:12:22 -0800 | [diff] [blame] | 113 | "android_util_Log.cpp", |
Adam Lesinski | bebfcc4 | 2018-02-12 14:27:46 -0800 | [diff] [blame] | 114 | "android_util_MemoryIntArray.cpp", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 115 | "android_util_PathParser.cpp", |
| 116 | "android_util_Process.cpp", |
| 117 | "android_util_StringBlock.cpp", |
| 118 | "android_util_XmlBlock.cpp", |
| 119 | "android_util_jar_StrictJarFile.cpp", |
| 120 | "android_graphics_Canvas.cpp", |
| 121 | "android_graphics_Picture.cpp", |
Leon Scroggins III | 671cce2 | 2018-01-14 16:52:17 -0500 | [diff] [blame] | 122 | "android/graphics/AnimatedImageDrawable.cpp", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 123 | "android/graphics/Bitmap.cpp", |
| 124 | "android/graphics/BitmapFactory.cpp", |
Leon Scroggins III | 0c01dbf | 2017-10-20 14:08:11 -0400 | [diff] [blame] | 125 | "android/graphics/ByteBufferStreamAdaptor.cpp", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 126 | "android/graphics/Camera.cpp", |
| 127 | "android/graphics/CanvasProperty.cpp", |
| 128 | "android/graphics/ColorFilter.cpp", |
| 129 | "android/graphics/DrawFilter.cpp", |
| 130 | "android/graphics/FontFamily.cpp", |
| 131 | "android/graphics/FontUtils.cpp", |
| 132 | "android/graphics/CreateJavaOutputStreamAdaptor.cpp", |
| 133 | "android/graphics/GIFMovie.cpp", |
| 134 | "android/graphics/GraphicBuffer.cpp", |
| 135 | "android/graphics/Graphics.cpp", |
| 136 | "android/graphics/HarfBuzzNGFaceSkia.cpp", |
Leon Scroggins III | 0c01dbf | 2017-10-20 14:08:11 -0400 | [diff] [blame] | 137 | "android/graphics/ImageDecoder.cpp", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 138 | "android/graphics/Interpolator.cpp", |
| 139 | "android/graphics/MaskFilter.cpp", |
| 140 | "android/graphics/Matrix.cpp", |
| 141 | "android/graphics/Movie.cpp", |
| 142 | "android/graphics/MovieImpl.cpp", |
| 143 | "android/graphics/NinePatch.cpp", |
| 144 | "android/graphics/NinePatchPeeker.cpp", |
| 145 | "android/graphics/Paint.cpp", |
| 146 | "android/graphics/Path.cpp", |
| 147 | "android/graphics/PathMeasure.cpp", |
| 148 | "android/graphics/PathEffect.cpp", |
| 149 | "android/graphics/Picture.cpp", |
| 150 | "android/graphics/BitmapRegionDecoder.cpp", |
| 151 | "android/graphics/Region.cpp", |
| 152 | "android/graphics/Shader.cpp", |
| 153 | "android/graphics/SurfaceTexture.cpp", |
| 154 | "android/graphics/Typeface.cpp", |
| 155 | "android/graphics/Utils.cpp", |
| 156 | "android/graphics/YuvToJpegEncoder.cpp", |
| 157 | "android/graphics/pdf/PdfDocument.cpp", |
| 158 | "android/graphics/pdf/PdfEditor.cpp", |
| 159 | "android/graphics/pdf/PdfRenderer.cpp", |
| 160 | "android/graphics/pdf/PdfUtils.cpp", |
| 161 | "android_media_AudioRecord.cpp", |
| 162 | "android_media_AudioSystem.cpp", |
| 163 | "android_media_AudioTrack.cpp", |
| 164 | "android_media_DeviceCallback.cpp", |
| 165 | "android_media_JetPlayer.cpp", |
Ray Essick | 510225b | 2018-01-24 14:27:16 -0800 | [diff] [blame] | 166 | "android_media_MediaMetricsJNI.cpp", |
jiabin | c0f4944 | 2018-01-05 10:23:50 -0800 | [diff] [blame] | 167 | "android_media_MicrophoneInfo.cpp", |
Paul McLean | 84b49130 | 2018-05-09 10:03:57 -0600 | [diff] [blame^] | 168 | "android_media_midi.cpp", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 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", |
Santos Cordon | ee8931e | 2017-04-05 10:31:15 -0700 | [diff] [blame] | 176 | "android_hardware_display_DisplayViewport.cpp", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 177 | "android_hardware_HardwareBuffer.cpp", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 178 | "android_hardware_SensorManager.cpp", |
| 179 | "android_hardware_SerialPort.cpp", |
| 180 | "android_hardware_SoundTrigger.cpp", |
| 181 | "android_hardware_UsbDevice.cpp", |
| 182 | "android_hardware_UsbDeviceConnection.cpp", |
| 183 | "android_hardware_UsbRequest.cpp", |
| 184 | "android_hardware_location_ActivityRecognitionHardware.cpp", |
| 185 | "android_util_FileObserver.cpp", |
| 186 | "android/opengl/poly_clip.cpp", // TODO: .arm |
| 187 | "android/opengl/util.cpp", |
| 188 | "android_server_NetworkManagementSocketTagger.cpp", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 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", |
Adam Lesinski | bebfcc4 | 2018-02-12 14:27:46 -0800 | [diff] [blame] | 195 | "android_content_res_ApkAssets.cpp", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 196 | "android_content_res_ObbScanner.cpp", |
| 197 | "android_content_res_Configuration.cpp", |
| 198 | "android_animation_PropertyValuesHolder.cpp", |
Bo Zhu | 0985613 | 2018-04-01 12:24:09 -0700 | [diff] [blame] | 199 | "android_security_Scrypt.cpp", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 200 | "com_android_internal_net_NetworkStatsFactory.cpp", |
Narayan Kamath | f9419f0 | 2017-06-15 11:35:38 +0100 | [diff] [blame] | 201 | "com_android_internal_os_ClassLoaderFactory.cpp", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 202 | "com_android_internal_os_FuseAppLoop.cpp", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 203 | "com_android_internal_os_Zygote.cpp", |
Jesse Hall | 1fe1dc0 | 2017-07-06 15:30:39 -0700 | [diff] [blame] | 204 | "com_android_internal_os_ZygoteInit.cpp", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 205 | "com_android_internal_util_VirtualRefBasePtr.cpp", |
| 206 | "com_android_internal_view_animation_NativeInterpolatorFactoryHelper.cpp", |
| 207 | "hwbinder/EphemeralStorage.cpp", |
| 208 | "fd_utils.cpp", |
| 209 | ], |
| 210 | |
| 211 | include_dirs: [ |
| 212 | // we need to access the private Bionic header |
| 213 | // <bionic_tls.h> in com_google_android_gles_jni_GLImpl.cpp |
| 214 | "bionic/libc/private", |
| 215 | |
| 216 | "external/skia/include/private", |
| 217 | "external/skia/src/codec", |
| 218 | "external/skia/src/core", |
| 219 | "external/skia/src/effects", |
| 220 | "external/skia/src/image", |
| 221 | "external/skia/src/images", |
| 222 | "frameworks/base/media/jni", |
| 223 | "libcore/include", |
| 224 | "system/media/camera/include", |
| 225 | "system/media/private/camera/include", |
| 226 | ], |
| 227 | |
| 228 | static_libs: [ |
| 229 | "libgif", |
| 230 | "libseccomp_policy", |
| 231 | "libselinux", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 232 | "libgrallocusage", |
Bo Zhu | 0985613 | 2018-04-01 12:24:09 -0700 | [diff] [blame] | 233 | "libscrypt_static", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 234 | ], |
| 235 | |
| 236 | shared_libs: [ |
Chenbo Feng | 828f1b4 | 2017-11-20 17:03:59 -0800 | [diff] [blame] | 237 | "libbpf", |
| 238 | "libnetdutils", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 239 | "libmemtrack", |
| 240 | "libandroidfw", |
| 241 | "libappfuse", |
| 242 | "libbase", |
Robert Sloan | ca1c192 | 2017-06-22 14:11:59 -0700 | [diff] [blame] | 243 | "libcrypto", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 244 | "libnativehelper", |
| 245 | "liblog", |
| 246 | "libcutils", |
| 247 | "libdebuggerd_client", |
| 248 | "libutils", |
| 249 | "libbinder", |
| 250 | "libui", |
Jiyong Park | 354ac499 | 2017-05-08 13:29:35 +0900 | [diff] [blame] | 251 | "libgraphicsenv", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 252 | "libgui", |
| 253 | "libsensor", |
| 254 | "libinput", |
| 255 | "libcamera_client", |
| 256 | "libcamera_metadata", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 257 | "libsqlite", |
| 258 | "libEGL", |
| 259 | "libGLESv1_CM", |
| 260 | "libGLESv2", |
| 261 | "libvulkan", |
| 262 | "libziparchive", |
| 263 | "libETC1", |
| 264 | "libhardware", |
| 265 | "libhardware_legacy", |
| 266 | "libselinux", |
| 267 | "libicuuc", |
| 268 | "libmedia", |
Ray Essick | 510225b | 2018-01-24 14:27:16 -0800 | [diff] [blame] | 269 | "libmediametrics", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 270 | "libaudioclient", |
| 271 | "libjpeg", |
| 272 | "libusbhost", |
| 273 | "libharfbuzz_ng", |
| 274 | "libz", |
| 275 | "libpdfium", |
| 276 | "libimg_utils", |
| 277 | "libnetd_client", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 278 | "libsoundtrigger", |
| 279 | "libminikin", |
| 280 | "libprocessgroup", |
| 281 | "libnativebridge", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 282 | "libnativeloader", |
| 283 | "libmemunreachable", |
| 284 | "libhidlbase", |
| 285 | "libhidltransport", |
| 286 | "libhwbinder", |
| 287 | "libvintf", |
| 288 | "libnativewindow", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 289 | "libhwui", |
| 290 | "libdl", |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 291 | "libstatslog", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 292 | ], |
| 293 | |
Yao Chen | d54f9dd | 2017-10-17 17:37:48 +0000 | [diff] [blame] | 294 | generated_sources: ["android_util_StatsLog.cpp"], |
| 295 | |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 296 | local_include_dirs: ["android/graphics"], |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 297 | export_include_dirs: [ |
| 298 | ".", |
| 299 | "include", |
| 300 | ], |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 301 | export_shared_lib_headers: [ |
| 302 | // AndroidRuntime.h depends on nativehelper/jni.h |
| 303 | "libnativehelper", |
| 304 | |
| 305 | // our headers include libnativewindow's public headers |
| 306 | "libnativewindow", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 307 | |
| 308 | // GraphicsJNI.h includes hwui headers |
| 309 | "libhwui", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 310 | ], |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 311 | } |