blob: 057b07342509adb132e93d143baec14d01e619f1 [file] [log] [blame]
Tri Vo594488f2018-05-07 12:51:52 -07001/*
2 * Copyright (C) 2018 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Bob Badour601ebb42021-02-03 23:07:40 -080017package {
18 // http://go/android-license-faq
19 // A large-scale-change added 'default_applicable_licenses' to import
20 // the below license kinds from "system_sepolicy_license":
21 // SPDX-license-identifier-Apache-2.0
22 default_applicable_licenses: ["system_sepolicy_license"],
23}
24
Tri Vo594488f2018-05-07 12:51:52 -070025cc_defaults {
26 name: "sepolicy_tools_defaults",
27 cflags: [
28 "-Wall",
29 "-Werror",
30 ],
31 static_libs: ["libsepol"],
32 stl: "none",
Tri Vo594488f2018-05-07 12:51:52 -070033}
34
35cc_binary_host {
36 name: "checkseapp",
37 defaults: ["sepolicy_tools_defaults"],
38 srcs: ["check_seapp.c"],
39 whole_static_libs: ["libpcre2"],
40 cflags: ["-DLINK_SEPOL_STATIC"],
41}
42
43cc_binary_host {
44 name: "checkfc",
45 defaults: ["sepolicy_tools_defaults"],
46 srcs: ["checkfc.c"],
47 static_libs: ["libselinux"],
48}
49
50cc_binary_host {
51 name: "sepolicy-check",
52 defaults: ["sepolicy_tools_defaults"],
53 srcs: ["sepolicy-check.c"],
54}
55
56cc_binary_host {
57 name: "version_policy",
58 defaults: ["sepolicy_tools_defaults"],
59 srcs: ["version_policy.c"],
60}
61
sandromb246b1d2022-05-24 08:46:06 +000062cc_binary {
63 name: "seamendc",
64 defaults: ["sepolicy_tools_defaults"],
65 srcs: ["seamendc.c"],
66 host_supported: true,
67}
68
ThiƩbaud Weksteen98707252021-12-03 13:38:04 +110069python_binary_host {
70 name: "insertkeys",
Tri Vo594488f2018-05-07 12:51:52 -070071 srcs: ["insertkeys.py"],
Tri Vo594488f2018-05-07 12:51:52 -070072}
Inseob Kim29e357e2022-01-17 16:37:51 +090073
74python_binary_host {
75 name: "sepolicy_generate_compat",
76 srcs: ["sepolicy_generate_compat.py"],
Inseob Kimcbc95ea2022-01-21 19:32:53 +090077 libs: ["mini_cil_parser", "pysepolwrap"],
78 data: [":libsepolwrap"],
Inseob Kim29e357e2022-01-17 16:37:51 +090079}
Pawan0ecf99d2022-09-12 23:20:53 +000080
81python_binary_host {
82 name: "fuzzer_bindings_check",
83 srcs: ["fuzzer_bindings_check.py"],
84}