r19930 - gnucash/trunk/src/core-utils - Cutecash: Add generation of dummy gnc-version.h file.
Christian Stimming
cstim at code.gnucash.org
Sun Dec 12 07:04:00 EST 2010
Author: cstim
Date: 2010-12-12 07:04:00 -0500 (Sun, 12 Dec 2010)
New Revision: 19930
Trac: http://svn.gnucash.org/trac/changeset/19930
Modified:
gnucash/trunk/src/core-utils/CMakeLists.txt
Log:
Cutecash: Add generation of dummy gnc-version.h file.
Modified: gnucash/trunk/src/core-utils/CMakeLists.txt
===================================================================
--- gnucash/trunk/src/core-utils/CMakeLists.txt 2010-12-12 11:58:42 UTC (rev 19929)
+++ gnucash/trunk/src/core-utils/CMakeLists.txt 2010-12-12 12:04:00 UTC (rev 19930)
@@ -11,7 +11,7 @@
INCLUDE_DIRECTORIES (${CMAKE_CURRENT_SOURCE_DIR}/..) # for gnc-ui.h
INCLUDE_DIRECTORIES (${CMAKE_CURRENT_SOURCE_DIR}/../libqof/qof) # for gnc-ui.h
INCLUDE_DIRECTORIES (${CMAKE_CURRENT_SOURCE_DIR}) # when building swig-core-utils.c
-INCLUDE_DIRECTORIES (${CMAKE_CURRENT_BINARY_DIR}) # for gncla-dir.h
+INCLUDE_DIRECTORIES (${CMAKE_CURRENT_BINARY_DIR}) # for gncla-dir.h, gnc-version.h
# Command to generate the swig-engine.c wrapper file
SET (SWIG_CORE_UTILS_C ${CMAKE_CURRENT_BINARY_DIR}/swig-core-utils.c)
@@ -44,6 +44,18 @@
#define LOCALE_DATADIRNAME \"share\"
")
+# Workaround to create a simple
+FILE (WRITE ${CMAKE_CURRENT_BINARY_DIR}/gnc-version.h "
+/* Autogenerated. Do not change. */
+#ifndef GNC_VERSION_H
+#define GNC_VERSION_H
+
+#define GNUCASH_SVN 1
+#define GNUCASH_BUILD_DATE \"2010-XX-XX\"
+#define GNUCASH_SVN_REV \"xxxxxxx\"
+#endif
+")
+
SET (libgnc_core_utils_HEADERS
binreloc.h
gnc-filepath-utils.h
More information about the gnucash-changes
mailing list