blob: 979a4797f0221e55d418d3e07eb2aef506d96ce9 (
plain)
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
|
:: Before running this script ensure that the %PATH% has the location of:
:: - the correct qmake for the Qt to build against
:: - the compiler and build tools, eg nmake
:: for these first two, use the C:\Qt\<ver>\bin\qtvars.bat vsvars command
:: - NSIS compiler, "makensis"
:: set PATH=%PATH%;"C:\Program Files (x86)\NSIS"
:: NSIS needs the custom license plugin - if its not installed get it
:: from http://nsis.sourceforge.net/CustomLicense_plug-in
:: Run this script from the root of a complete source tree of Qt3D, eg
:: mkdir C:\build\qt
:: cd C:\build\qt
:: mkdir quick3d_mk_win_pkg
:: echo .git >exclude
:: xcopy /EXCLUDE:exclude /S C:\depot\qt\quick3d quick3d_mk_win_pkg
:: cd quick3d_mk_win_pkg
:: Use jom if possible - put jom in the path if you want faster compiles
:: set PATH=%PATH%;C:\QtSDK\QtCreator\bin
:: src\scripts\build_win_package.bat
where jom.exe
if %ERRORLEVEL% NEQ 0 (
SET MAKE_PRG=nmake
) else (
SET MAKE_PRG=jom
)
mkdir tmp
qmake -query QT_VERSION >tmp\qt_version
set /P QT_VERSION= <tmp\qt_version
qmake -query QT_INSTALL_PREFIX >tmp\qt_prefix
set /P QT_PREFIX= <tmp\qt_prefix
set QT_PREFIX_PATH=%QT_PREFIX:~2%
:: On windows if the qt3d.prf and qt3dquick.prf exist in the Qt, the build will fail
:: with impenetrable link errors. This should not happen but might if you are trying
:: to debug the installer scripts, and do something odd.
del %QTDIR%\mkspecs\features\qt3d*
qmake.exe quick3d.pro -spec win32-msvc2008 CONFIG+=release CONFIG+=package
:: This has to be the full path, but without the drive letter...
set INSTALL_ROOT=%CD:~2%\tmp
%MAKE_PRG% install
%MAKE_PRG% docs
makensis /DQT_VERSION=%QT_VERSION% /DQT_PREFIX_PATH=%QT_PREFIX_PATH% /NOCD src\scripts\build_win_package.nsi
|