diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2019-05-15 04:41:37 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2019-05-15 04:41:37 +0000 |
commit | 5231433bcbb1d5fc4dabb4928567221214be2aec (patch) | |
tree | 1b79773169e69a14c518cd8f0de58c8354fd8b9b | |
parent | 61dfd06fcc80d79c31ad7887230ab6ce6567adc2 (diff) | |
parent | 6cb0801e947c173f29a617ab1c6fb669a34c6d92 (diff) | |
download | cts-5231433bcbb1d5fc4dabb4928567221214be2aec.tar.gz |
Merge "Convert tests/tests/graphics/**/Android.mk files to Android.bp (cherrypick)"
-rw-r--r-- | tests/tests/graphics/Android.bp | 43 | ||||
-rw-r--r-- | tests/tests/graphics/Android.mk | 51 | ||||
-rw-r--r-- | tests/tests/graphics/jni/Android.bp | 59 | ||||
-rw-r--r-- | tests/tests/graphics/jni/Android.mk | 51 |
4 files changed, 102 insertions, 102 deletions
diff --git a/tests/tests/graphics/Android.bp b/tests/tests/graphics/Android.bp new file mode 100644 index 00000000000..da6558d3868 --- /dev/null +++ b/tests/tests/graphics/Android.bp @@ -0,0 +1,43 @@ +// Copyright (C) 2008 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: "CtsGraphicsTestCases", + defaults: ["cts_defaults"], + compile_multilib: "both", + libs: [ + "android.test.runner.stubs", + "android.test.base.stubs", + ], + static_libs: [ + "androidx.test.rules", + "mockito-target-minus-junit4", + "compatibility-device-util-axt", + "ctsdeviceutillegacy-axt", + "ctstestrunner-axt", + "androidx.annotation_annotation", + "junit", + "androidx.core_core", + ], + jni_libs: ["libctsgraphics_jni"], + srcs: ["src/**/*.java"], + // Tag this module as a cts test artifact + test_suites: [ + "cts", + "vts", + "general-tests", + ], + // Enforce public / test api only + sdk_version: "test_current", +} diff --git a/tests/tests/graphics/Android.mk b/tests/tests/graphics/Android.mk deleted file mode 100644 index d3d10469e0e..00000000000 --- a/tests/tests/graphics/Android.mk +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright (C) 2008 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_MODULE_TAGS := tests - -LOCAL_MULTILIB := both - -LOCAL_JAVA_LIBRARIES := android.test.runner.stubs android.test.base.stubs - -LOCAL_STATIC_JAVA_LIBRARIES += \ - androidx.test.rules \ - mockito-target-minus-junit4 \ - compatibility-device-util-axt \ - ctsdeviceutillegacy-axt \ - ctstestrunner-axt \ - androidx.annotation_annotation \ - junit - -LOCAL_STATIC_ANDROID_LIBRARIES += \ - androidx.core_core - -LOCAL_JNI_SHARED_LIBRARIES := libctsgraphics_jni - -LOCAL_SRC_FILES := $(call all-java-files-under, src) - -LOCAL_PACKAGE_NAME := CtsGraphicsTestCases - -# Tag this module as a cts test artifact -LOCAL_COMPATIBILITY_SUITE := cts vts general-tests - -# Enforce public / test api only -LOCAL_SDK_VERSION := test_current - -include $(BUILD_CTS_PACKAGE) - -include $(call all-makefiles-under,$(LOCAL_PATH)) diff --git a/tests/tests/graphics/jni/Android.bp b/tests/tests/graphics/jni/Android.bp new file mode 100644 index 00000000000..fdcbd4a6e4d --- /dev/null +++ b/tests/tests/graphics/jni/Android.bp @@ -0,0 +1,59 @@ +// Copyright 2016 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. + +cc_test_library { + name: "libctsgraphics_jni", + gtest: false, + srcs: [ + "CtsGraphicsJniOnLoad.cpp", + "android_graphics_cts_ANativeWindowTest.cpp", + "android_graphics_cts_ASurfaceTextureTest.cpp", + "android_graphics_cts_BasicVulkanGpuTest.cpp", + "android_graphics_cts_BitmapTest.cpp", + "android_graphics_cts_SyncTest.cpp", + "android_graphics_cts_CameraGpuCtsActivity.cpp", + "android_graphics_cts_CameraVulkanGpuTest.cpp", + "android_graphics_cts_MediaVulkanGpuTest.cpp", + "android_graphics_cts_VulkanFeaturesTest.cpp", + "android_graphics_cts_VulkanPreTransformCtsActivity.cpp", + "CameraTestHelpers.cpp", + "ImageReaderTestHelpers.cpp", + "MediaTestHelpers.cpp", + "NativeTestHelpers.cpp", + "VulkanPreTransformTestHelpers.cpp", + "VulkanTestHelpers.cpp", + ], + cflags: [ + "-Wall", + "-Werror", + "-DGL_GLEXT_PROTOTYPES", + "-DEGL_EGLEXT_PROTOTYPES", + ], + static_libs: ["libvkjson_ndk"], + shared_libs: [ + "libandroid", + "libvulkan", + "libnativewindow", + "libsync", + "liblog", + "libdl", + "libjnigraphics", + "libcamera2ndk", + "libmediandk", + "libEGL", + "libGLESv2", + ], + stl: "c++_static", + sdk_version: "current", +} diff --git a/tests/tests/graphics/jni/Android.mk b/tests/tests/graphics/jni/Android.mk deleted file mode 100644 index 2906bf5d06f..00000000000 --- a/tests/tests/graphics/jni/Android.mk +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright 2016 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_MODULE := libctsgraphics_jni - -LOCAL_MODULE_TAGS := tests - -LOCAL_SRC_FILES := \ - CtsGraphicsJniOnLoad.cpp \ - android_graphics_cts_ANativeWindowTest.cpp \ - android_graphics_cts_ASurfaceTextureTest.cpp \ - android_graphics_cts_BasicVulkanGpuTest.cpp \ - android_graphics_cts_BitmapTest.cpp \ - android_graphics_cts_SyncTest.cpp \ - android_graphics_cts_CameraGpuCtsActivity.cpp \ - android_graphics_cts_CameraVulkanGpuTest.cpp \ - android_graphics_cts_MediaVulkanGpuTest.cpp \ - android_graphics_cts_VulkanFeaturesTest.cpp \ - android_graphics_cts_VulkanPreTransformCtsActivity.cpp \ - CameraTestHelpers.cpp \ - ImageReaderTestHelpers.cpp \ - MediaTestHelpers.cpp \ - NativeTestHelpers.cpp \ - VulkanPreTransformTestHelpers.cpp \ - VulkanTestHelpers.cpp - -LOCAL_CFLAGS += -Wall -Werror -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES - -LOCAL_STATIC_LIBRARIES := libvkjson_ndk -LOCAL_SHARED_LIBRARIES := libandroid libvulkan libnativewindow libsync liblog libdl libjnigraphics \ - libcamera2ndk libmediandk libEGL libGLESv2 -LOCAL_NDK_STL_VARIANT := c++_static - -LOCAL_SDK_VERSION := current - -include $(BUILD_SHARED_LIBRARY) |