summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuli Seppänen <samuli@openvpn.net>2011-02-11 16:16:14 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2011-02-27 00:55:38 +0100
commita7f0fc316caf3fbbe7c75866b4d8d21e2e931fc1 (patch)
treeb56b0e490de2de6a73e9944585cdffa960d4172e
parent8c1c666e65db37fe680f7760c6ef52c2dd031932 (diff)
downloadopenvpn-a7f0fc316caf3fbbe7c75866b4d8d21e2e931fc1.tar.gz
openvpn-a7f0fc316caf3fbbe7c75866b4d8d21e2e931fc1.tar.xz
openvpn-a7f0fc316caf3fbbe7c75866b4d8d21e2e931fc1.zip
Added configure.h and version.m4 variable parsing to win/config.py
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>
-rw-r--r--win/config.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/win/config.py b/win/config.py
index cf38cac..2c57004 100644
--- a/win/config.py
+++ b/win/config.py
@@ -1,6 +1,8 @@
-from wb import preprocess, autogen, mod_fn, home_fn, build_autodefs, make_headers_objs, dict_def
+from wb import preprocess, autogen, mod_fn, home_fn, build_configure_h, build_version_m4_vars, build_autodefs, make_headers_objs, dict_def
def main(config):
+ 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'))
ho = make_headers_objs(home_fn('Makefile.am'))