-
Notifications
You must be signed in to change notification settings - Fork 39
/
build_msvc.bat
60 lines (51 loc) · 1.18 KB
/
build_msvc.bat
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
::
:: 2018-3-23 by Zongcai Ruan
:: a convenience script for building in VS???? x64 Win64 Command Prompt
::
@echo off
:: echo %#
:: if %# gtr 1 (
if "%1" == "clean" (
echo clean moc_* ui_* qrc_* *.obj
del v3d_main\v3d\moc_*
del v3d_main\v3d\ui_*
del v3d_main\v3d\qrc_*
del v3d_main\v3d\*.obj
goto end
)
:: )
@echo on
cd v3d_main\v3d\
call ..\..\qmake vaa3d_msvc.pro
:: touch command for windows
copy/b v3d_version_info.cpp+,,
nmake -f Makefile.Release %*
@echo off
if not exist ..\..\bin_msvc\ (
mkdir ..\..\bin_msvc\
)
cd ..\..\bin_msvc\
if %QT_VER%==4 (
echo copy Qt 4 dll
copy %QT_BIN%\QtCore4.dll .\ /y
copy %QT_BIN%\QtGui4.dll .\ /y
copy %QT_BIN%\QtOpenGL4.dll .\ /y
copy %QT_BIN%\QtXml4.dll .\ /y
copy %QT_BIN%\QtNetwork4.dll .\ /y
)
if %QT_VER%==5 (
echo copy Qt 5 dll
copy %QT_BIN%\Qt5Core.dll .\ /y
copy %QT_BIN%\Qt5Gui.dll .\ /y
copy %QT_BIN%\Qt5OpenGL.dll .\ /y
copy %QT_BIN%\Qt5Xml.dll .\ /y
copy %QT_BIN%\Qt5Network.dll .\ /y
)
@echo on
copy ..\v3d_main\v3d\release\openvr_api.dll .\ /y
copy ..\v3d_main\v3d\release\SDL2.dll .\ /y
copy ..\v3d_main\v3d\release\vaa3d_msvc.exe .\ /y
dir vaa3d_msvc.exe
:: vaa3d_msvc.exe
cd ..\
:end