mirror of
https://github.com/davidallendj/gdpm.git
synced 2025-12-20 03:27:02 -07:00
- Changed the remote API - Added `export` and changed `remote` commands - Update README.md file - Removed dependence on `zig c++` in `bin/build.sh` script - Added error codes to use in place of ints - Other minor changes
24 lines
523 B
Bash
Executable file
24 lines
523 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 . -D CMAKE_EXPORT_COMPILE_COMMANDS=1 -D CMAKE_BUILD_TYPE=Debug -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
|