Skip to content

Commit

Permalink
[sdks] Fix Android build for mxe (mono#7781)
Browse files Browse the repository at this point in the history
  • Loading branch information
luhenry authored Mar 23, 2018
1 parent 8a3b4bf commit 9c63d1b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
14 changes: 6 additions & 8 deletions sdks/builds/mxe.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

MXE_PREFIX?=$(TOP)/sdks/out/mxe

$(TOP)/sdks/builds/toolchains/mxe:
git clone -b xamarin https://github.com/xamarin/mxe.git $@

Expand All @@ -11,10 +13,9 @@ $(TOP)/sdks/builds/toolchains/mxe:

.PHONY: build-custom-mxe
build-custom-mxe:
PATH="$$PATH:$(dir $(shell which autopoint))" $(MAKE) -C $(TOP)/sdks/builds/toolchains/mxe gcc cmake zlib pthreads dlfcn-win32 mman-win32 \
MXE_TARGETS="i686-w64-mingw32.static" PREFIX="$(TOP)/sdks/out/mxe" OS_SHORT_NAME="disable-native-plugins"
PATH="$$PATH:$(dir $(shell which autopoint))" $(MAKE) -C $(TOP)/sdks/builds/toolchains/mxe gcc cmake zlib pthreads dlfcn-win32 mman-win32 \
MXE_TARGETS="x86_64-w64-mingw32.static" PREFIX="$(TOP)/sdks/out/mxe" OS_SHORT_NAME="disable-native-plugins"
$(MAKE) -C $(TOP)/sdks/builds/toolchains/mxe gcc cmake zlib pthreads dlfcn-win32 mman-win32 \
MXE_TARGETS="i686-w64-mingw32.static x86_64-w64-mingw32.static" PREFIX="$(MXE_PREFIX)"
OS_SHORT_NAME="disable-native-plugins" PATH="$$PATH:$(dir $(shell brew list gettext | grep autopoint$))"

.PHONY: setup-custom-mxe
setup-custom-mxe:
Expand All @@ -24,9 +25,6 @@ package-mxe:

.PHONY: clean-mxe
clean-mxe:
$(MAKE) -C $(TOP)/sdks/builds/toolchains/mxe clean \
MXE_TARGETS="i686-w64-mingw32.static" PREFIX="$(TOP)/sdks/out/mxe"
$(MAKE) -C $(TOP)/sdks/builds/toolchains/mxe clean \
MXE_TARGETS="x86_64-w64-mingw32.static" PREFIX="$(TOP)/sdks/out/mxe"
rm -rf $(TOP)/sdks/builds/toolchains/mxe $(MXE_PREFIX)

TARGETS += mxe
2 changes: 1 addition & 1 deletion sdks/versions.mk
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# MXE

MXE_HASH?=a926b16d8e07b6125484223794b412f89b9acce0
MXE_HASH?=b9cbb53541a0e10fe4fe81f22bd586cb9cdc922a

# LLVM

Expand Down

0 comments on commit 9c63d1b

Please sign in to comment.