-
Notifications
You must be signed in to change notification settings - Fork 8
/
meson.build
55 lines (48 loc) · 1.14 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
project(
'will-crash',
['c', 'cpp', 'java'],
license : 'GPL3+',
meson_version : '>= 0.50.0',
version : '0.13.5'
)
cc = meson.get_compiler('c')
ruby = dependency('ruby')
threads = dependency('threads')
javac = find_program('javac')
bindir = get_option('bindir')
datadir = get_option('datadir')
jardir = 'willcrash'
javadir = get_option('javadir')
kmoddir = join_paths(datadir, meson.project_name())
libdir = get_option('libdir')
prefix = get_option('prefix')
privlibdir = join_paths(libdir, meson.project_name())
vendordir = ruby.get_pkgconfig_variable('vendordir')
tito = find_program('tito',
required: false,
disabler: true,
)
subdir('src')
# This will, naturally, fail if the build directory is outside the git repo,
# since Tito does not provide a way to specify the working directory or the spec
# file using the CLI.
run_target('rpm',
command: [
tito,
'build',
'--offline',
'--output=@0@/rpm'.format(meson.current_build_dir()),
'--rpm',
'--test'
],
)
run_target('srpm',
command: [
tito,
'build',
'--offline',
'--output=@0@/rpm'.format(meson.current_build_dir()),
'--srpm',
'--test'
],
)