summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2018-11-20 12:24:50 -0800
committerandroid-build-merger <android-build-merger@google.com>2018-11-20 12:24:50 -0800
commita0d35048a6c0c31f76c8098282c06b7d6c057b43 (patch)
tree2dfddf1445db0a7e8612d3b0b5993af101309596
parent3773a43ec3c99d80149d368aed834b56c67d2291 (diff)
parent040807802b79749d6375e3c1c1857c952f14209e (diff)
downloadtinyxml-a0d35048a6c0c31f76c8098282c06b7d6c057b43.tar.gz
Merge "Convert libtinyxml to Android.bp"
am: 040807802b Change-Id: I53be02116eeb95912b771eade803b0b3ee6c34cc
-rw-r--r--Android.bp29
-rw-r--r--Android.mk39
2 files changed, 29 insertions, 39 deletions
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..4651d1f
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,29 @@
+// Copyright 2005 The Android Open Source Project
+//
+// Android.mk for TinyXml.
+//
+// Add -DTIXML_USE_STL to CFLAGS to use STL.
+//
+
+// For the device
+// =====================================================
+cc_library_shared {
+ name: "libtinyxml",
+
+ srcs: [
+ "tinyxml.cpp",
+ "tinyxmlparser.cpp",
+ "tinyxmlerror.cpp",
+ "tinystr.cpp",
+ ],
+
+ vendor: true,
+
+ cflags: [
+ "-Wno-implicit-fallthrough",
+ "-Wno-logical-op-parentheses",
+ "-Wno-missing-braces",
+ "-Wno-undefined-bool-conversion",
+ "-Werror",
+ ],
+}
diff --git a/Android.mk b/Android.mk
deleted file mode 100644
index bf735c4..0000000
--- a/Android.mk
+++ /dev/null
@@ -1,39 +0,0 @@
-# Copyright 2005 The Android Open Source Project
-#
-# Android.mk for TinyXml.
-#
-# Add -DTIXML_USE_STL to CFLAGS to use STL.
-#
-
-LOCAL_PATH := $(call my-dir)
-
-commonSources:= \
- tinyxml.cpp \
- tinyxmlparser.cpp \
- tinyxmlerror.cpp \
- tinystr.cpp
-
-commonFlags := \
- -Wno-implicit-fallthrough \
- -Wno-logical-op-parentheses \
- -Wno-missing-braces \
- -Wno-undefined-bool-conversion \
- -Werror
-
-
-# For the device
-# =====================================================
-include $(CLEAR_VARS)
-
-LOCAL_SRC_FILES:= \
- $(commonSources)
-
-LOCAL_MODULE:= libtinyxml
-
-LOCAL_VENDOR_MODULE := true
-
-LOCAL_CFLAGS+= $(commonFlags)
-
-include $(BUILD_SHARED_LIBRARY)
-
-