]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android/external-libkmsxx.git/blob - README.md
db: print fps
[android/external-libkmsxx.git] / README.md
1 # libkms++ - C++ library for kernel mode setting
3 libkms++ is a C++11 library for kernel mode setting.
5 Also included are simple test tools for KMS and python and lua wrappers for libkms++.
7 ## Dependencies:
9 - libdrm
10 - SWIG 3.x (for python & lua bindings)
11 - Python 3.x (for python bindings)
12 - Lua 5.x (for lua bindings)
14 ## Build instructions:
16 ```
17 $ mkdir build
18 $ cd build
19 $ cmake ..
20 $ make -j4
21 ```
23 ## Cross compiling instructions:
25 Directions for cross compiling depend on your environment. These are for mine (buildroot):
27 As above, but specify `-DCMAKE_TOOLCHAIN_FILE=<path>/your-toolchain.cmake` for cmake, where your-toolchain.cmake is something similar to:
29 ```
30 SET(CMAKE_SYSTEM_NAME Linux)
32 SET(BROOT "<buildroot>/output/")
34 # specify the cross compiler
35 SET(CMAKE_C_COMPILER   ${BROOT}/host/usr/bin/arm-buildroot-linux-gnueabihf-gcc)
36 SET(CMAKE_CXX_COMPILER ${BROOT}/host/usr/bin/arm-buildroot-linux-gnueabihf-g++)
38 # where is the target environment
39 SET(CMAKE_FIND_ROOT_PATH ${BROOT}/target ${BROOT}/host)
41 SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY)
42 SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
43 SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
44 ```
46 ## Build options
48 You can use the following cmake flags to control the build. Use `-DFLAG=VALUE` to set them.
50 Option name          | Values        | Default
51 -------------------- | ------------- | --------
52 CMAKE_BUILD_TYPE     | Release/Debug | Release
53 LIBKMS_ENABLE_PYTHON | ON/OFF        | ON
54 LIBKMS_ENABLE_LUA    | ON/OFF        | ON