stk-code_catmod/lib/shaderc/third_party/Android.mk

36 lines
1.1 KiB
Makefile
Raw Normal View History

THIRD_PARTY_PATH := $(call my-dir)
# Set the location of glslang
ifeq ($(GLSLANG_LOCAL_PATH),)
GLSLANG_LOCAL_PATH:=$(THIRD_PARTY_PATH)/glslang
endif
include $(GLSLANG_LOCAL_PATH)/Android.mk
# Set the location of SPIRV-Tools.
# Allow the user to override it, but default it to under our third_party directory.
ifeq ($(SPVTOOLS_LOCAL_PATH),)
SPVTOOLS_LOCAL_PATH:=$(THIRD_PARTY_PATH)/spirv-tools
endif
ifeq ($(SPVHEADERS_LOCAL_PATH),)
# Use the third party dir if it exists.
ifneq ($(wildcard $(THIRD_PARTY_PATH)/spirv-headers/include/spirv/spir-v.xml),)
SPVHEADERS_LOCAL_PATH:=$(THIRD_PARTY_PATH)/spirv-headers
else
# Let SPIRV-Tools find its own headers and hope for the best.
endif
endif
# Now include the SPIRV-Tools dependency
include $(SPVTOOLS_LOCAL_PATH)/Android.mk
ifeq ($(SHADERC_ENABLE_SPVC),1)
# Set the location of SPIRV-Cross.
# Allow the user to override it, but default it to under our third_party directory.
ifeq ($(SPVCROSS_LOCAL_PATH),)
SPVCROSS_LOCAL_PATH:=$(THIRD_PARTY_PATH)/spirv-cross
endif
# Now include the SPIRV-Cross dependency
include $(SPVCROSS_LOCAL_PATH)/jni/Android.mk
endif