-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmeson.build
32 lines (26 loc) · 986 Bytes
/
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
project('detwinner', ['c', 'cpp'],
version: '0.4.2',
license: 'GPL3+',
meson_version: '>=0.45.0',
default_options : ['c_std=c11', 'cpp_std=c++20', 'warning_level=3', 'werror=true'])
add_project_arguments ('-DGTKMM_DISABLE_DEPRECATED', language:'cpp')
i18n = import('i18n')
project_name = meson.project_name()
project_version = meson.project_version()
prefix = get_option('prefix')
bindir = get_option('bindir')
datadir = get_option('datadir')
localedir = get_option('localedir')
detwinner_conf = configuration_data()
detwinner_conf.set_quoted('PACKAGE_VERSION', project_version)
detwinner_conf.set_quoted('LOCALEDIR', join_paths(prefix, localedir))
detwinner_conf.set_quoted('GETTEXT_PACKAGE', project_name)
configure_file(output: 'config.h', configuration: detwinner_conf)
configuration_inc = include_directories('.')
subdir('data')
subdir('po')
subdir('resources')
subdir('src/detwinner-lib')
subdir('src/detwinner')
subdir('test/detwinner-lib')
subdir('test/detwinner')