-
Notifications
You must be signed in to change notification settings - Fork 8
/
build_win64.bat
41 lines (30 loc) · 1.38 KB
/
build_win64.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
@REM Copyright (C) 2020-2022 Dremio Corporation
@REM
@REM See "license.txt" for license information.
@REM Please define ARROW_GIT_REPOSITORY to be the arrow repository. If this is a local repo,
@REM use forward slashes instead of backslashes.
@REM Please define VCPKG_ROOT to be the directory with a built vcpkg. This path should use
@REM forward slashes instead of backslashes.
@ECHO OFF
%VCPKG_ROOT%\vcpkg.exe install --triplet x64-windows --x-install-root=%VCPKG_ROOT%/installed
if exist ".\build" del build /q
mkdir build
cd build
SETLOCAL
if NOT DEFINED ARROW_GIT_REPOSITORY SET ARROW_GIT_REPOSITORY="https://github.com/apache/arrow"
if NOT DEFINED ARROW_GIT_TAG SET ARROW_GIT_TAG="b050bd0d31db6412256cec3362c0d57c9732e1f2"
if NOT DEFINED ODBCABSTRACTION_REPO SET ODBCABSTRACTION_REPO="../flightsql-odbc"
if NOT DEFINED ODBCABSTRACTION_GIT_TAG SET ODBCABSTRACTION_GIT_TAG="d2a1029b0641febb0872831bec1b90fe3f635dd3"
cmake ..^
-DARROW_GIT_REPOSITORY=%ARROW_GIT_REPOSITORY%^
-DARROW_GIT_TAG=%ARROW_GIT_TAG%^
-DCMAKE_TOOLCHAIN_FILE=%VCPKG_ROOT%/scripts/buildsystems/vcpkg.cmake^
-DODBCABSTRACTION_REPO=%ODBCABSTRACTION_REPO%^
-DODBCABSTRACTION_GIT_TAG=%ODBCABSTRACTION_GIT_TAG%^
-DVCPKG_TARGET_TRIPLET=x64-windows^
-DVCPKG_MANIFEST_MODE=OFF^
-G"Visual Studio 17 2022"^
-A x64^
-DCMAKE_BUILD_TYPE=release
cmake --build . --parallel 8 --config Release
cd ..