gdpm/bin/compile.sh
David J. Allen 5ffce72fa5 Updated unit tests
-Added tests for functions
-Added error class and return from package manager functions
-Updated `compile.sh` script
2023-01-07 14:50:09 -06:00

23 lines
495 B
Bash
Executable file

#!/bin/sh
# Run this script at project root
#meson configure build
#CXX=clang++ meson compile -C build -j$(proc)
# CMake/ninja build system
mkdir -p build
cmake -B build -S . -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -G Ninja
ninja -C build -j $(nproc)
# Create symlinks to executables in build folder if necessary
if test -f "../build/gdpm"; then
rm bin/gdpm
ln -s ../build/gdpm bin/gdpm
fi
if test -f "../build/gdpm-tests"; then
rm bin/gdpm-tests
ln -s ../build/gdpm-tests bin/gdpm-tests
fi