gnumeric r16981 - trunk/tools/win32



Author: jody
Date: Thu Nov 27 00:43:23 2008
New Revision: 16981
URL: http://svn.gnome.org/viewvc/gnumeric?rev=16981&view=rev

Log:
add the release script too

Added:
   trunk/tools/win32/jhbuildrc-release

Added: trunk/tools/win32/jhbuildrc-release
==============================================================================
--- (empty file)
+++ trunk/tools/win32/jhbuildrc-release	Thu Nov 27 00:43:23 2008
@@ -0,0 +1,130 @@
+# -*- mode: python -*-
+# This code is licensed under the GPLv2 License
+# Derived work from the original freedesktop.org example.jhbuildrc
+#
+# This jhbuildrc file is created for the purpose of cross compile Gtk+
+# with Mingw32 under Linux.
+#
+# Author: Alberto Ruiz <aruiz gnome org>
+
+#moduleset = 'http://osl.ulpgc.es/~arc/gnome/gtk/gtk+-win32.moduleset'
+moduleset = '/gnome/src/gnumeric/tools/win32/moduleset'
+modules = ['gnumeric']
+
+# checkoutroot: path to download packages elsewhere
+# prefix:       target path to install the compiled binaries
+checkoutroot = os.path.expanduser('~/win32/release/src/')
+prefix	     = os.path.expanduser("~/win32/release/test")
+os.environ['prefix']	= prefix	# for use in zlib kludge
+
+#The host value is obtained with the result of executing
+#the config.guess script on any of the packages.
+#This value must be valid for most linux/x86 out there
+os.environ['HOST']	= 'i686-pc-linux-gnuaout'
+os.environ['TARGET']	= 'i586-pc-mingw32msvc'
+os.environ['PKG_CONFIG']= '/usr/bin/pkg-config'
+
+addpath('PKG_CONFIG_PATH', os.path.join(os.sep, 'usr', 'lib', 'pkgconfig'))
+addpath('PKG_CONFIG_PATH', os.path.join(os.sep, 'usr', 'share', 'pkgconfig'))
+
+#Prefix for all the tools
+mingw_tool_prefix = '/usr/bin/i586-mingw32msvc-'
+
+mingw_tools = {'ADDR2LINE': 'addr2line',
+	'AS': 'as', 'CC': 'gcc', 'CPP': 'cpp',
+	'CPPFILT': 'c++filt', 'CXX': 'g++',
+	'DLLTOOL': 'dlltool', 'DLLWRAP': 'dllwrap',
+	'GCOV': 'gcov', 'LD': 'ld', 'NM': 'nm',
+	'OBJCOPY': 'objcopy', 'OBJDUMP': 'objdump',
+	'READELF': 'readelf', 'SIZE': 'size',
+	'STRINGS': 'strings', 'WINDRES': 'windres',
+	'AR': 'ar', 'RANLIB': 'ranlib', 'STRIP': 'strip'}
+
+#Exporting all as enviroment variables with its prefix
+mingw_tools_args = str()
+for tool in mingw_tools.keys():
+	fullpath_tool = mingw_tool_prefix + mingw_tools[tool]
+	os.environ[tool] = fullpath_tool
+
+#Exporting tool flags enviroment variables
+os.environ['LDFLAGS']	 = ' -mno-cygwin -L'+prefix+'/lib  -no-undefined'
+os.environ['CFLAGS']	 = ' -O2 -I'+prefix+'/include -mno-cygwin -mms-bitfields -march=i686 ' 
+os.environ['CPPFLAGS']	 = ' -O2 -I'+prefix+'/include -mno-cygwin -mms-bitfields -march=i686'
+os.environ['CXXFLAGS']	 = ' -O2 -I'+prefix+'/include -mno-cygwin -mms-bitfields -march=i686 '
+os.environ['ARFLAGS']	 = 'rcs'
+os.environ['INSTALL']	 = os.path.expanduser('~/bin/install-check')
+os.environ['ACLOCAL_AMFLAGS'] = ' -I '+prefix+'/share/aclocal'	# for libgnomedb
+
+os.environ['WINEDEBUG']	 = '-all'
+os.environ['MAKE']	 = 'colormake'
+
+py_prefix = prefix+'/Python25'
+os.environ['PYTHON']	 = py_prefix+'/python.exe'
+os.environ['PY_PREFIX']  = py_prefix
+os.environ['PY_INCLUDE_DIR'] = py_prefix+'/include'
+os.environ['PY_LIB_DIR']     = py_prefix+'/libs'
+
+#Populating autogenargs
+autogenargs =  ' --build='+os.environ['HOST']
+autogenargs += ' --host='+os.environ['TARGET']
+autogenargs += ' --target='+os.environ['TARGET']
+autogenargs += ' --disable-docs'
+autogenargs += ' --disable-static'
+autogenargs += ' --enable-all-warnings'
+autogenargs += ' --enable-maintainer-mode'
+autogenargs += ' --enable-explicit-deps=no'
+autogenargs += ' --prefix='+prefix 
+
+for tool in ('AR', 'RANLIB', 'STRIP', 'AS',
+	     'DLLTOOL', 'OBJDUMP', 'NM', 'WINDRES'):
+	autogenargs += ' '+tool+'="'+os.environ[tool]+'" '
+
+#Module specific configure arguments
+module_autogenargs['zlib']    = autogenargs + ' --prefix='+prefix+' --shared'
+module_autogenargs['pcre']    = autogenargs + ' --enable-utf8' + ' --enable-shared'
+module_autogenargs['gettext'] = autogenargs + """ --without-emacs \
+						  --disable-libasprintf \
+                                                  --disable-java \
+                                                  --disable-native-java \
+                                                  --enable-relocatable"""
+#module_autogenargs['zlib']   = ' --prefix='+prefix + ' --shared'
+module_autogenargs['libbz2'] = ' --prefix='+prefix + ' --shared'
+
+#module_autogenargs['jpeg']   = ' --enable-shared' + ' --disable-static' + ' --prefix='+prefix 
+
+module_autogenargs['glib'] =    autogenargs + """ --enable-explicit-deps=no \
+                                                  --cache-file=win32.cache \
+                                                  --disable-gtk-doc"""
+module_autogenargs['pango']	= autogenargs + """ --disable-gtk-doc \
+                                                  --enable-explicit-deps=no \
+                                                  --with-included-modules"""
+module_autogenargs['pixman']	= autogenargs + """ --enable-explicit-deps=no \
+                                                  --enable-xlib=no \
+                                                  --enable-xlib-xrender=no \
+                                                  --enable-win32-font=yes"""
+module_autogenargs['cairo']	= autogenargs + """ --enable-explicit-deps=no \
+                                                  --enable-xlib=no \
+                                                  --enable-xlib-xrender=no \
+                                                  --enable-win32-font=yes \
+						  --enable-ft=no \
+						  --disable-static \
+						  --enable-shared"""
+
+module_autogenargs['libxml2']	= autogenargs + """ --disable-scrollkeeper --without-iconv"""
+
+autogenargs += """ --disable-scrollkeeper --disable-gtk-doc"""
+
+module_autogenargs['atk']	= autogenargs + """ --disable-glibtest"""
+module_autogenargs['gtk+']	= autogenargs + """ --disable-glibtest --without-libjasper"""
+
+module_autogenargs['libgda']	= autogenargs + """ --without-odbc --without-lda"""
+module_autogenargs['pxlib']	= autogenargs + """ --with-gsf=""" + prefix
+module_autogenargs['psiconv']	= autogenargs + """ --disable-xhtml-docs \
+						    --disable-html4-docs \
+						    --disable-ascii-docs \
+						    --without-imagemagick"""
+module_autogenargs['libglade']	= autogenargs
+module_autogenargs['pygobject']	= autogenargs
+module_autogenargs['libgsf']	= autogenargs + """ --without-gnome-vfs --without-bonobo"""
+module_autogenargs['goffice']	= autogenargs + """ --without-gconf"""
+module_autogenargs['gnumeric']	= autogenargs



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