mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-23 02:19:49 +01:00
Merge pull request #159 from ascent12/meson-install
Install files with meson
This commit is contained in:
commit
2330a68643
2 changed files with 59 additions and 0 deletions
48
dist/archlinux/PKGBUILD
vendored
Normal file
48
dist/archlinux/PKGBUILD
vendored
Normal file
|
@ -0,0 +1,48 @@
|
|||
pkgname=wlroots
|
||||
pkgver=r600.d89272d
|
||||
pkgrel=1
|
||||
license=('MIT')
|
||||
pkgdesc='Wayland compositor library'
|
||||
makedepends=("meson")
|
||||
depends=(
|
||||
"wayland"
|
||||
"wayland-protocols"
|
||||
"mesa"
|
||||
"libdrm"
|
||||
"libinput"
|
||||
"libxkbcommon"
|
||||
"libsystemd"
|
||||
"pixman"
|
||||
"libxcb"
|
||||
)
|
||||
arch=("x86_64")
|
||||
url="https://github.com/SirCmpwn/wlroots"
|
||||
source=("${pkgname}::git+https://github.com/SirCmpwn/wlroots.git")
|
||||
sha1sums=('SKIP')
|
||||
provides=('wlroots')
|
||||
conflicts=('wlroots')
|
||||
|
||||
pkgver() {
|
||||
cd "${srcdir}/${pkgname}"
|
||||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${pkgname}"
|
||||
|
||||
meson build \
|
||||
--prefix=/usr \
|
||||
-Dbuildtype=debugoptimized \
|
||||
-Db_lto=True \
|
||||
-Denable-systemd=True \
|
||||
-Denable-elogind=False \
|
||||
-Denable-libcap=False
|
||||
|
||||
ninja -C build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${pkgname}"
|
||||
|
||||
DESTDIR="${pkgdir}" ninja -C build install
|
||||
}
|
11
meson.build
11
meson.build
|
@ -20,6 +20,7 @@ add_project_link_arguments(
|
|||
)
|
||||
|
||||
wlr_inc = include_directories('include')
|
||||
install_subdir('include/wlr', install_dir: 'include')
|
||||
|
||||
cc = meson.get_compiler('c')
|
||||
|
||||
|
@ -103,6 +104,7 @@ lib_wlr = library(
|
|||
],
|
||||
dependencies: wlr_deps,
|
||||
include_directories: wlr_inc,
|
||||
install: true,
|
||||
)
|
||||
|
||||
wlroots = declare_dependency(
|
||||
|
@ -112,3 +114,12 @@ wlroots = declare_dependency(
|
|||
)
|
||||
|
||||
subdir('examples')
|
||||
|
||||
pkgconfig = import('pkgconfig')
|
||||
pkgconfig.generate(
|
||||
libraries: lib_wlr,
|
||||
version: '0.0.1',
|
||||
filebase: 'wlroots',
|
||||
name: 'wlroots',
|
||||
description: 'Wayland compositor library',
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue