mirror of
https://github.com/davidallendj/gdpm.git
synced 2025-12-20 03:27:02 -07:00
Simplified README.md and added ninja build info
This commit is contained in:
parent
aebd86b70a
commit
62bb8fabdf
1 changed files with 7 additions and 4 deletions
11
README.md
11
README.md
|
|
@ -177,17 +177,20 @@ And then build the binaries (check the "build" directory):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Start by cloning the repo, then...
|
# Start by cloning the repo, then...
|
||||||
git clone https://github.com/davidallendj/gdpm
|
git clone https://github.com/davidallendj/gdpm && cd gdpm
|
||||||
cd gdpm
|
cd gdpm
|
||||||
export project_root=${pwd}
|
|
||||||
|
# ... if using CMake with Ninja instead (preferred and tested)...
|
||||||
|
cmake -B build -S . -D CMAKE_EXPORT_COMPILE_COMMANDS=1 -D CMAKE_BUILD_TYPE=Release -G Ninja
|
||||||
|
ninja -C build -j$(nproc)
|
||||||
|
|
||||||
# ...if using Meson with Clang on Linux...
|
# ...if using Meson with Clang on Linux...
|
||||||
meson build
|
meson build
|
||||||
meson configure build # only needed if reconfiguring build
|
meson configure build # only needed if reconfiguring build
|
||||||
meson compile -C build -j$(nproc)
|
meson compile -C build -j$(nproc)
|
||||||
CXX=clang++ meson compile -C build -j$(npoc)
|
CXX=clang++ meson compile -C build -j$(nproc)
|
||||||
|
|
||||||
# ...if using CMake on Linux (needs work!)...
|
# ...if using CMake with Make on Linux (needs work!)...
|
||||||
cd build
|
cd build
|
||||||
cmake ..
|
cmake ..
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue