From 7ba4a26e551b83c16805ae31a9b7c3d2f3057cf0 Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Mon, 19 Nov 2018 18:00:54 -0800 Subject: Convert libtinyxml to Android.bp See build/soong/README.md for more information. Test: cd external/tinyxml; mma Change-Id: Ia11bc2f7b71f92a37909d3d135efd1aa21fa218f --- Android.bp | 29 +++++++++++++++++++++++++++++ Android.mk | 39 --------------------------------------- 2 files changed, 29 insertions(+), 39 deletions(-) create mode 100644 Android.bp delete mode 100644 Android.mk 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) - - -- cgit v1.2.3