-
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 cmockaset 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.txtBuild the splonebox core target.
~ make sbThe 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 sbBuild the test target.
~ make testBuild the sb-plugin helper target.
~ make sb-pluginbuild 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 cleancleanup everything
~ make distclean~ make VERBOSE=1