The source code for the packages distributed via Cygwin setup is also available via Cygwin setup. To install the source for the X server, run Cygwin setup and tick the 'Src?' check-box for the 'xorg-server' package.
This may have multiple patches applied on top of the upstream X.Org X Window System source code, and is known to build and function on Cygwin, so this should be the starting point for new developers.
On installing the source code package, setup will unpack it under /usr/src. You should find the source archive, any needed .patch files, and a .cygport file which automates the distribution build and packaging tasks.
The sources can unpacked and prepared using cygport as follows:
Username@CygwinHost ~ $ cd /usr/src Username@CygwinHost /usr/src $ cygport xorg-server-n.n.n-n.cygport prep [lots of output as archive is unpacked and patches applied] Username@CygwinHost /usr/src $ cd xorg-server-n.n.n-n/src/xorg-server-n.n.n/ Username@CygwinHost /usr/src/xorg-server-n.n.n-n/src/xorg-server-n.n.n/ $ ./autogen.sh -V [more output as autoconfiguration scripts are regenerated] |
Note: Alternatively you may manually untar the archive and apply the patches (in the correct order).
Note: It is necessary to run the package's autogen.sh script to regenerate the configure script and Makefiles if the patches modify the autoconf or automake source files
Note: For details of using cygport to generate packages for distribution, see the Section called Packaging a Cygwin/X Distribution
The packaging script for the packages distributed via Cygwin setup are currently held in a git repository. Intermediate versions between released packages can be obtained from there.
Username@CygwinHost ~ $ git clone git://cygwin-ports.git.sourceforge.net/gitroot/cygwin-ports/xorg-server Username@CygwinHost ~ $ cd xorg-server |
This will obtain a .cygport file. and any .patch files. You can then add the source archive by downloading it with 'cygport xorg-server-n.n.n-n.cygport download', and proceed as in the Section called Obtaining via Cygwin setup
Cygwin/X source code is contained in, and distributed with, the X Window System source code releases.
Read-only access to the X Window System git source . tree hosted on freedesktop.org is also available.
$ git clone git://git.freedesktop.org/git/xorg/xserver |
The CYGWIN branch exists in git for historical reasons. Current development follows the mainline (called the master branch in git terminology).
If you just want to look at the Cygwin/X source, use the cgit interface to the X.Org tree . Most of the Cygwin/X-specific code is in the xserver/hw/xwin directory.