-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
29 lines (21 loc) · 850 Bytes
/
Copy pathbuild.bat
File metadata and controls
29 lines (21 loc) · 850 Bytes
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
@echo off
IF NOT EXIST dist (
REM "[Build]: Making dist directory."
mkdir dist
)
setlocal
set COMPILEROPTION=/O1 /MDd /W1 /WX /Fo"./dist/" /Fd"./dist/"
set INCLUDES=/I "W:\CppProject\CppLib\RayLib\include"
set LIBPATH=/LIBPATH:"W:\CppProject\CppLib\RayLib\lib"
set LINK=opengl32.lib raylib.lib user32.lib winmm.lib shell32.lib gdi32.lib
set LINKOPTION=/INCREMENTAL:NO /pdb:"./dist/" /out:"./dist/main.exe" /NODEFAULTLIB:library /SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup
set FILE=./src/main.cpp
rem "[Build]: Building executables."
cl.exe %COMPILEROPTION% %INCLUDES% %FILE% /link %LINKOPTION% %LIBPATH% %LINKS%
endlocal
IF EXIST assets (
REM "[Build]: Copying assets into dist directory."
xcopy .\assets\ .\dist\assets\ /Y /E
) ELSE (
REM "[Build]: WARNING - asset directory does not exist. skipping the copy of assets."
)