summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2018-08-15 03:18:43 -0700
committerandroid-build-merger <android-build-merger@google.com>2018-08-15 03:18:43 -0700
commit08d37d890f3197b909d3cdac91b5ed4b84cca4a3 (patch)
tree60a258723a9585736991ee2948246f5214300a7a
parent5b14c398e8c79b426698e4f9949440091c05024c (diff)
parentd27d727919c39b340093300fd3e9ea3cb47d1be1 (diff)
downloadapache-commons-math-08d37d890f3197b909d3cdac91b5ed4b84cca4a3.tar.gz
Convert external/apache-commons-math to Android.bp
am: d27d727919 Change-Id: I0438503c0a4f43702d30d86da3b4e222e3c615b5
-rw-r--r--Android.bp32
-rw-r--r--Android.mk43
2 files changed, 32 insertions, 43 deletions
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..01b80f7
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,32 @@
+//
+// Copyright (C) 2011 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+java_library {
+ name: "apache-commons-math",
+ host_supported: true,
+ java_version: "1.7",
+
+ srcs: ["src/main/java/**/*.java"],
+ sdk_version: "current",
+ errorprone: {
+ javacflags: ["-Xep:MissingOverride:OFF"],
+ },
+}
+
+java_library_host {
+ name: "apache-commons-math-host",
+ static_libs: ["apache-commons-math"],
+}
diff --git a/Android.mk b/Android.mk
deleted file mode 100644
index f2d7b5a..0000000
--- a/Android.mk
+++ /dev/null
@@ -1,43 +0,0 @@
-#
-# Copyright (C) 2011 The Android Open Source Project
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-LOCAL_PATH := $(call my-dir)
-
-apache-commons-math_src_files := $(call all-java-files-under,src/main/java)
-
-# build target jar
-# ============================================================
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := apache-commons-math
-LOCAL_MODULE_TAGS := optional
-LOCAL_SRC_FILES := $(apache-commons-math_src_files)
-LOCAL_JAVACFLAGS := -encoding UTF-8
-LOCAL_SDK_VERSION := current
-LOCAL_ERROR_PRONE_FLAGS := -Xep:MissingOverride:OFF
-include $(BUILD_STATIC_JAVA_LIBRARY)
-
-# build host jar
-# ============================================================
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := apache-commons-math-host
-LOCAL_MODULE_TAGS := optional
-LOCAL_SRC_FILES := $(apache-commons-math_src_files)
-LOCAL_JAVACFLAGS := -encoding UTF-8
-LOCAL_SDK_VERSION := current
-LOCAL_JAVA_LANGUAGE_VERSION := 1.7
-LOCAL_ERROR_PRONE_FLAGS := -Xep:MissingOverride:OFF
-include $(BUILD_HOST_JAVA_LIBRARY)