gnucash maint: Cutecash: Switch from guile to xml to manage our iso-currencies source file

Christian Stimming cstim at code.gnucash.org
Wed Apr 22 16:40:18 EDT 2015


Updated	 via  https://github.com/Gnucash/gnucash/commit/e9b6ee74 (commit)
	from  https://github.com/Gnucash/gnucash/commit/274113b3 (commit)



commit e9b6ee74ad4d1461777e8671d5c61161db907ad3
Author: Christian Stimming <christian at cstimming.de>
Date:   Wed Apr 22 22:33:58 2015 +0200

    Cutecash: Switch from guile to xml to manage our iso-currencies source file
    
    Copies 87520cdde4b into the cmake build system.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6fd44c4..a2a3725 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -94,6 +94,11 @@ ENDIF (NOT GUILE_EXECUTABLE)
 
 # ############################################################
 
+# xsltproc
+FIND_PROGRAM (XSLTPROC xsltproc)
+
+# ############################################################
+
 # libdbi
 FIND_PATH (LIBDBI_INCLUDE_PATH dbi/dbi.h)
 FIND_LIBRARY (LIBDBI_LIBRARY dbi)
diff --git a/src/engine/CMakeLists.txt b/src/engine/CMakeLists.txt
index 974b02d..26c7723 100644
--- a/src/engine/CMakeLists.txt
+++ b/src/engine/CMakeLists.txt
@@ -76,9 +76,9 @@ GNC_ADD_SWIG_COMMAND (${SWIG_ENGINE_C} ${CMAKE_CURRENT_SOURCE_DIR}/engine.i ${li
 SET (ISO_4217_C ${CMAKE_CURRENT_BINARY_DIR}/iso-4217-currencies.c)
 ADD_CUSTOM_COMMAND (
   OUTPUT ${ISO_4217_C}
-  DEPENDS iso-4217-currencies.scm iso-currencies-to-c.in
+  DEPENDS iso-4217-currencies.xml iso-currencies-to-c.xsl
   COMMAND
-    ${GUILE_EXECUTABLE} -s "${CMAKE_CURRENT_SOURCE_DIR}/iso-currencies-to-c.in" "${CMAKE_CURRENT_SOURCE_DIR}"
+    ${XSLTPROC} -o ${ISO_4217_C} "${CMAKE_CURRENT_SOURCE_DIR}/iso-currencies-to-c.xsl" "${CMAKE_CURRENT_SOURCE_DIR}/iso-4217-currencies.xml"
 )
 # Add dependency on iso-4217-currencies.c
 SET_SOURCE_FILES_PROPERTIES (gnc-commodity.c PROPERTIES OBJECT_DEPENDS ${ISO_4217_C})



Summary of changes:
 CMakeLists.txt            | 5 +++++
 src/engine/CMakeLists.txt | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)



More information about the gnucash-changes mailing list