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: [ |
| 9 | "commands.cpp", |
| 10 | "globals.cpp", |
| 11 | "utils.cpp", |
| 12 | "binder/android/os/IInstalld.aidl", |
| 13 | ], |
| 14 | shared_libs: [ |
| 15 | "libbase", |
| 16 | "libbinder", |
| 17 | "libcutils", |
| 18 | "liblog", |
| 19 | "liblogwrap", |
| 20 | "libselinux", |
| 21 | "libutils", |
| 22 | ], |
| 23 | |
| 24 | clang: true, |
| 25 | } |
| 26 | |
| 27 | // |
| 28 | // Static library used in testing and executable |
| 29 | // |
| 30 | |
| 31 | cc_library_static { |
| 32 | name: "libinstalld", |
| 33 | defaults: ["installd_defaults"], |
| 34 | |
| 35 | export_include_dirs: ["."], |
| 36 | aidl: { |
| 37 | export_aidl_headers: true, |
| 38 | }, |
| 39 | } |
| 40 | |
| 41 | // |
| 42 | // Executable |
| 43 | // |
| 44 | |
| 45 | cc_binary { |
| 46 | name: "installd", |
| 47 | defaults: ["installd_defaults"], |
| 48 | srcs: ["installd.cpp"], |
| 49 | |
| 50 | static_libs: ["libdiskusage"], |
| 51 | |
| 52 | init_rc: ["installd.rc"], |
| 53 | } |
| 54 | |
Dan Willemsen | 2a001e8 | 2016-08-05 14:06:41 -0700 | [diff] [blame] | 55 | // OTA chroot tool |
| 56 | |
| 57 | cc_binary { |
| 58 | name: "otapreopt_chroot", |
| 59 | cflags: [ |
| 60 | "-Wall", |
| 61 | "-Werror", |
| 62 | ], |
| 63 | clang: true, |
| 64 | |
| 65 | srcs: ["otapreopt_chroot.cpp"], |
| 66 | shared_libs: [ |
| 67 | "libbase", |
| 68 | "liblog", |
| 69 | ], |
| 70 | } |
Dan Willemsen | 4c93974 | 2016-12-06 15:44:57 -0800 | [diff] [blame^] | 71 | |
| 72 | subdirs = ["tests"] |