Updated Makefile

Include aquamarine library and new system dependencies
This commit is contained in:
Ethan Smith-Coss 2024-07-23 13:32:29 +01:00
parent 7ea33a0124
commit 2fd88b494f
Signed by: TheOnePath
GPG Key ID: 1D351CCC6D01F32B
2 changed files with 12 additions and 3 deletions

View File

@ -46,7 +46,7 @@ $(__Hyprutils):
# Build hyprlang if the .hpp file is not installed
# Library for hyprwm
__Hyprlang = $(INCLUDE_SYS_PATH)/hyprlang.hpp
$(__Hyprlang): $(__Hyprutils)
$(__Hyprlang): $(__Hyprutils) $(__Hyprwayland-scanner)
$(CMAKE) --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_INSTALL_PREFIX:PATH=/usr -S ./hyprlang -B ./hyprlang/build
$(CMAKE) --build ./hyprlang/build --config Release --target hyprlang \
@ -68,13 +68,22 @@ libxcb-errors:
git clone https://gitlab.freedesktop.org/xorg/lib/libxcb-errors.git
__Libxcb-errors = /usr/lib/pkgconfig/xcb-errors.pc
$(__Libxcb-errors): libxcb-errors
@echo "Building and install library libxcb-errors..."
@echo "Building and installing library libxcb-errors..."
cd libxcb-errors && { \
git submodule update --init ; \
/bin/sh autogen.sh ; \
/bin/sh configure --prefix=/usr ; \
make && sudo make install ; }
__Aquamarine = $(INCLUDE_SYS_PATH)/aquamarine
$(__Aquamarine): $(__Hyprwayland-scanner)
$(CMAKE) -DCMAKE_INSTALL_PREFIX=/usr -S ./aquamarine \
-B aquamarine/build
$(CMAKE) --build ./aquamarine/build -j \
`nproc 2>/dev/null || getconf _NPROCESSORS_CONF`
@echo "Installing library aquamarine..."
sudo $(CMAKE) --install ./aquamarine/build
### Makefile targets for hyprwm apps ###
# Build Hyprland if it's not installed on the system

View File

@ -6,4 +6,4 @@ sudo eopkg it -y libcairo-devel file-devel libdrm-devel libglvnd-devel \
libjpeg-turbo-devel librsvg-devel libwebp-devel libzip-devel \
mesalib-devel pam-devel pango-devel waybar wayland-devel \
wayland-protocols-devel wlroots-devel libxkbcommon-devel pugixml-devel \
util-macros xcb-proto xcb-util-devel
util-macros xcb-proto xcb-util-devel libxcursor-devel