-
Notifications
You must be signed in to change notification settings - Fork 7
Building splonebox
mkind edited this page Nov 25, 2017
·
3 revisions
splonebox uses a cmake based build environment. to process to build splonebox is explained in this wiki.
General Requirements:
- A recent version of clang or gcc
Platform-specific requirements are listed below.
~ pacman -S libuv msgpack-c base-devel cmake redis hiredis cmocka
set CC and CXX environment variable
~ export CC=/usr/bin/clang
~ export CXX=/usr/bin/clang++
~ cd path/to/splonebox-core
path/to/splonebox-core % cmake CMakeLists.txt
Build the splonebox core target.
~ make sb
The default build type is set to Debug. You can choose 4 build types:
- Debug
- Release
- RelWithDebInfo (Release with Debug Info)
- MinSizeRel (Minimum Size Release)
Example:
~ make CMAKE_BUILD_TYPE=MinSizeRel sb
Build the test target.
~ make test
Build the sb-plugin helper target.
~ make sb-plugin
build target with one of the available clang sanitizer's.
~ make EXTRA_FLAGS="-DCLANG_ADDRESS_SANITIZER=On"
~ make EXTRA_FLAGS="-DCLANG_MEMORY_SANITIZER=On"
~ make EXTRA_FLAGS="-DCLANG_THREAD_SANITIZER=On"
targets are located under out/bin directory
cleanup build files
~ make clean
cleanup everything
~ make distclean
~ make VERBOSE=1