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", |
| 7 | ], |
| 8 | srcs: [ |
Jeff Sharkey | 88ddd94 | 2017-01-17 18:05:54 -0700 | [diff] [blame] | 9 | "CacheItem.cpp", |
| 10 | "CacheTracker.cpp", |
Jeff Sharkey | f3e30b9 | 2016-12-09 17:06:57 -0700 | [diff] [blame] | 11 | "InstalldNativeService.cpp", |
Jeff Sharkey | 6c2c056 | 2016-12-07 12:12:00 -0700 | [diff] [blame] | 12 | "dexopt.cpp", |
Dan Willemsen | 4c93974 | 2016-12-06 15:44:57 -0800 | [diff] [blame] | 13 | "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 | |
| 34 | cc_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 | |
| 48 | cc_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 Willemsen | 2a001e8 | 2016-08-05 14:06:41 -0700 | [diff] [blame] | 58 | // OTA chroot tool |
| 59 | |
| 60 | cc_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 Willemsen | 4c93974 | 2016-12-06 15:44:57 -0800 | [diff] [blame] | 74 | |
| 75 | subdirs = ["tests"] |