diff options
author | William McKinnon <[email protected]> | 2023-07-12 01:23:05 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2023-07-12 01:23:05 -0400 |
commit | 120ddde3b1c6343b99ecfb790f15ffbe23c8c2b5 (patch) | |
tree | eeb9685137d95e888a6b98785109b9f3d9129a59 /meson.build | |
parent | 9eaa07a4b141bc80a46cb7ab2dc94048f126fa8c (diff) | |
parent | 2388e30bd5ef01ab67d6be769743da3e830f59c4 (diff) |
Merge pull request #4 from Shinyzenith/main
Sucessfully compile libscenefx and tinywl
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 40 |
1 files changed, 38 insertions, 2 deletions
diff --git a/meson.build b/meson.build index d94b871..75c7a7b 100644 --- a/meson.build +++ b/meson.build @@ -106,6 +106,13 @@ wayland_server = dependency('wayland-server', default_options: wayland_project_options, ) +wlroots_options = [ 'examples=false' ] +wlroots = dependency('wlroots', + version: '0.16.2', + fallback: 'wayland', + default_options: wlroots_options, +) + drm = dependency('libdrm', version: '>=2.4.113', fallback: 'libdrm', @@ -135,6 +142,7 @@ rt = cc.find_library('rt') wlr_files = [] wlr_deps = [ + wlroots, wayland_server, drm, xkbcommon, @@ -145,6 +153,7 @@ wlr_deps = [ ] subdir('protocol') +subdir('render') subdir('types') subdir('util') @@ -158,17 +167,44 @@ foreach name, have : internal_features ) endforeach -symbols_file = 'wlroots.syms' -symbols_flag = '-Wl,--version-script,@0@/@1@'.format(meson.current_source_dir(), symbols_file) +scenefx_inc = include_directories('include') +proto_inc = include_directories('protocol') + +lib_scenefx = library( + meson.project_name(), wlr_files, + soversion: soversion.to_string(), + dependencies: wlr_deps, + include_directories: [ scenefx_inc, proto_inc ], + install: true, +) + wlr_vars = {} foreach name, have : features wlr_vars += { 'have_' + name.underscorify(): have.to_string() } endforeach +scenefx = declare_dependency( + link_with: lib_scenefx, + dependencies: wlr_deps, + include_directories: scenefx_inc, + variables: wlr_vars, +) + +meson.override_dependency('scenefx', scenefx) + summary(features + internal_features, bool_yn: true) if get_option('examples') # TODO: subdir('examples') subdir('tinywl') endif + +pkgconfig = import('pkgconfig') +pkgconfig.generate(lib_scenefx, + version: meson.project_version(), + filebase: meson.project_name(), + name: meson.project_name(), + description: 'Wlroots effects library', + variables: wlr_vars, +) |