summaryrefslogblamecommitdiffstats
path: root/core/modules/looking-glass-client/module.build
blob: 9e1a27f8a0fbdabf94697f74b7986062214e0f71 (plain) (tree)
1
2
3
4
5
6
7
8

                
                 
                                                                                                                                          



                                                          




                                                                                             


                                             
                                             

                                               
                                                                           



             
 
#!/bin/bash
fetch_source() {
	autoclone
	git -C "${MODULE_WORK_DIR}/src/LookingGlass" submodule update --init --recursive || perror "Failed to init and update submodules!"
}

build() {
	local SRCDIR="${MODULE_WORK_DIR}/src/LookingGlass"
	local DSTDIR="${MODULE_BUILD_DIR}"

	mkdir -p "${SRCDIR}/client/build" || perror "Failed to create CMake build directory!"
	cde "${SRCDIR}/client/build"

	cmake -DENABLE_WAYLAND=OFF     \
		-DENABLE_PIPEWIRE=OFF       \
		-DENABLE_X11=ON             \
		-DCMAKE_INSTALL_PREFIX=/usr \
		../ || perror "'cmake' failed."
	make || perror "'make' failed."
	DESTDIR="${DSTDIR}" make install || perror "'make install' failed."
}

post_copy() {
	:
}