diff --git a/include/meson.build b/include/meson.build new file mode 100644 index 0000000..c282939 --- /dev/null +++ b/include/meson.build @@ -0,0 +1,8 @@ +configure_file( + input: 'version.hpp.in', + output: 'version.hpp', + configuration: { + 'PLUGIN_VERSION': meson.project_version() + } +) + diff --git a/src/version.hpp.in b/include/version.hpp.in similarity index 100% rename from src/version.hpp.in rename to include/version.hpp.in diff --git a/meson.build b/meson.build index 47734d4..407c1f5 100644 --- a/meson.build +++ b/meson.build @@ -15,4 +15,7 @@ endif hyprland_headers = dependency('hyprland') +incdir = include_directories('include') + +subdir('include') subdir('src') diff --git a/src/meson.build b/src/meson.build index 901dedc..e084c39 100644 --- a/src/meson.build +++ b/src/meson.build @@ -1,17 +1,7 @@ -subdir('gestures') - -configure_file( - input: 'version.hpp.in', - output: 'version.hpp', - configuration: { - 'PLUGIN_VERSION': meson.project_version() - } -) - shared_module('example', 'main.cpp', cpp_args: ['-DWLR_USE_UNSTABLE'], - link_with: [gestures], + include_directories: incdir, # sometimes you need to add other hyprland dependencies yourself dependencies: [ dependency('pixman-1'),