mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-07-23 03:34:17 +00:00
meson.build: Add devenv for running from the build directory
Signed-off-by: Colin Kinloch <colin.kinloch@collabora.com>
This commit is contained in:
parent
cb5872f0a6
commit
c67b064e62
|
@ -171,6 +171,13 @@ subdir('tests')
|
|||
subdir('data')
|
||||
subdir('man')
|
||||
|
||||
if meson.version().version_compare('>= 0.58.0')
|
||||
devenv = environment()
|
||||
devenv.set('WESTON_MODULE_MAP', env_modmap)
|
||||
devenv.set('WESTON_DATA_DIR', join_paths(meson.current_source_dir(), 'data'))
|
||||
meson.add_devenv(devenv)
|
||||
endif
|
||||
|
||||
configure_file(output: 'config.h', configuration: config_h)
|
||||
|
||||
if get_option('doc')
|
||||
|
|
Loading…
Reference in a new issue