-
Notifications
You must be signed in to change notification settings - Fork 3
/
meson.build
44 lines (33 loc) · 1.54 KB
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# SPDX-License-Identifier: BSL-1.0
project('editor', ['c', 'cpp'], default_options : ['buildtype=debugoptimized'])
if meson.get_compiler('cpp').get_id() == 'gcc'
add_project_arguments('-fvisibility=hidden', '-fvisibility-inlines-hidden', language: 'cpp')
endif
add_project_arguments('-std=gnu17', language : 'c')
add_project_arguments('-Wall', '-Wextra', language: 'c')
add_project_arguments('-Werror=return-type', '-Werror=implicit-function-declaration', language: 'c')
add_project_arguments('-std=gnu++17', language : 'cpp')
add_project_arguments('-Wall', '-Wextra', language: 'cpp')
add_project_arguments('-Werror=return-type', language: 'cpp')
qt5 = import('qt5')
qt5_dep = dependency('qt5', modules: ['Core', 'Concurrent'])
tuiwidgets_dep = dependency('TuiWidgets', version: '>= 0.2.1')
posixsignalmanager_dep = dependency('PosixSignalManager')
if get_option('syntax_highlighting')
syntax_dep = declare_dependency(dependencies:dependency('KF5SyntaxHighlighting'), compile_args: ['-DSYNTAX_HIGHLIGHTING'])
syntax_qrc = qt5.compile_resources(sources: 'syntax.qrc')
else
syntax_dep = []
syntax_qrc = []
endif
catch2_dep = dependency('catch2', required : get_option('system-catch2'))
if not catch2_dep.found()
catch2_dep = declare_dependency(include_directories: include_directories('third-party'))
else
if catch2_dep.version().version_compare('>=3.0')
catch2_dep = [catch2_dep, declare_dependency(compile_args: ['-DCATCH3'])]
endif
endif
install_man('manpages/chr.1')
install_man('manpages/chr.de.1', locale: 'de')
subdir('src')