diff options
author | Colin Cross <ccross@android.com> | 2018-08-15 05:05:30 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-08-15 05:05:30 -0700 |
commit | bdf5086a65f5f731ba4ab08ea45b26bfb068d7df (patch) | |
tree | 60a258723a9585736991ee2948246f5214300a7a | |
parent | 5b14c398e8c79b426698e4f9949440091c05024c (diff) | |
parent | 08d37d890f3197b909d3cdac91b5ed4b84cca4a3 (diff) | |
download | apache-commons-math-bdf5086a65f5f731ba4ab08ea45b26bfb068d7df.tar.gz |
Convert external/apache-commons-math to Android.bp am: d27d727919
am: 08d37d890f
Change-Id: I573dc936cb507844e36d3177af8a8b7be8039fbf
-rw-r--r-- | Android.bp | 32 | ||||
-rw-r--r-- | Android.mk | 43 |
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) |