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