Skip to content

Commit 8e6738c

Browse files
author
dashodanger
committed
Fix libdecor
1 parent a645737 commit 8e6738c

File tree

6 files changed

+750
-0
lines changed

6 files changed

+750
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ cmake-build-*
3131
# Pure CMake (appeared from COMPILING.md)
3232
build/
3333

34+
!libraries/fltk/libdecor/build
35+
3436
# User dirs
3537
!addons/.gitkeep
3638

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
#
2+
# Library Makefile for the Fast Light Tool Kit (FLTK).
3+
#
4+
# Copyright 2022-2024 by Bill Spitzak and others.
5+
#
6+
# This library is free software. Distribution and use rights are outlined in
7+
# the file "COPYING" which should have been included with this file. If this
8+
# file is missing or damaged, see the license at:
9+
#
10+
# https://www.fltk.org/COPYING.php
11+
#
12+
# Please see the following page on how to report bugs and issues:
13+
#
14+
# https://www.fltk.org/bugs.php
15+
#
16+
17+
include ../../makeinclude
18+
19+
OBJECTS = fl_libdecor.o libdecor-cairo-blur.o fl_libdecor-plugins.o \
20+
../../src/xdg-decoration-protocol.o ../../src/xdg-shell-protocol.o \
21+
../../src/text-input-protocol.o ../../src/gtk-shell-protocol.o desktop-settings.o os-compatibility.o
22+
23+
PROTOCOLS = `pkg-config --variable=pkgdatadir wayland-protocols`
24+
25+
Linux_CFLAGS =
26+
FreeBSD_CFLAGS = -I/usr/local/include
27+
EXTRA_DECOR = ${${UNAME}_CFLAGS}
28+
29+
CFLAGS_DECOR = -I. -I../.. -I../../src -I../src -I../src/plugins $(EXTRA_DECOR) -fPIC -D_GNU_SOURCE \
30+
-DHAVE_MEMFD_CREATE -DHAVE_MKOSTEMP -DHAVE_POSIX_FALLOCATE
31+
32+
all : $(OBJECTS)
33+
34+
depend:
35+
: echo "libdecor/build: make depend..."
36+
37+
fl_libdecor.o : fl_libdecor.c ../src/libdecor.c ../../src/xdg-shell-protocol.c ../../src/xdg-decoration-protocol.c ../../src/text-input-protocol.c ../../src/gtk-shell-protocol.c
38+
$(CC) $(CFLAGS) $(CFLAGS_DECOR) -c fl_libdecor.c -DLIBDECOR_PLUGIN_API_VERSION=1
39+
40+
fl_libdecor-plugins.o : fl_libdecor-plugins.c ../src/plugins/cairo/libdecor-cairo.c
41+
$(CC) $(CFLAGS) $(CFLAGS_DECOR) -c fl_libdecor-plugins.c -DLIBDECOR_PLUGIN_API_VERSION=1
42+
43+
libdecor-cairo-blur.o : ../src/plugins/common/libdecor-cairo-blur.c
44+
$(CC) $(CFLAGS_DECOR) -c ../src/plugins/common/libdecor-cairo-blur.c
45+
46+
os-compatibility.o : ../src/os-compatibility.c
47+
$(CC) $(CFLAGS_DECOR) -c ../src/os-compatibility.c
48+
49+
desktop-settings.o : ../src/desktop-settings.c
50+
$(CC) $(CFLAGS_DECOR) -c ../src/desktop-settings.c $(LIBDECORDBUS)
51+
52+
../../src/xdg-shell-protocol.c :
53+
wayland-scanner private-code $(PROTOCOLS)/stable/xdg-shell/xdg-shell.xml \
54+
../../src/xdg-shell-protocol.c
55+
wayland-scanner client-header $(PROTOCOLS)/stable/xdg-shell/xdg-shell.xml \
56+
../../src/xdg-shell-client-protocol.h
57+
58+
../../src/xdg-decoration-protocol.c :
59+
wayland-scanner private-code \
60+
$(PROTOCOLS)/unstable/xdg-decoration/xdg-decoration-unstable-v1.xml \
61+
../../src/xdg-decoration-protocol.c
62+
wayland-scanner client-header \
63+
$(PROTOCOLS)/unstable/xdg-decoration/xdg-decoration-unstable-v1.xml \
64+
../../src/xdg-decoration-client-protocol.h
65+
66+
../../src/text-input-protocol.c :
67+
wayland-scanner private-code \
68+
$(PROTOCOLS)/unstable/text-input/text-input-unstable-v3.xml \
69+
../../src/text-input-protocol.c
70+
wayland-scanner client-header \
71+
$(PROTOCOLS)/unstable/text-input/text-input-unstable-v3.xml \
72+
../../src/text-input-client-protocol.h
73+
74+
../../src/gtk-shell-protocol.c :
75+
wayland-scanner private-code \
76+
gtk-shell.xml ../../src/gtk-shell-protocol.c
77+
wayland-scanner client-header \
78+
gtk-shell.xml ../../src/gtk-shell-client-protocol.h
79+
80+
install:
81+
echo "Nothing to install"
82+
83+
uninstall:
84+
85+
clean:
86+
$(RM) *.o ../../src/xdg-*.c ../../src/xdg-*.h ../../src/xdg-*.o ../../src/text-input-* ../../src/gtk-shell-*

0 commit comments

Comments
 (0)