| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- #download clang 3.7 from here: http://llvm.org/releases/download.html
- #CUSTOM_CLANG=/tools/clang370/bin/clang
- LOCAL_CLANG=clang+llvm-3.7.0-x86_64-apple-darwin/bin/clang
- CUSTOM_CLANG=`pwd`/$(LOCAL_CLANG)
- ifeq (, $(shell which brew))
- # Running on Windows, let's not care.
- else
- BREW_MONO_PREFIX=$(shell brew --prefix mono)
- BREW_MONO=$(BREW_MONO_PREFIX)/bin/mono
- BREW_XBUILD=$(BREW_MONO_PREFIX)/bin/xbuild
- NUGET=$(BREW_MONO) ../Nuget/.nuget/Nuget.exe
- endif
- .PHONY : SharpieBinder
- Android_armeabi:
- make -j1 libmono-urho.so -f MakeAndroid ABI="armeabi"
- Android_armeabi-v7a:
- make -j1 libmono-urho.so -f MakeAndroid ABI="armeabi-v7a"
- Android_x86:
- make -j1 libmono-urho.so -f MakeAndroid ABI="x86"
- Android_x86_64:
- make -j1 libmono-urho.so -f MakeAndroid ABI="x86_64"
- Android_arm64-v8a:
- make -j1 libmono-urho.so -f MakeAndroid ABI="arm64-v8a"
- # Make -j4 Android
- Android: Android_x86_64 Android_x86 Android_armeabi Android_armeabi-v7a Android_arm64-v8a
- Mac:
- make -j1 libmono-urho.dylib -f MakeMac
- iOS:
- make -j1 Urho.framework -f MakeiOS
- tvOS:
- make -j1 fat-libmono-urho.dylib -f MaketvOS
- Windows32:
- make -j1 libUrho3D.a -f MakeWindows TARGET="Visual Studio 14" RENDERER=OPENGL
- Windows64:
- make -j1 libUrho3D.a -f MakeWindows TARGET="Visual Studio 14 Win64" RENDERER=OPENGL
- UWP32:
- make -j1 libUrho3D.a -f MakeUWP TARGET="Visual Studio 14"
- UWP64:
- make -j1 libUrho3D.a -f MakeUWP TARGET="Visual Studio 14 Win64"
- Windows: Windows32 Windows64
- All-Macos: Android Mac iOS
- All-Windows: Android Windows
- UpdateCoreDataPak:
- make -j1 CoreData.pak -f MakeWindows
- $(LOCAL_CLANG):
- if test ! -e clang+llvm-3.7.0-x86_64-apple-darwin.tar.xz; then curl -O http://llvm.org/releases/3.7.0/clang+llvm-3.7.0-x86_64-apple-darwin.tar.xz; fi
- tar xzvf clang+llvm-3.7.0-x86_64-apple-darwin.tar.xz
- #compile Urho.pch for SharpieBinder on Mac
- PchMac: $(LOCAL_CLANG)
- if test ! -e /usr/include; then xcode-select --install; fi
- make -j1 Urho3D_Mac -f MakeMac && $(CUSTOM_CLANG) -cc1 -emit-pch -DURHO3D_OPENGL -o Bindings/Urho.pch Bindings/Native/all-urho.cpp -IUrho3D/Urho3D_Mac/include -IUrho3D/Urho3D_Mac/include/Urho3D/ThirdParty
- SharpieBinder: Bindings/Urho.pch
- cd SharpieBinder && $(NUGET) restore SharpieBinder.sln && $(BREW_XBUILD) SharpieBinder.csproj && cd bin && $(BREW_MONO) SharpieBinder.exe
- ParseEventsMac:
- @if test ! -d Bindings/Portable/Generated; then echo "Please generate the C# files using SharpieBinder or use 'make SharpieBinder'" && exit 1; fi
- cd Bindings && perl ParseEvents.pl ../Urho3D/Urho3D_Mac/include/Urho3d/*/*h
- Generated: PchMac SharpieBinder ParseEventsMac
-
- # change references from nuget to projectreferences for Samples/
- RemoveNugetFromSamples:
- csc Bindings/RemoveNugetFromSamples.cs && ./RemoveNugetFromSamples.exe -refsonly && rm -f RemoveNugetFromSamples.exe
- # change references from nuget to projectreferences for Samples/
- RemoveNugetFromSamplesMono:
- mcs Bindings/RemoveNugetFromSamples.cs -r:System.Xml.dll -r:System.Xml.Linq.dll && mono RemoveNugetFromSamples.exe -refsonly && rm -f Bindings/RemoveNugetFromSamples.exe
- refresh-docs:
- make PchMac
- make ParseEventsMac
- xbuild /target:clean bindings/Urho.Desktop.csproj
- xbuild bindings/Urho.Desktop.csproj
- (cd docs; make update)
|