]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Added configure.h and version.m4 variable parsing to win/config.py
authorSamuli Seppänen <samuli@openvpn.net>
Fri, 11 Feb 2011 14:16:14 +0000 (16:16 +0200)
committerDavid Sommerseth <dazo@users.sourceforge.net>
Sat, 26 Feb 2011 23:55:38 +0000 (00:55 +0100)
Python-based buildsystem uses win/config.py to obtain global build parameters
from various sources. Added parsing of the (fake) configure.h and version.m4 to
it so that other Python build files can use them.

Signed-off-by: Samuli Seppänen <samuli@openvpn.net>
Acked-by: James Yonan <james@openvpn.net>
Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
win/config.py

index cf38cac17318b53be503c4cbf37bc4670c192a8b..2c57004871b32012ad0db43912dbfc04c760910c 100644 (file)
@@ -1,6 +1,8 @@
-from wb import preprocess, autogen, mod_fn, home_fn, build_autodefs, make_headers_objs, dict_def\r
+from wb import preprocess, autogen, mod_fn, home_fn, build_configure_h, build_version_m4_vars, build_autodefs, make_headers_objs, dict_def
 \r
 def main(config):\r
+    build_configure_h(config, mod_fn(home_fn('configure.h')), head_comment='/* %s */\n\n' % autogen)
+    build_version_m4_vars(mod_fn(mod_fn('version_m4_vars.tmp')), head_comment='/* %s */\n\n' % autogen)
     build_autodefs(config, mod_fn('autodefs.h.in'), home_fn('autodefs.h'))\r
     ho = make_headers_objs(home_fn('Makefile.am'))\r
 \r