forked from xamarin/urho
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakeWindows
16 lines (12 loc) · 1.48 KB
/
MakeWindows
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 1 for 64bit, 0 for 32bit:
URHO3D_SRC_DIR=Urho3D/Source
TARGET=Visual Studio 14 Win64
Urho3D_Windows:
rm -rf Urho3D/Urho3D_Windows/CMakeFiles && rm -rf Urho3D/Urho3D_Windows/CMakeCache.txt && cd $(URHO3D_SRC_DIR) && cmake -E make_directory ../Urho3D_Windows && cmake -E chdir ../Urho3D_Windows cmake -G "$(TARGET)" ../Urho3D_Windows -DURHO3D_OPENGL=1 -DURHO3D_PCH=0 -DURHO3D_LUA=0 -DURHO3D_ANGELSCRIPT=0 -VS=14 ../../$(URHO3D_SRC_DIR)/
libUrho3D.a: Urho3D_Windows
cd Urho3D/Urho3D_Windows && cmake --build . --target Urho3D --config Release && cmake --build . --target Urho3D --config Debug && cmake --build . --target PackageTool --config Release
# move several mdl files from Data to CoreData
MoveSomeAssetsFromDataToCoreData:
cd Urho3D/Source/bin && mkdir -p CoreData/Models && mkdir -p CoreData/Fonts && cp Data/Models/Box.mdl CoreData/Models/Box.mdl && cp Data/Models/Cone.mdl CoreData/Models/Cone.mdl && cp Data/Models/Cylinder.mdl CoreData/Models/Cylinder.mdl && cp Data/Models/Plane.mdl CoreData/Models/Plane.mdl && cp Data/Models/Pyramid.mdl CoreData/Models/Pyramid.mdl && cp Data/Models/Sphere.mdl CoreData/Models/Sphere.mdl && cp Data/Models/Torus.mdl CoreData/Models/Torus.mdl && cp "Data/Fonts/Anonymous Pro.ttf" "CoreData/Fonts/Anonymous Pro.ttf"
CoreData.pak: MoveSomeAssetsFromDataToCoreData
mkdir -p Bin && Urho3D/Urho3D_Windows/bin/tool/PackageTool.exe Urho3D/Source/bin/CoreData Bin/CoreData.pak -q && rm -r Urho3D/Source/bin/CoreData/Models && rm -r Urho3D/Source/bin/CoreData/Fonts