-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmeson.build
44 lines (37 loc) · 1.03 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
# define our project
project(
'vterm',
['c', 'cpp'],
version: '0.1',
default_options: [
'buildtype=release',
'c_std=gnu11',
'cpp_std=gnu++17',
'warning_level=0',
'b_ndebug=false',
],
meson_version: '>= 0.50.0',
)
# dependencies
gtkdep = dependency('gtk+-3.0')
# our custom vte
libvte_proj = subproject('vte-vterm', default_options: ['vapi=false', 'gir=false', 'docs=false', 'debugg=false', '_systemd=false'])
libvte_dep = libvte_proj.get_variable('libvte_gtk3_static_dep')
# sources in our project
src = ['src/v_term.cc', 'src/v_tab.cc', 'src/v_mode.cc']
args = []
if get_option('buildtype').contains('debug')
args = ['-DVTERM_DEBUG=1']
endif
# do we need to set install_rpath?
optional_rpath = ''
if get_option('set_install_rpath') == true
optional_rpath = libvte_proj.get_variable('fribidi_dep').get_pkgconfig_variable('libdir')
endif
# finally our exec
executable('vterm',
sources:src,
dependencies : [gtkdep, libvte_dep],
install_rpath : optional_rpath,
cpp_args: args,
install: true)