Ronish Kalia | b5dd44b | 2024-02-14 14:32:32 +0000 | [diff] [blame^] | 1 | package { |
| 2 | default_team: "trendy_team_xr_framework", |
| 3 | } |
| 4 | |
Jan Sebechlebsky | cdbcb7e | 2024-01-30 11:38:41 +0100 | [diff] [blame] | 5 | soong_config_module_type { |
| 6 | name: "virtual_device_build_flags_cc_defaults", |
| 7 | module_type: "cc_defaults", |
| 8 | config_namespace: "vdm", |
| 9 | bool_variables: [ |
| 10 | "virtual_camera_service_enabled", |
| 11 | ], |
| 12 | properties: [ |
| 13 | "cflags", |
| 14 | ], |
| 15 | } |
| 16 | |
| 17 | soong_config_bool_variable { |
| 18 | name: "virtual_camera_service_enabled", |
| 19 | } |
| 20 | |
| 21 | virtual_device_build_flags_cc_defaults { |
| 22 | name: "virtual_device_build_flags_defaults", |
| 23 | soong_config_variables: { |
| 24 | virtual_camera_service_enabled: { |
| 25 | cflags: ["-DVIRTUAL_CAMERA_SERVICE_ENABLED=1"], |
| 26 | }, |
| 27 | }, |
| 28 | } |
| 29 | |
| 30 | cc_library_static { |
| 31 | name: "libvirtualdevicebuildflags", |
| 32 | srcs: [ |
| 33 | "android_companion_virtualdevice_build_flags.cc", |
| 34 | ], |
| 35 | export_include_dirs: ["."], |
| 36 | defaults: ["virtual_device_build_flags_defaults"], |
| 37 | } |