summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kms++util/CMakeLists.txt8
-rw-r--r--kms++util/inc/kms++util/color.h (renamed from kms++util/color.h)0
-rw-r--r--kms++util/inc/kms++util/cpuframebuffer.h (renamed from kms++util/cpuframebuffer.h)0
-rw-r--r--kms++util/inc/kms++util/extcpuframebuffer.h (renamed from kms++util/extcpuframebuffer.h)0
-rw-r--r--kms++util/inc/kms++util/kms++util.h (renamed from kms++util/kms++util.h)8
-rw-r--r--kms++util/inc/kms++util/opts.h (renamed from kms++util/opts.h)0
-rw-r--r--kms++util/inc/kms++util/stopwatch.h (renamed from kms++util/stopwatch.h)0
-rw-r--r--kms++util/inc/kms++util/strhelpers.h (renamed from kms++util/strhelpers.h)0
-rw-r--r--kms++util/src/color.cpp (renamed from kms++util/color.cpp)2
-rw-r--r--kms++util/src/colorbar.cpp (renamed from kms++util/colorbar.cpp)2
-rw-r--r--kms++util/src/cpuframebuffer.cpp (renamed from kms++util/cpuframebuffer.cpp)2
-rw-r--r--kms++util/src/drawing.cpp (renamed from kms++util/drawing.cpp)2
-rw-r--r--kms++util/src/extcpuframebuffer.cpp (renamed from kms++util/extcpuframebuffer.cpp)3
-rw-r--r--kms++util/src/font_8x8.h (renamed from kms++util/font_8x8.h)0
-rw-r--r--kms++util/src/helpers.cpp (renamed from kms++util/helpers.cpp)3
-rw-r--r--kms++util/src/opts.cpp (renamed from kms++util/opts.cpp)2
-rw-r--r--kms++util/src/strhelpers.cpp (renamed from kms++util/strhelpers.cpp)2
-rw-r--r--kms++util/src/testpat.cpp (renamed from kms++util/testpat.cpp)4
-rw-r--r--kmscube/cube-egl.cpp2
-rw-r--r--kmscube/cube-gbm.cpp2
-rw-r--r--kmscube/cube-gles2.cpp2
-rw-r--r--kmscube/cube-null.cpp2
-rw-r--r--kmscube/cube-x11.cpp2
-rw-r--r--kmscube/cube.cpp3
-rw-r--r--py/pykmsutil.cpp2
-rw-r--r--utils/fbtestpat.cpp3
-rw-r--r--utils/kmsblank.cpp3
-rw-r--r--utils/kmscapture.cpp3
-rw-r--r--utils/kmsprint.cpp4
-rw-r--r--utils/kmsview.cpp3
-rw-r--r--utils/testpat.cpp3
31 files changed, 35 insertions, 37 deletions
diff --git a/kms++util/CMakeLists.txt b/kms++util/CMakeLists.txt
index 533b446..3977f70 100644
--- a/kms++util/CMakeLists.txt
+++ b/kms++util/CMakeLists.txt
@@ -1,5 +1,9 @@
-file(GLOB SRCS "*.cpp" "*.h")
+file(GLOB SRCS "src/*.cpp" "src/*.h" "inc/kms++util/*.h")
add_library(kms++util ${SRCS})
+target_include_directories(kms++util PUBLIC
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/inc>
+ $<INSTALL_INTERFACE:include>
+ PRIVATE src)
+
target_link_libraries(kms++util kms++ pthread)
-target_include_directories(kms++util PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
diff --git a/kms++util/color.h b/kms++util/inc/kms++util/color.h
index ef85a67..ef85a67 100644
--- a/kms++util/color.h
+++ b/kms++util/inc/kms++util/color.h
diff --git a/kms++util/cpuframebuffer.h b/kms++util/inc/kms++util/cpuframebuffer.h
index 1498528..1498528 100644
--- a/kms++util/cpuframebuffer.h
+++ b/kms++util/inc/kms++util/cpuframebuffer.h
diff --git a/kms++util/extcpuframebuffer.h b/kms++util/inc/kms++util/extcpuframebuffer.h
index 5d3be74..5d3be74 100644
--- a/kms++util/extcpuframebuffer.h
+++ b/kms++util/inc/kms++util/extcpuframebuffer.h
diff --git a/kms++util/kms++util.h b/kms++util/inc/kms++util/kms++util.h
index 0c07d18..ca3c406 100644
--- a/kms++util/kms++util.h
+++ b/kms++util/inc/kms++util/kms++util.h
@@ -2,7 +2,13 @@
#include <kms++/kms++.h>
-#include "color.h"
+#include <kms++util/color.h>
+#include <kms++util/strhelpers.h>
+#include <kms++util/cpuframebuffer.h>
+#include <kms++util/extcpuframebuffer.h>
+#include <kms++util/stopwatch.h>
+#include <kms++util/opts.h>
+
#include <cstdio>
#include <cstdlib>
diff --git a/kms++util/opts.h b/kms++util/inc/kms++util/opts.h
index 1b0fd22..1b0fd22 100644
--- a/kms++util/opts.h
+++ b/kms++util/inc/kms++util/opts.h
diff --git a/kms++util/stopwatch.h b/kms++util/inc/kms++util/stopwatch.h
index 9b60fa1..9b60fa1 100644
--- a/kms++util/stopwatch.h
+++ b/kms++util/inc/kms++util/stopwatch.h
diff --git a/kms++util/strhelpers.h b/kms++util/inc/kms++util/strhelpers.h
index 2c540f3..2c540f3 100644
--- a/kms++util/strhelpers.h
+++ b/kms++util/inc/kms++util/strhelpers.h
diff --git a/kms++util/color.cpp b/kms++util/src/color.cpp
index 490ff64..4bfc33e 100644
--- a/kms++util/color.cpp
+++ b/kms++util/src/color.cpp
@@ -1,4 +1,4 @@
-#include "color.h"
+#include <kms++util/color.h>
namespace kms
{
diff --git a/kms++util/colorbar.cpp b/kms++util/src/colorbar.cpp
index 9e6e68d..bca8dc6 100644
--- a/kms++util/colorbar.cpp
+++ b/kms++util/src/colorbar.cpp
@@ -1,7 +1,7 @@
#include <cstdint>
#include <kms++/kms++.h>
-#include "kms++util.h"
+#include <kms++util/kms++util.h>
namespace kms
{
diff --git a/kms++util/cpuframebuffer.cpp b/kms++util/src/cpuframebuffer.cpp
index 1f14ddc..d356596 100644
--- a/kms++util/cpuframebuffer.cpp
+++ b/kms++util/src/cpuframebuffer.cpp
@@ -1,6 +1,6 @@
#include <map>
-#include "cpuframebuffer.h"
+#include <kms++util/cpuframebuffer.h>
using namespace std;
diff --git a/kms++util/drawing.cpp b/kms++util/src/drawing.cpp
index 2ca567c..a5377be 100644
--- a/kms++util/drawing.cpp
+++ b/kms++util/src/drawing.cpp
@@ -1,6 +1,6 @@
#include <kms++/kms++.h>
-#include <kms++util.h>
+#include <kms++util/kms++util.h>
using namespace std;
diff --git a/kms++util/extcpuframebuffer.cpp b/kms++util/src/extcpuframebuffer.cpp
index bd0b10c..232c778 100644
--- a/kms++util/extcpuframebuffer.cpp
+++ b/kms++util/src/extcpuframebuffer.cpp
@@ -1,6 +1,5 @@
-#include "extcpuframebuffer.h"
-#include "kms++util.h"
+#include <kms++util/kms++util.h>
using namespace std;
diff --git a/kms++util/font_8x8.h b/kms++util/src/font_8x8.h
index 2a2a1ea..2a2a1ea 100644
--- a/kms++util/font_8x8.h
+++ b/kms++util/src/font_8x8.h
diff --git a/kms++util/helpers.cpp b/kms++util/src/helpers.cpp
index 4aa3194..2bf3a4f 100644
--- a/kms++util/helpers.cpp
+++ b/kms++util/src/helpers.cpp
@@ -1,5 +1,4 @@
-#include "kms++util.h"
-#include "strhelpers.h"
+#include <kms++util/kms++util.h>
using namespace std;
diff --git a/kms++util/opts.cpp b/kms++util/src/opts.cpp
index 4ea31f8..afef452 100644
--- a/kms++util/opts.cpp
+++ b/kms++util/src/opts.cpp
@@ -3,7 +3,7 @@
#include <unistd.h>
#include <getopt.h>
-#include "opts.h"
+#include <kms++util/opts.h>
using namespace std;
diff --git a/kms++util/strhelpers.cpp b/kms++util/src/strhelpers.cpp
index f18c749..f59bb6d 100644
--- a/kms++util/strhelpers.cpp
+++ b/kms++util/src/strhelpers.cpp
@@ -1,4 +1,4 @@
-#include "strhelpers.h"
+#include <kms++util/strhelpers.h>
#include <algorithm>
#include <stdarg.h>
diff --git a/kms++util/testpat.cpp b/kms++util/src/testpat.cpp
index 7a2e4d3..cbe611d 100644
--- a/kms++util/testpat.cpp
+++ b/kms++util/src/testpat.cpp
@@ -6,9 +6,7 @@
#include <thread>
#include <kms++/kms++.h>
-#include <kms++util.h>
-#include <cpuframebuffer.h>
-#include "stopwatch.h"
+#include <kms++util/kms++util.h>
using namespace std;
diff --git a/kmscube/cube-egl.cpp b/kmscube/cube-egl.cpp
index 310ff07..7dcfa0b 100644
--- a/kmscube/cube-egl.cpp
+++ b/kmscube/cube-egl.cpp
@@ -1,7 +1,7 @@
#include "cube-egl.h"
#include "cube.h"
-#include <kms++util.h>
+#include <kms++util/kms++util.h>
using namespace std;
diff --git a/kmscube/cube-gbm.cpp b/kmscube/cube-gbm.cpp
index 93ebece..1528684 100644
--- a/kmscube/cube-gbm.cpp
+++ b/kmscube/cube-gbm.cpp
@@ -10,7 +10,7 @@
#include <gbm.h>
#include <kms++/kms++.h>
-#include <kms++util.h>
+#include <kms++util/kms++util.h>
#include "cube-egl.h"
#include "cube-gles2.h"
diff --git a/kmscube/cube-gles2.cpp b/kmscube/cube-gles2.cpp
index bda2f59..05567ea 100644
--- a/kmscube/cube-gles2.cpp
+++ b/kmscube/cube-gles2.cpp
@@ -2,7 +2,7 @@
#include "cube-gles2.h"
#include "cube.h"
-#include <kms++util.h>
+#include <kms++util/kms++util.h>
using namespace std;
diff --git a/kmscube/cube-null.cpp b/kmscube/cube-null.cpp
index 64fbb45..f8f2091 100644
--- a/kmscube/cube-null.cpp
+++ b/kmscube/cube-null.cpp
@@ -4,7 +4,7 @@
#include "cube-gles2.h"
#include "cube.h"
-#include <kms++util.h>
+#include <kms++util/kms++util.h>
using namespace std;
diff --git a/kmscube/cube-x11.cpp b/kmscube/cube-x11.cpp
index dde4f61..dca59c8 100644
--- a/kmscube/cube-x11.cpp
+++ b/kmscube/cube-x11.cpp
@@ -6,7 +6,7 @@
#include "cube-egl.h"
#include "cube-gles2.h"
-#include <kms++util.h>
+#include <kms++util/kms++util.h>
using namespace std;
diff --git a/kmscube/cube.cpp b/kmscube/cube.cpp
index 9aa8a84..4129554 100644
--- a/kmscube/cube.cpp
+++ b/kmscube/cube.cpp
@@ -26,8 +26,7 @@
/* Based on a egl cube test app originally written by Arvin Schnell */
#include "cube.h"
-#include <opts.h>
-#include <kms++util.h>
+#include <kms++util/kms++util.h>
using namespace std;
diff --git a/py/pykmsutil.cpp b/py/pykmsutil.cpp
index f060bdf..5ee1d4e 100644
--- a/py/pykmsutil.cpp
+++ b/py/pykmsutil.cpp
@@ -1,7 +1,7 @@
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <kms++/kms++.h>
-#include <kms++util.h>
+#include <kms++util/kms++util.h>
namespace py = pybind11;
diff --git a/utils/fbtestpat.cpp b/utils/fbtestpat.cpp
index de707d6..0538ed0 100644
--- a/utils/fbtestpat.cpp
+++ b/utils/fbtestpat.cpp
@@ -11,8 +11,7 @@
#include <linux/fb.h>
-#include <kms++util.h>
-#include <extcpuframebuffer.h>
+#include <kms++util/kms++util.h>
using namespace kms;
diff --git a/utils/kmsblank.cpp b/utils/kmsblank.cpp
index 864f269..4909826 100644
--- a/utils/kmsblank.cpp
+++ b/utils/kmsblank.cpp
@@ -3,8 +3,7 @@
#include <algorithm>
#include <kms++/kms++.h>
-#include <kms++util.h>
-#include "opts.h"
+#include <kms++util/kms++util.h>
using namespace std;
using namespace kms;
diff --git a/utils/kmscapture.cpp b/utils/kmscapture.cpp
index dc65f1e..b4c3e88 100644
--- a/utils/kmscapture.cpp
+++ b/utils/kmscapture.cpp
@@ -10,8 +10,7 @@
#include <glob.h>
#include <kms++/kms++.h>
-#include <kms++util.h>
-#include <opts.h>
+#include <kms++util/kms++util.h>
#define CAMERA_BUF_QUEUE_SIZE 3
#define MAX_CAMERA 9
diff --git a/utils/kmsprint.cpp b/utils/kmsprint.cpp
index 7c8e01f..7e3fd3b 100644
--- a/utils/kmsprint.cpp
+++ b/utils/kmsprint.cpp
@@ -6,9 +6,7 @@
#include <inttypes.h>
#include <kms++/kms++.h>
-#include "opts.h"
-#include "kms++util.h"
-#include "strhelpers.h"
+#include <kms++util/kms++util.h>
using namespace std;
using namespace kms;
diff --git a/utils/kmsview.cpp b/utils/kmsview.cpp
index 8efcecd..b503f0a 100644
--- a/utils/kmsview.cpp
+++ b/utils/kmsview.cpp
@@ -3,8 +3,7 @@
#include <unistd.h>
#include <kms++/kms++.h>
-#include <kms++util.h>
-#include <opts.h>
+#include <kms++util/kms++util.h>
using namespace std;
using namespace kms;
diff --git a/utils/testpat.cpp b/utils/testpat.cpp
index 4fe8d0b..ef56a80 100644
--- a/utils/testpat.cpp
+++ b/utils/testpat.cpp
@@ -8,8 +8,7 @@
#include <kms++/kms++.h>
#include <kms++/modedb.h>
-#include <kms++util.h>
-#include <opts.h>
+#include <kms++util/kms++util.h>
using namespace std;
using namespace kms;