blob: f40118b7a6c574a2a34aec10088ec246c5e12db9 [file] [log] [blame]
Josh Gaof61f4142019-10-22 12:30:30 -07001// Copyright 2019 The Android Open Source Project
2
Bob Badourd69ad692021-02-16 19:02:14 -08003package {
4 default_applicable_licenses: ["Android-Apache-2.0"],
5}
6
Josh Gaof61f4142019-10-22 12:30:30 -07007cc_binary {
8 name: "set-verity-state",
9 srcs: ["set-verity-state.cpp"],
10 shared_libs: [
11 "libbase",
Yi-Yo Chiang1305c152022-08-10 12:53:39 +080012 "libbinder",
Josh Gaof61f4142019-10-22 12:30:30 -070013 "libcrypto",
14 "libcrypto_utils",
David Andersonbd559292019-12-17 21:06:33 -080015 "libfs_mgr_binder",
Yi-Yo Chiang1305c152022-08-10 12:53:39 +080016 "libutils",
Josh Gaof61f4142019-10-22 12:30:30 -070017 ],
18 static_libs: [
19 "libavb_user",
20 ],
Yi-Yo Chiang86674952022-08-17 04:12:28 +080021 header_libs: [
22 "libcutils_headers",
23 ],
Josh Gaof61f4142019-10-22 12:30:30 -070024
25 cflags: ["-Werror"],
Shaju Mathewdb48ce22022-05-26 14:59:50 -070026 cppflags: [
27 "-DALLOW_DISABLE_VERITY=0",
28 ],
29 product_variables: {
30 debuggable: {
31 cppflags: [
32 "-UALLOW_DISABLE_VERITY",
33 "-DALLOW_DISABLE_VERITY=1",
34 ],
35 },
36 },
Josh Gaof61f4142019-10-22 12:30:30 -070037 symlinks: [
38 "enable-verity",
39 "disable-verity",
40 ],
41}