1# Copyright (C) 2017 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15LOCAL_PATH := $(call my-dir)
16
17include $(CLEAR_VARS)
18LOCAL_MODULE := libctsgputools_jni
19LOCAL_SRC_FILES := \
20    jni/CtsGpuToolsJniOnLoad.cpp \
21    jni/android_gputools_cts_RootlessGpuDebug.cpp
22LOCAL_CFLAGS += -std=c++14 -Wall -Werror
23LOCAL_SHARED_LIBRARIES := libandroid libvulkan liblog
24LOCAL_NDK_STL_VARIANT := c++_static
25LOCAL_SDK_VERSION := current
26include $(BUILD_SHARED_LIBRARY)
27
28
29include $(CLEAR_VARS)
30LOCAL_SRC_FILES := $(call all-java-files-under, src)
31LOCAL_MODULE_TAGS := tests
32LOCAL_PACKAGE_NAME := CtsGpuToolsRootlessGpuDebugApp-DEBUG
33LOCAL_SDK_VERSION := current
34
35# tag this module as a cts test artifact
36LOCAL_COMPATIBILITY_SUITE := cts
37
38LOCAL_MULTILIB := both
39
40LOCAL_JNI_SHARED_LIBRARIES := \
41libctsgputools_jni
42
43LOCAL_AAPT_FLAGS := \
44--rename-manifest-package android.rootlessgpudebug.DEBUG.app \
45--debug-mode
46
47include $(call all-makefiles-under,$(LOCAL_PATH))
48include $(BUILD_CTS_SUPPORT_PACKAGE)
49
50
51include $(CLEAR_VARS)
52LOCAL_SRC_FILES := $(call all-java-files-under, src)
53LOCAL_MODULE_TAGS := tests
54LOCAL_PACKAGE_NAME := CtsGpuToolsRootlessGpuDebugApp-RELEASE
55LOCAL_SDK_VERSION := current
56
57# tag this module as a cts test artifact
58LOCAL_COMPATIBILITY_SUITE := cts
59
60LOCAL_MULTILIB := both
61
62LOCAL_JNI_SHARED_LIBRARIES := \
63libctsgputools_jni \
64libVkLayer_nullLayerC
65
66LOCAL_AAPT_FLAGS := \
67--rename-manifest-package android.rootlessgpudebug.RELEASE.app
68
69include $(call all-makefiles-under,$(LOCAL_PATH))
70
71include $(BUILD_CTS_SUPPORT_PACKAGE)
72