mirror of
https://github.com/virtcode/hypr-dynamic-cursors
synced 2025-09-19 08:03:21 +02:00
fix: fix build with headers from hyprpm
because some includes in hyprland are not relative but absolute, we need to add the hyprland src/ directory as an include path. we do this by modifying the output of pkg-config fixes #38
This commit is contained in:
parent
dc194fe62e
commit
a3427f2a7f
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -5,7 +5,7 @@ all: $(PLUGIN_NAME).so
|
||||||
|
|
||||||
$(PLUGIN_NAME).so: $(SOURCE_FILES)
|
$(PLUGIN_NAME).so: $(SOURCE_FILES)
|
||||||
mkdir -p out
|
mkdir -p out
|
||||||
g++ -shared -Wall --no-gnu-unique -fPIC $(SOURCE_FILES) -g -I /usr/include/hyprland/src `pkg-config --cflags pixman-1 libdrm hyprland` -std=c++23 -o out/$(PLUGIN_NAME).so
|
g++ -shared -Wall --no-gnu-unique -fPIC $(SOURCE_FILES) -g `pkg-config --cflags hyprland | awk '{print $$NF "/src";}'` `pkg-config --cflags pixman-1 libdrm hyprland` -std=c++23 -o out/$(PLUGIN_NAME).so
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f out/$(PLUGIN_NAME).so
|
rm -f out/$(PLUGIN_NAME).so
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue