summaryrefslogtreecommitdiff
path: root/MSVC_NMake/meson.build
blob: 89db786caba7edc30ba68068a8f70f55b73d24b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# MSVC_NMake

# Input: pkg_conf_data, project_build_root, python3
# Output: -

configure_file(
  input: 'sigc.rc.in',
  output: '@BASENAME@',
  configuration: pkg_conf_data,
)

# Copy the generated configuration header into the MSVC project directory.
cmd_py = '''
import shutil
shutil.copy2("@0@", "@1@")
'''.format(project_build_root / 'sigc++config.h', meson.current_build_dir())
meson.add_postconf_script(python3.path(), '-c', cmd_py)