aboutsummaryrefslogtreecommitdiff
path: root/third_party/Android.mk
blob: ac00d052663e76a4d6ef18a80a8bd9d211b298a8 (plain)
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
THIRD_PARTY_PATH := $(call my-dir)

LOCAL_PATH := $(call my-dir)

# Lodepng
include $(CLEAR_VARS)
LOCAL_MODULE:=lodepng
LOCAL_CXXFLAGS:=-std=c++11 -fno-exceptions -fno-rtti
LOCAL_SRC_FILES:= lodepng/lodepng.cpp
include $(BUILD_STATIC_LIBRARY)

ifeq ($(GLSLANG_LOCAL_PATH),)
	GLSLANG_LOCAL_PATH:=$(THIRD_PARTY_PATH)/glslang
endif
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
endif

# The Shaderc Android.mk file will include the glslang and the spirv-tools
# build files.
ifeq ($(SHADERC_LOCAL_PATH),)
	SHADERC_LOCAL_PATH:=$(THIRD_PARTY_PATH)/shaderc
endif
include $(SHADERC_LOCAL_PATH)/Android.mk