File: meson.build

package info (click to toggle)
libsigc%2B%2B-2.0 2.12.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,432 kB
  • sloc: cpp: 4,132; xml: 339; python: 196; makefile: 192; sh: 5
file content (40 lines) | stat: -rw-r--r-- 1,001 bytes parent folder | download | duplicates (3)
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
# sigc++/adaptors

# Input: maintainer_mode, python3, handle_built_files, m4_template, m4_include_dir
# Input and output: built_h_files, built_h_file_targets

# .m4 files to build .h files from.
adaptors_h_m4_files = [
  'adaptor_trait.h',
  'bind.h',
  'bind_return.h',
  'compose.h',
  'deduce_result_type.h',
  'exception_catch.h',
  'hide.h',
  'retype.h',
  'retype_return.h',
  'track_obj.h',
]
foreach file : adaptors_h_m4_files
  built_h_files += 'adaptors' / file
endforeach

if maintainer_mode
  # Maintainer mode. Generate .h files from .m4 files in macros/ directory.
  foreach file : adaptors_h_m4_files
    built_h_file_targets += custom_target('adaptors_' + file,
      input: 'macros' / file + '.m4',
      output: file,
      command: [
        python3, handle_built_files, 'build_from_m4',
        m4_include_dir,
        '@INPUT@',
        '@OUTPUT@',
      ],
      depend_files: m4_template,
      build_by_default: maintainer_mode,
      install: false,
    )
  endforeach
endif