Debian Codegraph @

rsvg_convert/meson.build

raw
1 rsvg_convert_files = files(
2 'Cargo.toml',
3 'src/main.rs',
4 'tests/internal_predicates/file.rs',
5 'tests/internal_predicates/mod.rs',
6 'tests/internal_predicates/pdf.rs',
7 'tests/internal_predicates/png.rs',
8 'tests/internal_predicates/svg.rs',
9 'tests/rsvg_convert.rs',
10 )
11
12 rsvg_convert_output = ['rsvg-convert@0@'.format(ext_exe)]
13
14 if get_option('debug') and is_msvc_style
15 rsvg_convert_output += ['rsvg-convert.pdb']
16 endif
17
18 rsvg_convert = custom_target(
19 'rsvg-convert',
20 build_by_default: true,
21 output: rsvg_convert_output,
22 console: true,
23 install: true,
24 install_dir: get_option('prefix') / get_option('bindir'),
25 depends: librsvg_rust_dep,
26 depend_files: rsvg_convert_files,
27 env: extra_env,
28 command: [
29 cargo_wrapper,
30 cargo_wrapper_args,
31 '--command=build',
32 '--current-build-dir', '@OUTDIR@',
33 '--current-source-dir', meson.current_source_dir(),
34 '--packages', 'rsvg_convert',
35 '--bin', 'rsvg-convert'
36 ] + avif_feature_args,
37 )
38
39 if build_tests
40 test(
41 'Rust tests (rsvg_convert)',
42 cargo_wrapper,
43 timeout: -1, # no timeout
44 args: [
45 cargo_wrapper_args,
46 '--current-build-dir', meson.current_build_dir(),
47 '--command=test',
48 '--current-source-dir', meson.current_source_dir(),
49 '--packages', 'rsvg_convert',
50 ] + avif_feature_args,
51 env: extra_env,
52 depends: rsvg_convert
53 )
54 endif