optimize project build file

This commit is contained in:
DreamMaoMao 2025-02-04 13:36:44 +08:00
parent e92db2c74e
commit 429bf18ffe
3 changed files with 8 additions and 1 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
/.cache
/.vscode
config.h

View file

@ -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'))