aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-09-24 08:08:10 -0400
committerGitHub <noreply@github.com>2017-09-24 08:08:10 -0400
commit2330a6864373206a1359ec88bad2a8a714205e71 (patch)
treeabc84d9b90aa444cc384e10e81185a8074339208 /meson.build
parentd89272dbbd87ebe1b8cbadf3a9c28552cc530eea (diff)
parent91107f553a477c6eb49588bb04c2c71b7bf83e08 (diff)
Merge pull request #159 from ascent12/meson-install
Install files with meson
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build11
1 files changed, 11 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 4a3c670a..194e7111 100644
--- a/meson.build
+++ b/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',
+)