Skip to content

Latest commit

 

History

History
70 lines (56 loc) · 1.66 KB

Build.md

File metadata and controls

70 lines (56 loc) · 1.66 KB

Build

git clone https://github.com/Moe-hacker/ruri
cd ruri
aclocal
autoconf
./configure --enable-static
make
sudo cp ruri /usr/bin/ruri

::: info Dependency libcap, libseccomp, libpthread. :::

::: danger The test script has a part that must be run with sudo, DO NOT run make test on your devices!!!! :::

Build options

  --enable-coreonly       Compile core only
  --disable-libcap        Disable libcap support
  --disable-libseccomp    Disable libseccomp support
  --disable-rurienv       Disable .rurienv support
  --enable-static         Enable static build
  --enable-debug          Enable debug log
  --enable-dev            Enable dev build

::: tip --enable-coreonly will auto enable --disable-libseccomp --disable-libcap --disable-rurienv :::

Build using CMake

git clone https://github.com/Moe-hacker/ruri
cd ruri
cmake .
make
make install

Build options in CMake

  -DBUILD_LIB=on             Compile to shared library
  -DDISABLE_LIBCAP=on        Disable libcap support
  -DDISABLE_LIBSECCOMP=on    Disable libseccomp support
  -DDISABLE_RURIENV=on       Disable .rurienv support
  -DENABLE_STATIC=on         Enable static build
  -DENABLE_DEBUG=on          Enable debug log

::: tip

  • -DENABLE_DEBUG=on is equivalent to the traditional build options --enable-dev plus --enable-debug
  • When DISABLE_RURIENV and DISABLE_LIBSECCOMP and DISABLE_LIBCAP are enabled at the same time, it is equivalent to --enable-coreonly in the traditional build process :::

Other target in CMake while configuration complete

  format      Run clang-format steps
  strip       Run strip steps
  tidy        Run clang-tidy steps