[pangomm/master.msvc.improvements] MSVC_NMake/pangomm/meson.build: Dist pre-configured items



commit 3df8eac8d464417f63fa269a4cc280ef468af182
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Fri Feb 21 16:49:13 2020 +0800

    MSVC_NMake/pangomm/meson.build: Dist pre-configured items
    
    ...in $(srcroot)/untracked/NMake_Makefiles/pangomm to lay the foundations
    for the NMake Makefiles to continue to work even in a Meson-generated
    source tarball out-of-the-box.
    
    This way, the NMake Makefiles will only need to be updated slightly to
    also look in locations in $(srcroot)/untracked to find the sources and
    other items they need to build pangomm.

 MSVC_NMake/pangomm/meson.build | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
---
diff --git a/MSVC_NMake/pangomm/meson.build b/MSVC_NMake/pangomm/meson.build
index 7ccc189..f123b75 100644
--- a/MSVC_NMake/pangomm/meson.build
+++ b/MSVC_NMake/pangomm/meson.build
@@ -15,3 +15,20 @@ meson.add_postconf_script(
   project_build_root,
   meson.current_build_dir(),
 )
+
+untracked_msvc_pangomm = 'untracked' / 'MSVC_NMake' / 'pangomm'
+src_msvc_untracked_pangomm = project_source_root / untracked_msvc_pangomm
+generated_panogmmconfig_h_orig = project_build_root / 'pango' / 'pangommconfig.h'
+generated_pangomm_rc = meson.current_build_dir() / 'pangomm.rc'
+
+if not meson.is_subproject()
+  # Distribute built files.
+  # (add_dist_script() is not allowed in a subproject)
+  meson.add_dist_script(
+    python3.path(), dist_cmd,
+    python3.path(), generate_binding, 'dist_msvc_built_files',
+    meson.current_build_dir(),
+    untracked_msvc_pangomm,
+    generated_pangomm_rc, generated_panogmmconfig_h_orig,
+  )
+endif


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]