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 X Window System source code, and 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 stock X.Org xorg-server-n.n.n.tar.bz2 archive, plus a number of .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 patches applied to the stock X.Org archive and the packaging script for the packages distributed via Cygwin setup are held in a subversion repository. Intermediate versions between released packages can be obtained from there.
Username@CygwinHost ~ $ svn checkout https://cygwin-ports.svn.sourceforge.net/svnroot/cygwin-ports/ports/trunk/xorg/xorg-server Username@CygwinHost ~ $ cd xorg-server |
This will obtain the .patch files, and a .cygport file. You can then add the stock X.Org xorg-server-n.n.n.tar.bz2 archive, either by downloading it with 'cygport xorg-server-n.n.n-n.cygport download' or by copying it into that directory if you have already downloaded it, 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.