mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
meson: Reorder project arguments
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:
parent
7fd8ce4c0a
commit
27cc1a821a
1 changed files with 25 additions and 25 deletions
50
meson.build
50
meson.build
|
@ -10,6 +10,31 @@ project('rofi', 'c',
|
||||||
|
|
||||||
c_compiler = meson.get_compiler('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())
|
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')
|
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)
|
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([
|
install_headers([
|
||||||
'include/mode.h',
|
'include/mode.h',
|
||||||
|
|
Loading…
Reference in a new issue