1cc_defaults { 2 name: "installd_defaults", 3 4 cflags: [ 5 "-Wall", 6 "-Werror", 7 ], 8 srcs: [ 9 "CacheItem.cpp", 10 "CacheTracker.cpp", 11 "InstalldNativeService.cpp", 12 "dexopt.cpp", 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 34cc_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 48cc_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 58// OTA chroot tool 59 60cc_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} 74 75subdirs = ["tests"] 76