File: meson.build

package info (click to toggle)
gobject-introspection 1.74.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 68,092 kB
  • sloc: ansic: 524,161; xml: 32,098; python: 21,234; yacc: 1,707; perl: 1,411; sh: 1,044; lex: 499; cpp: 171; makefile: 77; lisp: 1
file content (31 lines) | stat: -rw-r--r-- 936 bytes parent folder | download
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
dbus_service_files = [
  'org.freedesktop.portal.Documents.service',
  'org.gtk.GDBus.FakeService.service'
]

srcdir_cdata = configuration_data()
srcdir_cdata.set('installed_tests_dir', meson.current_build_dir() / '..')

installed_cdata = configuration_data()
installed_cdata.set('installed_tests_dir', installed_tests_execdir)

foreach service_file : dbus_service_files
  configure_file(
    input: service_file + '.in',
    output: service_file,
    configuration: srcdir_cdata,
  )
  if installed_tests_enabled
    # Build a second copy of the service file for the installed
    # version of the tests.
    configure_file(
      input: service_file + '.in',
      output: service_file + '.to-install',
      configuration: installed_cdata,
    )
    install_data(meson.current_build_dir() / service_file + '.to-install',
      install_dir: installed_tests_execdir / 'services',
      rename: [service_file],
    )
  endif
endforeach