blob: e4e652a5b7646daaf90daf7cddfb2f4d9887ebb3 [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",
Jeff Sharkey6c2c0562016-12-07 12:12:00 -070010 "dexopt.cpp",
Dan Willemsen4c939742016-12-06 15:44:57 -080011 "globals.cpp",
12 "utils.cpp",
13 "binder/android/os/IInstalld.aidl",
14 ],
15 shared_libs: [
16 "libbase",
17 "libbinder",
18 "libcutils",
19 "liblog",
20 "liblogwrap",
21 "libselinux",
22 "libutils",
23 ],
24
25 clang: true,
26}
27
28//
29// Static library used in testing and executable
30//
31
32cc_library_static {
33 name: "libinstalld",
34 defaults: ["installd_defaults"],
35
36 export_include_dirs: ["."],
37 aidl: {
38 export_aidl_headers: true,
39 },
40}
41
42//
43// Executable
44//
45
46cc_binary {
47 name: "installd",
48 defaults: ["installd_defaults"],
49 srcs: ["installd.cpp"],
50
51 static_libs: ["libdiskusage"],
52
53 init_rc: ["installd.rc"],
54}
55
Dan Willemsen2a001e82016-08-05 14:06:41 -070056// OTA chroot tool
57
58cc_binary {
59 name: "otapreopt_chroot",
60 cflags: [
61 "-Wall",
62 "-Werror",
63 ],
64 clang: true,
65
66 srcs: ["otapreopt_chroot.cpp"],
67 shared_libs: [
68 "libbase",
69 "liblog",
70 ],
71}
Dan Willemsen4c939742016-12-06 15:44:57 -080072
73subdirs = ["tests"]