blob: f0df350985d78757541c8828ea56798c5df87a9b [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",
15 "libfec",
David Andersonbd559292019-12-17 21:06:33 -080016 "libfs_mgr_binder",
Josh Gaof61f4142019-10-22 12:30:30 -070017 "liblog",
David Andersonbd559292019-12-17 21:06:33 -080018 "libutils",
Josh Gaof61f4142019-10-22 12:30:30 -070019 ],
20 static_libs: [
21 "libavb_user",
22 ],
23
24 cflags: ["-Werror"],
Shaju Mathewdb48ce22022-05-26 14:59:50 -070025 cppflags: [
26 "-DALLOW_DISABLE_VERITY=0",
27 ],
28 product_variables: {
29 debuggable: {
30 cppflags: [
31 "-UALLOW_DISABLE_VERITY",
32 "-DALLOW_DISABLE_VERITY=1",
33 ],
34 },
35 },
Josh Gaof61f4142019-10-22 12:30:30 -070036 symlinks: [
37 "enable-verity",
38 "disable-verity",
39 ],
40}