summaryrefslogtreecommitdiff
path: root/kms++
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2016-06-11 21:46:24 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2016-06-11 21:46:24 +0300
commit9916712a62169606d845510028a3ea6f84bd442f (patch)
treeaca4e1bec39500812111c43a8ecee862edae0002 /kms++
parent736b295100ce441e800457bcbd08cb36db543ff2 (diff)
kms++: organize into subdirs
Diffstat (limited to 'kms++')
-rw-r--r--kms++/CMakeLists.txt8
-rw-r--r--kms++/inc/kms++/atomicreq.h (renamed from kms++/atomicreq.h)0
-rw-r--r--kms++/inc/kms++/blob.h (renamed from kms++/blob.h)0
-rw-r--r--kms++/inc/kms++/card.h (renamed from kms++/card.h)0
-rw-r--r--kms++/inc/kms++/connector.h (renamed from kms++/connector.h)0
-rw-r--r--kms++/inc/kms++/crtc.h (renamed from kms++/crtc.h)0
-rw-r--r--kms++/inc/kms++/decls.h (renamed from kms++/decls.h)0
-rw-r--r--kms++/inc/kms++/drmobject.h (renamed from kms++/drmobject.h)0
-rw-r--r--kms++/inc/kms++/drmpropobject.h (renamed from kms++/drmpropobject.h)0
-rw-r--r--kms++/inc/kms++/dumbframebuffer.h (renamed from kms++/dumbframebuffer.h)0
-rw-r--r--kms++/inc/kms++/encoder.h (renamed from kms++/encoder.h)0
-rw-r--r--kms++/inc/kms++/extframebuffer.h (renamed from kms++/extframebuffer.h)0
-rw-r--r--kms++/inc/kms++/framebuffer.h (renamed from kms++/framebuffer.h)0
-rw-r--r--kms++/inc/kms++/kms++.h (renamed from kms++/kms++.h)0
-rw-r--r--kms++/inc/kms++/modedb.h (renamed from kms++/modedb.h)0
-rw-r--r--kms++/inc/kms++/pagefliphandler.h (renamed from kms++/pagefliphandler.h)0
-rw-r--r--kms++/inc/kms++/pipeline.h (renamed from kms++/pipeline.h)0
-rw-r--r--kms++/inc/kms++/pixelformats.h (renamed from kms++/pixelformats.h)0
-rw-r--r--kms++/inc/kms++/plane.h (renamed from kms++/plane.h)0
-rw-r--r--kms++/inc/kms++/property.h (renamed from kms++/property.h)0
-rw-r--r--kms++/inc/kms++/videomode.h (renamed from kms++/videomode.h)0
-rw-r--r--kms++/src/atomicreq.cpp (renamed from kms++/atomicreq.cpp)4
-rw-r--r--kms++/src/blob.cpp (renamed from kms++/blob.cpp)2
-rw-r--r--kms++/src/card.cpp (renamed from kms++/card.cpp)2
-rw-r--r--kms++/src/connector.cpp (renamed from kms++/connector.cpp)2
-rw-r--r--kms++/src/crtc.cpp (renamed from kms++/crtc.cpp)2
-rw-r--r--kms++/src/drmobject.cpp (renamed from kms++/drmobject.cpp)2
-rw-r--r--kms++/src/drmpropobject.cpp (renamed from kms++/drmpropobject.cpp)2
-rw-r--r--kms++/src/dumbframebuffer.cpp (renamed from kms++/dumbframebuffer.cpp)2
-rw-r--r--kms++/src/encoder.cpp (renamed from kms++/encoder.cpp)2
-rw-r--r--kms++/src/extframebuffer.cpp (renamed from kms++/extframebuffer.cpp)2
-rw-r--r--kms++/src/framebuffer.cpp (renamed from kms++/framebuffer.cpp)2
-rw-r--r--kms++/src/helpers.cpp (renamed from kms++/helpers.cpp)2
-rw-r--r--kms++/src/helpers.h (renamed from kms++/helpers.h)0
-rw-r--r--kms++/src/modedb.cpp (renamed from kms++/modedb.cpp)3
-rw-r--r--kms++/src/modedb_cea.cpp (renamed from kms++/modedb_cea.cpp)2
-rw-r--r--kms++/src/modedb_dmt.cpp (renamed from kms++/modedb_dmt.cpp)2
-rw-r--r--kms++/src/pixelformats.cpp (renamed from kms++/pixelformats.cpp)2
-rw-r--r--kms++/src/plane.cpp (renamed from kms++/plane.cpp)2
-rw-r--r--kms++/src/property.cpp (renamed from kms++/property.cpp)2
-rw-r--r--kms++/src/videomode.cpp (renamed from kms++/videomode.cpp)2
41 files changed, 25 insertions, 24 deletions
diff --git a/kms++/CMakeLists.txt b/kms++/CMakeLists.txt
index 4409b8b..d983964 100644
--- a/kms++/CMakeLists.txt
+++ b/kms++/CMakeLists.txt
@@ -1,8 +1,12 @@
include_directories(${LIBDRM_INCLUDE_DIRS})
link_directories(${LIBDRM_LIBRARY_DIRS})
-file(GLOB SRCS "*.cpp" "*.h")
+file(GLOB SRCS "src/*.cpp" "src/*.h" "inc/kms++/*.h")
add_library(kms++ ${SRCS})
+target_include_directories(kms++ PUBLIC
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/inc>
+ $<INSTALL_INTERFACE:include>
+ PRIVATE src)
+
target_link_libraries(kms++ ${LIBDRM_LIBRARIES})
-target_include_directories(kms++ PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
diff --git a/kms++/atomicreq.h b/kms++/inc/kms++/atomicreq.h
index 6ebdbf8..6ebdbf8 100644
--- a/kms++/atomicreq.h
+++ b/kms++/inc/kms++/atomicreq.h
diff --git a/kms++/blob.h b/kms++/inc/kms++/blob.h
index fd872f1..fd872f1 100644
--- a/kms++/blob.h
+++ b/kms++/inc/kms++/blob.h
diff --git a/kms++/card.h b/kms++/inc/kms++/card.h
index 5ecaecf..5ecaecf 100644
--- a/kms++/card.h
+++ b/kms++/inc/kms++/card.h
diff --git a/kms++/connector.h b/kms++/inc/kms++/connector.h
index 6ccc959..6ccc959 100644
--- a/kms++/connector.h
+++ b/kms++/inc/kms++/connector.h
diff --git a/kms++/crtc.h b/kms++/inc/kms++/crtc.h
index f3b525a..f3b525a 100644
--- a/kms++/crtc.h
+++ b/kms++/inc/kms++/crtc.h
diff --git a/kms++/decls.h b/kms++/inc/kms++/decls.h
index e84b29a..e84b29a 100644
--- a/kms++/decls.h
+++ b/kms++/inc/kms++/decls.h
diff --git a/kms++/drmobject.h b/kms++/inc/kms++/drmobject.h
index a939aa7..a939aa7 100644
--- a/kms++/drmobject.h
+++ b/kms++/inc/kms++/drmobject.h
diff --git a/kms++/drmpropobject.h b/kms++/inc/kms++/drmpropobject.h
index ec28d45..ec28d45 100644
--- a/kms++/drmpropobject.h
+++ b/kms++/inc/kms++/drmpropobject.h
diff --git a/kms++/dumbframebuffer.h b/kms++/inc/kms++/dumbframebuffer.h
index 6b3ee64..6b3ee64 100644
--- a/kms++/dumbframebuffer.h
+++ b/kms++/inc/kms++/dumbframebuffer.h
diff --git a/kms++/encoder.h b/kms++/inc/kms++/encoder.h
index b5aac70..b5aac70 100644
--- a/kms++/encoder.h
+++ b/kms++/inc/kms++/encoder.h
diff --git a/kms++/extframebuffer.h b/kms++/inc/kms++/extframebuffer.h
index eab7e3c..eab7e3c 100644
--- a/kms++/extframebuffer.h
+++ b/kms++/inc/kms++/extframebuffer.h
diff --git a/kms++/framebuffer.h b/kms++/inc/kms++/framebuffer.h
index cbf705d..cbf705d 100644
--- a/kms++/framebuffer.h
+++ b/kms++/inc/kms++/framebuffer.h
diff --git a/kms++/kms++.h b/kms++/inc/kms++/kms++.h
index 3365ef7..3365ef7 100644
--- a/kms++/kms++.h
+++ b/kms++/inc/kms++/kms++.h
diff --git a/kms++/modedb.h b/kms++/inc/kms++/modedb.h
index 43c7afc..43c7afc 100644
--- a/kms++/modedb.h
+++ b/kms++/inc/kms++/modedb.h
diff --git a/kms++/pagefliphandler.h b/kms++/inc/kms++/pagefliphandler.h
index 79cda0d..79cda0d 100644
--- a/kms++/pagefliphandler.h
+++ b/kms++/inc/kms++/pagefliphandler.h
diff --git a/kms++/pipeline.h b/kms++/inc/kms++/pipeline.h
index ef04ec1..ef04ec1 100644
--- a/kms++/pipeline.h
+++ b/kms++/inc/kms++/pipeline.h
diff --git a/kms++/pixelformats.h b/kms++/inc/kms++/pixelformats.h
index 813eaef..813eaef 100644
--- a/kms++/pixelformats.h
+++ b/kms++/inc/kms++/pixelformats.h
diff --git a/kms++/plane.h b/kms++/inc/kms++/plane.h
index d50e539..d50e539 100644
--- a/kms++/plane.h
+++ b/kms++/inc/kms++/plane.h
diff --git a/kms++/property.h b/kms++/inc/kms++/property.h
index b9097ff..b9097ff 100644
--- a/kms++/property.h
+++ b/kms++/inc/kms++/property.h
diff --git a/kms++/videomode.h b/kms++/inc/kms++/videomode.h
index f9abaf9..f9abaf9 100644
--- a/kms++/videomode.h
+++ b/kms++/inc/kms++/videomode.h
diff --git a/kms++/atomicreq.cpp b/kms++/src/atomicreq.cpp
index 3aa2ff6..01934ae 100644
--- a/kms++/atomicreq.cpp
+++ b/kms++/src/atomicreq.cpp
@@ -4,9 +4,7 @@
#include <xf86drm.h>
#include <xf86drmMode.h>
-#include "atomicreq.h"
-#include "property.h"
-#include "card.h"
+#include <kms++/kms++.h>
#ifndef DRM_CLIENT_CAP_ATOMIC
diff --git a/kms++/blob.cpp b/kms++/src/blob.cpp
index 10a71c6..e1cd1f8 100644
--- a/kms++/blob.cpp
+++ b/kms++/src/blob.cpp
@@ -1,7 +1,7 @@
#include <xf86drm.h>
#include <xf86drmMode.h>
-#include "kms++.h"
+#include <kms++/kms++.h>
using namespace std;
diff --git a/kms++/card.cpp b/kms++/src/card.cpp
index 918c825..0a34d14 100644
--- a/kms++/card.cpp
+++ b/kms++/src/card.cpp
@@ -9,7 +9,7 @@
#include <xf86drm.h>
#include <xf86drmMode.h>
-#include "kms++.h"
+#include <kms++/kms++.h>
using namespace std;
diff --git a/kms++/connector.cpp b/kms++/src/connector.cpp
index 0f471e1..ec37d5d 100644
--- a/kms++/connector.cpp
+++ b/kms++/src/connector.cpp
@@ -4,7 +4,7 @@
#include <fcntl.h>
#include <cassert>
-#include "kms++.h"
+#include <kms++/kms++.h>
#include "helpers.h"
using namespace std;
diff --git a/kms++/crtc.cpp b/kms++/src/crtc.cpp
index 6cbdf0c..bad7d31 100644
--- a/kms++/crtc.cpp
+++ b/kms++/src/crtc.cpp
@@ -4,7 +4,7 @@
#include <fcntl.h>
#include <cassert>
-#include "kms++.h"
+#include <kms++/kms++.h>
#include "helpers.h"
using namespace std;
diff --git a/kms++/drmobject.cpp b/kms++/src/drmobject.cpp
index 8abecc7..f94fc5d 100644
--- a/kms++/drmobject.cpp
+++ b/kms++/src/drmobject.cpp
@@ -5,7 +5,7 @@
#include <xf86drm.h>
#include <xf86drmMode.h>
-#include "kms++.h"
+#include <kms++/kms++.h>
using namespace std;
diff --git a/kms++/drmpropobject.cpp b/kms++/src/drmpropobject.cpp
index 50f87a7..f2edf8b 100644
--- a/kms++/drmpropobject.cpp
+++ b/kms++/src/drmpropobject.cpp
@@ -5,7 +5,7 @@
#include <xf86drm.h>
#include <xf86drmMode.h>
-#include "kms++.h"
+#include <kms++/kms++.h>
using namespace std;
diff --git a/kms++/dumbframebuffer.cpp b/kms++/src/dumbframebuffer.cpp
index fcd01d0..d2f5db2 100644
--- a/kms++/dumbframebuffer.cpp
+++ b/kms++/src/dumbframebuffer.cpp
@@ -10,7 +10,7 @@
#include <drm.h>
#include <drm_mode.h>
-#include "kms++.h"
+#include <kms++/kms++.h>
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
diff --git a/kms++/encoder.cpp b/kms++/src/encoder.cpp
index 1ed2d5c..2168f2f 100644
--- a/kms++/encoder.cpp
+++ b/kms++/src/encoder.cpp
@@ -6,7 +6,7 @@
#include <xf86drm.h>
#include <xf86drmMode.h>
-#include "kms++.h"
+#include <kms++/kms++.h>
using namespace std;
diff --git a/kms++/extframebuffer.cpp b/kms++/src/extframebuffer.cpp
index 352c1a7..0ade454 100644
--- a/kms++/extframebuffer.cpp
+++ b/kms++/src/extframebuffer.cpp
@@ -5,7 +5,7 @@
#include <xf86drm.h>
#include <xf86drmMode.h>
-#include "kms++.h"
+#include <kms++/kms++.h>
using namespace std;
diff --git a/kms++/framebuffer.cpp b/kms++/src/framebuffer.cpp
index bf9ab01..a7f589c 100644
--- a/kms++/framebuffer.cpp
+++ b/kms++/src/framebuffer.cpp
@@ -5,7 +5,7 @@
#include <xf86drm.h>
#include <xf86drmMode.h>
-#include "kms++.h"
+#include <kms++/kms++.h>
using namespace std;
diff --git a/kms++/helpers.cpp b/kms++/src/helpers.cpp
index 715e757..8bd082b 100644
--- a/kms++/helpers.cpp
+++ b/kms++/src/helpers.cpp
@@ -1,5 +1,5 @@
-#include "connector.h"
+#include <kms++/kms++.h>
#include "helpers.h"
#include <cstring>
diff --git a/kms++/helpers.h b/kms++/src/helpers.h
index 4eb597c..4eb597c 100644
--- a/kms++/helpers.h
+++ b/kms++/src/helpers.h
diff --git a/kms++/modedb.cpp b/kms++/src/modedb.cpp
index 53dcfcf..24d6f63 100644
--- a/kms++/modedb.cpp
+++ b/kms++/src/modedb.cpp
@@ -1,8 +1,7 @@
#include <xf86drm.h>
#include <stdexcept>
-#include "modedb.h"
-#include "videomode.h"
+#include <kms++/modedb.h>
using namespace std;
diff --git a/kms++/modedb_cea.cpp b/kms++/src/modedb_cea.cpp
index a1f4ab9..a105dd8 100644
--- a/kms++/modedb_cea.cpp
+++ b/kms++/src/modedb_cea.cpp
@@ -29,7 +29,7 @@
* DEALINGS IN THE SOFTWARE.
*/
-#include "modedb.h"
+#include <kms++/modedb.h>
#include <xf86drm.h>
diff --git a/kms++/modedb_dmt.cpp b/kms++/src/modedb_dmt.cpp
index 6c74c5e..e3f2ad5 100644
--- a/kms++/modedb_dmt.cpp
+++ b/kms++/src/modedb_dmt.cpp
@@ -29,7 +29,7 @@
* DEALINGS IN THE SOFTWARE.
*/
-#include "modedb.h"
+#include <kms++/modedb.h>
#include <xf86drm.h>
diff --git a/kms++/pixelformats.cpp b/kms++/src/pixelformats.cpp
index 594bd6d..f2b1137 100644
--- a/kms++/pixelformats.cpp
+++ b/kms++/src/pixelformats.cpp
@@ -1,6 +1,6 @@
#include <map>
-#include "pixelformats.h"
+#include <kms++/pixelformats.h>
using namespace std;
diff --git a/kms++/plane.cpp b/kms++/src/plane.cpp
index 46cd3e6..10aaeda 100644
--- a/kms++/plane.cpp
+++ b/kms++/src/plane.cpp
@@ -6,7 +6,7 @@
#include <xf86drm.h>
#include <xf86drmMode.h>
-#include "kms++.h"
+#include <kms++/kms++.h>
using namespace std;
diff --git a/kms++/property.cpp b/kms++/src/property.cpp
index e4390ba..ee79922 100644
--- a/kms++/property.cpp
+++ b/kms++/src/property.cpp
@@ -1,7 +1,7 @@
#include <xf86drm.h>
#include <xf86drmMode.h>
-#include "kms++.h"
+#include <kms++/kms++.h>
using namespace std;
diff --git a/kms++/videomode.cpp b/kms++/src/videomode.cpp
index 5c98c00..30d47f8 100644
--- a/kms++/videomode.cpp
+++ b/kms++/src/videomode.cpp
@@ -1,7 +1,7 @@
#include <xf86drm.h>
#include <xf86drmMode.h>
-#include "videomode.h"
+#include <kms++/kms++.h>
#include "helpers.h"
using namespace std;