blob: 4ed45ae8772129d5999b83c44e0cf5a8691600e8 [file] [log] [blame]
Dan Willemsen4c939742016-12-06 15:44:57 -08001cc_defaults {
2 name: "installd_defaults",
3
4 cflags: [
5 "-Wall",
6 "-Werror",
7 ],
8 srcs: [
9 "commands.cpp",
10 "globals.cpp",
11 "utils.cpp",
12 "binder/android/os/IInstalld.aidl",
13 ],
14 shared_libs: [
15 "libbase",
16 "libbinder",
17 "libcutils",
18 "liblog",
19 "liblogwrap",
20 "libselinux",
21 "libutils",
22 ],
23
24 clang: true,
25}
26
27//
28// Static library used in testing and executable
29//
30
31cc_library_static {
32 name: "libinstalld",
33 defaults: ["installd_defaults"],
34
35 export_include_dirs: ["."],
36 aidl: {
37 export_aidl_headers: true,
38 },
39}
40
41//
42// Executable
43//
44
45cc_binary {
46 name: "installd",
47 defaults: ["installd_defaults"],
48 srcs: ["installd.cpp"],
49
50 static_libs: ["libdiskusage"],
51
52 init_rc: ["installd.rc"],
53}
54
Dan Willemsen2a001e82016-08-05 14:06:41 -070055// OTA chroot tool
56
57cc_binary {
58 name: "otapreopt_chroot",
59 cflags: [
60 "-Wall",
61 "-Werror",
62 ],
63 clang: true,
64
65 srcs: ["otapreopt_chroot.cpp"],
66 shared_libs: [
67 "libbase",
68 "liblog",
69 ],
70}
Dan Willemsen4c939742016-12-06 15:44:57 -080071
72subdirs = ["tests"]