diff --git a/.gitignore b/.gitignore index 2f576a4..c8ac764 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /.cache -/.vscode \ No newline at end of file +/.vscode +config.h diff --git a/config.h b/config.def.h similarity index 100% rename from config.h rename to config.def.h diff --git a/meson.build b/meson.build index fece654..26bc07d 100644 --- a/meson.build +++ b/meson.build @@ -4,6 +4,12 @@ project('plume', ['c', 'cpp'], subdir('protocols') +fs = import('fs') + +if not fs.exists('config.h') + run_command('cp', 'config.def.h', 'config.h', check: true) +endif + cc = meson.get_compiler('c') libm = cc.find_library('m') xcb = dependency('xcb', required : get_option('xwayland'))