forked from nulloy/nulloy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure.bat
More file actions
139 lines (117 loc) · 3.58 KB
/
Copy pathconfigure.bat
File metadata and controls
139 lines (117 loc) · 3.58 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
@ECHO off
set BASENAME=%0
set QMAKE=qmake
set DEBUG=no
set APP_NAME=Nulloy
set CONSOLE=no
set FORCE_VERSION=no
set BUILD_GSTREAMER=yes
set BUILD_GSTREAMER_TAGREADER=no
set BUILD_TAGLIB=yes
set BUILD_VLC=no
set BUILD_TESTS=no
set SUPPORT_SKINS=yes
:getopt
shift
if "%0" == "--no-gstreamer" (
set BUILD_GSTREAMER=no
goto getopt
)
if "%0" == "--gstreamer-tagreader" (
set BUILD_GSTREAMER_TAGREADER=yes
goto getopt
)
if "%0" == "--vlc" (
set BUILD_VLC=yes
goto getopt
)
if "%0" == "--no-taglib" (
set BUILD_TAGLIB=no
goto getopt
)
if "%0" == "--tests" (
set BUILD_TESTS=yes
goto getopt
)
if "%0" == "--no-skins" (
set SUPPORT_SKINS=no
goto getopt
)
if "%0" == "--force-version" (
set FORCE_VERSION=%1
shift
goto getopt
)
if "%0" == "--debug" (
set DEBUG=yes
goto getopt
)
if "%0" == "--console" (
set CONSOLE=yes
goto getopt
)
if "%0" == "" goto getopt_finished
if "%0" == "-h" goto help
if "%0" == "--help" goto help
if "%0" == "/?" goto help
echo %BASENAME%: invalid argument: %0
goto try_help
:try_help
echo.
echo Try `%BASENAME% --help' for more information
goto end
:help
echo Usage: %BASENAME% [options]
echo --no-gstreamer do not build GStreamer plugin
echo --gstreamer-tagreader include TagReader in GStreamer plugin
echo --vlc build VLC plugin
echo --no-taglib do not build TagLib plugin
echo --no-skins disable skins support
echo --console build with console output support
echo --force-version VERSION overrides version.pri
echo --debug build in debug mode
echo --tests build unit tests
goto end
:getopt_finished
%QMAKE% -v > NUL 2>&1
if errorlevel 1 goto qmake_not_found
goto qmake_ok
:qmake_not_found
echo %BASENAME%: Unable to find qmake. Check the PATH environment variable.
goto end
:qmake_ok
set QMAKE_CACHE=.qmake.cache
echo. > %QMAKE_CACHE%
set PROJECT_DIR=%cd%
echo PROJECT_DIR = %PROJECT_DIR%>> %QMAKE_CACHE%
echo SRC_DIR = %PROJECT_DIR%/src>> %QMAKE_CACHE%
set TMP_DIR=%PROJECT_DIR%\tmp
echo TMP_DIR = %TMP_DIR%>> %QMAKE_CACHE%
echo OBJECTS_DIR = %TMP_DIR%>> %QMAKE_CACHE%
echo MOC_DIR = %TMP_DIR%>> %QMAKE_CACHE%
echo RCC_DIR = %TMP_DIR%>> %QMAKE_CACHE%
echo UI_DIR = %TMP_DIR%>> %QMAKE_CACHE%
mkdir %TMP_DIR%
if "%BUILD_GSTREAMER%" == "yes" echo CONFIG += gstreamer>> %QMAKE_CACHE%
if "%BUILD_GSTREAMER_TAGREADER%" == "yes" echo CONFIG += gstreamer-tagreader>> %QMAKE_CACHE%
if "%BUILD_VLC%" == "yes" echo CONFIG += vlc>> %QMAKE_CACHE%
if "%BUILD_TAGLIB%" == "yes" echo CONFIG += taglib>> %QMAKE_CACHE%
if "%BUILD_TESTS%" == "yes" echo CONFIG += tests>> %QMAKE_CACHE%
if "%SUPPORT_SKINS%" == "no" echo CONFIG += no-skins>> %QMAKE_CACHE%
if "%CONSOLE%" == "yes" echo CONFIG += console>> %QMAKE_CACHE%
if "%DEBUG%" == "yes" (
echo CONFIG += debug>> %QMAKE_CACHE%
) else (
echo CONFIG += release>> %QMAKE_CACHE%
)
echo APP_NAME = %APP_NAME%>> %QMAKE_CACHE%
if not "%FORCE_VERSION%" == "no" (
echo Forced version: %FORCE_VERSION%
echo N_CONFIG_FORCE_VERSION = %FORCE_VERSION%>> %QMAKE_CACHE%
)
echo N_CONFIG_SUCCESS = yes>> %QMAKE_CACHE%
echo.
echo Running qmake...
%QMAKE%
echo Nulloy has been configured. Now run 'make'.
:end