A light-weight base library for C++.
Requirements
- Windows 7, or later
- Visual Studio 2015, or later
Build Steps
- Clone the repository
- Open the
KBase.sln
file, then build the projectKBase
, it will end up with the static librarykbase.lib
in the directoryKBase/build/<Configuration>/
- Build the
Test
project if you want to run any unittests (optional).
Please be noted that, only x64 mode compilation is officially supported, though compiling on 32-bit should also work.
Besides, all these projects originally are built with /MD(d)
flags.
Requirements
- 14.04 LTS x64, or later
- Clang 3.8, or G++ 6 (higher versions should also work)
- CMake 3.1, or later
- Python 2.7+
Note: G++ 5 has bugs which cause compilation errors.
Build Steps
- Clone the repository, and
cd
toKBase
directory - Execute
gen_kbase.py
to build the projectKBase
, it will end up with the static librarylibkbase.a
in the directoryKBase/build/<BuildType>/
use--build-type={Debug|Release}
to specify build mode, and Debug is the default mode. - If you want to build the
Test
project, rungen_test.py
switch--build-type
is also available here; moreover, if you want to build theTest
project altogether withKBase
, rungen_test.py
with switch--build-all
.
Please be noted that, building KBase
project would not install any of its files into system's include directory.
The project Test
contains a set of unit test files, which can also be regarded as code samples in a certain of extend.
Documentation files in docs
are far more outdated, and it will take a lot of work to make it consistent with newest version of the codebase.
KBase is initially a practicing project for fun, i.e. a personal-interest-driven project. There is no guarantee for its long-term maintenance.
KBase is inspired by base lib in Chromium. However, I don't approve of the way how they use C++, thus I build KBase in my own coding flavor, and also with adapting to my personal needs.