~vladh/peony

peony/retired/build.bat -rw-r--r-- 821 bytes
7fc9922bVlad-Stefan Harbuz changes shaders namespace into class a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
@echo off

echo ################################################################################
echo ### Building
echo ################################################################################

if not defined DevEnvDir (
  call vcvarsall x64
)

set compiler_flags=/I "C:/local/include/" ^
-FC ^
-GS ^
-MTd ^
-MP18 ^
-W4 ^
-WL ^
-WX ^
-Z7 ^
-Zo ^
-diagnostics:column ^
-fp:fast ^
-nologo ^
-sdl ^
-guard:cf ^
-permissive- ^
-std:c++latest ^
-wd4100 -wd4127 -wd4201 ^
-O2 ^
-GL ^
-Oi

set linker_flags=/LIBPATH:"C:/local/lib/" ^
-CGTHREADS:8 ^
-DEBUG:FULL ^
-INCREMENTAL:NO ^
-opt:ref ^
-NODEFAULTLIB:msvcrt.lib ^
freetype.lib opengl32.lib glfw3.lib assimp-vc142-mtd.lib user32.lib gdi32.lib shell32.lib

pushd bin

cl %compiler_flags% ..\src\peony.cc ^
/link /SUBSYSTEM:console %linker_flags% /out:peony.exe

popd