| subdirs = [ |
| "bootloader_message", |
| ] |
| |
| // *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS. PLEASE |
| // CONSULT THE OWNERS AND opensource-licensing@google.com BEFORE |
| // DEPENDING ON IT IN YOUR PROJECT. *** |
| package { |
| default_applicable_licenses: ["bootable_recovery_license"], |
| } |
| |
| // Added automatically by a large-scale-change that took the approach of |
| // 'apply every license found to every target'. While this makes sure we respect |
| // every license restriction, it may not be entirely correct. |
| // |
| // e.g. GPL in an MIT project might only apply to the contrib/ directory. |
| // |
| // Please consider splitting the single license below into multiple licenses, |
| // taking care not to lose any license_kind information, and overriding the |
| // default license using the 'licenses: [...]' property on targets as needed. |
| // |
| // For unused files, consider creating a 'fileGroup' with "//visibility:private" |
| // to attach the license to, and including a comment whether the files may be |
| // used in the current project. |
| // See: http://go/android-license-faq |
| license { |
| name: "bootable_recovery_license", |
| visibility: [":__subpackages__"], |
| license_kinds: [ |
| "SPDX-license-identifier-Apache-2.0", |
| "SPDX-license-identifier-MIT", |
| "SPDX-license-identifier-OFL", // by exception only |
| ], |
| license_text: [ |
| "NOTICE", |
| ], |
| } |
| |
| cc_defaults { |
| name: "recovery_defaults", |
| cflags: [ |
| "-D_FILE_OFFSET_BITS=64", |
| // Must be the same as RECOVERY_API_VERSION. |
| "-DRECOVERY_API_VERSION=3", |
| "-Wall", |
| "-Werror", |
| ], |
| cpp_std: "c++17", |
| } |
| |
| bootstrap_go_package { |
| name: "soong-libaosprecovery_defaults", |
| pkgPath: "bootable/recovery/libaosprecovery", |
| deps: [ |
| "soong", |
| "soong-android", |
| "soong-cc" |
| ], |
| srcs: [ |
| "libaosprecovery_defaults.go", |
| "soong/makevars.go" |
| ], |
| pluginFor: ["soong_build"] |
| } |
| |
| libaosprecovery_defaults { |
| name: "libaosprecovery_defaults" |
| } |
| |
| cc_library_shared { |
| name: "libaosprecovery", |
| defaults: ["libaosprecovery_defaults"], |
| cflags: [ |
| "-std=gnu++2a", |
| "-DRECOVERY_API_VERSION=3" |
| ], |
| include_dirs: [ |
| "bootable/recovery/install/include", |
| "bootable/recovery/recovery_ui/include", |
| "bootable/recovery/recovery_utils/include", |
| "bootable/recovery/otautil/include", |
| "bootable/recovery/minadbd", |
| "bootable/recovery/minadbd/include", |
| "bootable/recovery/minzip", |
| "bootable/recovery/twrpinstall/include", |
| "system/libvintf/include" |
| ], |
| srcs: [ |
| "install/adb_install.cpp", |
| "install/asn1_decoder.cpp", |
| "install/get_args.cpp", |
| "install/install.cpp", |
| "install/package.cpp", |
| "install/verifier.cpp", |
| "install/wipe_data.cpp", |
| "install/set_metadata.cpp", |
| "install/ZipUtil.cpp" |
| ], |
| shared_libs: [ |
| "libbase", |
| "libbootloader_message", |
| "libcrypto", |
| "libext4_utils", |
| "libfs_mgr", |
| "libfusesideload", |
| "libhidl-gen-utils", |
| "libhidlbase", |
| "liblog", |
| "libselinux", |
| "libtinyxml2", |
| "libutils", |
| "libz", |
| "libziparchive", |
| "libcutils", |
| "libc++" |
| ], |
| static_libs: [ |
| "libotautil", |
| "libvintf", |
| "libhidl-gen-utils", |
| "librecovery_utils", |
| "libc++fs", |
| "update_metadata-protos" |
| ], |
| required: [ |
| "init_recovery.rc", |
| "ueventd.rc.recovery", |
| "libdl_android.bootstrap", |
| "ziptool.recovery" |
| ] |
| } |
| |
| prebuilt_etc { |
| name: "init_recovery.rc", |
| filename: "init.rc", |
| src: "etc/init.rc", |
| sub_dir: "init/hw", |
| recovery: true, |
| } |