blob: 818430264c2617314020af889a116fbf13e58ad4 [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
17cc_defaults {
18 name: "sepolicy_tools_defaults",
19 cflags: [
20 "-Wall",
21 "-Werror",
22 ],
23 static_libs: ["libsepol"],
24 stl: "none",
25 tags: ["optional"],
26}
27
28cc_binary_host {
29 name: "checkseapp",
30 defaults: ["sepolicy_tools_defaults"],
31 srcs: ["check_seapp.c"],
32 whole_static_libs: ["libpcre2"],
33 cflags: ["-DLINK_SEPOL_STATIC"],
34}
35
36cc_binary_host {
37 name: "checkfc",
38 defaults: ["sepolicy_tools_defaults"],
39 srcs: ["checkfc.c"],
40 static_libs: ["libselinux"],
41}
42
43cc_binary_host {
44 name: "sepolicy-check",
45 defaults: ["sepolicy_tools_defaults"],
46 srcs: ["sepolicy-check.c"],
47}
48
49cc_binary_host {
50 name: "version_policy",
51 defaults: ["sepolicy_tools_defaults"],
52 srcs: ["version_policy.c"],
53}
54
55cc_prebuilt_binary {
56 name: "insertkeys.py",
57 srcs: ["insertkeys.py"],
58 tags: ["optional"],
59 host_supported: true,
60}