[cairo] pixman build on Windows/MSVC

Carl Worth cworth at cworth.org
Wed Mar 26 08:32:12 PDT 2008


On Wed, 26 Mar 2008 10:42:18 -0400, Antoine Azar wrote:
> the latest commits to add pixman_version and related macros broke the build
> on Windows/MSVC. I'm not too familiar with autoconf and friends so I'm not
> sure how to setup the Makefile.win32 to handle pixman-version.h.in. Let me
> know if you have an idea how to fix this.

It's really quite simple. You need to arrange for a pixman-version.h
file to be generated that looks just like the pixman-version.h.in file
but with things like @PIXMAN_VERSION_MAJOR@ substituted with their
numeric equivalents. That is, like so:

	#define PIXMAN_VERSION_MAJOR 0
	#define PIXMAN_VERSION_MINOR 9
	#define PIXMAN_VERSION_MICRO 7

The goal of the configure-based system is not only have to update
these numbers in one place. As far as I know the configure-based
system can be used on Windows, but some people seem to not prefer it.

Currently, those people will just have to manually do the substitution
above, based on the current numbers in the configure.ac file.

If the pixman maintainers want to take on the effort of always
updating the version number in two places, then they could decide to
not have a separate pixman-version.h.in file and they could just
manually maintain pixman-version.h, (perhaps with a test program as
part of distcheck that would ensure that the versions in configure.ac
and pixman-version.h are consistent).

I'll leave that decision up to those maintainers. (Though I imagine if
someone were to do the work to make that less fragile for them---that
is, the automated check in make distcheck---then they might be more
willing to accept it.)

Or maybe it's simple enough for you to just type in the three numbers
so you'll be happy with that.

Good luck,

-Carl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.cairographics.org/archives/cairo/attachments/20080326/f47a5d3f/attachment-0001.pgp 


More information about the cairo mailing list