-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
18 lines (15 loc) · 1.13 KB
/
build.bat
File metadata and controls
18 lines (15 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
@REM Build for Visual Studio compiler. Run your copy of amd64/vcvars32.bat to setup 64-bit command-line compiler.
@set INCLUDES=/I includes\imgui /I includes\implot /I includes\visa /I includes\backends /I includes /I %VULKAN_SDK%\include
@set SOURCES=main.cpp includes\backends\imgui_impl_vulkan.cpp includes\backends\imgui_impl_glfw.cpp includes\imgui\imgui*.cpp includes\implot\implot*.cpp includes/seriallib.cpp includes/visalib.cpp
@set LIBS=/LIBPATH:libs /libpath:%VULKAN_SDK%\lib glfw3.lib opengl32.lib gdi32.lib shell32.lib vulkan-1.lib visa64.lib
@REM @set OUT_DIR=Debug
@REM @set OUT_EXE=rsoc_test
@REM if not exist %OUT_DIR% mkdir %OUT_DIR%
@REM rc /v /fo%OUT_DIR%/resource.res resource.rc
@REM cl /nologo /Zi /MD /EHsc /std:c++17 %INCLUDES% %SOURCES% /Fe%OUT_DIR%/%OUT_EXE%.exe /Fo%OUT_DIR%/ /link %LIBS% *.obj %OUT_DIR%/resource.res
@REM %~dp0/%OUT_DIR%/%OUT_EXE%.exe
@set OUT_DIR=Release
@set OUT_EXE=rsoc_test
if not exist %OUT_DIR% mkdir %OUT_DIR%
rc /v /fo%OUT_DIR%/resource.res resource.rc
cl /Zi /MD /Ox /Oi /EHsc /std:c++17 %INCLUDES% %SOURCES% /Fe%OUT_DIR%/%OUT_EXE%.exe /Fo%OUT_DIR%/ /link %LIBS% *.obj %OUT_DIR%/resource.res