mirror of
https://github.com/davidallendj/gdpm.git
synced 2025-12-19 19:17:01 -07:00
-Make package manager functions return error -Added Jenkensfile CI for testing purposes -Updated the github CI for testing purposes
24 lines
563 B
Bash
Executable file
24 lines
563 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
|
|
CXX="zig c++ -target aarch64-linux-gnu" 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
|