libks为打了我们私有补丁的库,将来没问题后,还是以libks为准
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
王凯 2e56881a82 check if gethostbyname parameter is IP 7 months ago
.vscode Initial commit 4 years ago
KSTest Initial commit 4 years ago
cmake Remove build dependency to libconfig 1 year ago
src check if gethostbyname parameter is IP 7 months ago
tests Add KS_PRI_DEFAULT to initialize ks_thread with OS default priority. Remove dead code. Lower thread priority error to warning since failure to set priority may be common in unprivileged processes. 1 year ago
win Version bump Windows package to v2.0 2 years ago
.drone.yml Enable unit tests on Drone CI 1 year ago
.gitignore Update .gitignore 4 years ago
CMakeLists.txt Fix setting thread priority 1 year ago
CODING_GUIDELINES Initial commit 4 years ago
README Queue peek (#99) 2 years ago
copyright Initial commit 4 years ago
libks.code-workspace Initial commit 4 years ago
libks.pc.in Revert "Cflags should point to include folder, not to include/libks" 2 years ago
uninstall.cmake.in Initial commit 4 years ago

README

To build use cmake (Minimum version 3.7.2):
cmake .
make

To install:
make install

To un-install:
make uninstall

To build debug (no optimizations, symbols - this is the default):
cmake . -DCMAKE_BUILD_TYPE=Debug
make

To build release (optimizations, symbols):
cmake . -DCMAKE_BUILD_TYPE=Release
make

To build to a custom installation prefix (default is /usr):
cmake . -DCMAKE_INSTALL_PREFIX:PATH=/usr
make

To build with openssl on non-standard location (e.g. on Mac):
OPENSSL_ROOT_DIR=/usr/local/opt/openssl cmake . -DCMAKE_INSTALL_PREFIX:PATH=/usr/local

To run tests:
ctest .

To build release package with build number 42:
PACKAGE_RELEASE="42" cmake . -DCMAKE_BUILD_TYPE=Release && make package

To buld CMAKE from source
wget https://cmake.org/files/v3.7/cmake-3.7.2.tar.gz
tar -zxvf cmake-3.7.2.tar.gz
cd cmake-3.7.2
./bootstrap --prefix=/usr/local
make
make install
/usr/local/bin/cmake --version

Centos dependencies:
- yum groupinstall "Development Tools"
- yum install libuuid-devel libatomic openssl-devel