aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Deymo <deymo@google.com>2017-07-17 16:57:05 +0200
committerAlex Deymo <deymo@google.com>2017-07-17 17:01:06 +0200
commit631c662e75f48e26298cb0f3bf4205c464cb9b42 (patch)
tree4e21a1393d59b2843ceea94a837aa735986a9d15
parent7a4643f007d2859128bc598ca6b7fdc8800fe57a (diff)
downloadplatform_external_libbrillo-631c662e75f48e26298cb0f3bf4205c464cb9b42.tar.gz
platform_external_libbrillo-631c662e75f48e26298cb0f3bf4205c464cb9b42.tar.bz2
platform_external_libbrillo-631c662e75f48e26298cb0f3bf4205c464cb9b42.zip
Fix mac build.android-o-preview-4
The libbrillo_linux_sources should have been included in the target library only since those are not available in all hosts. Bug: None Test: `mmma external/libbrillo` on a mac Change-Id: Id09bcb814bae68dabf60e965b7184a484b5cd787
-rw-r--r--Android.bp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp
index e59e7fe..52ae4f5 100644
--- a/Android.bp
+++ b/Android.bp
@@ -131,7 +131,7 @@ libbrillo_shared_libraries = ["libchrome"]
cc_library {
name: "libbrillo",
host_supported: true,
- srcs: libbrillo_core_sources + libbrillo_linux_sources,
+ srcs: libbrillo_core_sources,
shared_libs: libbrillo_shared_libraries,
static_libs: [
"libmodpb64",
@@ -144,6 +144,9 @@ cc_library {
host: {
cppflags: ["-D__ANDROID_HOST__"],
},
+ android: {
+ srcs: libbrillo_linux_sources,
+ },
},
}