OSDN Git Service

Add SWIFTSHADER prefix to Android.mk variables
authorLogan Chien <loganchien@google.com>
Mon, 10 Sep 2018 14:14:20 +0000 (22:14 +0800)
committerLogan Chien <loganchien@google.com>
Thu, 20 Sep 2018 02:07:56 +0000 (02:07 +0000)
This commit replaces use_subzero with SWIFTSHADER_USE_SUBZERO and
unsupported_build with SWIFTSHADER_UNSUPPORTED_BUILD in Android.mk so
that it can be consistent with other variables.

Change-Id: Ia22cc88bc5804d7d2bea942bbceb2fc30c88aa18
Reviewed-on: https://swiftshader-review.googlesource.com/20588
Tested-by: Logan Chien <loganchien@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Android.mk
src/Android.mk
src/OpenGL/libGLES_CM/Android.mk
src/OpenGL/libGLESv2/Android.mk

index 893ca07..9601daa 100644 (file)
@@ -24,13 +24,13 @@ ifeq ($(SWIFTSHADER_LLVM_VERSION),3)
 # Reactor with LLVM 3.0 doesn't support ARM.  Use Subzero as the Reactor JIT
 # back-end on ARM.
 ifeq ($(TARGET_ARCH),$(filter $(TARGET_ARCH),arm))
-use_subzero := true
+SWIFTSHADER_USE_SUBZERO := true
 endif
 endif
 
 
 # Check whether SwiftShader requires full C++ 11 support.
-ifdef use_subzero
+ifdef SWIFTSHADER_USE_SUBZERO
 SWIFTSHADER_REQUIRES_CXX11 := true
 endif
 
@@ -41,7 +41,7 @@ endif
 ifeq ($(SWIFTSHADER_REQUIRES_CXX11),true)
 # Full C++ 11 support is only available from Marshmallow and up.
 ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 23 && echo PreMarshmallow),PreMarshmallow)
-unsupported_build := true
+SWIFTSHADER_UNSUPPORTED_BUILD := true
 endif
 endif
 
@@ -49,17 +49,17 @@ endif
 # Check whether $(TARGET_ARCH) is supported.
 ifeq ($(SWIFTSHADER_LLVM_VERSION),3)
 ifneq ($(TARGET_ARCH),$(filter $(TARGET_ARCH),x86 x86_64 arm))
-unsupported_build := true
+SWIFTSHADER_UNSUPPORTED_BUILD := true
 endif
 endif
 
 ifeq ($(SWIFTSHADER_LLVM_VERSION),7)
 ifneq ($(TARGET_ARCH),$(filter $(TARGET_ARCH),x86 x86_64 arm arm64))
-unsupported_build := true
+SWIFTSHADER_UNSUPPORTED_BUILD := true
 endif
 endif
 
 
-ifndef unsupported_build
+ifndef SWIFTSHADER_UNSUPPORTED_BUILD
 include $(call all-makefiles-under,$(LOCAL_PATH))
 endif
index 8559689..3695926 100644 (file)
@@ -6,7 +6,7 @@ COMMON_C_INCLUDES += \
        $(LOCAL_PATH)/OpenGL/ \
        $(LOCAL_PATH)
 
-ifdef use_subzero
+ifdef SWIFTSHADER_USE_SUBZERO
 
 COMMON_C_INCLUDES += \
        $(LOCAL_PATH)/../third_party/subzero/ \
@@ -59,7 +59,7 @@ COMMON_SRC_FILES += \
        Main/FrameBufferAndroid.cpp \
        Main/SwiftConfig.cpp
 
-ifdef use_subzero
+ifdef SWIFTSHADER_USE_SUBZERO
 COMMON_SRC_FILES += \
        Reactor/SubzeroReactor.cpp \
        Reactor/Routine.cpp \
index 30be9ba..624b350 100644 (file)
@@ -56,7 +56,7 @@ COMMON_C_INCLUDES := \
        $(LOCAL_PATH)/../../Shader/ \
        $(LOCAL_PATH)/../../Main/
 
-ifdef use_subzero
+ifdef SWIFTSHADER_USE_SUBZERO
 COMMON_STATIC_LIBRARIES := libsubzero
 else
 COMMON_STATIC_LIBRARIES := libLLVM_swiftshader
index b4b98fe..f92358b 100644 (file)
@@ -65,7 +65,7 @@ COMMON_C_INCLUDES := \
        $(LOCAL_PATH)/../../Shader/ \
        $(LOCAL_PATH)/../../Main/
 
-ifdef use_subzero
+ifdef SWIFTSHADER_USE_SUBZERO
 COMMON_STATIC_LIBRARIES := libsubzero
 else
 COMMON_STATIC_LIBRARIES := libLLVM_swiftshader