aboutsummaryrefslogtreecommitdiff
path: root/tools/buildsteps/win32
diff options
context:
space:
mode:
authormontellese <montellese@xbmc.org>2014-07-12 12:42:47 +0200
committermontellese <montellese@xbmc.org>2014-07-17 20:50:30 +0200
commit777106c3feaa585c092d95a7bd7f4074cd703c4b (patch)
tree2fe8d9b5256541d6ee7f89397bf04a3dadc3d7d1 /tools/buildsteps/win32
parentea5d991721857f0741d82651a88e1af9b09632c0 (diff)
[win32] cosmetics in make-addons.bat and make-addon-depends.bat
Diffstat (limited to 'tools/buildsteps/win32')
-rw-r--r--tools/buildsteps/win32/make-addon-depends.bat14
-rw-r--r--tools/buildsteps/win32/make-addons.bat10
2 files changed, 12 insertions, 12 deletions
diff --git a/tools/buildsteps/win32/make-addon-depends.bat b/tools/buildsteps/win32/make-addon-depends.bat
index 3016b83043..7197cd80f5 100644
--- a/tools/buildsteps/win32/make-addon-depends.bat
+++ b/tools/buildsteps/win32/make-addon-depends.bat
@@ -9,7 +9,7 @@ call "%VS120COMNTOOLS%..\..\VC\bin\vcvars32.bat"
SET WORKDIR=%WORKSPACE%
-IF "%WORKDIR%"=="" (
+IF "%WORKDIR%" == "" (
SET WORKDIR=%CD%\..\..\..
)
@@ -26,7 +26,7 @@ SET ERRORFILE=%BASE_PATH%\make-addon-depends.error
rem remove the output directory if it exists
IF EXIST "%ADDONS_OUTPUT_PATH%" (
- RMDIR "%ADDONS_OUTPUT_PATH%" /S /Q > NUL
+ RMDIR "%ADDONS_OUTPUT_PATH%" /S /Q > NUL
)
rem create the output directory
@@ -37,7 +37,7 @@ CD %ADDON_DEPENDS_PATH%
rem remove the build directory if it exists
IF EXIST "%ADDON_DEPENDS_BUILD_PATH%" (
- RMDIR "%ADDON_DEPENDS_BUILD_PATH%" /S /Q > NUL
+ RMDIR "%ADDON_DEPENDS_BUILD_PATH%" /S /Q > NUL
)
rem create the build directory
@@ -51,15 +51,15 @@ cmake "%ADDON_DEPENDS_PATH%" -G "NMake Makefiles" ^
-DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_INSTALL_PREFIX=%ADDONS_OUTPUT_PATH%
IF ERRORLEVEL 1 (
- ECHO cmake error level: %ERRORLEVEL% > %ERRORFILE%
- GOTO ERROR
+ ECHO cmake error level: %ERRORLEVEL% > %ERRORFILE%
+ GOTO ERROR
)
rem execute nmake to build the addon depends
nmake
IF ERRORLEVEL 1 (
- ECHO nmake error level: %ERRORLEVEL% > %ERRORFILE%
- GOTO ERROR
+ ECHO nmake error level: %ERRORLEVEL% > %ERRORFILE%
+ GOTO ERROR
)
rem everything was fine
diff --git a/tools/buildsteps/win32/make-addons.bat b/tools/buildsteps/win32/make-addons.bat
index a727d6d870..36071e508a 100644
--- a/tools/buildsteps/win32/make-addons.bat
+++ b/tools/buildsteps/win32/make-addons.bat
@@ -7,8 +7,8 @@ SET EXITCODE=0
SET getdepends=true
SET install=false
FOR %%b in (%1) DO (
- IF %%b==nodepends SET getdepends=false
- IF %%b==install SET install=true
+ IF %%b == nodepends SET getdepends=false
+ IF %%b == install SET install=true
)
rem set Visual C++ build environment
@@ -16,7 +16,7 @@ call "%VS120COMNTOOLS%..\..\VC\bin\vcvars32.bat"
SET WORKDIR=%WORKSPACE%
-IF "%WORKDIR%"=="" (
+IF "%WORKDIR%" == "" (
SET WORKDIR=%CD%\..\..\..
)
@@ -32,7 +32,7 @@ SET ERRORFILE=%BASE_PATH%\make-addons.error
SET XBMC_INCLUDE_PATH=%ADDON_DEPENDS_PATH%\include\xbmc
SET XBMC_LIB_PATH=%ADDON_DEPENDS_PATH%\lib\xbmc
-IF %getdepends%==true (
+IF %getdepends% == true (
CALL make-addon-depends.bat
IF ERRORLEVEL 1 (
ECHO make-addon-depends error level: %ERRORLEVEL% > %ERRORFILE%
@@ -65,7 +65,7 @@ rem go into the build directory
CD "%ADDONS_BUILD_PATH%"
rem determine the proper install path for the built addons
-IF %install%==true (
+IF %install% == true (
SET ADDONS_INSTALL_PATH=%WORKDIR%\addons
) ELSE (
SET ADDONS_INSTALL_PATH=%WORKDIR%\project\Win32BuildSetup\BUILD_WIN32\Xbmc\xbmc-addons