optimize project build file
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1,3 @@
|
|||||||
/.cache
|
/.cache
|
||||||
/.vscode
|
/.vscode
|
||||||
|
config.h
|
||||||
|
|||||||
@@ -4,6 +4,12 @@ project('plume', ['c', 'cpp'],
|
|||||||
|
|
||||||
subdir('protocols')
|
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')
|
cc = meson.get_compiler('c')
|
||||||
libm = cc.find_library('m')
|
libm = cc.find_library('m')
|
||||||
xcb = dependency('xcb', required : get_option('xwayland'))
|
xcb = dependency('xcb', required : get_option('xwayland'))
|
||||||
|
|||||||
Reference in New Issue
Block a user