[evolution-mapi] GLibTools.cmake: Generate signal marshallers without source reference
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-mapi] GLibTools.cmake: Generate signal marshallers without source reference
- Date: Wed, 9 Dec 2020 10:08:31 +0000 (UTC)
commit 5aeb81f8b9c7301db36a2cfb18234faaa9dd6015
Author: Milan Crha <mcrha redhat com>
Date: Wed Dec 9 11:01:58 2020 +0100
GLibTools.cmake: Generate signal marshallers without source reference
It helps with reproducible builds, by not including the source path
in the public header files.
Related to https://gitlab.gnome.org/GNOME/evolution/-/issues/1273
cmake/modules/GLibTools.cmake | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/cmake/modules/GLibTools.cmake b/cmake/modules/GLibTools.cmake
index d262fd8..300e6f4 100644
--- a/cmake/modules/GLibTools.cmake
+++ b/cmake/modules/GLibTools.cmake
@@ -146,7 +146,7 @@ endif(NOT GLIB_GENMARSHAL)
function(glib_genmarshal _output_filename_noext _prefix _marshallist_filename)
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_output_filename_noext}.h
- COMMAND ${GLIB_GENMARSHAL} --header --prefix=${_prefix}
"${CMAKE_CURRENT_SOURCE_DIR}/${_marshallist_filename}"
${CMAKE_CURRENT_BINARY_DIR}/${_output_filename_noext}.h.tmp
+ COMMAND ${GLIB_GENMARSHAL} --header --skip-source --prefix=${_prefix}
"${CMAKE_CURRENT_SOURCE_DIR}/${_marshallist_filename}"
${CMAKE_CURRENT_BINARY_DIR}/${_output_filename_noext}.h.tmp
COMMAND ${CMAKE_COMMAND} -E rename
${CMAKE_CURRENT_BINARY_DIR}/${_output_filename_noext}.h.tmp
${CMAKE_CURRENT_BINARY_DIR}/${_output_filename_noext}.h
DEPENDS ${_marshallist_filename}
)
@@ -154,7 +154,7 @@ function(glib_genmarshal _output_filename_noext _prefix _marshallist_filename)
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_output_filename_noext}.c
COMMAND ${CMAKE_COMMAND} -E echo " #include \\\"${_output_filename_noext}.h\\\""
${CMAKE_CURRENT_BINARY_DIR}/${_output_filename_noext}.c.tmp
- COMMAND ${GLIB_GENMARSHAL} --body --prefix=${_prefix}
"${CMAKE_CURRENT_SOURCE_DIR}/${_marshallist_filename}"
${CMAKE_CURRENT_BINARY_DIR}/${_output_filename_noext}.c.tmp
+ COMMAND ${GLIB_GENMARSHAL} --body --skip-source --prefix=${_prefix}
"${CMAKE_CURRENT_SOURCE_DIR}/${_marshallist_filename}"
${CMAKE_CURRENT_BINARY_DIR}/${_output_filename_noext}.c.tmp
COMMAND ${CMAKE_COMMAND} -E rename
${CMAKE_CURRENT_BINARY_DIR}/${_output_filename_noext}.c.tmp
${CMAKE_CURRENT_BINARY_DIR}/${_output_filename_noext}.c
DEPENDS ${_marshallist_filename}
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]