Josh Gao | f61f414 | 2019-10-22 12:30:30 -0700 | [diff] [blame] | 1 | // Copyright 2019 The Android Open Source Project |
| 2 | |
Bob Badour | d69ad69 | 2021-02-16 19:02:14 -0800 | [diff] [blame] | 3 | package { |
| 4 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 5 | } |
| 6 | |
Josh Gao | f61f414 | 2019-10-22 12:30:30 -0700 | [diff] [blame] | 7 | cc_binary { |
| 8 | name: "set-verity-state", |
| 9 | srcs: ["set-verity-state.cpp"], |
| 10 | shared_libs: [ |
| 11 | "libbase", |
Yi-Yo Chiang | 1305c15 | 2022-08-10 12:53:39 +0800 | [diff] [blame^] | 12 | "libbinder", |
Josh Gao | f61f414 | 2019-10-22 12:30:30 -0700 | [diff] [blame] | 13 | "libcrypto", |
| 14 | "libcrypto_utils", |
David Anderson | bd55929 | 2019-12-17 21:06:33 -0800 | [diff] [blame] | 15 | "libfs_mgr_binder", |
Yi-Yo Chiang | 1305c15 | 2022-08-10 12:53:39 +0800 | [diff] [blame^] | 16 | "libutils", |
Josh Gao | f61f414 | 2019-10-22 12:30:30 -0700 | [diff] [blame] | 17 | ], |
| 18 | static_libs: [ |
| 19 | "libavb_user", |
| 20 | ], |
| 21 | |
| 22 | cflags: ["-Werror"], |
Shaju Mathew | db48ce2 | 2022-05-26 14:59:50 -0700 | [diff] [blame] | 23 | cppflags: [ |
| 24 | "-DALLOW_DISABLE_VERITY=0", |
| 25 | ], |
| 26 | product_variables: { |
| 27 | debuggable: { |
| 28 | cppflags: [ |
| 29 | "-UALLOW_DISABLE_VERITY", |
| 30 | "-DALLOW_DISABLE_VERITY=1", |
| 31 | ], |
| 32 | }, |
| 33 | }, |
Josh Gao | f61f414 | 2019-10-22 12:30:30 -0700 | [diff] [blame] | 34 | symlinks: [ |
| 35 | "enable-verity", |
| 36 | "disable-verity", |
| 37 | ], |
| 38 | } |