File: meson.build

package info (click to toggle)
snapd-glib 1.67-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,388 kB
  • sloc: ansic: 30,115; cpp: 15,502; makefile: 62; sh: 31
file content (41 lines) | stat: -rw-r--r-- 1,128 bytes parent folder | download
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
project ('snapd-glib', [ 'c', 'cpp' ],
         version: '1.67',
         meson_version: '>= 0.58.0',
         default_options : [ 'c_std=c11' ])


glib_dep = dependency ('glib-2.0', version: '>= 2.46')
gio_dep = dependency ('gio-2.0', version: '>= 2.46')
gio_unix_dep = dependency ('gio-unix-2.0', version: '>= 2.46')

build_introspection = get_option ('introspection')
if get_option('docs')
  build_introspection = true
endif

if get_option('soup2')
  libsoup_dep = dependency ('libsoup-2.4', version: '>= 2.32')
else
  libsoup_dep = dependency ('libsoup-3.0', version: '>= 2.99.2')
endif
json_glib_dep = dependency ('json-glib-1.0', version: '>= 1.1.2')

datadir = join_paths (get_option ('prefix'), get_option ('datadir'))
includedir = join_paths (get_option ('prefix'), get_option ('includedir'))
libdir = join_paths (get_option ('prefix'), get_option ('libdir'))

subdir ('snapd-glib')
if get_option('qt5') or get_option('qt6')
    subdir ('snapd-qt')
endif
if get_option ('tests')
  subdir ('tests')
endif
if get_option ('examples')
  subdir ('examples')
endif
subdir ('po')

if get_option('docs')
  subdir ('doc')
endif