[atkmm/atkmm-2-28] Meson build: Use relative paths to untracked/



commit ea97f616f4a8b7971d91170269ca16a3892cc0eb
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date:   Thu Feb 25 09:39:47 2021 +0100

    Meson build: Use relative paths to untracked/
    
    The paths to the source code in untracked/ shall be relative to the
    meson.build file, when library files are built from a tarball.
    With absolute paths Meson may generate too long file names.
    See merge request gtkmm!61

 atk/atkmm/meson.build | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/atk/atkmm/meson.build b/atk/atkmm/meson.build
index 4d4acfe..0f35091 100644
--- a/atk/atkmm/meson.build
+++ b/atk/atkmm/meson.build
@@ -58,6 +58,7 @@ install_headers('..' / 'atkmm.h', subdir: atkmm_pcname)
 install_headers(extra_h_files, subdir: atkmm_pcname / 'atkmm')
 
 untracked_atkmm = 'untracked' / 'atk' / 'atkmm'
+rel_untracked_atkmm = '..' / '..' / untracked_atkmm
 src_untracked_atkmm = project_source_root / untracked_atkmm
 
 atkmm_cpp_args = [ '-DATKMM_BUILD=1' ]
@@ -170,9 +171,9 @@ else # not maintainer_mode
     hg_ccg_basenames,
   )
 
-  built_cc_files = [ src_untracked_atkmm / 'wrap_init.cc' ]
+  built_cc_files = [ rel_untracked_atkmm / 'wrap_init.cc' ]
   foreach file : hg_ccg_basenames
-    built_cc_files += src_untracked_atkmm / file + '.cc'
+    built_cc_files += rel_untracked_atkmm / file + '.cc'
   endforeach
 
   atk_gen_sources = built_cc_files


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