summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/CMakeLists.txt19
-rw-r--r--lua/luakms.i25
-rwxr-xr-xlua/test.lua20
3 files changed, 0 insertions, 64 deletions
diff --git a/lua/CMakeLists.txt b/lua/CMakeLists.txt
deleted file mode 100644
index 584648d..0000000
--- a/lua/CMakeLists.txt
+++ /dev/null
@@ -1,19 +0,0 @@
-set(SWIG_EXECUTABLE "swig3.0")
-find_package(SWIG 3.0 REQUIRED)
-include(${SWIG_USE_FILE})
-
-include_directories(${LIBDRM_INCLUDE_DIRS})
-link_directories(${LIBDRM_LIBRARY_DIRS})
-
-pkg_search_module(LUA REQUIRED lua5.2 lua)
-include_directories(${LUA_INCLUDE_DIRS})
-link_directories(${LUA_LIBRARY_DIRS})
-
-# XXX how to add these inc dirs in a proper way?
-include_directories(../libkms++ ../libkmstest)
-
-set_source_files_properties(luakms.i PROPERTIES CPLUSPLUS ON)
-swig_add_module(luakms lua luakms.i)
-swig_link_libraries(luakms kms++ kmstest ${LIBDRM_LIBRARIES} ${LUA_LIBRARIES})
-
-add_custom_target(luaextras SOURCES test.lua)
diff --git a/lua/luakms.i b/lua/luakms.i
deleted file mode 100644
index cdf802b..0000000
--- a/lua/luakms.i
+++ /dev/null
@@ -1,25 +0,0 @@
-%module libluakms
-%{
-#include "kms++.h"
-
-#include "kmstest.h"
-
-using namespace kms;
-%}
-
-%include "std_string.i"
-%include "stdint.i"
-
-%include "decls.h"
-%include "drmobject.h"
-%include "atomicreq.h"
-%include "crtc.h"
-%include "card.h"
-%include "property.h"
-%include "framebuffer.h"
-%include "dumbframebuffer.h"
-%include "plane.h"
-%include "connector.h"
-%include "encoder.h"
-
-%include "kmstest.h"
diff --git a/lua/test.lua b/lua/test.lua
deleted file mode 100755
index c3de15c..0000000
--- a/lua/test.lua
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/usr/bin/lua
-
-require("libluakms")
-require("bit32")
-
-card = libluakms.Card()
-
-conn = card:get_first_connected_connector()
-
-mode = conn:get_default_mode()
-
-fb = libluakms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24");
-libluakms.draw_test_pattern(fb);
-
-crtc = conn:get_current_crtc()
-
-crtc:set_mode(conn, fb, mode)
-
-print("Press enter to exit")
-io.read()