aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh9
1 files changed, 1 insertions, 8 deletions
diff --git a/build.sh b/build.sh
index 9327b62..fabf40b 100755
--- a/build.sh
+++ b/build.sh
@@ -9,22 +9,15 @@ CXX=${CXX:-g++}
opts="-O2 -g0 -DNDEBUG -Wall -Wextra -Werror -s"
[ -n "$DEBUG" ] && opts="-O0 -g3 -Wall -Wextra -Werror";
-build_wayland_protocol() {
- wayland-scanner private-code external/wlr-export-dmabuf-unstable-v1.xml external/wlr-export-dmabuf-unstable-v1-protocol.c
- wayland-scanner client-header external/wlr-export-dmabuf-unstable-v1.xml external/wlr-export-dmabuf-unstable-v1-client-protocol.h
-}
-
build_gsr_gtk() {
dependencies="gtk+-3.0 x11 xrandr libpulse libcap libdrm wayland-egl wayland-client"
includes="$(pkg-config --cflags $dependencies)"
libs="$(pkg-config --libs $dependencies) -ldl"
$CC -c src/egl.c $opts $includes
$CC -c src/library_loader.c $opts $includes
- $CC -c external/wlr-export-dmabuf-unstable-v1-protocol.c $opts $includes
$CXX -c src/main.cpp $opts $includes
- $CXX -o gpu-screen-recorder-gtk egl.o library_loader.o wlr-export-dmabuf-unstable-v1-protocol.o main.o $libs $opts
+ $CXX -o gpu-screen-recorder-gtk egl.o library_loader.o main.o $libs $opts
}
-build_wayland_protocol
build_gsr_gtk
echo "Successfully built gpu-screen-recorder-gtk"