forked from wvdakker/gtkterm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
35 lines (29 loc) · 935 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
34
35
project(
'gtkterm',
'c',
version: '1.0.1',
meson_version : '>= 0.46.0'
)
# Find dependencies
gtk_deps = dependency('gtk+-3.0', version : '>= 3.0.0')
vte_deps = dependency('vte-2.91', version : '>= 0.28.0')
gudev_deps = dependency('gudev-1.0', version: '>= 230')
# Find install paths
prefix = get_option('prefix')
datadir = join_paths(prefix, get_option('datadir'))
localedir = join_paths(prefix, get_option('localedir'))
# Configure GTKTerm
conf = configuration_data()
conf.set_quoted('VERSION', meson.project_version())
conf.set_quoted('PACKAGE', meson.project_name())
conf.set_quoted('LOCALEDIR', localedir)
cc = meson.get_compiler('c')
have_serial_h = cc.has_header('linux/serial.h')
if have_serial_h
conf.set('HAVE_LINUX_SERIAL_H', '1')
endif
configure_file(output : 'config.h', configuration : conf)
config = declare_dependency(include_directories : include_directories('.'))
subdir('data')
subdir('src')
subdir('po')