diff options
author | montellese <montellese@xbmc.org> | 2014-07-22 21:33:06 +0200 |
---|---|---|
committer | montellese <montellese@xbmc.org> | 2014-07-30 11:16:03 +0200 |
commit | f943cae550c9354d0b0803a61cc351bf08436040 (patch) | |
tree | b2501b9385dd0934e9f08a82ea46e45093cfade0 /tools | |
parent | 068aafc23253ebe9c76abb2615599d9bbbcb69fa (diff) |
[win32] cmake: make use of ADDONS_TO_BUILD in make-addons.bat
Diffstat (limited to 'tools')
-rw-r--r-- | tools/buildsteps/win32/make-addons.bat | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/buildsteps/win32/make-addons.bat b/tools/buildsteps/win32/make-addons.bat index 93eab0edaa..3283d98e0b 100644 --- a/tools/buildsteps/win32/make-addons.bat +++ b/tools/buildsteps/win32/make-addons.bat @@ -85,6 +85,11 @@ ECHO -------------------------------------------------- ECHO Building addons ECHO -------------------------------------------------- +SET ADDONS_TO_BUILD="all" +IF "%addon%" NEQ "" ( + SET ADDONS_TO_BUILD="%addon%" +) + rem execute cmake to generate makefiles processable by nmake cmake "%ADDONS_PATH%" -G "NMake Makefiles" ^ -DCMAKE_BUILD_TYPE=Release ^ @@ -94,7 +99,8 @@ cmake "%ADDONS_PATH%" -G "NMake Makefiles" ^ -DXBMCROOT=%WORKDIR% ^ -DCMAKE_PREFIX_PATH=%ADDON_DEPENDS_PATH% ^ -DPACKAGE_ZIP=1 ^ - -DARCH_DEFINES="-DTARGET_WINDOWS -DNOMINMAX -D_CRT_SECURE_NO_WARNINGS -D_USE_32BIT_TIME_T -D_WINSOCKAPI_" + -DARCH_DEFINES="-DTARGET_WINDOWS -DNOMINMAX -D_CRT_SECURE_NO_WARNINGS -D_USE_32BIT_TIME_T -D_WINSOCKAPI_" ^ + -DADDONS_TO_BUILD="%ADDONS_TO_BUILD%" IF ERRORLEVEL 1 ( ECHO cmake error level: %ERRORLEVEL% > %ERRORFILE% GOTO ERROR |