From 48529337077a2fad36a7cba0a26083694bff3537 Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Mon, 2 Oct 2017 10:38:16 -0700 Subject: [PATCH] Rename target.linux[_x86[_64]] to target.linux_glibc[_x86[_64]] In the future, target.linux will apply to all targets running a linux kernel (android, linux_glibc, linux_bionic). So move all current users to the specific linux_glibc. There will be another cleanup pass later that will move some instances back to target.linux if the properties should be shared with target.android and target.linux_bionic, but target.linux needs to be removed first. Test: out/soong/build.ninja identical before/after Change-Id: I72ef34689c60ce547cab2898e354b027e335f6a1 Exempt-From-Owner-Approval: build system cleanup --- base/Android.bp | 4 ++-- libbacktrace/Android.bp | 6 +++--- libdiskconfig/Android.bp | 2 +- libutils/Android.bp | 2 +- libutils/tests/Android.bp | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/base/Android.bp b/base/Android.bp index da262d20d..0fd00ea5d 100644 --- a/base/Android.bp +++ b/base/Android.bp @@ -89,7 +89,7 @@ cc_library { cppflags: ["-Wexit-time-destructors"], enabled: true, }, - linux: { + linux_glibc: { srcs: [ "chrono_utils.cpp", "errors_unix.cpp", @@ -135,7 +135,7 @@ cc_test { misc_undefined: ["integer"], }, }, - linux: { + linux_glibc: { srcs: ["chrono_utils_test.cpp"], }, windows: { diff --git a/libbacktrace/Android.bp b/libbacktrace/Android.bp index 69d7b6db4..2f2068407 100644 --- a/libbacktrace/Android.bp +++ b/libbacktrace/Android.bp @@ -83,7 +83,7 @@ cc_library { darwin: { enabled: true, }, - linux: { + linux_glibc: { srcs: libbacktrace_sources, shared_libs: [ @@ -135,7 +135,7 @@ cc_library_shared { srcs: ["backtrace_testlib.cpp"], target: { - linux: { + linux_glibc: { shared_libs: [ "libunwind", "libunwindstack", @@ -231,7 +231,7 @@ cc_test { "libutils", ], }, - linux: { + linux_glibc: { host_ldlibs: [ "-lncurses", ], diff --git a/libdiskconfig/Android.bp b/libdiskconfig/Android.bp index 23a5c79d0..b92f0863d 100644 --- a/libdiskconfig/Android.bp +++ b/libdiskconfig/Android.bp @@ -23,7 +23,7 @@ cc_library { darwin: { enabled: false, }, - linux: { + linux_glibc: { cflags: [ "-O2", "-g", diff --git a/libutils/Android.bp b/libutils/Android.bp index 038fd73f9..30e6b49a8 100644 --- a/libutils/Android.bp +++ b/libutils/Android.bp @@ -121,7 +121,7 @@ cc_library { }, }, - linux: { + linux_glibc: { srcs: [ "Looper.cpp", "ProcessCallStack.cpp", diff --git a/libutils/tests/Android.bp b/libutils/tests/Android.bp index 3fadef44d..6911fc51b 100644 --- a/libutils/tests/Android.bp +++ b/libutils/tests/Android.bp @@ -46,7 +46,7 @@ cc_test { "libbase", ], }, - linux: { + linux_glibc: { srcs: [ "Looper_test.cpp", "RefBase_test.cpp",