blob: 90c7da47b166afcfe00c9c0d145349b1d45f93ae [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",
Alan Stokesa25d90c2017-10-16 10:56:00 +010021 "libcrypto",
Dan Willemsen4c939742016-12-06 15:44:57 -080022 "libcutils",
23 "liblog",
24 "liblogwrap",
25 "libselinux",
26 "libutils",
27 ],
28
29 clang: true,
Jeff Sharkeyc1149c92017-09-21 14:51:09 -060030
31 tidy: true,
32 tidy_checks: [
33 "-*",
34 "clang-analyzer-security*",
35 "cert-*",
36 "-cert-err58-cpp",
37 ],
38 tidy_flags: [
39 "-warnings-as-errors=clang-analyzer-security*,cert-*"
40 ],
Dan Willemsen4c939742016-12-06 15:44:57 -080041}
42
43//
44// Static library used in testing and executable
45//
46
47cc_library_static {
48 name: "libinstalld",
49 defaults: ["installd_defaults"],
50
51 export_include_dirs: ["."],
52 aidl: {
53 export_aidl_headers: true,
54 },
55}
56
57//
58// Executable
59//
60
61cc_binary {
62 name: "installd",
63 defaults: ["installd_defaults"],
64 srcs: ["installd.cpp"],
65
66 static_libs: ["libdiskusage"],
67
68 init_rc: ["installd.rc"],
69}
70
Dan Willemsen2a001e82016-08-05 14:06:41 -070071// OTA chroot tool
72
73cc_binary {
74 name: "otapreopt_chroot",
75 cflags: [
76 "-Wall",
77 "-Werror",
78 ],
79 clang: true,
80
81 srcs: ["otapreopt_chroot.cpp"],
82 shared_libs: [
83 "libbase",
84 "liblog",
85 ],
86}
Dan Willemsen4c939742016-12-06 15:44:57 -080087
Colin Crossdd2dae92017-11-14 13:05:37 -080088filegroup {
89 name: "installd_aidl",
90 srcs: [
91 "binder/android/os/IInstalld.aidl",
92 ],
93}
94
Dan Willemsen4c939742016-12-06 15:44:57 -080095subdirs = ["tests"]