meson.build: cosmetic
Fix whitespace, avoid a warning with clang
This commit is contained in:
33
meson.build
33
meson.build
@ -18,23 +18,23 @@
|
|||||||
# project setup
|
# project setup
|
||||||
#
|
#
|
||||||
project('mu', ['c', 'cpp'],
|
project('mu', ['c', 'cpp'],
|
||||||
version: '1.9.0',
|
version: '1.9.0',
|
||||||
meson_version: '>= 0.52.0', # debian 10
|
meson_version: '>= 0.52.0', # debian 10
|
||||||
license: 'GPL-3.0-or-later',
|
license: 'GPL-3.0-or-later',
|
||||||
default_options : [
|
default_options : [
|
||||||
'buildtype=debugoptimized',
|
'buildtype=debugoptimized',
|
||||||
'warning_level=3',
|
'warning_level=3',
|
||||||
'c_std=c11',
|
'c_std=c11',
|
||||||
'cpp_std=c++17'
|
'cpp_std=c++17'
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
# installation paths
|
# installation paths
|
||||||
prefixdir = get_option('prefix')
|
prefixdir = get_option('prefix')
|
||||||
bindir = prefixdir / get_option('bindir')
|
bindir = prefixdir / get_option('bindir')
|
||||||
datadir = prefixdir / get_option('datadir')
|
datadir = prefixdir / get_option('datadir')
|
||||||
mandir = prefixdir / get_option('mandir')
|
mandir = prefixdir / get_option('mandir')
|
||||||
infodir = prefixdir / get_option('infodir')
|
infodir = prefixdir / get_option('infodir')
|
||||||
|
|
||||||
# allow for configuring lispdir, as with autotools.
|
# allow for configuring lispdir, as with autotools.
|
||||||
# default to <p
|
# default to <p
|
||||||
@ -54,6 +54,7 @@ extra_flags = [
|
|||||||
'-Wformat=2',
|
'-Wformat=2',
|
||||||
'-Wstack-protector',
|
'-Wstack-protector',
|
||||||
'-Wno-switch-enum',
|
'-Wno-switch-enum',
|
||||||
|
'-Wno-keyword-macro',
|
||||||
'-Wno-#warnings']
|
'-Wno-#warnings']
|
||||||
|
|
||||||
if get_option('buildtype') == 'debug'
|
if get_option('buildtype') == 'debug'
|
||||||
@ -77,6 +78,8 @@ foreach extra_arg : extra_flags
|
|||||||
endif
|
endif
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# config.h setup
|
# config.h setup
|
||||||
#
|
#
|
||||||
@ -173,8 +176,8 @@ version_texi_data.set('UPDATEDMONTH',
|
|||||||
run_command('date', '+%B %Y', check:true).stdout().strip())
|
run_command('date', '+%B %Y', check:true).stdout().strip())
|
||||||
|
|
||||||
configure_file(input: join_paths('build-aux', 'version.texi.in'),
|
configure_file(input: join_paths('build-aux', 'version.texi.in'),
|
||||||
output: 'version.texi',
|
output: 'version.texi',
|
||||||
configuration: version_texi_data)
|
configuration: version_texi_data)
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# install some data files
|
# install some data files
|
||||||
|
|||||||
Reference in New Issue
Block a user