Skip to content

Commit

Permalink
[XM] Rework binding project test to try to fix build machine issues (x…
Browse files Browse the repository at this point in the history
  • Loading branch information
chamons authored Jan 17, 2017
1 parent d3c2c53 commit 482ab90
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions tests/mac-binding-project/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,19 @@ export MSBuildExtensionsPath=$(MAC_DESTDIR)/Library/Frameworks/Mono.framework/Ex
export XamarinMacFrameworkRoot=$(MAC_DESTDIR)/Library/Frameworks/Xamarin.Mac.framework/Versions/Current
export XAMMAC_FRAMEWORK_PATH=$(MAC_DESTDIR)/Library/Frameworks/Xamarin.Mac.framework/Versions/Current

obj/SimpleClass.o:
$(Q) mkdir -p bin obj
$(Q) clang -c ../common/mac/SimpleClass.m -o obj/SimpleClass.o -std=gnu99 -mmacosx-version-min=10.9
bin:
$(Q) mkdir -p bin

bin/SimpleClassDylib.dylib: obj/SimpleClass.o
$(Q) xcrun libtool -dynamic obj/SimpleClass.o -o bin/SimpleClassDylib.dylib -framework Cocoa -lSystem -macosx_version_min 10.9
bin/SimpleClassDylib.dylib: bin
$(Q) xcrun clang -shared ../common/mac/SimpleClass.m -o bin/SimpleClassDylib.dylib -std=gnu99 -mmacosx-version-min=10.9 -framework Cocoa -lSystem

bin/SimpleClass\ Dylib.dylib: bin/SimpleClassDylib.dylib
$(Q) cp bin/SimpleClassDylib.dylib bin/SimpleClass\ Dylib.dylib

bin/SimpleClassStatic.a: obj/SimpleClass.o
$(Q) xcrun libtool -static obj/SimpleClass.o -o bin/SimpleClassStatic.a
bin/SimpleClassStatic.a: bin
$(Q) clang -c ../common/mac/SimpleClass.m -o bin/SimpleClass.o -std=gnu99 -mmacosx-version-min=10.9
$(Q) xcrun ar -rcs bin/SimpleClassStatic.a bin/SimpleClass.o
$(Q) rm bin/SimpleClass.o

bin/Mobile-dynamic/MobileBinding.dll: bin/SimpleClassDylib.dylib
$(Q) $(SYSTEM_XBUILD) $(XBUILD_VERBOSITY) MobileBinding/MobileBinding_dynamic.csproj
Expand Down

0 comments on commit 482ab90

Please sign in to comment.