Skip to content

Commit

Permalink
tools: ci: build.ps1: add options -ApacheOrc -Parquet
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienfl-orc committed Jul 2, 2020
1 parent 25abd3e commit 5d510e3
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tools/ci/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ function Build-Orc
$Runtime = 'static',
[Parameter(Mandatory = $False)]
[switch]
$ApacheOrc,
[Parameter(Mandatory = $False)]
[switch]
$Parquet,
[Parameter(Mandatory = $False)]
[switch]
$Clean
)

Expand Down Expand Up @@ -100,6 +106,18 @@ function Build-Orc

$Generator = $Generators[$Toolchain + "_" + $Architecture]

$CMakeOptions = @()

if($ApacheOrc)
{
$CMakeOptions += @("-DORC_BUILD_APACHE_ORC=ON")
}

if($Parquet)
{
$CMakeOptions += @("-DORC_BUILD_PARQUET=ON")
}

if($Clean)
{
Remove-Item -Force -Recurse -Path $BuildDir -ErrorAction Ignore
Expand All @@ -126,6 +144,7 @@ function Build-Orc
-DORC_BUILD_VCPKG=ON `
-DVCPKG_TARGET_TRIPLET="${Architecture}-windows-static" `
-DCMAKE_TOOLCHAIN_FILE="${OrcPath}\external\vcpkg\scripts\buildsystems\vcpkg.cmake" `
$CMakeOptions `
$OrcPath

. $CMakeExe --build . --config $Config -- -maxcpucount
Expand Down

0 comments on commit 5d510e3

Please sign in to comment.