blob: e3048c72a9c102cddf4a6dfe6086e4028a204535 [file] [log] [blame]
Dan Willemsen59e086f2016-07-25 17:13:45 -07001cc_defaults {
2 name: "installd_defaults",
3
4 cflags: [
5 "-Wall",
6 "-Werror",
7 ],
8 srcs: [
9 "commands.cpp",
Dan Willemsen2a001e82016-08-05 14:06:41 -070010 "globals.cpp",
Dan Willemsen59e086f2016-07-25 17:13:45 -070011 "utils.cpp",
12 ],
13 shared_libs: [
14 "libbase",
15 "libcutils",
16 "liblog",
17 "liblogwrap",
18 "libselinux",
19 ],
20
21 clang: true,
22}
23
24//
25// Static library used in testing and executable
26//
27
28cc_library_static {
29 name: "libinstalld",
30 defaults: ["installd_defaults"],
31
32 export_include_dirs: ["."],
33}
34
35//
36// Executable
37//
38
39cc_binary {
40 name: "installd",
41 defaults: ["installd_defaults"],
42 srcs: ["installd.cpp"],
43
44 static_libs: ["libdiskusage"],
45
46 init_rc: ["installd.rc"],
47}
48
Dan Willemsen2a001e82016-08-05 14:06:41 -070049// OTA chroot tool
50
51cc_binary {
52 name: "otapreopt_chroot",
53 cflags: [
54 "-Wall",
55 "-Werror",
56 ],
57 clang: true,
58
59 srcs: ["otapreopt_chroot.cpp"],
60 shared_libs: [
61 "libbase",
62 "liblog",
63 ],
64}
65
Dan Willemsen59e086f2016-07-25 17:13:45 -070066subdirs = ["tests"]