summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Bentele2021-09-22 15:00:32 +0200
committerManuel Bentele2021-09-22 15:00:32 +0200
commitb1c7e4e34386d3abfb547d6dc3fb7f3acd9280ff (patch)
tree497e9f29ab9340ccfd57961a304bb7f90158a5c5
parent[hardware-stats] Add missing -p option to hwstats (diff)
downloadmltk-b1c7e4e34386d3abfb547d6dc3fb7f3acd9280ff.tar.gz
mltk-b1c7e4e34386d3abfb547d6dc3fb7f3acd9280ff.tar.xz
mltk-b1c7e4e34386d3abfb547d6dc3fb7f3acd9280ff.zip
[looking-glass-client] Add module for looking-glass-client source build
-rw-r--r--core/modules/looking-glass-client/module.build24
-rw-r--r--core/modules/looking-glass-client/module.conf7
-rw-r--r--core/modules/looking-glass-client/module.conf.ubuntu23
-rw-r--r--core/modules/qemu/module.conf1
l---------core/targets/qemu/looking-glass-client1
5 files changed, 56 insertions, 0 deletions
diff --git a/core/modules/looking-glass-client/module.build b/core/modules/looking-glass-client/module.build
new file mode 100644
index 00000000..df334e41
--- /dev/null
+++ b/core/modules/looking-glass-client/module.build
@@ -0,0 +1,24 @@
+#!/bin/bash
+fetch_source() {
+ local SRCDIR="${MODULE_WORK_DIR}/src/LookingGlass"
+ autoclone
+ cde "${SRCDIR}"
+ git submodule update --init --recursive || perror "Failed to init and update submodules!"
+}
+
+build() {
+ local SRCDIR="${MODULE_WORK_DIR}/src/LookingGlass"
+ local CLIENTBUILDDIR="client/build"
+ mkdir -p "${SRCDIR}/${CLIENTBUILDDIR}" || perror "Failed to create CMake build directory!"
+ cde "${SRCDIR}/${CLIENTBUILDDIR}"
+ cmake -DENABLE_WAYLAND=no \
+ -DENABLE_X11=yes \
+ ../ || perror "'cmake' failed."
+ make || perror "'make' failed."
+ mkdir -p "${MODULE_BUILD_DIR}/opt/openslx/bin"
+ cp "${SRCDIR}/${CLIENTBUILDDIR}/looking-glass-client" "${MODULE_BUILD_DIR}/opt/openslx/bin/looking-glass-client" || perror "'cp' failed."
+}
+
+post_copy() {
+ :
+} \ No newline at end of file
diff --git a/core/modules/looking-glass-client/module.conf b/core/modules/looking-glass-client/module.conf
new file mode 100644
index 00000000..11283429
--- /dev/null
+++ b/core/modules/looking-glass-client/module.conf
@@ -0,0 +1,7 @@
+#!/bin/bash
+REQUIRED_BINARIES="
+ looking-glass-client
+"
+REQUIRED_GIT="
+ https://github.com/gnif/LookingGlass.git
+"
diff --git a/core/modules/looking-glass-client/module.conf.ubuntu b/core/modules/looking-glass-client/module.conf.ubuntu
new file mode 100644
index 00000000..00a5d1a9
--- /dev/null
+++ b/core/modules/looking-glass-client/module.conf.ubuntu
@@ -0,0 +1,23 @@
+#!/bin/bash
+REQUIRED_INSTALLED_PACKAGES="
+ gcc
+ pkg-config
+ gawk
+ binutils-dev
+ cmake
+ fonts-freefont-ttf
+ libfontconfig1-dev
+ libgl-dev
+ libgles-dev
+ libegl-dev
+ libgmp-dev
+ libspice-protocol-dev
+ nettle-dev
+ libx11-dev
+ libxpresent-dev
+ libxfixes-dev
+ libxkbcommon-x11-dev
+ libxi-dev
+ libxinerama-dev
+ libxss-dev
+"
diff --git a/core/modules/qemu/module.conf b/core/modules/qemu/module.conf
index 542827c3..1e272eb4 100644
--- a/core/modules/qemu/module.conf
+++ b/core/modules/qemu/module.conf
@@ -3,6 +3,7 @@
REQUIRED_MODULES="
libvirt
openjdk-8-jre-headless
+ looking-glass-client
"
REQUIRED_BINARIES=""
diff --git a/core/targets/qemu/looking-glass-client b/core/targets/qemu/looking-glass-client
new file mode 120000
index 00000000..0b3af467
--- /dev/null
+++ b/core/targets/qemu/looking-glass-client
@@ -0,0 +1 @@
+../../modules/looking-glass-client \ No newline at end of file