aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar emersion <contact@emersion.fr>2018-09-02 21:42:46 +0200
committerLibravatar GitHub <noreply@github.com>2018-09-02 21:42:46 +0200
commit3af9588eb4aab0b4f45edf2601c9a7ff0846861f (patch)
tree6f320a55332ced11092220903bd2590e513f8c29
parentMerge pull request #2560 from RyanDwyer/focus-on-window-activation (diff)
parentAdd ld-library-path meson option (diff)
downloadsway-3af9588eb4aab0b4f45edf2601c9a7ff0846861f.tar.gz
sway-3af9588eb4aab0b4f45edf2601c9a7ff0846861f.tar.zst
sway-3af9588eb4aab0b4f45edf2601c9a7ff0846861f.zip
Merge pull request #2562 from RyanDwyer/ld-library-path
Add meson option for LD_LIBRARY_PATH
-rw-r--r--meson.build12
-rw-r--r--meson_options.txt11
2 files changed, 13 insertions, 10 deletions
diff --git a/meson.build b/meson.build
index d5b33e6b..eb5cba84 100644
--- a/meson.build
+++ b/meson.build
@@ -106,7 +106,7 @@ endif
106 106
107add_project_arguments('-DSYSCONFDIR="/@0@"'.format(sysconfdir), language : 'c') 107add_project_arguments('-DSYSCONFDIR="/@0@"'.format(sysconfdir), language : 'c')
108 108
109version = get_option('sway_version') 109version = get_option('sway-version')
110if version != '' 110if version != ''
111 version = '"@0@"'.format(version) 111 version = '"@0@"'.format(version)
112else 112else
@@ -120,6 +120,8 @@ else
120endif 120endif
121add_project_arguments('-DSWAY_VERSION=@0@'.format(version), language: 'c') 121add_project_arguments('-DSWAY_VERSION=@0@'.format(version), language: 'c')
122 122
123add_project_arguments('-D_LD_LIBRARY_PATH="@0@"'.format(get_option('ld-library-path')), language: 'c')
124
123sway_inc = include_directories('include') 125sway_inc = include_directories('include')
124 126
125subdir('include') 127subdir('include')
@@ -168,7 +170,7 @@ install_data(
168 install_dir: datadir + '/wayland-sessions' 170 install_dir: datadir + '/wayland-sessions'
169) 171)
170 172
171if (get_option('default_wallpaper')) 173if (get_option('default-wallpaper'))
172 wallpaper_files = files( 174 wallpaper_files = files(
173 'assets/Sway_Wallpaper_Blue_768x1024.png', 175 'assets/Sway_Wallpaper_Blue_768x1024.png',
174 'assets/Sway_Wallpaper_Blue_768x1024_Portrait.png', 176 'assets/Sway_Wallpaper_Blue_768x1024_Portrait.png',
@@ -184,7 +186,7 @@ if (get_option('default_wallpaper'))
184 install_data(wallpaper_files, install_dir: wallpaper_install_dir) 186 install_data(wallpaper_files, install_dir: wallpaper_install_dir)
185endif 187endif
186 188
187if (get_option('zsh_completions')) 189if (get_option('zsh-completions'))
188 zsh_files = files( 190 zsh_files = files(
189 'completions/zsh/_sway', 191 'completions/zsh/_sway',
190 'completions/zsh/_swaylock', 192 'completions/zsh/_swaylock',
@@ -195,7 +197,7 @@ if (get_option('zsh_completions'))
195 install_data(zsh_files, install_dir: zsh_install_dir) 197 install_data(zsh_files, install_dir: zsh_install_dir)
196endif 198endif
197 199
198if (get_option('bash_completions')) 200if (get_option('bash-completions'))
199 bash_files = files( 201 bash_files = files(
200 'completions/bash/sway', 202 'completions/bash/sway',
201 'completions/bash/swayidle', 203 'completions/bash/swayidle',
@@ -207,7 +209,7 @@ if (get_option('bash_completions'))
207 install_data(bash_files, install_dir: bash_install_dir) 209 install_data(bash_files, install_dir: bash_install_dir)
208endif 210endif
209 211
210if (get_option('fish_completions')) 212if (get_option('fish-completions'))
211 fish_files = files( 213 fish_files = files(
212 'completions/fish/sway.fish', 214 'completions/fish/sway.fish',
213 'completions/fish/swaylock.fish', 215 'completions/fish/swaylock.fish',
diff --git a/meson_options.txt b/meson_options.txt
index 5e54607f..50d646fd 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -1,6 +1,7 @@
1option('sway_version', type : 'string', description: 'The version string reported in `sway --version`.') 1option('sway-version', type : 'string', description: 'The version string reported in `sway --version`.')
2option('default_wallpaper', type: 'boolean', value: true, description: 'Install the default wallpaper.') 2option('ld-library-path', type: 'string', value: '', description: 'The LD_LIBRARY_PATH environment variable.')
3option('zsh_completions', type: 'boolean', value: true, description: 'Install zsh shell completions.') 3option('default-wallpaper', type: 'boolean', value: true, description: 'Install the default wallpaper.')
4option('bash_completions', type: 'boolean', value: true, description: 'Install bash shell completions.') 4option('zsh-completions', type: 'boolean', value: true, description: 'Install zsh shell completions.')
5option('fish_completions', type: 'boolean', value: true, description: 'Install fish shell completions.') 5option('bash-completions', type: 'boolean', value: true, description: 'Install bash shell completions.')
6option('fish-completions', type: 'boolean', value: true, description: 'Install fish shell completions.')
6option('enable-xwayland', type: 'boolean', value: true, description: 'Enable support for X11 applications') 7option('enable-xwayland', type: 'boolean', value: true, description: 'Enable support for X11 applications')