Simplify meson.build

For one thing, I get no complaints from clang
This commit is contained in:
Keith Bowes 2020-02-27 16:47:18 -05:00
parent 9435ebbfad
commit 089f20980b

View file

@ -1,5 +1,3 @@
# SirCmpwn is a god. (from mcwayface and bspwc)
project(
'waybox',
'c',
@ -13,20 +11,14 @@ project(
],
)
add_project_arguments('-Wno-unused-parameter', language: 'c')
add_project_arguments('-DWLR_USE_UNSTABLE', language: 'c')
add_project_arguments('-DVERSION="' + meson.project_version() + '"', language: 'c')
add_project_arguments(
'-Wno-unused-parameter',
'-DWLR_USE_UNSTABLE',
'-DVERSION="' + meson.project_version() + '"',
language: '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
inc_dir = include_directories('include')