]> git.tdb.fi Git - ext/sigc++-2.0.git/blob - MSVC_NMake/meson.build
Adjust the name of the library to match upstream
[ext/sigc++-2.0.git] / MSVC_NMake / meson.build
1 # MSVC_NMake
2
3 # Input: pkg_conf_data, sigcxxconfig_h, project_build_root, python3,
4 #        can_add_dist_script
5 # Output: sigc_rc
6
7 sigc_rc = configure_file(
8   input: 'sigc.rc.in',
9   output: '@BASENAME@',
10   configuration: pkg_conf_data,
11 )
12
13 # Copy the generated configuration header into the MSVC project directory.
14 configure_file(
15   input: sigcxxconfig_h,
16   output: 'sigc++config.h',
17   copy: true,
18 )
19
20 untracked_msvc_nmake = 'untracked' / 'MSVC_NMake'
21 handle_built_files = project_source_root / 'tools' / 'handle-built-files.py'
22
23 if can_add_dist_script
24   # Distribute built files.
25   meson.add_dist_script(
26     python3, handle_built_files, 'dist_gen_msvc_files',
27     meson.current_build_dir(),
28     untracked_msvc_nmake,
29     project_build_root / 'sigc++config.h',
30     meson.current_build_dir() / 'sigc.rc',
31   )
32 endif