1
0
mirror of https://github.com/timescale/timescaledb.git synced 2025-05-14 09:37:00 +08:00
timescaledb/bootstrap.bat
Rob Kiefer 66396fb81e Add build support for Windows
Windows 64-bit binaries should now be buildable using the cmake
build system either from the command line or from Visual Studio.

Previous issues regarding unresolved symbols have been resolved
with compatibility header files to properly export symbols or
getting GUCs via normal APIs.
2017-11-27 12:04:44 -05:00

24 lines
511 B
Batchfile

echo off
SET BUILD_TYPE=%1
IF "%BUILD_TYPE%" == "" (SET BUILD_TYPE=Release)
SET BUILD_ARCH=%2
IF "%BUILD_ARCH%" == "" (SET BUILD_ARCH=x64)
SET BUILD_DIR=./build
IF NOT EXIST "%BUILD_DIR%" (
mkdir "%BUILD_DIR%"
) ELSE (
ECHO Build system already initialized in %BUILD_DIR%
EXIT
)
cd %BUILD_DIR%
cmake .. -A %BUILD_ARCH% -B. -DCMAKE_BUILD_TYPE=%BUILD_TYPE%
ECHO ---
ECHO TimescaleDB build system initialized in %BUILD_DIR%.
ECHO To compile, do:
ECHO cd %BUILD_DIR%
ECHO MSBuild.exe timescaledb.sln