Skip to content

Latest commit

 

History

History
63 lines (52 loc) · 1.39 KB

maskfile.md

File metadata and controls

63 lines (52 loc) · 1.39 KB

Tasks For My Project

prepare

prepare depdendencies

git submodule update --init --recursive

# make sure vcpkg is downloaded and binary can be used
# a link in ./bin/vcpkg will be available when this after script runs
if [[ ! -f "./internals/core/vcpkg/vcpkg" ]]; then
  ./internals/core/vcpkg/bootstrap-vcpkg.sh
fi

build:production

build project

cmake \
  -DCMAKE_BUILD_TYPE=Release \
  -DCMAKE_TOOLCHAIN_FILE:STRING=./internals/core/vcpkg/scripts/buildsystems/vcpkg.cmake \
  -G Ninja \
  -S./ \
  -B./build
cmake --build build -j$(nproc --all) --config Release

build:dev

build project

cmake \
  -DCMAKE_BUILD_TYPE=Debug \
  -DCMAKE_TOOLCHAIN_FILE:STRING=./internals/core/vcpkg/scripts/buildsystems/vcpkg.cmake \
  -G Ninja \
  -S./ \
  -B./build
cmake --build build -j$(nproc --all) --config Debug

build:clean

clean build

cmake --build build -j$(nproc --all) --target clean

clean:project

clean project

rm -rf ./build || true;
git submodule foreach --recursive git reset --hard
git submodule foreach --recursive git clean -xfd
git submodule update --init --recursive
$MASK prepare