File: meson.build

package info (click to toggle)
libaperture-0 0.1.0%2Bgit20221220-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 424 kB
  • sloc: ansic: 2,318; xml: 63; sh: 32; makefile: 9
file content (50 lines) | stat: -rw-r--r-- 1,017 bytes parent folder | download | duplicates (2)
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
project('aperture', ['c'],
          version: '0.1.0',
    meson_version: '>= 0.50.0',
          license: 'LGPL3+',
)


aperture_api_version = '0'
aperture_library_name = 'aperture-@0@'.format(aperture_api_version)

version_arr = meson.project_version().split('.')
aperture_major = version_arr[0].to_int()
aperture_minor = version_arr[1].to_int()
aperture_micro = version_arr[2].to_int()


add_project_arguments([
  '-DAPERTURE_COMPILATION',
], language: 'c')

gnome = import('gnome')
i18n = import('i18n')
pkgconfig = import('pkgconfig')

cc = meson.get_compiler('c')
g_ir_compiler = find_program('g-ir-compiler')

gio_dep       = dependency('gio-2.0')
gtk_dep       = dependency('gtk+-3.0')
gst_dep       = dependency('gstreamer-1.0')
gst_video_dep = dependency('gstreamer-video-1.0')
gst_app_dep   = dependency('gstreamer-app-1.0')

libaperture_deps = [
  gio_dep,
  gtk_dep,
  gst_dep,
  gst_video_dep,
  gst_app_dep,
]

subdir('src')
subdir('doc')

if get_option('demo')
  subdir('demo')
endif

subdir('tests')