cxx utils code
Switch branches/tags
Nothing to show
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
include add string terminate char (\0) for int2str Dec 3, 2018
project/cmake fix compile script Aug 16, 2018
sample fix compile script Aug 16, 2018
src fix for gcc 4.4 Sep 11, 2018
test add support for shuffle Nov 6, 2018
tools some aead api Jul 7, 2018
.clang-format some aead api Jul 7, 2018
.clang_complete some aead api Jul 7, 2018
.gcc-flags.json some aead api Jul 7, 2018
.gitattributes some aead api Jul 7, 2018
.gitignore some aead api Jul 7, 2018
.scan-build.disable some aead api Jul 7, 2018
.scan-build.enable some aead api Jul 7, 2018
.travis.yml some aead api Jul 7, 2018
CMakeLists.txt fix compile script Aug 16, 2018
LICENSE some aead api Jul 7, 2018
README.md some aead api Jul 7, 2018
appveyor.yml some aead api Jul 7, 2018
cmake_dev.bat some aead api Jul 7, 2018
cmake_dev.sh add libsodium Jul 12, 2018
llvm.clang-format some aead api Jul 7, 2018

README.md

atframe_utils

cxx utils code

Linux+OSX(clang+gcc) Windows+MinGW(vc+gcc) Coverage
Build & Unit Test linux-badge windows-badge coverage-badge
Compilers linux-gcc-4.4
linux-gcc-4.6
linux-gcc-4.9
linux-gcc-8
osx-apple-clang-6.0
MSVC 12(Visual Studio 2013)
MSVC 14(Visual Studio 2015)
MSVC 15(Visual Studio 2017)
Mingw32-gcc
Mingw64-gcc

gitter-badge

Usage:

  • require cmake 3.7.0 or upper
  • require gcc 4.4+/clang 3.4+/apple clang 6.0+/MSVC 12+
# clone and make build directory
git clone --single-branch --depth=1 -b master https://github.com/atframework/atframe_utils.git
mkdir atframe_utils/build && cd atframe_utils/build

# run cmake
# cmake <atframe_utils dir> [options...]
cmake .. -DPROJECT_ENABLE_SAMPLE=YES -DPROJECT_ENABLE_UNITTEST=YES #  -DCMAKE_INSTALL_PREFIX=<install prefix>

# build
cmake --build . # using clang or gcc
# cmake --build . --config RelWithDebInfo # using MSVC

# run unit test
ctest . -V

# run unit test
cmake --build . --target INSTALL # using clang or gcc
# cmake --build . --config RelWithDebInfo --target INSTALL # using MSVC

Other options

Option Description
BUILD_SHARED_LIBS=YES|NO [default=NO] Build dynamic library
LIBUNWIND_ENABLED=YES|NO [default=NO] Enable and using libunwind for callstack unwind
LOG_WRAPPER_ENABLE_LUA_SUPPORT=YES|NO [default=YES] Enable lua support for log system
LOG_WRAPPER_CHECK_LUA=YES|NO [default=YES] Enable checking for lua support
LOG_WRAPPER_ENABLE_STACKTRACE=YES|NO [default=YES] Enable stack trace for log system
ENABLE_MIXEDINT_MAGIC_MASK=0-8 [default=0] Set mixed int mask
CRYPTO_DISABLED=YES|NO [default=NO] Disable crypto and DH/ECDH support
CRYPTO_USE_OPENSSL=YES|NO [default=NO] Using openssl for crypto and DH/ECDH support, and close auto detection
CRYPTO_USE_MBEDTLS=YES|NO [default=NO] Using mbedtls for crypto and DH/ECDH support, and close auto detection