From 42d7779caf217660113c308d845cd9e11c191dd5 Mon Sep 17 00:00:00 2001 From: Tianjie Xu Date: Fri, 28 Jun 2019 11:04:07 -0700 Subject: [PATCH] Build libimgdiff as a host only library Stop building libimgdiff on device because we are only running patching there. Test: unit tests pass Change-Id: I4225c6b52a536617301a64c405e325799a303b40 --- applypatch/Android.bp | 4 +--- tests/Android.bp | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/applypatch/Android.bp b/applypatch/Android.bp index 620ca6cc..64dd38d2 100644 --- a/applypatch/Android.bp +++ b/applypatch/Android.bp @@ -114,11 +114,9 @@ cc_binary { ], } -cc_library_static { +cc_library_host_static { name: "libimgdiff", - host_supported: true, - defaults: [ "applypatch_defaults", ], diff --git a/tests/Android.bp b/tests/Android.bp index fec2f07d..1801f3b5 100644 --- a/tests/Android.bp +++ b/tests/Android.bp @@ -50,12 +50,11 @@ cc_defaults { }, } -// libapplypatch, libapplypatch_modes, libimgdiff, libimgpatch +// libapplypatch, libapplypatch_modes, libimgpatch libapplypatch_static_libs = [ "libapplypatch_modes", "libapplypatch", "libedify", - "libimgdiff", "libimgpatch", "libotautil", "libbsdiff",