forked from Hjdskes/gcolor3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeson.build
More file actions
55 lines (44 loc) · 1.51 KB
/
Copy pathmeson.build
File metadata and controls
55 lines (44 loc) · 1.51 KB
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
project('gcolor3', 'c', version: '2.2',
license: 'GPL2+',
meson_version: '>= 0.40.0',
default_options: [
'c_std=c99',
'werror=true'
]
)
dep_gtk = dependency('gtk+-3.0', version: '>= 3.20.0', required: true)
cc = meson.get_compiler('c')
dep_lm = cc.find_library('m', required: true)
i18n= import('i18n')
gnome = import('gnome')
prefix = get_option('prefix')
bindir = join_paths(prefix, get_option('bindir'))
datadir = join_paths(prefix, get_option('datadir'))
localedir = join_paths(prefix, get_option('localedir'))
subdir('data')
subdir('src')
subdir('po')
defines = [
['PACKAGE', meson.project_name()],
['PACKAGE_NAME', meson.project_name()],
['PACKAGE_URL', 'https://hjdskes.github.io/projects/gcolor3'],
['PACKAGE_VERSION', meson.project_version()],
['GETTEXT_PACKAGE', meson.project_name()],
['LOCALE_DIR', localedir],
['COPYRIGHT', '2013 - 2018'],
]
config_h = configuration_data()
foreach define: defines
config_h.set_quoted(define[0], define[1])
endforeach
config_h.set('UNUSED', '__attribute__ ((unused))')
configure_file(output: 'config.h',
configuration: config_h)
meson.add_install_script('meson_install.sh', get_option('datadir'))
output = '\n ' + meson.project_name() + ' ' + meson.project_version() + '\n'
output += ' ==================\n\n'
output += ' prefix: ' + prefix + '\n'
output += ' bindir: ' + bindir + '\n'
output += ' datadir: ' + datadir + '\n'
output += ' localedir: ' + localedir + '\n'
message(output)