|
3 | 3 | // SPDX-License-Identifier: Apache-2.0 |
4 | 4 | // |
5 | 5 |
|
6 | | -cc_defaults { |
| 6 | +soong_config_module_type { |
| 7 | + name: "samsung_camera3", |
| 8 | + module_type: "cc_defaults", |
| 9 | + config_namespace: "samsungCameraVars", |
| 10 | + bool_variables: [ |
| 11 | + "needs_sec_get_cam_pos_v1", |
| 12 | + "needs_sec_get_cam_pos_v2", |
| 13 | + "needs_sec_reserved_field", |
| 14 | + "usage_64bit", |
| 15 | + ], |
| 16 | + properties: ["cflags"], |
| 17 | +} |
| 18 | + |
| 19 | +samsung_camera3 { |
7 | 20 | name: "samsung_camera3_defaults", |
8 | | - cppflags: select(soong_config_variable("samsungCameraVars", "needs_sec_get_cam_pos_v1"), { |
9 | | - true: ["-DCAMERA_NEEDS_SEC_GET_CAM_POS_V1"], |
10 | | - default: [], |
11 | | - }) + select(soong_config_variable("samsungCameraVars", "needs_sec_get_cam_pos_v2"), { |
12 | | - true: ["-DCAMERA_NEEDS_SEC_GET_CAM_POS_V2"], |
13 | | - default: [], |
14 | | - }) + select(soong_config_variable("samsungCameraVars", "needs_sec_reserved_field"), { |
15 | | - true: ["-DCAMERA_NEEDS_SEC_RESERVED_FIELD"], |
16 | | - default: [], |
17 | | - }) + select(soong_config_variable("samsungCameraVars", "usage_64bit"), { |
18 | | - true: ["-DCAMERA_64BIT_USAGE"], |
19 | | - default: [], |
20 | | - }), |
| 21 | + soong_config_variables: { |
| 22 | + needs_sec_get_cam_pos_v1: { |
| 23 | + cflags: ["-DCAMERA_NEEDS_SEC_GET_CAM_POS_V1"], |
| 24 | + }, |
| 25 | + needs_sec_get_cam_pos_v2: { |
| 26 | + cflags: ["-DCAMERA_NEEDS_SEC_GET_CAM_POS_V2"], |
| 27 | + }, |
| 28 | + needs_sec_reserved_field: { |
| 29 | + cflags: ["-DCAMERA_NEEDS_SEC_RESERVED_FIELD"], |
| 30 | + }, |
| 31 | + usage_64bit: { |
| 32 | + cflags: ["-DCAMERA_64BIT_USAGE"], |
| 33 | + }, |
| 34 | + }, |
21 | 35 | } |
22 | 36 |
|
23 | 37 | cc_library_headers { |
|
0 commit comments