r14851 - gnucash/trunk/packaging/win32 - Further prepare cross-compiling mingw32/gnucash

Christian Stimming cstim at cvs.gnucash.org
Fri Sep 15 17:11:57 EDT 2006


Author: cstim
Date: 2006-09-15 17:11:56 -0400 (Fri, 15 Sep 2006)
New Revision: 14851
Trac: http://svn.gnucash.org/trac/changeset/14851

Modified:
   gnucash/trunk/packaging/win32/custom.sh
   gnucash/trunk/packaging/win32/install.sh
Log:
Further prepare cross-compiling mingw32/gnucash

Modified: gnucash/trunk/packaging/win32/custom.sh
===================================================================
--- gnucash/trunk/packaging/win32/custom.sh	2006-09-15 19:29:25 UTC (rev 14850)
+++ gnucash/trunk/packaging/win32/custom.sh	2006-09-15 21:11:56 UTC (rev 14851)
@@ -12,9 +12,12 @@
 
 ####
 HOST_XCOMPILE=""
+cross_compile="no"
 # For cross-compiling, uncomment the following lines:
 #HOST_XCOMPILE="--host=mingw32"
 #PKG_CONFIG_PATH="" # to avoid using the host's installed packages
+#PATH=/opt/mingw32:$PATH
+#cross_compile=yes
 ####
 
 MSYS_DIR=$GLOBAL_DIR\\msys
@@ -149,9 +152,13 @@
 add_step inst_regex
 add_step inst_readline
 add_step inst_indent
-add_step inst_active_perl
+if test x$cross_compile != xyes ; then
+ add_step inst_active_perl
+fi
 add_step inst_guile
-add_step inst_openssl
+if test x$cross_compile != xyes ; then
+ add_step inst_openssl
+fi
 add_step inst_pexports
 add_step inst_libxml2
 add_step inst_expat

Modified: gnucash/trunk/packaging/win32/install.sh
===================================================================
--- gnucash/trunk/packaging/win32/install.sh	2006-09-15 19:29:25 UTC (rev 14850)
+++ gnucash/trunk/packaging/win32/install.sh	2006-09-15 21:11:56 UTC (rev 14851)
@@ -354,9 +354,14 @@
     else
         wget_unpacked $PEXPORTS_URL $DOWNLOAD_DIR $PEXPORTS_DIR
         qpushd $PEXPORTS_DIR
-            mv pexports-* mydir
-            mv mydir/* .
-            rmdir mydir
+	    mv pexports-* mydir
+	    mv mydir/* .
+	    rmdir mydir
+	    if test x$cross_compile = xyes ; then
+		cd src
+		make
+		cp pexports.exe ../bin/pexports
+	    fi
         qpopd
     fi
     quiet which pexports || die "pexports unavailable"



More information about the gnucash-changes mailing list