Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions tools/package-windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@ set halide_source=%~1
set halide_build_root=%~2
set halide_arch=%~3

REM TODO: this temporary, until release branches for Halide are created.
REM Remove as soon as that is done.
if "%Halide_VERSION%" == "" (
echo Must set specific Halide_VERSION for packaging
goto error
)

if not exist "%VCPKG_ROOT%\.vcpkg-root" (
echo Must define VCPKG_ROOT to be the root of the VCPKG install
goto error
Expand All @@ -26,6 +19,11 @@ if not exist "%Clang_DIR%\ClangConfig.cmake" (
goto error
)

if not exist "%LLD_DIR%\LLDConfig.cmake" (
echo Must set specific LLD_DIR for packaging
goto error
)

if "%halide_source%" == "" (
echo Usage: %~0 "<source-dir>" "<build-dir>" [Win32,x64,ARM,ARM64]
goto error
Expand All @@ -46,10 +44,9 @@ cmake -G "Visual Studio 16 2019" -Thost=x64 -A "%halide_arch%" ^
"-DCMAKE_TOOLCHAIN_FILE=%VCPKG_ROOT%/scripts/buildsystems/vcpkg.cmake" ^
"-DLLVM_DIR=%LLVM_DIR%" ^
"-DClang_DIR=%Clang_DIR%" ^
"-DHalide_VERSION=%Halide_VERSION%" ^
"-DLLD_DIR=%LLD_DIR%" ^
-DBUILD_SHARED_LIBS=YES ^
-DWITH_TESTS=NO ^
-DWITH_APPS=NO ^
-DWITH_TUTORIALS=NO ^
-DWITH_DOCS=YES ^
-DWITH_UTILS=NO ^
Expand All @@ -68,8 +65,11 @@ cmake --build "%halide_build_root%" --config Release
if ERRORLEVEL 1 goto error

pushd "%halide_build_root%"
cpack -C "Release"
if ERRORLEVEL 1 goto error
cpack -G ZIP -C "Release"
if ERRORLEVEL 1 (
popd
goto error
)
popd

exit /b
Expand Down