Home | History | Annotate | Download | only in layers
      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 
     15 LOCAL_PATH := $(call my-dir)
     16 
     17 
     18 include $(CLEAR_VARS)
     19 LOCAL_MODULE := libVkLayer_nullLayerA
     20 LOCAL_MODULE_TAGS := tests
     21 LOCAL_SRC_FILES := jni/nullLayer.cpp
     22 LOCAL_CFLAGS += -Wall -Werror -fvisibility=hidden -DLAYERNAME="A"
     23 LOCAL_SHARED_LIBRARIES := libandroid libvulkan libEGL libGLESv3 liblog
     24 LOCAL_NDK_STL_VARIANT := c++_static
     25 LOCAL_SDK_VERSION := current
     26 include $(BUILD_SHARED_LIBRARY)
     27 
     28 
     29 include $(CLEAR_VARS)
     30 LOCAL_MODULE := libVkLayer_nullLayerB
     31 LOCAL_MODULE_TAGS := tests
     32 LOCAL_SRC_FILES := jni/nullLayer.cpp
     33 LOCAL_CFLAGS += -Wall -Werror -fvisibility=hidden -DLAYERNAME="B"
     34 LOCAL_SHARED_LIBRARIES := libandroid libvulkan libEGL libGLESv3 liblog
     35 LOCAL_NDK_STL_VARIANT := c++_static
     36 LOCAL_SDK_VERSION := current
     37 include $(BUILD_SHARED_LIBRARY)
     38 
     39 
     40 include $(CLEAR_VARS)
     41 LOCAL_MODULE := libVkLayer_nullLayerC
     42 LOCAL_MODULE_TAGS := tests
     43 LOCAL_SRC_FILES := jni/nullLayer.cpp
     44 LOCAL_CFLAGS += -Wall -Werror -fvisibility=hidden -DLAYERNAME="C"
     45 LOCAL_SHARED_LIBRARIES := libandroid libvulkan libEGL libGLESv3 liblog
     46 LOCAL_NDK_STL_VARIANT := c++_static
     47 LOCAL_SDK_VERSION := current
     48 include $(BUILD_SHARED_LIBRARY)
     49 
     50 
     51 include $(CLEAR_VARS)
     52 LOCAL_MODULE := libGLES_glesLayerA
     53 LOCAL_MODULE_TAGS := tests
     54 LOCAL_SRC_FILES := jni/glesLayer.cpp
     55 LOCAL_CFLAGS += -std=c++14 -Wall -Werror -fvisibility=hidden -DLAYERNAME=A
     56 LOCAL_SHARED_LIBRARIES := libandroid libEGL libGLESv3 liblog
     57 LOCAL_NDK_STL_VARIANT := c++_static
     58 LOCAL_SDK_VERSION := current
     59 include $(BUILD_SHARED_LIBRARY)
     60 
     61 
     62 include $(CLEAR_VARS)
     63 LOCAL_MODULE := libGLES_glesLayerB
     64 LOCAL_MODULE_TAGS := tests
     65 LOCAL_SRC_FILES := jni/glesLayer.cpp
     66 LOCAL_CFLAGS += -std=c++14 -Wall -Werror -fvisibility=hidden -DLAYERNAME=B
     67 LOCAL_SHARED_LIBRARIES := libandroid libEGL libGLESv3 liblog
     68 LOCAL_NDK_STL_VARIANT := c++_static
     69 LOCAL_SDK_VERSION := current
     70 include $(BUILD_SHARED_LIBRARY)
     71 
     72 
     73 include $(CLEAR_VARS)
     74 LOCAL_MODULE := libGLES_glesLayerC
     75 LOCAL_MODULE_TAGS := tests
     76 LOCAL_SRC_FILES := jni/glesLayer.cpp
     77 LOCAL_CFLAGS += -std=c++14 -Wall -Werror -fvisibility=hidden -DLAYERNAME=C
     78 LOCAL_SHARED_LIBRARIES := libandroid libEGL libGLESv3 liblog
     79 LOCAL_NDK_STL_VARIANT := c++_static
     80 LOCAL_SDK_VERSION := current
     81 include $(BUILD_SHARED_LIBRARY)
     82 
     83 
     84 include $(CLEAR_VARS)
     85 
     86 LOCAL_MODULE_TAGS := tests
     87 
     88 LOCAL_PACKAGE_NAME := CtsGpuToolsRootlessGpuDebugApp-LAYERS
     89 LOCAL_SDK_VERSION := current
     90 
     91 # tag this module as a cts test artifact
     92 LOCAL_COMPATIBILITY_SUITE := cts
     93 
     94 LOCAL_MULTILIB := both
     95 
     96 LOCAL_JNI_SHARED_LIBRARIES := \
     97 libVkLayer_nullLayerA \
     98 libVkLayer_nullLayerB \
     99 libVkLayer_nullLayerC
    100 
    101 LOCAL_USE_EMBEDDED_NATIVE_LIBS := false
    102 
    103 include $(BUILD_CTS_SUPPORT_PACKAGE)
    104 
    105 
    106 include $(CLEAR_VARS)
    107 
    108 LOCAL_MODULE_TAGS := tests
    109 
    110 LOCAL_PACKAGE_NAME := CtsGpuToolsRootlessGpuDebugApp-GLES_LAYERS
    111 LOCAL_SDK_VERSION := current
    112 
    113 # tag this module as a cts test artifact
    114 LOCAL_COMPATIBILITY_SUITE := cts
    115 
    116 LOCAL_MULTILIB := both
    117 
    118 LOCAL_JNI_SHARED_LIBRARIES := \
    119 libGLES_glesLayerA \
    120 libGLES_glesLayerB \
    121 libGLES_glesLayerC
    122 
    123 LOCAL_USE_EMBEDDED_NATIVE_LIBS := false
    124 
    125 LOCAL_AAPT_FLAGS := \
    126 --rename-manifest-package android.rootlessgpudebug.GLES_LAYERS.app
    127 
    128 include $(BUILD_CTS_SUPPORT_PACKAGE)
    129 
    130 
    131 include $(call all-makefiles-under,$(LOCAL_PATH))
    132