1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-25 13:55:34 -05:00

meson: Reorder project arguments

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:
Quentin Glidic 2017-05-04 22:02:57 +02:00
parent 7fd8ce4c0a
commit 27cc1a821a
No known key found for this signature in database
GPG key ID: AC203F96E2C34BB7

View file

@ -10,6 +10,31 @@ project('rofi', 'c',
c_compiler = meson.get_compiler('c')
add_project_arguments(
'-fvisibility=hidden',
'-I@0@'.format(meson.build_root()),
'-I@0@'.format(join_paths(meson.source_root(), 'include')),
language: 'c'
)
flags = [
'-Wparentheses',
'-Winline',
'-Wunreachable-code',
'-Werror=missing-prototypes',
]
if get_option('enable-asan')
flags += [
'-fsanitize=address',
'-fno-omit-frame-pointer',
]
endif
foreach f : flags
if c_compiler.has_argument(f)
add_project_arguments(f, language: 'c')
endif
endforeach
plugindir = join_paths(get_option('prefix'), get_option('libdir'), meson.project_name())
themedir = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name(), 'themes')
@ -76,31 +101,6 @@ header_conf.set_quoted('THEME_DIR', themedir)
config_h = configure_file(output: 'config.h', configuration: header_conf)
add_project_arguments(
'-fvisibility=hidden',
'-I@0@'.format(meson.build_root()),
'-I@0@'.format(join_paths(meson.source_root(), 'include')),
language: 'c'
)
flags = [
'-Wparentheses',
'-Winline',
'-Wunreachable-code',
'-Werror=missing-prototypes',
]
if get_option('enable-asan')
flags += [
'-fsanitize=address',
'-fno-omit-frame-pointer',
]
endif
foreach f : flags
if c_compiler.has_argument(f)
add_project_arguments(f, language: 'c')
endif
endforeach
install_headers([
'include/mode.h',