diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | assets/icon.bmp | bin | 16522 -> 2442 bytes | |||
-rw-r--r-- | assets/icon.ico | bin | 0 -> 1406 bytes | |||
-rw-r--r-- | boxcatapult2d.rc | 1 | ||||
-rw-r--r-- | make.bat | 10 | ||||
-rw-r--r-- | util.cpp | 3 |
6 files changed, 10 insertions, 5 deletions
@@ -12,6 +12,7 @@ TAGS *.xcf *.lib *.exp +*.res SDL2 box2d .vs* diff --git a/assets/icon.bmp b/assets/icon.bmp Binary files differindex 1c487a2..1775fb8 100644 --- a/assets/icon.bmp +++ b/assets/icon.bmp diff --git a/assets/icon.ico b/assets/icon.ico Binary files differnew file mode 100644 index 0000000..07b4999 --- /dev/null +++ b/assets/icon.ico diff --git a/boxcatapult2d.rc b/boxcatapult2d.rc new file mode 100644 index 0000000..cd4466b --- /dev/null +++ b/boxcatapult2d.rc @@ -0,0 +1 @@ +icon ICON assets\icon.ico @@ -6,10 +6,10 @@ if _%VCVARS% == _ ( if not exist obj mkdir obj SET CFLAGS=/nologo /W3 /D_CRT_SECURE_NO_WARNINGS /I SDL2/include /I box2d SDL2/lib/x64/SDL2main.lib SDL2/lib/x64/SDL2.lib opengl32.lib box2d.lib /MD +rc /nologo boxcatapult2d.rc if _%1 == _ ( - cl main.cpp /DDEBUG /DEBUG /Zi %CFLAGS% /Fo:obj/urbs /Fe:physics - cl sim.cpp /DDEBUG /DEBUG /LD %CFLAGS% /Fo:obj/sim /Fe:obj/sim - echo > obj\sim.dll_changed + cl main.cpp /DDEBUG /DEBUG /Zi %CFLAGS% /Fo:obj/urbs /Fe:boxcatapult2d boxcatapult2d.res + rem cl sim.cpp /DDEBUG /DEBUG /LD %CFLAGS% /Fo:obj/sim /Fe:obj/sim + rem echo > obj\sim.dll_changed ) -if _%1 == _release cl main.cpp /O2 %CFLAGS% /Fe:physics -if _%1 == _profile cl main.cpp /O2 /DPROFILE %CFLAGS% /Fe:physics +if _%1 == _release cl main.cpp /O2 %CFLAGS% /Fe:boxcatapult2d boxcatapult2d.res @@ -1,3 +1,6 @@ +#if _WIN32 +#include <direct.h> +#endif #ifndef arr_count #define arr_count(a) (sizeof (a) / sizeof *(a)) #endif |