Jan Sebechlebsky | 5cb3996 | 2023-11-22 17:33:07 +0100 | [diff] [blame] | 1 | package { |
Ronish Kalia | b5dd44b | 2024-02-14 14:32:32 +0000 | [diff] [blame] | 2 | default_team: "trendy_team_xr_framework", |
Jan Sebechlebsky | 5cb3996 | 2023-11-22 17:33:07 +0100 | [diff] [blame] | 3 | // See: http://go/android-license-faq |
| 4 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 5 | } |
| 6 | |
| 7 | cc_defaults { |
| 8 | name: "libvirtualcamera_defaults", |
| 9 | shared_libs: [ |
| 10 | "android.hardware.common-V2-ndk", |
| 11 | "android.hardware.common.fmq-V1-ndk", |
| 12 | "libbinder", |
| 13 | "libbinder_ndk", |
| 14 | "libcamera_metadata", |
Jan Sebechlebsky | 4ce3208 | 2024-02-14 16:02:11 +0100 | [diff] [blame] | 15 | "libexif", |
Jan Sebechlebsky | 5cb3996 | 2023-11-22 17:33:07 +0100 | [diff] [blame] | 16 | "liblog", |
| 17 | "libfmq", |
| 18 | "libgui", |
| 19 | "libjpeg", |
| 20 | "libnativewindow", |
| 21 | "libbase", |
| 22 | "libcutils", |
| 23 | "libui", |
| 24 | "libutils", |
| 25 | "libEGL", |
| 26 | "libGLESv2", |
| 27 | "libGLESv3", |
| 28 | ], |
| 29 | static_libs: [ |
| 30 | "android.hardware.camera.common@1.0-helper", |
| 31 | "android.hardware.camera.common-V1-ndk", |
Shuzhen Wang | 045be6c | 2023-10-12 10:01:10 -0700 | [diff] [blame] | 32 | "android.hardware.camera.device-V2-ndk", |
Jan Sebechlebsky | 5cb3996 | 2023-11-22 17:33:07 +0100 | [diff] [blame] | 33 | "android.hardware.camera.metadata-V2-ndk", |
| 34 | "android.hardware.camera.provider-V2-ndk", |
| 35 | "libaidlcommonsupport", |
| 36 | "virtual_camera_service_aidl-ndk", |
| 37 | ], |
| 38 | cflags: [ |
Jan Sebechlebsky | acd0208 | 2023-11-28 13:26:20 +0100 | [diff] [blame] | 39 | "-DANDROID_UTILS_REF_BASE_DISABLE_IMPLICIT_CONSTRUCTION", |
Jan Sebechlebsky | 5cb3996 | 2023-11-22 17:33:07 +0100 | [diff] [blame] | 40 | "-Wall", |
| 41 | "-Werror", |
| 42 | "-Wformat", |
| 43 | "-Wthread-safety", |
Jan Sebechlebsky | 5cb3996 | 2023-11-22 17:33:07 +0100 | [diff] [blame] | 44 | ], |
| 45 | } |
| 46 | |
| 47 | cc_library_static { |
| 48 | name: "libvirtualcamera_utils", |
| 49 | srcs: [ |
| 50 | "util/JpegUtil.cc", |
Jan Sebechlebsky | 4ce3208 | 2024-02-14 16:02:11 +0100 | [diff] [blame] | 51 | "util/MetadataUtil.cc", |
Jan Sebechlebsky | 5cb3996 | 2023-11-22 17:33:07 +0100 | [diff] [blame] | 52 | "util/Util.cc", |
Jan Sebechlebsky | 5cb3996 | 2023-11-22 17:33:07 +0100 | [diff] [blame] | 53 | "util/EglDisplayContext.cc", |
| 54 | "util/EglFramebuffer.cc", |
| 55 | "util/EglProgram.cc", |
| 56 | "util/EglSurfaceTexture.cc", |
| 57 | "util/EglUtil.cc", |
Jan Sebechlebsky | f555d25 | 2024-02-01 09:15:54 +0100 | [diff] [blame] | 58 | "util/Permissions.cc", |
Jan Sebechlebsky | 5cb3996 | 2023-11-22 17:33:07 +0100 | [diff] [blame] | 59 | ], |
| 60 | defaults: [ |
| 61 | "libvirtualcamera_defaults", |
| 62 | ], |
| 63 | } |
| 64 | |
| 65 | cc_library_static { |
| 66 | name: "libvirtualcamera", |
| 67 | srcs: [ |
| 68 | "VirtualCameraProvider.cc", |
| 69 | "VirtualCameraDevice.cc", |
| 70 | "VirtualCameraSession.cc", |
| 71 | "VirtualCameraStream.cc", |
| 72 | "VirtualCameraService.cc", |
| 73 | "VirtualCameraSessionContext.cc", |
Jan Sebechlebsky | 288900f | 2024-05-24 14:47:54 +0200 | [diff] [blame] | 74 | "VirtualCameraTestInstance.cc", |
Jan Sebechlebsky | 5cb3996 | 2023-11-22 17:33:07 +0100 | [diff] [blame] | 75 | "VirtualCameraRenderThread.cc", |
| 76 | ], |
| 77 | defaults: [ |
| 78 | "libvirtualcamera_defaults", |
| 79 | ], |
| 80 | static_libs: [ |
| 81 | "libvirtualcamera_utils", |
| 82 | ], |
| 83 | export_include_dirs: ["."], |
| 84 | min_sdk_version: "current", |
| 85 | } |
| 86 | |
| 87 | cc_binary { |
| 88 | name: "virtual_camera", |
| 89 | srcs: ["main.cc"], |
| 90 | defaults: [ |
| 91 | "libvirtualcamera_defaults", |
| 92 | ], |
| 93 | static_libs: [ |
| 94 | "libvirtualcamera", |
| 95 | "libvirtualcamera_utils", |
| 96 | ], |
Jan Sebechlebsky | e2a3b15 | 2023-11-22 22:08:57 +0100 | [diff] [blame] | 97 | init_rc: ["virtual_camera.hal.rc"], |
Jan Sebechlebsky | 5cb3996 | 2023-11-22 17:33:07 +0100 | [diff] [blame] | 98 | } |