diff options
author | Manuel Bentele | 2021-09-22 15:00:32 +0200 |
---|---|---|
committer | Manuel Bentele | 2021-09-22 15:00:32 +0200 |
commit | b1c7e4e34386d3abfb547d6dc3fb7f3acd9280ff (patch) | |
tree | 497e9f29ab9340ccfd57961a304bb7f90158a5c5 /core/modules/looking-glass-client/module.build | |
parent | [hardware-stats] Add missing -p option to hwstats (diff) | |
download | mltk-b1c7e4e34386d3abfb547d6dc3fb7f3acd9280ff.tar.gz mltk-b1c7e4e34386d3abfb547d6dc3fb7f3acd9280ff.tar.xz mltk-b1c7e4e34386d3abfb547d6dc3fb7f3acd9280ff.zip |
[looking-glass-client] Add module for looking-glass-client source build
Diffstat (limited to 'core/modules/looking-glass-client/module.build')
-rw-r--r-- | core/modules/looking-glass-client/module.build | 24 |
1 files changed, 24 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 |