forked from flatpak/libportal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
33 lines (26 loc) · 966 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
33
project('libportal','c',
version: '0.3',
meson_version: '>= 0.46.0')
cc = meson.get_compiler('c')
gnome = import('gnome')
pkgconfig = import('pkgconfig')
conf = configuration_data()
conf.set_quoted('G_LOG_DOMAIN', 'libportal')
conf.set_quoted('PACKAGE_NAME', 'libportal')
conf.set_quoted('PKGDATADIR', join_paths(get_option('prefix'), get_option('datadir'), 'libportal'))
conf.set_quoted('APPDATADIR', join_paths(get_option('prefix'), get_option('datadir'), 'org.gnome.PortalTest'))
visibility_arg = []
if cc.has_argument('-fvisibility=hidden')
conf.set('XDP_PUBLIC', '__attribute__((visibility("default"))) extern')
visibility_args = ['-fvisibility=hidden']
endif
configure_file(output : 'config.h', configuration : conf)
top_inc = include_directories('.')
libportal_inc = include_directories('libportal')
subdir('libportal')
if get_option('gtk_doc')
subdir('doc')
endif
if get_option('build-portal-test')
subdir('portal-test')
endif