-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompileWindows
More file actions
executable file
·17 lines (15 loc) · 1.02 KB
/
compileWindows
File metadata and controls
executable file
·17 lines (15 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
#gcc -arch x86_64 -lz -framework SDL -framework Cocoa -framework libpng12 -framework openGl -Iinclude/SDL/ -lpython2.6 main.c include/SDLMain.m lib/libfreetype.a
#gcc -v -I/c/MinGW/lib -L/c/MinGW/lib -Iinclude -Iinclude/SDL -Iinclude/zlib -Iinclude/freetype -Ilib -Llib -IC:/Python26/include/ -LC:/Python26/libs -lpython26 -lpng12 -Wl,-Bstatic `sdl-config --static-libs` -lglu32 -lopengl32 -Wl,-Bdynamic test.c
#gcc -Iinclude -Iinclude/SDL -Iinclude/zlib -Iinclude/freetype -Ilib -Llib -lpng12 -Wl,-Bstatic `sdl-config --static-libs` -Wl,-Bdynamic main.c -lpython26 -lglu32 -lopengl32 -lfreetype
gcc -Iinclude -Iinclude/SDL -Iinclude/zlib -Iinclude/freetype -Ilib -Llib -lpng12 -Wl,-Bstatic `sdl-config --static-libs` -Wl,-Bdynamic main.c -lpython26 -lglu32 -lopengl32 -lfreetype -D isWindows=1
#rm -rf dst/windows
#mkdir dst/windows
#cp lib/* dst/windows
#cp -r assets dst/windows
#cp -r units dst/windows
#cp -r maps dst/windows
#cp a.exe dst/windows
#cp *.c dst/windows
#cp *.pyc dst/windows
#cp *.py dst/windows