build.sh 268 B

12345678910
  1. #! /bin/bash -e
  2. cmake -B build \
  3. -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE:-Debug} \
  4. -DRUN_IN_PLACE=TRUE \
  5. -DENABLE_GETTEXT=${CMAKE_ENABLE_GETTEXT:-TRUE} \
  6. -DBUILD_SERVER=${CMAKE_BUILD_SERVER:-TRUE} \
  7. ${CMAKE_FLAGS}
  8. cmake --build build --parallel $(($(nproc) + 1))