-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.bat
More file actions
27 lines (21 loc) · 948 Bytes
/
config.bat
File metadata and controls
27 lines (21 loc) · 948 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
@echo off
if "%1" == "-tp" (
cd build
mkdir ThirdParty
cd ThirdParty
REM Build the dependencies. (SDL2, Assimp)
cmake ../../ExampleCommon/ThirdParty/ -G "Visual Studio 14 2015 Win64" -DDIRECTX=NO -DASSIMP_BUILD_ASSIMP_TOOLS=NO
msbuild.exe ThirdParty.sln /p:Configuration=Debug
msbuild.exe ThirdParty.sln /p:Configuration=Release
) else (
REM Copy dependency DLLs to bin
copy /Y ExampleCommon\ThirdParty\lib\SDL2\bin\Debug\SDL2.dll bin\Debug
copy /Y ExampleCommon\ThirdParty\lib\assimp\bin\Debug\assimp.dll bin\Debug
copy /Y %VK_SDK_PATH%\Source\lib\*.dll bin\Debug
copy /Y ExampleCommon\ThirdParty\lib\SDL2\bin\Release\SDL2.dll bin\Release
copy /Y ExampleCommon\ThirdParty\lib\assimp\bin\Release\assimp.dll bin\Release
copy /Y %VK_SDK_PATH%\Bin\*.dll bin\Release
REM Generate the Visual Studio solution for Vulkan tests
cd build
cmake ../ -G "Visual Studio 14 2015 Win64"
)