aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNan Zhang <nanzhang@google.com>2017-11-29 22:45:16 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-11-29 22:45:16 +0000
commit012404a02ae3580308ebf1104b2b39845fe8711a (patch)
treed01c1983a65a89509eca4ad18cb36109b8b96106
parentcad89f860bc8651e59b4703c192a842ce805dfc6 (diff)
parent2053650b8ba7a88b3c79fb5ed62bd2b6ce050ffc (diff)
downloadlibbrillo-012404a02ae3580308ebf1104b2b39845fe8711a.tar.gz
Convert libbrillo-minijail target to Soong am: f85de06d28
am: 2053650b8b Change-Id: I004617bdc67c4c4f059b2283e79ba83a32655027
-rw-r--r--Android.bp17
-rw-r--r--Android.mk23
2 files changed, 17 insertions, 23 deletions
diff --git a/Android.bp b/Android.bp
index 52ae4f5..5a6c614 100644
--- a/Android.bp
+++ b/Android.bp
@@ -165,6 +165,23 @@ cc_library_shared {
export_include_dirs: ["."],
}
+// Shared minijail library for target
+// ========================================================
+cc_library_shared {
+ name: "libbrillo-minijail",
+ srcs: [
+ "brillo/minijail/minijail.cc",
+ ],
+ shared_libs: [
+ "libchrome",
+ "libbrillo",
+ "libminijail",
+ ],
+ static_libs: ["libgtest_prod"],
+ cflags: libbrillo_CFLAGS,
+ export_include_dirs: ["."],
+}
+
// Shared and static stream library for target and host
// ========================================================
cc_library {
diff --git a/Android.mk b/Android.mk
index e064610..38c3a3b 100644
--- a/Android.mk
+++ b/Android.mk
@@ -12,29 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-# Default values for the USE flags. Override these USE flags from your product
-# by setting BRILLO_USE_* values. Note that we define local variables like
-# local_use_* to prevent leaking our default setting for other packages.
-
-LOCAL_PATH := $(call my-dir)
-
-libbrillo_CFLAGS := \
- -Wall \
- -Werror
-
-# Shared minijail library for target
-# ========================================================
-include $(CLEAR_VARS)
-LOCAL_CPP_EXTENSION := .cc
-LOCAL_MODULE := libbrillo-minijail
-LOCAL_SRC_FILES := brillo/minijail/minijail.cc
-LOCAL_SHARED_LIBRARIES := libchrome libbrillo libminijail
-LOCAL_STATIC_LIBRARIES := libgtest_prod
-LOCAL_CFLAGS := $(libbrillo_CFLAGS)
-LOCAL_CLANG := true
-LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
-include $(BUILD_SHARED_LIBRARY)
-
# Run unit tests on target
# ========================================================
# We su shell because process tests try setting "illegal"