aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-04-03 11:02:13 -0400
committerGitHub <noreply@github.com>2018-04-03 11:02:13 -0400
commitc44bb8096e53ba2ce7d9e39c614a4d68f170b43c (patch)
tree9c9124ffa6d6b1ba853813ecdf265f2c65db1ffa
parent506acbdecd4436117729e4c40678645725ed2d1f (diff)
parentf83ad3f3ef30e202c1d74b5bbd362fafd46726f2 (diff)
Merge pull request #806 from DanySpin97/master
Install include directory into includedir
-rw-r--r--include/wlr/meson.build5
-rw-r--r--meson.build4
2 files changed, 6 insertions, 3 deletions
diff --git a/include/wlr/meson.build b/include/wlr/meson.build
index 6a0843f7..6259c311 100644
--- a/include/wlr/meson.build
+++ b/include/wlr/meson.build
@@ -9,5 +9,6 @@ version_data.set('WLR_VERSION_API_CURRENT', so_version[0])
version_data.set('WLR_VERSION_API_REVISION', so_version[1])
version_data.set('WLR_VERSION_API_AGE', so_version[2])
-configure_file(output: 'config.h', install_dir: 'include/wlr', configuration: conf_data)
-configure_file(output: 'version.h', install_dir: 'include/wlr', configuration: version_data)
+wlr_inc_dest = join_paths(get_option('includedir'), 'wlr')
+configure_file(output: 'config.h', install_dir: wlr_inc_dest, configuration: conf_data)
+configure_file(output: 'version.h', install_dir: wlr_inc_dest, configuration: version_data)
diff --git a/meson.build b/meson.build
index 0d8fbe58..19d334e3 100644
--- a/meson.build
+++ b/meson.build
@@ -125,8 +125,10 @@ if get_option('enable-xwayland')
else
exclude_headers += 'xwayland.h'
endif
+
+includedir = get_option('includedir')
exclude_headers += 'meson.build'
-install_subdir('include/wlr', install_dir: 'include', exclude_files: exclude_headers)
+install_subdir('include/wlr', install_dir: includedir, exclude_files: exclude_headers)
subdir('include')