1cc_defaults {
2    name: "servicemanager_flags",
3
4    cflags: [
5        "-Wall",
6        "-Wextra",
7        "-Werror",
8    ],
9    product_variables: {
10        binder32bit: {
11            cflags: ["-DBINDER_IPC_32BIT=1"],
12        },
13    },
14
15    shared_libs: ["liblog"],
16}
17
18cc_binary {
19    name: "bctest",
20    defaults: ["servicemanager_flags"],
21    srcs: [
22        "bctest.c",
23        "binder.c",
24    ],
25}
26
27cc_binary {
28    name: "servicemanager",
29    defaults: ["servicemanager_flags"],
30    srcs: [
31        "service_manager.c",
32        "binder.c",
33    ],
34    shared_libs: ["libcutils", "libselinux"],
35    init_rc: ["servicemanager.rc"],
36}
37
38cc_binary {
39    name: "vndservicemanager",
40    defaults: ["servicemanager_flags"],
41    vendor: true,
42    srcs: [
43        "service_manager.c",
44        "binder.c",
45    ],
46    cflags: [
47        "-DVENDORSERVICEMANAGER=1",
48    ],
49    shared_libs: ["libcutils", "libselinux"],
50    init_rc: ["vndservicemanager.rc"],
51}
52