summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2013-04-01 17:24:09 +0100
committerJon TURNEY <jon.turney@dronecode.org.uk>2013-04-01 17:24:09 +0100
commit1cefecc343aeb4bfb52b7955b0235f52528a9b9e (patch)
tree0c1239a64849b33ab79c38b4c50a350e27889518
parent8af7f7dbce7912bede588ca5221f560653656021 (diff)
Add jhbuildrc for cross-compiling to cygwin64
-rw-r--r--jhbuildrc.cygwin6499
1 files changed, 99 insertions, 0 deletions
diff --git a/jhbuildrc.cygwin64 b/jhbuildrc.cygwin64
new file mode 100644
index 0000000..f1a2d21
--- /dev/null
+++ b/jhbuildrc.cygwin64
@@ -0,0 +1,99 @@
+#
+# jhbuildrc for building on cygwin64
+#
+
+moduleset = '/jhbuild/xorg.modules'
+modules = [ 'xwin', 'xorg' ]
+
+# skip building stuff which isn't appropriate for Windows target
+# all drivers apart from xf86-video-dummy and xf86-video-nested
+skip = [ 'appplewmproto', 'libAppleWM',
+ 'videoproto', 'xf86dgaproto', 'xf86driproto', 'xf86vidmodeproto', 'dri2proto',
+ 'libXv', 'libXvMC', 'libXxf86dga', 'libXxf86dga', 'libXxf86vm',
+ 'libxkbui', 'libdrm', 'libpciaccess',
+ 'xvinfo', 'xdriinfo', 'xgamma',
+ 'xf86-input-acecad',
+ 'xf86-input-aiptek',
+ 'xf86-input-evdev',
+ 'xf86-input-joystick',
+ 'xf86-input-keyboard',
+ 'xf86-input-mouse',
+ 'xf86-input-void',
+ 'xf86-video-ast',
+ 'xf86-video-ati',
+ 'xf86-video-chips',
+ 'xf86-video-cirrus',
+ 'xf86-video-fbdev',
+ 'xf86-video-geode',
+ 'xf86-video-glint',
+ 'xf86-video-i128',
+ 'xf86-video-intel',
+ 'xf86-video-mach64',
+ 'xf86-video-mga',
+ 'xf86-video-neomagic',
+ 'xf86-video-nouveau',
+ 'xf86-video-nv',
+ 'xf86-video-openchrome',
+ 'xf86-video-r128',
+ 'xf86-video-rendition',
+ 'xf86-video-savage',
+ 'xf86-video-sis',
+ 'xf86-video-sisusb',
+ 'xf86-video-suncg14',
+ 'xf86-video-suncg3',
+ 'xf86-video-suncg6',
+ 'xf86-video-sunffb',
+ 'xf86-video-sunleo',
+ 'xf86-video-suntcx',
+ 'xf86-video-tdfx',
+ 'xf86-video-tga',
+ 'xf86-video-trident',
+ 'xf86-video-tseng',
+ 'xf86-video-vesa',
+ 'xf86-video-vmware',
+ 'xf86-video-voodoo',
+ 'xf86-video-xgixp' ]
+
+build_policy = 'updated-deps'
+
+# source checkou, build and install directories
+checkoutroot = '/jhbuild/checkout'
+buildroot = '/jhbuild/build-cygwin64'
+prefix = '/jhbuild/install-cygwin64'
+
+os.environ['BUILD'] = 'i686-pc-cygwin'
+os.environ['HOST'] = 'x86_64-pc-cygwin'
+#os.environ['CC'] = 'ccache i686-pc-mingw32-gcc'
+#os.environ['CXX'] = 'ccache i686-pc-mingw32-g++'
+#os.environ['CC_FOR_BUILD'] = 'ccache gcc'
+
+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/x86_64-pc-cygwin/sys-root/usr/lib/pkgconfig'
+os.environ['INSTALL'] = '/usr/local/bin/install-check'
+os.environ['CFLAGS'] = '-g -O0 -fdiagnostics-show-option'
+os.environ['JHBUILD_CHECKOUTROOT'] = checkoutroot
+os.environ['JHBUILD_BUILDROOT'] = buildroot
+os.environ['JHBUILD_PREFIX'] = prefix
+
+autogenargs = '--cache-file=/jhbuild/configure-cache-cygwin64'
+autogenargs += ' --build='+os.environ['BUILD']
+autogenargs += ' --host='+os.environ['HOST']
+
+module_autogenargs['xserver'] = autogenargs + ' --disable-unit-tests' + ' --enable-xvfb --enable-xnest --enable-dmx --enable-kdrive --enable-xephyr --enable-xfake --disable-xfbdev --enable-xorg --enable-xwin'
+module_autogenargs['xserver'] = module_autogenargs['xserver'] + ' --with-builderstring="Tag: `cd ' + checkoutroot + '/xorg/xserver ; git describe | tr -d \\n`"'
+# we can only build the Xwin DDX when rootless is enabled, as it turns on horrible ROOTLESS hacks in DIX
+# --enable-dmx --enable-xephyr --enable-xfake
+
+module_autogenargs['xkeyboard-config'] = autogenargs + ' --with-xkb-rules-symlink=xorg'
+module_autogenargs['libXfont'] = autogenargs + ' --disable-shared --disable-fc'
+
+# want to test xlib based libGL
+module_autogenargs['libGL'] = autogenargs + ' --with-gallium-drivers=swrast --disable-dri -enable-osmesa --enable-xlib-glx'
+
+module_autogenargs['xf86-video-dummy'] = autogenargs + ' --disable-dga'
+
+#
+module_autogenargs['harfbuzz'] = autogenargs + ' ac_cv_header_usp10_h=no ac_cv_header_windows_h=no ac_cv_func__setmode=no'
+