-
Notifications
You must be signed in to change notification settings - Fork 2
/
meson.build
84 lines (74 loc) · 2.37 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
project('retro-gtk','c',
version: '1.0.2',
meson_version: '>= 0.53.0',
)
cc = meson.get_compiler('c')
gnome = import('gnome')
prefix = get_option('prefix')
libdir = prefix / get_option('libdir')
libretrodir = libdir / 'libretro'
libexecdir = prefix / get_option('libexecdir')
datadir = prefix / get_option('datadir')
confinc = include_directories('.')
libretro_inc = include_directories('libretro')
shared_inc = include_directories('shared')
retro_gtk_version = meson.project_version()
retro_gtk_api_version = '2'
retro_gtk_module = 'retro-gtk-' + retro_gtk_api_version
glib_version = '>= 2.68'
gtk_version = '>= 4.0'
epoxy = dependency ('epoxy')
gio = dependency ('gio-2.0', version: glib_version)
gio_unix = dependency ('gio-unix-2.0', version: glib_version)
glib = dependency ('glib-2.0', version: glib_version)
gmodule = dependency ('gmodule-2.0', version: glib_version)
gobject = dependency ('gobject-2.0', version: glib_version)
gtk = dependency ('gtk4', version: gtk_version)
libpulse_simple = dependency ('libpulse-simple', required : get_option('pulseaudio'))
m = cc.find_library('m', required : false)
samplerate = dependency ('samplerate', required : get_option('pulseaudio'))
config_h = configuration_data()
config_h.set_quoted ('RETRO_PLUGIN_PATH', ':'.join ([libretrodir, libdir]))
config_h.set_quoted ('RETRO_RUNNER_PATH', libexecdir / 'retro-runner')
configure_file(
output: 'retro-gtk-config.h',
configuration: config_h,
)
subdir('shared')
subdir('retro-runner')
subdir('retro-gtk')
if get_option('build-tests')
subdir('tests')
endif
if get_option('build-doc')
subdir('doc')
endif
if get_option('demos')
subdir('demos')
endif
summary(
{
'Demos': get_option('demos'),
'Build tests': get_option('build-tests'),
'Install tests': get_option('install-tests'),
}, section: 'Demos and tests')
summary(
{
'Build documentation': get_option('build-doc'),
'Install documentation': get_option('install-doc'),
'Introspection': get_option('introspection'),
'Vala bindings': get_option('vapi'),
}, section: 'Documentation and introspection')
summary(
{
'PulseAudio': get_option('pulseaudio').enabled(),
}, section: 'Optional dependencies')
summary(
{
'prefix': prefix,
'bindir': prefix / get_option('bindir'),
'libdir': libdir,
'libexecdir': libexecdir,
'libretrodir': libretrodir,
'datadir': datadir,
}, section: 'Directories')