mirror of
https://github.com/davidallendj/gdpm.git
synced 2025-12-19 19:17:01 -07:00
-Added tests for functions -Added error class and return from package manager functions -Updated `compile.sh` script
23 lines
495 B
Bash
Executable file
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
|