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