[evolution-etesync] GLibTools.cmake: Use basename in glib-mkenums templates



commit db6a73c98cbd2d978783abe0d42ce9e54b718a90
Author: Milan Crha <mcrha redhat com>
Date:   Tue Dec 8 08:51:04 2020 +0100

    GLibTools.cmake: Use basename in glib-mkenums templates
    
    This change helps to create reproducible builds. Even the glib-mkenums
    is not called in the sources, it'll be better to sync the GLibTools.cmake
    content with the evolution-data-server, in case anybody uses this project
    as a template for another module and will use the glib-mkenums.
    
    Related to https://gitlab.gnome.org/GNOME/evolution-data-server/-/issues/281

 cmake/modules/GLibTools.cmake | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/cmake/modules/GLibTools.cmake b/cmake/modules/GLibTools.cmake
index d40953c..d262fd8 100644
--- a/cmake/modules/GLibTools.cmake
+++ b/cmake/modules/GLibTools.cmake
@@ -65,7 +65,7 @@ function(glib_mkenums _output_filename_noext _enums_header _define_name)
 
 G_BEGIN_DECLS
 
-/* Enumerations from \"@filename@\" */
+/* Enumerations from \"@basename@\" */
 
 /*** END file-production ***/
 
@@ -95,8 +95,8 @@ set(SOURCE_TMPL "
 /*** END file-header ***/
 
 /*** BEGIN file-production ***/
-/* enumerations from \"@filename@\" */
-#include \"@filename@\"
+/* enumerations from \"@basename@\" */
+#include \"@basename@\"
 
 /*** END file-production ***/
 


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