File: Android.mk

package info (click to toggle)
shaderc 2025.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,920 kB
  • sloc: cpp: 9,578; python: 4,980; ansic: 715; sh: 325; makefile: 27
file content (35 lines) | stat: -rw-r--r-- 1,151 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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