123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266 |
- cc_defaults {
- name: "installd_defaults",
- cflags: [
- "-Wall",
- "-Werror",
- "-Wextra",
- "-Wunreachable-code",
- "-Wunreachable-code-break",
- "-Wunreachable-code-return",
- ],
- srcs: [
- "CacheItem.cpp",
- "CacheTracker.cpp",
- "InstalldNativeService.cpp",
- "QuotaUtils.cpp",
- "dexopt.cpp",
- "globals.cpp",
- "utils.cpp",
- "utils_default.cpp",
- "view_compiler.cpp",
- ":installd_aidl",
- ],
- header_libs: [
- "dex2oat_headers",
- ],
- shared_libs: [
- "libbase",
- "libbinder",
- "libcrypto",
- "libcutils",
- "liblog",
- "liblogwrap",
- "libprocessgroup",
- "libselinux",
- "libutils",
- "server_configurable_flags",
- ],
- product_variables: {
- arc: {
- exclude_srcs: [
- "QuotaUtils.cpp",
- ],
- static_libs: [
- "libarcdiskquota",
- "arc_services_aidl",
- ],
- cflags: [
- "-DUSE_ARC",
- ],
- },
- },
- clang: true,
- tidy: true,
- tidy_checks: [
- "-*",
- "clang-analyzer-security*",
- "cert-*",
- "-cert-err58-cpp",
- ],
- tidy_flags: [
- "-warnings-as-errors=clang-analyzer-security*,cert-*"
- ],
- }
- //
- // Static library used in testing and executable
- //
- cc_library_static {
- name: "libinstalld",
- defaults: ["installd_defaults"],
- export_include_dirs: ["."],
- aidl: {
- export_aidl_headers: true,
- },
- product_variables: {
- arc: {
- exclude_srcs: [
- "QuotaUtils.cpp",
- ],
- static_libs: [
- "libarcdiskquota",
- "arc_services_aidl",
- ],
- cflags: [
- "-DUSE_ARC",
- ],
- },
- },
- }
- cc_library_headers {
- name: "libinstalld_headers",
- export_include_dirs: ["."],
- }
- //
- // Executable
- //
- cc_binary {
- name: "installd",
- defaults: ["installd_defaults"],
- srcs: ["installd.cpp"],
- static_libs: ["libdiskusage"],
- init_rc: ["installd.rc"],
- product_variables: {
- arc: {
- exclude_srcs: [
- "QuotaUtils.cpp",
- ],
- static_libs: [
- "libarcdiskquota",
- "arc_services_aidl",
- ],
- cflags: [
- "-DUSE_ARC",
- ],
- },
- },
- // Needs to be wherever installd is as it's execed by
- // installd.
- required: [ "migrate_legacy_obb_data.sh" ],
- }
- // OTA chroot tool
- cc_binary {
- name: "otapreopt_chroot",
- cflags: [
- "-Wall",
- "-Werror",
- ],
- clang: true,
- srcs: [
- "otapreopt_chroot.cpp",
- "otapreopt_utils.cpp",
- ],
- shared_libs: [
- "libbase",
- "libbinder",
- "liblog",
- "libprotobuf-cpp-full",
- "libselinux",
- "libutils",
- "libziparchive",
- ],
- static_libs: [
- "libapex",
- "libapexd",
- "lib_apex_manifest_proto",
- "libavb",
- "libdm",
- "libvold_binder",
- ],
- }
- filegroup {
- name: "installd_aidl",
- srcs: [
- "binder/android/os/IInstalld.aidl",
- ],
- }
- //
- // Static library for otapreopt used in testing
- //
- cc_library_static {
- name: "libotapreoptparameters",
- cflags: [
- "-Wall",
- "-Werror"
- ],
- srcs: ["otapreopt_parameters.cpp"],
- export_include_dirs: ["."],
- shared_libs: [
- "libbase",
- "libcutils",
- "liblog",
- "libprocessgroup",
- "libutils",
- ],
- }
- //
- // OTA Executable
- //
- cc_binary {
- name: "otapreopt",
- cflags: [
- "-Wall",
- "-Werror"
- ],
- srcs: [
- "dexopt.cpp",
- "globals.cpp",
- "otapreopt.cpp",
- "otapreopt_utils.cpp",
- "utils.cpp",
- "utils_default.cpp",
- "view_compiler.cpp",
- ],
- header_libs: ["dex2oat_headers"],
- static_libs: [
- "libartimagevalues",
- "libdiskusage",
- "libotapreoptparameters",
- ],
- shared_libs: [
- "libbase",
- "libcrypto",
- "libcutils",
- "liblog",
- "liblogwrap",
- "libprocessgroup",
- "libselinux",
- "libutils",
- "server_configurable_flags",
- ],
- }
- // OTA slot script
- sh_binary {
- name: "otapreopt_slot",
- src: "otapreopt_slot.sh",
- init_rc: ["otapreopt.rc"],
- }
- // OTA postinstall script
- sh_binary {
- name: "otapreopt_script",
- src: "otapreopt_script.sh",
- // Let this depend on otapreopt, the chroot tool and the slot script,
- // so we just have to mention one in a configuration.
- required: [
- "otapreopt",
- "otapreopt_chroot",
- "otapreopt_slot",
- ],
- }
- // Script to migrate legacy obb data.
- sh_binary {
- name: "migrate_legacy_obb_data.sh",
- src: "migrate_legacy_obb_data.sh"
- }
|