summaryrefslogtreecommitdiff
path: root/jhbuildrc.i686-pc-mingw32
diff options
context:
space:
mode:
Diffstat (limited to 'jhbuildrc.i686-pc-mingw32')
-rw-r--r--jhbuildrc.i686-pc-mingw3282
1 files changed, 82 insertions, 0 deletions
diff --git a/jhbuildrc.i686-pc-mingw32 b/jhbuildrc.i686-pc-mingw32
new file mode 100644
index 0000000..cf11468
--- /dev/null
+++ b/jhbuildrc.i686-pc-mingw32
@@ -0,0 +1,82 @@
+#
+# jhbuildrc for building for mingw
+#
+cross_target = "cross to MINGW i686"
+
+moduleset = '/jhbuild/xorg.modules'
+modules = [ 'xwin', 'xorg' ]
+
+# skip building stuff which isn't appropriate for target
+skip = [ 'appplewmproto', 'libAppleWM',
+ 'videoproto', 'xf86dgaproto', 'xf86driproto', 'xf86vidmodeproto', 'dri2proto',
+ 'libXv', 'libXvMC', 'libXxf86dga', 'libXxf86dga', 'libXxf86vm',
+ 'libxkbui', 'libdrm', 'libpciaccess',
+ 'xvinfo', 'xdriinfo', 'xgamma',
+ 'xorg-drivers',
+ 'libGL', 'mesa-demos',
+ 'libFS',
+ 'luit', 'sessreg', 'smproxy', 'xkbevd', 'xinit', 'xpr',
+ 'ico', 'rendercheck', 'twm', 'transset', 'x11perf', 'xwininfo'
+ ]
+# libGL is not easily cross-compilable
+# some modules don't make much sense to build for mingw
+# some modules are provided with xming, so can be ported with some work...
+
+build_policy = 'updated-deps'
+nopoison = True
+
+
+os.environ['BUILD'] = 'i686-pc-cygwin'
+os.environ['HOST'] = 'i686-pc-mingw32'
+
+# source checkout, build and install directories
+checkoutroot = '/jhbuild/checkout'
+buildroot = os.path.join('/jhbuild', os.environ['HOST'], 'build')
+prefix = os.path.join('/jhbuild', os.environ['HOST'], 'install')
+
+# configuration
+os.environ['ACLOCAL'] = 'aclocal -I ' + os.path.join(prefix, 'share', 'aclocal')
+os.environ['PKG_CONFIG_PATH'] = os.path.join(prefix, 'lib', 'pkgconfig') + ':' + os.path.join(prefix, 'share', 'pkgconfig')
+# do not search in the host pkgconfig libdir
+os.environ['PKG_CONFIG_LIBDIR'] = '/usr/i686-pc-mingw32/sys-root/mingw/lib/pkgconfig'
+
+os.environ['CC'] = 'ccache i686-pc-mingw32-gcc'
+os.environ['CXX'] = 'ccache i686-pc-mingw32-g++'
+os.environ['INSTALL'] = '/usr/local/bin/install-check'
+os.environ['CC_FOR_BUILD'] = 'ccache gcc'
+os.environ['CFLAGS'] = '-g -O0 -fdiagnostics-show-option'
+#os.environ['V'] = '1'
+#os.environ['PKG_CONFIG_DEBUG_SPEW'] = '1'
+
+# env vars to help some tests find things...
+os.environ['JHBUILD_CHECKOUTROOT'] = checkoutroot
+os.environ['JHBUILD_BUILDROOT'] = buildroot
+os.environ['JHBUILD_PREFIX'] = prefix
+
+autogenargs = '--cache-file=' + os.path.join('/jhbuild', os.environ['HOST'], 'configure-cache')
+autogenargs += ' --build='+os.environ['BUILD']
+autogenargs += ' --host='+os.environ['HOST']
+
+# ipv6
+# need to compile with WINVER of at least XP for getaddrinfo(), freeaddrinfo()
+#autogenargs += ' --enable-ipv6'
+#os.environ['CFLAGS'] += ' -DWINVER=0x0501'
+
+module_autogenargs['xserver'] = autogenargs + ' -disable-glx'
+module_autogenargs['xserver'] = module_autogenargs['xserver'] + ' --with-builderstring="Tag: `cd ' + checkoutroot + '/xorg/xserver ; git describe | tr -d \\n`"'
+
+module_autogenargs['xkeyboard-config'] = autogenargs + ' --with-xkb-rules-symlink=xorg'
+module_autogenargs['fontconfig'] = autogenargs + ' --enable-libxml2 --with-arch=le32d8'
+
+# must put pthread into LIBS when building pthread-stubs, as weak cleverness won't work...
+os.environ['LIBS'] = '-lpthread'
+
+# do not start xvfb for any testmodules
+noxvfb = True
+
+# can't run 'make check' when cross-compiling
+makecheck = False
+
+# AC_FUNC_STRNLEN guesses 'yes' when cross-compiling
+os.environ['ac_cv_func_strnlen_working'] = 'no'
+