[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Fixed gen_win.py to display Serf library version#

From: Edmund Wong <ed_at_kdtc.net>
Date: Fri, 11 Sep 2009 17:03:17 +0800

Hi,

Given my previous message regarding gen-make.py not outputting
the Serf library even when it finds it, I have created a patch
that displays the library version if it finds it. In actual
fact, this patch modifies gen_win.py and not gen-make.py.

Unfortunately, there is a caveat for this patch. It depends
entirely on the fact that the Serf library's version # will always
be in serf.h AND that the format is the same; that is,
the major, minor and patch #s are under individual defined
constants:

#define SERF_MAJOR_VERSION 0
#define SERF_MINOR_VERSION 3
#define SERF_PATCH_VERSION 0

If the library changes the format of getting the version
#, this patch is broken.

Log:

[[[

Fixed gen_win.py such that it checks for the presence of the
Serf library (which it does prior to this patch) and also
outputs the library version with the caveat that the Serf.h
library version numbers remain as-is.

* build/generator/gen_win.py
     (_get_serf_version): New function to return the serf library
       version in a 3-tuple format.
     (_find_serf): Added a version check. If the 3-tuple version
       structure has -1 in the first index, the serf library is
       not built; otherwise, the library is set to be built. Then
       a message is displayed informing the user of the results.

]]]

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2393569
Received on 2009-09-11 11:10:11 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.