Skip to content

Commit

Permalink
Android.mk: better fallback for SPIRV-Tools dir (google#538)
Browse files Browse the repository at this point in the history
This fixes building with ndk-build when the source tree is laid
out like in the Android NDK.
  • Loading branch information
dneto0 committed Jan 11, 2019
1 parent 6733f17 commit 14ae0de
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion third_party/Android.mk
Expand Up @@ -12,7 +12,12 @@ ifeq ($(SPVTOOLS_LOCAL_PATH),)
SPVTOOLS_LOCAL_PATH:=$(THIRD_PARTY_PATH)/spirv-tools
endif
ifeq ($(SPVHEADERS_LOCAL_PATH),)
SPVHEADERS_LOCAL_PATH:=$(THIRD_PARTY_PATH)/spirv-headers
# Use the third party dir if it exists.
ifneq ($(wildcard $(THIRD_PARTY_PATH)/spirv-headers/include/spirv/spirv.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
Expand Down

0 comments on commit 14ae0de

Please sign in to comment.