[chronojump] Improve win32 makefiles and update the win32 build HOWTO



commit d6f01b9282f8efadd6af79f2c423653dc5af3867
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Thu Sep 17 16:44:54 2009 +0200

    Improve win32 makefiles and update the win32 build HOWTO

 Makefile.win32                             |    7 ++++---
 build/windows_bundle/build/howto_build.txt |   21 ++++++++++-----------
 build/windows_bundle/build/makeBundle.sh   |    3 ++-
 3 files changed, 16 insertions(+), 15 deletions(-)
---
diff --git a/Makefile.win32 b/Makefile.win32
index 5751939..c89a944 100644
--- a/Makefile.win32
+++ b/Makefile.win32
@@ -1,11 +1,12 @@
 
 
 #Set-up environment variable 
-MONO_PATH=/c/Mono-2.4/bin
+MONO_INSTALL_PATH=/c/Mono-2.4
+MONO_BIN_PATH=$(MONO_INSTALL_PATH)/bin
 BASH = /bin/bash.exe
-BUNDLE = makeBundle.sh
+BUNDLE = makeBundle.sh $(MONO_INSTALL_PATH)
 RM = rm -f
-CSC = $(MONO_PATH)/gmcs
+CSC = $(MONO_BIN_PATH)/gmcs
 OUT_DIR=build/windows_bundle/bin
 BUILD_DIR=build/windows_bundle/build
 
diff --git a/build/windows_bundle/build/howto_build.txt b/build/windows_bundle/build/howto_build.txt
index c875c15..a138ccf 100755
--- a/build/windows_bundle/build/howto_build.txt
+++ b/build/windows_bundle/build/howto_build.txt
@@ -5,21 +5,20 @@ http://sourceforge.net/projects/mingw/files/
 http://sourceforge.net/projects/mingw/files/
 3: install mono in a dir without spaces
 
-go to build 
-edit mkbundle.sh change MONO_INSTALL_PATH to where it's installed mono 
-(HAS TO BE A PATH WITHOUT SPACES, like c:\mono)
+In 'Makefile.win32'change MONO_INSTALL_PATH to the Mono installation folder (eg: MONO_INSTALL_PATH=/c/Mono-2.4)
+MONO HAS TO BE INSTALLED IN A PATH WIHTOUT SPACES
 
-(there were problems with dos2unix: broken pipe. But now we don't use and there aren't problems
+on mingw/msys, go to bundle folder and run:
 
-After creating the release with make
-copy the windows_bundle as eg: chronojump-0.8.9.8 and put it on windows machine at C:\
+$cd /c/chronojump/windows_bundle
+$make -f Makefile.win32
 
-on mingw/msys, go to build:
-cd /c/chronojump-0.8.9.8/build/
+It compiles Chronojump and Chronojump_mini, creates the bundle and install it in the bin folder.
+If we have made changes to the sources we need to delete the genereated files in order to rebuild 
+Chronojump and Chronojump_mini:
 
-, execute:
-$sh makeBundle.sh
-this takes the last compiled prg and generates exe on bin directory
+$make -f Makefile.win32 clean
+$make -f Makefile.win32
 
 then with innosetup we can create the installer that is ok because installs the driver and puts the gtk_prefs on the "start" folder:
 open chronojump_innosetup.iss on build folder
diff --git a/build/windows_bundle/build/makeBundle.sh b/build/windows_bundle/build/makeBundle.sh
index df47c75..2a00b2c 100755
--- a/build/windows_bundle/build/makeBundle.sh
+++ b/build/windows_bundle/build/makeBundle.sh
@@ -1,4 +1,5 @@
-export MONO_INSTALL_PATH=/c/Mono-2.4/
+#The first argument of the script must be the Mono installation path
+export MONO_INSTALL_PATH=$1
 export PATH=$PATH:/c/Mono-2.4/bin
 export MONO_PATH=.
 export PKG_CONFIG_PATH=$MONO_INSTALL_PATH/lib/pkgconfig/



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