commit | 935d30ce2fe76380e1b126ccd6ff439162888fb5 | [log] [tgz] |
---|---|---|
author | Tomi Valkeinen <tomi.valkeinen@iki.fi> | Sat Oct 03 21:14:55 2015 +0300 |
committer | Tomi Valkeinen <tomi.valkeinen@iki.fi> | Sat Oct 03 22:42:03 2015 +0300 |
tree | 363ca55826f8ece17c0b3475be56946aed8e9c85 | |
parent | 944e98bf383ad7e333f6fb75528f0ccb080559ce [diff] |
py: add db test
libkms++ is a C++11 library for kernel mode setting.
Also included are simple test tools for KMS and python and lua wrappers for libkms++.
$ mkdir build $ cd build $ cmake .. $ make -j4
Directions for cross compiling depend on your environment. These are for mine (buildroot):
As above, but specify -DCMAKE_TOOLCHAIN_FILE=<path>/your-toolchain.cmake
for cmake, where your-toolchain.cmake is something similar to:
SET(CMAKE_SYSTEM_NAME Linux) SET(BROOT "<buildroot>/output/") # specify the cross compiler SET(CMAKE_C_COMPILER ${BROOT}/host/usr/bin/arm-buildroot-linux-gnueabihf-gcc) SET(CMAKE_CXX_COMPILER ${BROOT}/host/usr/bin/arm-buildroot-linux-gnueabihf-g++) # where is the target environment SET(CMAKE_FIND_ROOT_PATH ${BROOT}/target ${BROOT}/host) SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY) SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
You can use the following cmake flags to control the build. Use -DFLAG=VALUE
to set them.
Option name | Values | Default |
---|---|---|
CMAKE_BUILD_TYPE | Release/Debug | Release |
LIBKMS_ENABLE_PYTHON | ON/OFF | ON |
LIBKMS_ENABLE_LUA | ON/OFF | ON |