Skip to content

Commit 4e7a1cf

Browse files
committed
Modifications to enable Azure pipelines
1 parent 51e56f1 commit 4e7a1cf

2 files changed

Lines changed: 16 additions & 10 deletions

File tree

cmake-build-x64.bat

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ SETLOCAL ENABLEEXTENSIONS
55
set FULL_REBUILD=0
66
set BUILD_LUXCORE_ONLY=0
77
set BUILD_LUXMARK_ONLY=0
8+
set CMAKE_ONLY=0
89
set MSBUILD_PLATFORM=x64
910
set DISABLE_OPENCL=0
1011
set CPU_PLATFORM=x64
@@ -17,6 +18,7 @@ if "%1" EQU "" goto Start
1718
if /i "%1" EQU "/rebuild" set FULL_REBUILD=1
1819
if /i "%1" EQU "luxcore" set BUILD_LUXCORE_ONLY=1
1920
if /i "%1" EQU "luxmark" set BUILD_LUXMARK_ONLY=1
21+
if /i "%1" EQU "/cmake-only" set CMAKE_ONLY=1
2022
if /i "%1" EQU "/no-ocl" set DISABLE_OPENCL=1
2123
if /i "%1" EQU "/dll" set BUILD_DLL=1
2224
if /i "%1" EQU "/debug" set BUILD_TYPE=Debug
@@ -67,10 +69,11 @@ if "%CPU_PLATFORM%"=="x64" (
6769
set CMAKE_TOOLSET=
6870
)
6971

70-
if %CMAKE_VN_MAJOR%==2 (
71-
echo You need CMake 3.7 or better to build LuxCoreRender
72-
goto CMakeNotFound
73-
)
72+
:: temporarily disabled this check because of different behaviour on Azure pipelines
73+
:: if %CMAKE_VN_MAJOR%==2 (
74+
:: echo You need CMake 3.7 or better to build LuxCoreRender
75+
:: goto CMakeNotFound
76+
:: )
7477

7578
for %%a in (..\WindowsCompileDeps\include) do set INCLUDE_DIR=%%~fa
7679
for %%a in (..\WindowsCompileDeps\%CPU_PLATFORM%\Release\lib) do set LIB_DIR=%%~fa
@@ -123,8 +126,10 @@ if exist %CMAKE_CACHE% del %CMAKE_CACHE%
123126
"%CMAKE%" %CMAKE_OPTS% %LUXCORE_ROOT%
124127
if ERRORLEVEL 1 goto CMakeError
125128

126-
msbuild %MSBUILD_OPTS% LuxRays.sln
127-
if ERRORLEVEL 1 goto CMakeError
129+
if %CMAKE_ONLY%==0 (
130+
msbuild %MSBUILD_OPTS% LuxRays.sln
131+
if ERRORLEVEL 1 goto CMakeError
132+
)
128133

129134
cd ..
130135

@@ -143,9 +148,10 @@ if exist %CMAKE_CACHE% del %CMAKE_CACHE%
143148
"%CMAKE%" %CMAKE_OPTS% %LUXMARK_ROOT%
144149
if ERRORLEVEL 1 goto CMakeError
145150

146-
msbuild %MSBUILD_OPTS% LuxMark.sln
147-
148-
if ERRORLEVEL 1 goto CMakeError
151+
if %CMAKE_ONLY%==0 (
152+
msbuild %MSBUILD_OPTS% LuxMark.sln
153+
if ERRORLEVEL 1 goto CMakeError
154+
)
149155

150156
cd ..
151157

create-standalone.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ rd /s /q %DIR%
77
md %DIR%
88

99
:: Create pyluxcoretools.zip (cmake tar doesn't work on Windows)
10-
"C:\Program Files\7-Zip\7z.exe" a ..\LuxCore\lib\pyluxcoretools.zip ..\LuxCore\src\pyluxcoretools\pyluxcoretools
10+
".\support\bin\7za.exe" a ..\LuxCore\lib\pyluxcoretools.zip ..\LuxCore\src\pyluxcoretools\pyluxcoretools
1111

1212
:: Pack pyluxcoretools
1313
cd ..\LuxCore

0 commit comments

Comments
 (0)