meson: forgot to include headers

This commit is contained in:
Ching Pei Yang 2024-10-09 17:17:38 +02:00
parent a738958884
commit e30a67d104
No known key found for this signature in database
GPG Key ID: 062FBBCE1D0C5DD9
4 changed files with 12 additions and 11 deletions

8
include/meson.build Normal file
View File

@ -0,0 +1,8 @@
configure_file(
input: 'version.hpp.in',
output: 'version.hpp',
configuration: {
'PLUGIN_VERSION': meson.project_version()
}
)

View File

@ -15,4 +15,7 @@ endif
hyprland_headers = dependency('hyprland') hyprland_headers = dependency('hyprland')
incdir = include_directories('include')
subdir('include')
subdir('src') subdir('src')

View File

@ -1,17 +1,7 @@
subdir('gestures')
configure_file(
input: 'version.hpp.in',
output: 'version.hpp',
configuration: {
'PLUGIN_VERSION': meson.project_version()
}
)
shared_module('example', shared_module('example',
'main.cpp', 'main.cpp',
cpp_args: ['-DWLR_USE_UNSTABLE'], cpp_args: ['-DWLR_USE_UNSTABLE'],
link_with: [gestures], include_directories: incdir,
# sometimes you need to add other hyprland dependencies yourself # sometimes you need to add other hyprland dependencies yourself
dependencies: [ dependencies: [
dependency('pixman-1'), dependency('pixman-1'),