summaryrefslogtreecommitdiffstats
path: root/otautil/Android.bp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-05-04 18:08:18 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-05-04 18:08:18 +0200
commit5818e894dfb7c1504c35dc8077ac5a0d309b2362 (patch)
tree55d24b52c2b73dc7e15db0216a0a3df314ec0037 /otautil/Android.bp
parentMerge "Move menu headers/items to std::vector<std::string>." (diff)
parentotautil: Only build the needed files for host build. (diff)
downloadandroid_bootable_recovery-5818e894dfb7c1504c35dc8077ac5a0d309b2362.tar
android_bootable_recovery-5818e894dfb7c1504c35dc8077ac5a0d309b2362.tar.gz
android_bootable_recovery-5818e894dfb7c1504c35dc8077ac5a0d309b2362.tar.bz2
android_bootable_recovery-5818e894dfb7c1504c35dc8077ac5a0d309b2362.tar.lz
android_bootable_recovery-5818e894dfb7c1504c35dc8077ac5a0d309b2362.tar.xz
android_bootable_recovery-5818e894dfb7c1504c35dc8077ac5a0d309b2362.tar.zst
android_bootable_recovery-5818e894dfb7c1504c35dc8077ac5a0d309b2362.zip
Diffstat (limited to 'otautil/Android.bp')
-rw-r--r--otautil/Android.bp17
1 files changed, 10 insertions, 7 deletions
diff --git a/otautil/Android.bp b/otautil/Android.bp
index 45d119cb5..572d8df86 100644
--- a/otautil/Android.bp
+++ b/otautil/Android.bp
@@ -17,17 +17,13 @@ cc_library_static {
host_supported: true,
+ // Minimal set of files to support host build.
srcs: [
- "SysUtil.cpp",
- "DirUtil.cpp",
- "ThermalUtil.cpp",
- "mounts.cpp",
"paths.cpp",
"rangeset.cpp",
],
static_libs: [
- "libselinux",
"libbase",
],
@@ -42,10 +38,17 @@ cc_library_static {
],
target: {
- darwin: {
- exclude_srcs: [
+ android: {
+ srcs: [
+ "DirUtil.cpp",
+ "SysUtil.cpp",
+ "ThermalUtil.cpp",
"mounts.cpp",
],
+
+ static_libs: [
+ "libselinux",
+ ],
},
},
}