diff options
author | lateralusX <lateralusx.github@gmail.com> | 2019-05-01 01:40:22 +0300 |
---|---|---|
committer | lateralusX <lateralusx.github@gmail.com> | 2019-05-03 16:14:21 +0300 |
commit | f83d9f3575776a5c7edad336f21f5c70ce519bc4 (patch) | |
tree | 542e8bda3344cd2529943d862c38a2364719740f /sdks/builds/Makefile | |
parent | 231da41c789ccc8810452de516ffec0f9e5c34cf (diff) |
Add LLVM SDK build/package support for Windows msvc build LLVM.
Diffstat (limited to 'sdks/builds/Makefile')
-rw-r--r-- | sdks/builds/Makefile | 33 |
1 files changed, 30 insertions, 3 deletions
diff --git a/sdks/builds/Makefile b/sdks/builds/Makefile index c7ed0916d38..bf786307ca5 100644 --- a/sdks/builds/Makefile +++ b/sdks/builds/Makefile @@ -11,16 +11,26 @@ RELEASE=$(if $(filter $(CONFIGURATION),release),1) lowercase=$(shell echo "$(1)" | tr '[:upper:]' '[:lower:]') -CCACHE:=$(if $(DISABLE_CCACHE),,$(shell which ccache)) -NINJA:=$(shell which ninja) - UNAME=$(shell uname) +ifneq (,$(findstring CYGWIN,$(UNAME))) +UNAME=Windows +endif + +ifeq ($(UNAME),Linux) +UNAME_WSL_CHECK=$(shell uname -a) +ifneq (,$(findstring Microsoft,$(UNAME_WSL_CHECK))) +UNAME=Windows +endif +endif + ifneq ($(UNAME),Darwin) ifneq ($(UNAME),Linux) +ifneq ($(UNAME),Windows) $(error "Unsupported UNAME=$(UNAME)") endif endif +endif ifneq ($(UNAME),Darwin) # iOS and Mac requires Xcode to be available, and Xcode is only available on macOS @@ -28,14 +38,31 @@ DISABLE_IOS=1 DISABLE_MAC=1 endif +# On Windows, we will just trigger LLVM builds using this make file. +ifeq ($(UNAME),Windows) +DISABLE_IOS=1 +DISABLE_MAC=1 +DISABLE_ANDROID=1 +DISABLE_WASM=1 +DISABLE_WASM_CROSS=1 +DISABLE_DESKTOP=1 +DISABLE_CCACHE=1 +DISABLE_LIBTOOLIZE=1 +endif + +CCACHE:=$(if $(DISABLE_CCACHE),,$(shell which ccache)) +NINJA:=$(shell which ninja) + include $(TOP)/sdks/versions.mk include $(TOP)/sdks/paths.mk +ifndef DISABLE_LIBTOOLIZE #brew's libtool is not compatible with some of the deps needed (I.E. V8) so in those systems we need to explicit add to the path #this is due mono not being compatible with xcode's libtool, which is what's on path by default ifeq (, $(shell which glibtoolize)) EXTRA_PATH=$(wildcard /usr/local/Cellar/libtool/*/bin/) endif +endif all: package |