summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorSasha Smundak <asmundak@google.com>2019-01-22 14:41:36 -0800
committerandroid-build-merger <android-build-merger@google.com>2019-01-22 14:41:36 -0800
commitb71aa23fea5b4e35c2f21584e61328db59cc2936 (patch)
treefd6ffb7f2ed3de7351877bf1692142e22c066d52 /common
parent77099f2b06d5073f1ad511e80b4b335947465fed (diff)
parentc4915d6e1c54318bb1397f281f35fcf5e3af72db (diff)
downloadex-b71aa23fea5b4e35c2f21584e61328db59cc2936.tar.gz
Merge "Convert Android.mk files to Android.bp" am: 3fa00b9343 am: 1b6d2a8e0c
am: c4915d6e1c Change-Id: Ib9e11c6be88bca2b6928f1130e877eb3a49a36f6
Diffstat (limited to 'common')
-rw-r--r--common/Android.mk21
-rw-r--r--common/tests/Android.bp25
-rw-r--r--common/tests/Android.mk28
3 files changed, 25 insertions, 49 deletions
diff --git a/common/Android.mk b/common/Android.mk
deleted file mode 100644
index 187fa9e7..00000000
--- a/common/Android.mk
+++ /dev/null
@@ -1,21 +0,0 @@
-# Copyright (C) 2009 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)
-
-# Build the test package
-# we can't build the test for apps only build, because android.test.runner is not unbundled yet.
-ifeq ($(TARGET_BUILD_APPS),)
-include $(call all-makefiles-under, $(LOCAL_PATH))
-endif
diff --git a/common/tests/Android.bp b/common/tests/Android.bp
new file mode 100644
index 00000000..d4d8eb32
--- /dev/null
+++ b/common/tests/Android.bp
@@ -0,0 +1,25 @@
+// Copyright (C) 2009 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.
+
+android_test {
+ name: "AndroidCommonTests",
+ certificate: "platform",
+ libs: ["android.test.runner.stubs"],
+ sdk_version: "8",
+ srcs: ["src/**/*.java"],
+ static_libs: ["android-common"],
+ optimize: {
+ enabled: false,
+ },
+}
diff --git a/common/tests/Android.mk b/common/tests/Android.mk
deleted file mode 100644
index 42ea1681..00000000
--- a/common/tests/Android.mk
+++ /dev/null
@@ -1,28 +0,0 @@
-# Copyright (C) 2009 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)
-
-include $(CLEAR_VARS)
-LOCAL_CERTIFICATE := platform
-LOCAL_JAVA_LIBRARIES := android.test.runner.stubs
-LOCAL_MODULE_TAGS := tests
-LOCAL_PACKAGE_NAME := AndroidCommonTests
-LOCAL_SDK_VERSION := 8
-LOCAL_SRC_FILES := $(call all-java-files-under, src)
-LOCAL_STATIC_JAVA_LIBRARIES := android-common
-
-LOCAL_PROGUARD_ENABLED := disabled
-
-include $(BUILD_PACKAGE)