Dan Willemsen | 4c93974 | 2016-12-06 15:44:57 -0800 | [diff] [blame] | 1 | cc_defaults { |
| 2 | name: "installd_defaults", |
| 3 | |
| 4 | cflags: [ |
| 5 | "-Wall", |
| 6 | "-Werror", |
Jeff Sharkey | c1149c9 | 2017-09-21 14:51:09 -0600 | [diff] [blame^] | 7 | "-Wextra", |
Dan Willemsen | 4c93974 | 2016-12-06 15:44:57 -0800 | [diff] [blame] | 8 | ], |
| 9 | srcs: [ |
Jeff Sharkey | 88ddd94 | 2017-01-17 18:05:54 -0700 | [diff] [blame] | 10 | "CacheItem.cpp", |
| 11 | "CacheTracker.cpp", |
Jeff Sharkey | f3e30b9 | 2016-12-09 17:06:57 -0700 | [diff] [blame] | 12 | "InstalldNativeService.cpp", |
Jeff Sharkey | 6c2c056 | 2016-12-07 12:12:00 -0700 | [diff] [blame] | 13 | "dexopt.cpp", |
Dan Willemsen | 4c93974 | 2016-12-06 15:44:57 -0800 | [diff] [blame] | 14 | "globals.cpp", |
| 15 | "utils.cpp", |
| 16 | "binder/android/os/IInstalld.aidl", |
| 17 | ], |
| 18 | shared_libs: [ |
| 19 | "libbase", |
| 20 | "libbinder", |
| 21 | "libcutils", |
| 22 | "liblog", |
| 23 | "liblogwrap", |
| 24 | "libselinux", |
| 25 | "libutils", |
| 26 | ], |
| 27 | |
| 28 | clang: true, |
Jeff Sharkey | c1149c9 | 2017-09-21 14:51:09 -0600 | [diff] [blame^] | 29 | |
| 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 Willemsen | 4c93974 | 2016-12-06 15:44:57 -0800 | [diff] [blame] | 40 | } |
| 41 | |
| 42 | // |
| 43 | // Static library used in testing and executable |
| 44 | // |
| 45 | |
| 46 | cc_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 | |
| 60 | cc_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 Willemsen | 2a001e8 | 2016-08-05 14:06:41 -0700 | [diff] [blame] | 70 | // OTA chroot tool |
| 71 | |
| 72 | cc_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 Willemsen | 4c93974 | 2016-12-06 15:44:57 -0800 | [diff] [blame] | 86 | |
| 87 | subdirs = ["tests"] |