diff options
author | Ludovic Henry <luhenry@microsoft.com> | 2019-02-13 02:57:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-13 02:57:56 +0300 |
commit | a43f1d2909d100bdcad525dde67eb320478ecbbd (patch) | |
tree | 4951ae04d51b5199fa787051b4825d51e8ebcca0 /sdks/builds/Makefile | |
parent | 469b0a7a0fa1f63a7333e725e6d11a37a6044854 (diff) |
[sdks] Add mac-{mac32,mac64} targets (#12959)
* [sdks] Add mac-{mac32,mac64} targets
* [sdks] Add configure-* and build-* for CI
Diffstat (limited to 'sdks/builds/Makefile')
-rw-r--r-- | sdks/builds/Makefile | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/sdks/builds/Makefile b/sdks/builds/Makefile index 2934d044f87..c7ed0916d38 100644 --- a/sdks/builds/Makefile +++ b/sdks/builds/Makefile @@ -23,8 +23,9 @@ endif endif ifneq ($(UNAME),Darwin) -# iOS requires Xcode to be available, and Xcode is only available on macOS +# iOS and Mac requires Xcode to be available, and Xcode is only available on macOS DISABLE_IOS=1 +DISABLE_MAC=1 endif include $(TOP)/sdks/versions.mk @@ -44,7 +45,7 @@ all: package configure-mono: $(TOP)/configure $(TOP)/configure: $(TOP)/configure.ac $(TOP)/autogen.sh - cd $(TOP) && PATH=$(EXTRA_PATH):$$PATH NOCONFIGURE=1 ./autogen.sh + cd $(TOP) && PATH=$(EXTRA_PATH):$$PATH NOCONFIGURE=1 ./autogen.sh $(if $(wildcard $(TOP)/../mono-extensions),--enable-extension-module=xamarin --enable-extension-module) ## Archive targets @@ -56,13 +57,17 @@ ifndef DISABLE_IOS ios_ARCHIVE= endif +ifndef DISABLE_MAC +mac_ARCHIVE= +endif + ifndef DISABLE_WASM wasm_ARCHIVE= endif ## # Parameters: -# $(1): target (android, ios, wasm) +# $(1): target (android, ios, mac, wasm) define ArchiveTemplate _$(1)_HASH = $$(shell git -C $$(TOP) rev-parse HEAD) _$(1)_PACKAGE = $(1)-$$(CONFIGURATION)-$$(UNAME)-$$(_$(1)_HASH).zip @@ -80,6 +85,10 @@ ifndef DISABLE_IOS $(eval $(call ArchiveTemplate,ios)) endif +ifndef DISABLE_MAC +$(eval $(call ArchiveTemplate,mac)) +endif + ifndef DISABLE_WASM $(eval $(call ArchiveTemplate,wasm)) endif @@ -163,6 +172,11 @@ ifndef DISABLE_IOS include ios.mk endif +## Mac targets +ifndef DISABLE_MAC +include mac.mk +endif + ## Desktop targets ## To run host-side tests ifndef DISABLE_DESKTOP |