blob: 7d1537a63fbf738be00f569378e8f4641472e65d [file] [log] [blame]
Dan Willemsen4c939742016-12-06 15:44:57 -08001cc_defaults {
2 name: "installd_defaults",
3
4 cflags: [
5 "-Wall",
6 "-Werror",
Jeff Sharkeyc1149c92017-09-21 14:51:09 -06007 "-Wextra",
Dan Willemsen4c939742016-12-06 15:44:57 -08008 ],
9 srcs: [
Jeff Sharkey88ddd942017-01-17 18:05:54 -070010 "CacheItem.cpp",
11 "CacheTracker.cpp",
Jeff Sharkeyf3e30b92016-12-09 17:06:57 -070012 "InstalldNativeService.cpp",
Jeff Sharkey6c2c0562016-12-07 12:12:00 -070013 "dexopt.cpp",
Dan Willemsen4c939742016-12-06 15:44:57 -080014 "globals.cpp",
15 "utils.cpp",
Colin Crossdd2dae92017-11-14 13:05:37 -080016 ":installd_aidl",
Dan Willemsen4c939742016-12-06 15:44:57 -080017 ],
18 shared_libs: [
19 "libbase",
20 "libbinder",
21 "libcutils",
22 "liblog",
23 "liblogwrap",
24 "libselinux",
25 "libutils",
26 ],
27
28 clang: true,
Jeff Sharkeyc1149c92017-09-21 14:51:09 -060029
30 tidy: true,
31 tidy_checks: [
32 "-*",
33 "clang-analyzer-security*",
34 "cert-*",
35 "-cert-err58-cpp",
36 ],
37 tidy_flags: [
38 "-warnings-as-errors=clang-analyzer-security*,cert-*"
39 ],
Dan Willemsen4c939742016-12-06 15:44:57 -080040}
41
42//
43// Static library used in testing and executable
44//
45
46cc_library_static {
47 name: "libinstalld",
48 defaults: ["installd_defaults"],
49
50 export_include_dirs: ["."],
51 aidl: {
52 export_aidl_headers: true,
53 },
54}
55
56//
57// Executable
58//
59
60cc_binary {
61 name: "installd",
62 defaults: ["installd_defaults"],
63 srcs: ["installd.cpp"],
64
65 static_libs: ["libdiskusage"],
66
67 init_rc: ["installd.rc"],
68}
69
Dan Willemsen2a001e82016-08-05 14:06:41 -070070// OTA chroot tool
71
72cc_binary {
73 name: "otapreopt_chroot",
74 cflags: [
75 "-Wall",
76 "-Werror",
77 ],
78 clang: true,
79
80 srcs: ["otapreopt_chroot.cpp"],
81 shared_libs: [
82 "libbase",
83 "liblog",
84 ],
85}
Dan Willemsen4c939742016-12-06 15:44:57 -080086
Colin Crossdd2dae92017-11-14 13:05:37 -080087filegroup {
88 name: "installd_aidl",
89 srcs: [
90 "binder/android/os/IInstalld.aidl",
91 ],
92}
93
Dan Willemsen4c939742016-12-06 15:44:57 -080094subdirs = ["tests"]