1 # Copyright (C) 2018 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 # These modules use the _a name to ensure they are listed first in the 16 # directory they are installed into so they are picked up before other 17 # drivers. 18 19 LOCAL_PATH := $(call my-dir) 20 21 include $(CLEAR_VARS) 22 23 LOCAL_MODULE := libEGL_locking_wrapper 24 LOCAL_MODULE_TAGS := optional 25 LOCAL_SRC_FILES := \ 26 egl.cpp \ 27 egl_wrapper_context.cpp \ 28 egl_wrapper_entry.cpp 29 LOCAL_CFLAGS := -Wall -Werror 30 LOCAL_C_INCLUDES := frameworks/native/opengl/include 31 LOCAL_SHARED_LIBRARIES := libdl 32 33 LOCAL_VENDOR_MODULE := true 34 35 ifeq (0, $(shell test $(PLATFORM_SDK_VERSION) -ge 21; echo $$?)) 36 LOCAL_MODULE_RELATIVE_PATH := gl_impl/locking_wrapper 37 else 38 LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/gl_impl/locking_wrapper 39 endif 40 41 # See b/67109557 42 ifeq (true, $(TARGET_TRANSLATE_2ND_ARCH)) 43 LOCAL_MULTILIB := first 44 endif 45 46 include $(BUILD_SHARED_LIBRARY) 47 48 include $(CLEAR_VARS) 49 50 LOCAL_MODULE := libGLESv1_CM_locking_wrapper 51 LOCAL_MODULE_TAGS := optional 52 LOCAL_SRC_FILES := \ 53 gles1.cpp \ 54 gles1_wrapper_context.cpp \ 55 gles1_wrapper_entry.cpp 56 LOCAL_CFLAGS := -Wall -Werror 57 LOCAL_C_INCLUDES := frameworks/native/opengl/include 58 LOCAL_SHARED_LIBRARIES := libEGL_locking_wrapper libdl 59 60 LOCAL_VENDOR_MODULE := true 61 62 ifeq (0, $(shell test $(PLATFORM_SDK_VERSION) -ge 21; echo $$?)) 63 LOCAL_MODULE_RELATIVE_PATH := gl_impl/locking_wrapper 64 else 65 LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/gl_impl/locking_wrapper 66 endif 67 68 # See b/67109557 69 ifeq (true, $(TARGET_TRANSLATE_2ND_ARCH)) 70 LOCAL_MULTILIB := first 71 endif 72 73 include $(BUILD_SHARED_LIBRARY) 74 75 include $(CLEAR_VARS) 76 77 LOCAL_MODULE := libGLESv2_locking_wrapper 78 LOCAL_MODULE_TAGS := optional 79 LOCAL_SRC_FILES := \ 80 gles3.cpp \ 81 gles3_wrapper_context.cpp \ 82 gles3_wrapper_entry.cpp 83 LOCAL_CFLAGS := -Wall -Werror 84 LOCAL_C_INCLUDES := frameworks/native/opengl/include 85 LOCAL_SHARED_LIBRARIES := libEGL_locking_wrapper libdl 86 87 LOCAL_VENDOR_MODULE := true 88 89 ifeq (0, $(shell test $(PLATFORM_SDK_VERSION) -ge 21; echo $$?)) 90 LOCAL_MODULE_RELATIVE_PATH := gl_impl/locking_wrapper 91 else 92 LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/gl_impl/locking_wrapper 93 endif 94 95 # See b/67109557 96 ifeq (true, $(TARGET_TRANSLATE_2ND_ARCH)) 97 LOCAL_MULTILIB := first 98 endif 99 100 include $(BUILD_SHARED_LIBRARY) 101