summaryrefslogtreecommitdiffstats
path: root/updater/Android.bp
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2020-01-15 18:38:09 +0100
committerDan Willemsen <dwillemsen@google.com>2020-01-15 18:39:13 +0100
commit5a6784168f25cf6e0139d48baa516ed510f19595 (patch)
treebf0092401543251c25738d5a7593f4c00d123470 /updater/Android.bp
parentMerge "Add elsk@ to OWNERS" (diff)
downloadandroid_bootable_recovery-5a6784168f25cf6e0139d48baa516ed510f19595.tar
android_bootable_recovery-5a6784168f25cf6e0139d48baa516ed510f19595.tar.gz
android_bootable_recovery-5a6784168f25cf6e0139d48baa516ed510f19595.tar.bz2
android_bootable_recovery-5a6784168f25cf6e0139d48baa516ed510f19595.tar.lz
android_bootable_recovery-5a6784168f25cf6e0139d48baa516ed510f19595.tar.xz
android_bootable_recovery-5a6784168f25cf6e0139d48baa516ed510f19595.tar.zst
android_bootable_recovery-5a6784168f25cf6e0139d48baa516ed510f19595.zip
Diffstat (limited to 'updater/Android.bp')
-rw-r--r--updater/Android.bp43
1 files changed, 37 insertions, 6 deletions
diff --git a/updater/Android.bp b/updater/Android.bp
index 8a60ef76a..cbef43099 100644
--- a/updater/Android.bp
+++ b/updater/Android.bp
@@ -13,11 +13,7 @@
// limitations under the License.
cc_defaults {
- name: "libupdater_defaults",
-
- defaults: [
- "recovery_defaults",
- ],
+ name: "libupdater_static_libs",
static_libs: [
"libapplypatch",
@@ -45,6 +41,15 @@ cc_defaults {
"libcutils",
"libutils",
],
+}
+
+cc_defaults {
+ name: "libupdater_defaults",
+
+ defaults: [
+ "recovery_defaults",
+ "libupdater_static_libs",
+ ],
shared_libs: [
"libcrypto",
@@ -64,7 +69,7 @@ cc_defaults {
"libext2_uuid",
"libext2_e2p",
"libext2fs",
- ]
+ ],
}
cc_library_static {
@@ -155,3 +160,29 @@ cc_library_host_static {
"include",
],
}
+
+cc_binary_host {
+ name: "update_host_simulator",
+ defaults: ["libupdater_static_libs"],
+
+ srcs: ["update_simulator_main.cpp"],
+
+ cflags: [
+ "-Wall",
+ "-Werror",
+ ],
+
+ static_libs: [
+ "libupdater_host",
+ "libupdater_core",
+ "libcrypto_static",
+ "libfstab",
+ "libc++fs",
+ ],
+
+ target: {
+ darwin: {
+ enabled: false,
+ },
+ },
+}