diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-06-11 20:37:17 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-06-11 20:46:05 +0300 |
commit | 711a0b813c2b3e0d4703aed6cf2c71b88db3f3b8 (patch) | |
tree | 1e353e74fc94a97eb9e5ad57b505974ee2b76140 | |
parent | c5f166179b578b728aa2e47460b604d119a940b3 (diff) |
rename libkms to kms++
-rw-r--r-- | CMakeLists.txt | 8 | ||||
-rw-r--r-- | LICENSE | 2 | ||||
-rw-r--r-- | README.md | 16 | ||||
-rw-r--r-- | kms++/card.cpp | 4 | ||||
-rwxr-xr-x | py/iact.py | 2 |
5 files changed, 16 insertions, 16 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 40cc19f..d79b3f4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,8 +13,8 @@ string(TOUPPER "${CMAKE_BUILD_TYPE}" U_CMAKE_BUILD_TYPE) option(BUILD_SHARED_LIBS "Build shared libs" FALSE) -set(LIBKMS_ENABLE_PYTHON ON CACHE BOOL "Enable Python wrappers") -set(LIBKMS_ENABLE_KMSCUBE OFF CACHE BOOL "Enable kmscube") +set(KMSXX_ENABLE_PYTHON ON CACHE BOOL "Enable Python wrappers") +set(KMSXX_ENABLE_KMSCUBE OFF CACHE BOOL "Enable kmscube") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wextra -Wno-unused-parameter") @@ -50,10 +50,10 @@ add_subdirectory(kms++) add_subdirectory(kms++util) add_subdirectory(utils) -if(LIBKMS_ENABLE_KMSCUBE) +if(KMSXX_ENABLE_KMSCUBE) add_subdirectory(kmscube) endif() -if(LIBKMS_ENABLE_PYTHON) +if(KMSXX_ENABLE_PYTHON) add_subdirectory(py) endif() @@ -1,4 +1,4 @@ -libkms++ and test tools +kms++ and test tools Copyright 2015 Tomi Valkeinen @@ -1,8 +1,8 @@ -# libkms++ - C++ library for kernel mode setting +# kms++ - C++ library for kernel mode setting -libkms++ is a C++11 library for kernel mode setting. +kms++ is a C++11 library for kernel mode setting. -Also included are some simple utilities for KMS and python bindings for libkms++. +Also included are some simple utilities for KMS and python bindings for kms++. ## Utilities @@ -55,14 +55,14 @@ Option name | Values | Default | Notes --------------------- | ------------- | -------- | -------- CMAKE_BUILD_TYPE | Release/Debug | Release | BUILD_SHARED_LIBS | ON/OFF | OFF | -LIBKMS_ENABLE_PYTHON | ON/OFF | ON | -LIBKMS_ENABLE_KMSCUBE | ON/OFF | OFF | +KMSXX_ENABLE_PYTHON | ON/OFF | ON | +KMSXX_ENABLE_KMSCUBE | ON/OFF | OFF | ## Env variables -You can use the following runtime environmental variables to control the behavior of libkms. +You can use the following runtime environmental variables to control the behavior of kms++. Variable | Description --------------------------------- | ------------- -LIBKMSXX_DISABLE_UNIVERSAL_PLANES | Set to disable the use of universal planes -LIBKMSXX_DISABLE_ATOMIC | Set to disable the use of atomic modesetting +KMSXX_DISABLE_UNIVERSAL_PLANES | Set to disable the use of universal planes +KMSXX_DISABLE_ATOMIC | Set to disable the use of atomic modesetting diff --git a/kms++/card.cpp b/kms++/card.cpp index 504aa61..918c825 100644 --- a/kms++/card.cpp +++ b/kms++/card.cpp @@ -34,7 +34,7 @@ Card::Card(const std::string& device) r = drmSetMaster(fd); m_master = r == 0; - if (getenv("LIBKMSXX_DISABLE_UNIVERSAL_PLANES") == 0) { + if (getenv("KMSXX_DISABLE_UNIVERSAL_PLANES") == 0) { r = drmSetClientCap(m_fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES, 1); m_has_universal_planes = r == 0; } else { @@ -42,7 +42,7 @@ Card::Card(const std::string& device) } #ifdef DRM_CLIENT_CAP_ATOMIC - if (getenv("LIBKMSXX_DISABLE_ATOMIC") == 0) { + if (getenv("KMSXX_DISABLE_ATOMIC") == 0) { r = drmSetClientCap(m_fd, DRM_CLIENT_CAP_ATOMIC, 1); m_has_atomic = r == 0; } else { @@ -1,6 +1,6 @@ #!/usr/bin/python3 -i -# This is a base script for interactive libkms python environment +# This is a base script for interactive kms++ python environment import pykms from time import sleep |