blob: 61ad08b89ad6b4a5906dcb4b70d3c569100bc357 [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",
12 "libcrypto",
13 "libcrypto_utils",
14 "libcutils",
David Andersonbd559292019-12-17 21:06:33 -080015 "libfs_mgr_binder",
Josh Gaof61f4142019-10-22 12:30:30 -070016 "liblog",
David Andersonbd559292019-12-17 21:06:33 -080017 "libutils",
Josh Gaof61f4142019-10-22 12:30:30 -070018 ],
19 static_libs: [
20 "libavb_user",
21 ],
22
23 cflags: ["-Werror"],
Shaju Mathewdb48ce22022-05-26 14:59:50 -070024 cppflags: [
25 "-DALLOW_DISABLE_VERITY=0",
26 ],
27 product_variables: {
28 debuggable: {
29 cppflags: [
30 "-UALLOW_DISABLE_VERITY",
31 "-DALLOW_DISABLE_VERITY=1",
32 ],
33 },
34 },
Josh Gaof61f4142019-10-22 12:30:30 -070035 symlinks: [
36 "enable-verity",
37 "disable-verity",
38 ],
39}