mirror of
https://github.com/wizbright/waybox.git
synced 2025-11-01 22:58:42 -04:00
Simplify meson.build
For one thing, I get no complaints from clang
This commit is contained in:
parent
9435ebbfad
commit
089f20980b
1 changed files with 5 additions and 13 deletions
18
meson.build
18
meson.build
|
|
@ -1,5 +1,3 @@
|
||||||
# SirCmpwn is a god. (from mcwayface and bspwc)
|
|
||||||
|
|
||||||
project(
|
project(
|
||||||
'waybox',
|
'waybox',
|
||||||
'c',
|
'c',
|
||||||
|
|
@ -13,20 +11,14 @@ project(
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
add_project_arguments('-Wno-unused-parameter', language: 'c')
|
add_project_arguments(
|
||||||
add_project_arguments('-DWLR_USE_UNSTABLE', language: 'c')
|
'-Wno-unused-parameter',
|
||||||
add_project_arguments('-DVERSION="' + meson.project_version() + '"', language: 'c')
|
'-DWLR_USE_UNSTABLE',
|
||||||
|
'-DVERSION="' + meson.project_version() + '"',
|
||||||
|
language: 'c')
|
||||||
|
|
||||||
cc = meson.get_compiler('c')
|
cc = meson.get_compiler('c')
|
||||||
|
|
||||||
if cc.get_id() == 'clang'
|
|
||||||
add_project_arguments('-Wno-missing-field-initializers', language: 'c')
|
|
||||||
add_project_arguments('-Wno-missing-braces', language: 'c')
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Hide deprecated API
|
|
||||||
add_project_arguments('-DWL_HIDE_DEPRECATED', language: 'c')
|
|
||||||
|
|
||||||
# Adding include directory
|
# Adding include directory
|
||||||
inc_dir = include_directories('include')
|
inc_dir = include_directories('include')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue