-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
66 lines (50 loc) · 1.28 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
project(
'lib<<LIB-NAME>>',
'vala',
version: '0.1.0',
meson_version: '>= 1.0.0',
license: 'GPL-3.0-or-later',
)
api_version = '0.1'
name = '<<LIB-NAME>>'
gir_name = '<<GIR-NAME>>'
versioned_name = name '-' api_version
versioned_lib_name = meson.project_name() '-' api_version
versioned_gir_name = gir_name '-' api_version
deps_name = versioned_lib_name '.deps'
header_name = versioned_lib_name '.h'
vapi_name = versioned_lib_name '.vapi'
gir_name = versioned_gir_name '.gir'
typelib_name = versioned_gir_name '.typelib'
lib_url = ''
glib_min_version = '2.76'
pkgconfig = import('pkgconfig')
gnome = import('gnome')
deps_pkgs = [
'glib-2.0',
]
glib_dep = dependency('glib-2.0')
dependencies = [
glib_dep,
]
# Need for subprojects libraries
pkgconfig_requires = dependencies
add_project_arguments(
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()),
'-DDATADIR="@0@"'.format(get_option('prefix') get_option('datadir')),
# GCC14 COMPILE ERROR
'-Wno-int-conversion',
language: ['c'],
)
add_project_arguments(
'--abi-stability',
'--hide-internal',
'--target-glib', glib_min_version,
'--vapidir', meson.current_source_dir(),
language: ['vala'],
)
subdir('lib')
if get_option('documentation')
subdir('doc')
endif
gnome.post_install()