blob: 34bded8e8ab367f02a1eaaa4aa77d7214f5b43c8 [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 ],
21
22 cflags: ["-Werror"],
Shaju Mathewdb48ce22022-05-26 14:59:50 -070023 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 Gaof61f4142019-10-22 12:30:30 -070034 symlinks: [
35 "enable-verity",
36 "disable-verity",
37 ],
38}