Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 1 | cc_library_shared { |
| 2 | name: "libandroid_runtime", |
| 3 | |
| 4 | cflags: [ |
| 5 | "-Wno-unused-parameter", |
| 6 | "-Wno-non-virtual-dtor", |
| 7 | "-Wno-maybe-uninitialized", |
| 8 | "-Wno-parentheses", |
| 9 | |
| 10 | "-DGL_GLEXT_PROTOTYPES", |
| 11 | "-DEGL_EGLEXT_PROTOTYPES", |
| 12 | |
| 13 | "-DU_USING_ICU_NAMESPACE=0", |
| 14 | |
| 15 | "-Wall", |
| 16 | "-Werror", |
| 17 | "-Wno-error=deprecated-declarations", |
| 18 | "-Wunused", |
| 19 | "-Wunreachable-code", |
| 20 | |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 21 | // TODO: Linear blending should be enabled by default, but we are |
| 22 | // TODO: making it an opt-in while it's a work in progress |
| 23 | //"-DANDROID_ENABLE_LINEAR_BLENDING", |
| 24 | ], |
| 25 | |
| 26 | cppflags: ["-Wno-conversion-null"], |
| 27 | |
| 28 | srcs: [ |
| 29 | "AndroidRuntime.cpp", |
| 30 | "com_android_internal_content_NativeLibraryHelper.cpp", |
| 31 | "com_google_android_gles_jni_EGLImpl.cpp", |
| 32 | "com_google_android_gles_jni_GLImpl.cpp", // TODO: .arm |
| 33 | "android_app_Activity.cpp", |
| 34 | "android_app_ApplicationLoaders.cpp", |
| 35 | "android_app_NativeActivity.cpp", |
| 36 | "android_app_admin_SecurityLog.cpp", |
| 37 | "android_opengl_EGL14.cpp", |
| 38 | "android_opengl_EGLExt.cpp", |
| 39 | "android_opengl_GLES10.cpp", |
| 40 | "android_opengl_GLES10Ext.cpp", |
| 41 | "android_opengl_GLES11.cpp", |
| 42 | "android_opengl_GLES11Ext.cpp", |
| 43 | "android_opengl_GLES20.cpp", |
| 44 | "android_opengl_GLES30.cpp", |
| 45 | "android_opengl_GLES31.cpp", |
| 46 | "android_opengl_GLES31Ext.cpp", |
| 47 | "android_opengl_GLES32.cpp", |
| 48 | "android_database_CursorWindow.cpp", |
| 49 | "android_database_SQLiteCommon.cpp", |
| 50 | "android_database_SQLiteConnection.cpp", |
| 51 | "android_database_SQLiteGlobal.cpp", |
| 52 | "android_database_SQLiteDebug.cpp", |
| 53 | "android_graphics_drawable_AnimatedVectorDrawable.cpp", |
| 54 | "android_graphics_drawable_VectorDrawable.cpp", |
| 55 | "android_view_DisplayEventReceiver.cpp", |
| 56 | "android_view_DisplayListCanvas.cpp", |
| 57 | "android_view_HardwareLayer.cpp", |
| 58 | "android_view_InputChannel.cpp", |
| 59 | "android_view_InputDevice.cpp", |
| 60 | "android_view_InputEventReceiver.cpp", |
| 61 | "android_view_InputEventSender.cpp", |
| 62 | "android_view_InputQueue.cpp", |
| 63 | "android_view_KeyCharacterMap.cpp", |
| 64 | "android_view_KeyEvent.cpp", |
| 65 | "android_view_MotionEvent.cpp", |
| 66 | "android_view_PointerIcon.cpp", |
| 67 | "android_view_RenderNode.cpp", |
| 68 | "android_view_RenderNodeAnimator.cpp", |
| 69 | "android_view_Surface.cpp", |
| 70 | "android_view_SurfaceControl.cpp", |
| 71 | "android_view_SurfaceSession.cpp", |
| 72 | "android_view_TextureView.cpp", |
| 73 | "android_view_ThreadedRenderer.cpp", |
| 74 | "android_view_VelocityTracker.cpp", |
| 75 | "android_text_AndroidCharacter.cpp", |
| 76 | "android_text_AndroidBidi.cpp", |
| 77 | "android_text_StaticLayout.cpp", |
| 78 | "android_os_Debug.cpp", |
| 79 | "android_os_GraphicsEnvironment.cpp", |
Yifan Hong | bb0bd00 | 2017-11-14 16:14:04 -0800 | [diff] [blame] | 80 | "android_os_HidlSupport.cpp", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 81 | "android_os_HwBinder.cpp", |
| 82 | "android_os_HwBlob.cpp", |
| 83 | "android_os_HwParcel.cpp", |
| 84 | "android_os_HwRemoteBinder.cpp", |
| 85 | "android_os_MemoryFile.cpp", |
| 86 | "android_os_MessageQueue.cpp", |
| 87 | "android_os_Parcel.cpp", |
| 88 | "android_os_SELinux.cpp", |
John Reck | dea6a02 | 2017-05-25 17:09:33 -0700 | [diff] [blame] | 89 | "android_os_SharedMemory.cpp", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 90 | "android_os_SystemClock.cpp", |
| 91 | "android_os_SystemProperties.cpp", |
| 92 | "android_os_Trace.cpp", |
| 93 | "android_os_UEventObserver.cpp", |
| 94 | "android_os_VintfObject.cpp", |
| 95 | "android_os_VintfRuntimeInfo.cpp", |
| 96 | "android_net_LocalSocketImpl.cpp", |
| 97 | "android_net_NetUtils.cpp", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 98 | "android_nio_utils.cpp", |
| 99 | "android_util_AssetManager.cpp", |
| 100 | "android_util_Binder.cpp", |
| 101 | "android_util_EventLog.cpp", |
| 102 | "android_util_MemoryIntArray.cpp", |
| 103 | "android_util_Log.cpp", |
| 104 | "android_util_PathParser.cpp", |
| 105 | "android_util_Process.cpp", |
| 106 | "android_util_StringBlock.cpp", |
| 107 | "android_util_XmlBlock.cpp", |
| 108 | "android_util_jar_StrictJarFile.cpp", |
| 109 | "android_graphics_Canvas.cpp", |
| 110 | "android_graphics_Picture.cpp", |
| 111 | "android/graphics/Bitmap.cpp", |
| 112 | "android/graphics/BitmapFactory.cpp", |
| 113 | "android/graphics/Camera.cpp", |
| 114 | "android/graphics/CanvasProperty.cpp", |
| 115 | "android/graphics/ColorFilter.cpp", |
| 116 | "android/graphics/DrawFilter.cpp", |
| 117 | "android/graphics/FontFamily.cpp", |
| 118 | "android/graphics/FontUtils.cpp", |
| 119 | "android/graphics/CreateJavaOutputStreamAdaptor.cpp", |
| 120 | "android/graphics/GIFMovie.cpp", |
| 121 | "android/graphics/GraphicBuffer.cpp", |
| 122 | "android/graphics/Graphics.cpp", |
| 123 | "android/graphics/HarfBuzzNGFaceSkia.cpp", |
| 124 | "android/graphics/Interpolator.cpp", |
| 125 | "android/graphics/MaskFilter.cpp", |
| 126 | "android/graphics/Matrix.cpp", |
| 127 | "android/graphics/Movie.cpp", |
| 128 | "android/graphics/MovieImpl.cpp", |
| 129 | "android/graphics/NinePatch.cpp", |
| 130 | "android/graphics/NinePatchPeeker.cpp", |
| 131 | "android/graphics/Paint.cpp", |
| 132 | "android/graphics/Path.cpp", |
| 133 | "android/graphics/PathMeasure.cpp", |
| 134 | "android/graphics/PathEffect.cpp", |
| 135 | "android/graphics/Picture.cpp", |
| 136 | "android/graphics/BitmapRegionDecoder.cpp", |
| 137 | "android/graphics/Region.cpp", |
| 138 | "android/graphics/Shader.cpp", |
| 139 | "android/graphics/SurfaceTexture.cpp", |
| 140 | "android/graphics/Typeface.cpp", |
| 141 | "android/graphics/Utils.cpp", |
| 142 | "android/graphics/YuvToJpegEncoder.cpp", |
| 143 | "android/graphics/pdf/PdfDocument.cpp", |
| 144 | "android/graphics/pdf/PdfEditor.cpp", |
| 145 | "android/graphics/pdf/PdfRenderer.cpp", |
| 146 | "android/graphics/pdf/PdfUtils.cpp", |
| 147 | "android_media_AudioRecord.cpp", |
| 148 | "android_media_AudioSystem.cpp", |
| 149 | "android_media_AudioTrack.cpp", |
| 150 | "android_media_DeviceCallback.cpp", |
| 151 | "android_media_JetPlayer.cpp", |
| 152 | "android_media_RemoteDisplay.cpp", |
| 153 | "android_media_ToneGenerator.cpp", |
| 154 | "android_hardware_Camera.cpp", |
| 155 | "android_hardware_camera2_CameraMetadata.cpp", |
| 156 | "android_hardware_camera2_legacy_LegacyCameraDevice.cpp", |
| 157 | "android_hardware_camera2_legacy_PerfMeasurement.cpp", |
| 158 | "android_hardware_camera2_DngCreator.cpp", |
Santos Cordon | ee8931e | 2017-04-05 10:31:15 -0700 | [diff] [blame] | 159 | "android_hardware_display_DisplayViewport.cpp", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 160 | "android_hardware_HardwareBuffer.cpp", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 161 | "android_hardware_SensorManager.cpp", |
| 162 | "android_hardware_SerialPort.cpp", |
| 163 | "android_hardware_SoundTrigger.cpp", |
| 164 | "android_hardware_UsbDevice.cpp", |
| 165 | "android_hardware_UsbDeviceConnection.cpp", |
| 166 | "android_hardware_UsbRequest.cpp", |
| 167 | "android_hardware_location_ActivityRecognitionHardware.cpp", |
| 168 | "android_util_FileObserver.cpp", |
| 169 | "android/opengl/poly_clip.cpp", // TODO: .arm |
| 170 | "android/opengl/util.cpp", |
| 171 | "android_server_NetworkManagementSocketTagger.cpp", |
| 172 | "android_server_Watchdog.cpp", |
| 173 | "android_ddm_DdmHandleNativeHeap.cpp", |
| 174 | "android_backup_BackupDataInput.cpp", |
| 175 | "android_backup_BackupDataOutput.cpp", |
| 176 | "android_backup_FileBackupHelperBase.cpp", |
| 177 | "android_backup_BackupHelperDispatcher.cpp", |
| 178 | "android_app_backup_FullBackup.cpp", |
| 179 | "android_content_res_ObbScanner.cpp", |
| 180 | "android_content_res_Configuration.cpp", |
| 181 | "android_animation_PropertyValuesHolder.cpp", |
| 182 | "com_android_internal_net_NetworkStatsFactory.cpp", |
Narayan Kamath | f9419f0 | 2017-06-15 11:35:38 +0100 | [diff] [blame] | 183 | "com_android_internal_os_ClassLoaderFactory.cpp", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 184 | "com_android_internal_os_FuseAppLoop.cpp", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 185 | "com_android_internal_os_Zygote.cpp", |
Jesse Hall | 42cf26e | 2017-07-06 15:30:39 -0700 | [diff] [blame] | 186 | "com_android_internal_os_ZygoteInit.cpp", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 187 | "com_android_internal_util_VirtualRefBasePtr.cpp", |
| 188 | "com_android_internal_view_animation_NativeInterpolatorFactoryHelper.cpp", |
| 189 | "hwbinder/EphemeralStorage.cpp", |
| 190 | "fd_utils.cpp", |
| 191 | ], |
| 192 | |
| 193 | include_dirs: [ |
| 194 | // we need to access the private Bionic header |
| 195 | // <bionic_tls.h> in com_google_android_gles_jni_GLImpl.cpp |
| 196 | "bionic/libc/private", |
| 197 | |
| 198 | "external/skia/include/private", |
| 199 | "external/skia/src/codec", |
| 200 | "external/skia/src/core", |
| 201 | "external/skia/src/effects", |
| 202 | "external/skia/src/image", |
| 203 | "external/skia/src/images", |
| 204 | "frameworks/base/media/jni", |
| 205 | "libcore/include", |
| 206 | "system/media/camera/include", |
| 207 | "system/media/private/camera/include", |
| 208 | ], |
| 209 | |
| 210 | static_libs: [ |
| 211 | "libgif", |
| 212 | "libseccomp_policy", |
| 213 | "libselinux", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 214 | "libgrallocusage", |
| 215 | ], |
| 216 | |
| 217 | shared_libs: [ |
Chenbo Feng | 828f1b4 | 2017-11-20 17:03:59 -0800 | [diff] [blame^] | 218 | "libbpf", |
| 219 | "libnetdutils", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 220 | "libmemtrack", |
| 221 | "libandroidfw", |
| 222 | "libappfuse", |
| 223 | "libbase", |
Adam Vartanian | 8359697 | 2017-06-26 10:43:38 +0100 | [diff] [blame] | 224 | "libcrypto", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 225 | "libnativehelper", |
| 226 | "liblog", |
| 227 | "libcutils", |
| 228 | "libdebuggerd_client", |
| 229 | "libutils", |
| 230 | "libbinder", |
| 231 | "libui", |
Jiyong Park | 354ac499 | 2017-05-08 13:29:35 +0900 | [diff] [blame] | 232 | "libgraphicsenv", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 233 | "libgui", |
| 234 | "libsensor", |
| 235 | "libinput", |
| 236 | "libcamera_client", |
| 237 | "libcamera_metadata", |
| 238 | "libskia", |
| 239 | "libsqlite", |
| 240 | "libEGL", |
| 241 | "libGLESv1_CM", |
| 242 | "libGLESv2", |
| 243 | "libvulkan", |
| 244 | "libziparchive", |
| 245 | "libETC1", |
| 246 | "libhardware", |
| 247 | "libhardware_legacy", |
| 248 | "libselinux", |
| 249 | "libicuuc", |
| 250 | "libmedia", |
| 251 | "libaudioclient", |
| 252 | "libjpeg", |
| 253 | "libusbhost", |
| 254 | "libharfbuzz_ng", |
| 255 | "libz", |
| 256 | "libpdfium", |
| 257 | "libimg_utils", |
| 258 | "libnetd_client", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 259 | "libsoundtrigger", |
| 260 | "libminikin", |
| 261 | "libprocessgroup", |
| 262 | "libnativebridge", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 263 | "libnativeloader", |
| 264 | "libmemunreachable", |
| 265 | "libhidlbase", |
| 266 | "libhidltransport", |
| 267 | "libhwbinder", |
| 268 | "libvintf", |
| 269 | "libnativewindow", |
| 270 | |
| 271 | "libhwui", |
| 272 | "libdl", |
| 273 | ], |
| 274 | |
| 275 | local_include_dirs: ["android/graphics"], |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 276 | export_include_dirs: [ |
| 277 | ".", |
| 278 | "include", |
| 279 | ], |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 280 | export_shared_lib_headers: [ |
| 281 | // AndroidRuntime.h depends on nativehelper/jni.h |
| 282 | "libnativehelper", |
| 283 | |
| 284 | // our headers include libnativewindow's public headers |
| 285 | "libnativewindow", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 286 | |
| 287 | // GraphicsJNI.h includes hwui headers |
| 288 | "libhwui", |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 289 | ], |
Colin Cross | 3f8fd40 | 2017-04-20 12:20:20 -0700 | [diff] [blame] | 290 | } |