vcpkg is a C++ Library Manager for Windows, Linux, and MacOS. The primary motivation for integration into the HPCC-Platform build pipeline is to be able to build the platform / client tools without the need of any "secret sauce" or random downloads to third party libraries, especially when building on Windows and OSX.
Note: This is a work in progress and is not yet complete and the expectation is that the instructions will get simplified over time.
- git
- cmake
- Build tools (gcc, clang, Visual Studio, NSIS etc.)
git clone https://github.com/hpcc-systems/HPCC-Platform.git HPCC-Platform
git checkout candidate-8.6.x
cd HPCC-Platform
git submodule update --init --recursive
mkdir build
cd build
cmake .. -DRUNTIME_USER=$(whoami) -DRUNTIME_GROUP=$(id -gn) -DDESTDIR=$(realpath ../..)/opt -DX_VCPKG_APPLOCAL_DEPS_INSTALL=ON -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_BUILD_TYPE=Debug -DSKIP_ECLWATCH=ON -DUSE_OPTIONAL=OFF -DINCLUDE_PLUGINS=ON -DSUPPRESS_V8EMBED=ON
cmake --build . -- -j
cmake .. -DX_VCPKG_APPLOCAL_DEPS_INSTALL=ON -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_BUILD_TYPE=Debug -DSKIP_ECLWATCH=ON -DUSE_OPTIONAL=OFF -DINCLUDE_PLUGINS=OFF -DUSE_OPENLDAP=OFF -DUSE_AZURE=OFF -DUSE_AWS=OFF -DWSSQL_SERVICE=OFF -DUSE_CASSANDRA=OFF
cmake --build . -- -j
cmake .. -DX_VCPKG_APPLOCAL_DEPS_INSTALL=ON -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake -G "Visual Studio 16 2019" -T host=x64 -A x64 -DSKIP_ECLWATCH=ON -DUSE_OPTIONAL=OFF -DUSE_NATIVE_LIBRARIES=ON -DINCLUDE_PLUGINS=OFF -DUSE_OPENLDAP=OFF -DUSE_AZURE=OFF -DUSE_AWS=OFF -DWSSQL_SERVICE=OFF -DUSE_CASSANDRA=OFF
cmake --build . --config Debug -- -m
cmake --build . --target package -- -j
cmake --build . --config Release --target package -- -m