summaryrefslogtreecommitdiffstats
path: root/win/config.py
diff options
context:
space:
mode:
authorJames Yonan <james@openvpn.net>2010-04-22 12:53:31 +0000
committerJames Yonan <james@openvpn.net>2010-04-22 12:53:31 +0000
commit059739e9341781d9019e07fc5119367c1630b012 (patch)
tree6839d8071558539505991895ef377baee58e960f /win/config.py
parent7a464e32394f2d072fad2d31ad625b332108300f (diff)
downloadopenvpn-059739e9341781d9019e07fc5119367c1630b012.tar.gz
openvpn-059739e9341781d9019e07fc5119367c1630b012.tar.xz
openvpn-059739e9341781d9019e07fc5119367c1630b012.zip
Added Python-based build system for Windows in
win directory. Fixed minor issue in TAP driver DEBUG builds where non-null-terminated unicode strings were being printed incorrectly. Version 2.1.1g git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@5577 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'win/config.py')
-rw-r--r--win/config.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/win/config.py b/win/config.py
new file mode 100644
index 0000000..67c1d82
--- /dev/null
+++ b/win/config.py
@@ -0,0 +1,17 @@
+from wb import preprocess, autogen, mod_fn, home_fn, build_autodefs, make_headers_objs, dict_def
+
+def main(config):
+ build_autodefs(config, mod_fn('autodefs.h.in'), home_fn('autodefs.h'))
+ ho = make_headers_objs(home_fn('Makefile.am'))
+
+ preprocess(dict_def(config, [('HEADERS_OBJS', ho)]),
+ in_fn=mod_fn('msvc.mak.in'),
+ out_fn=home_fn('msvc.mak'),
+ quote_begin='@',
+ quote_end='@',
+ head_comment='# %s\n\n' % autogen)
+
+# if we are run directly, and not loaded as a module
+if __name__ == "__main__":
+ from wb import config
+ main(config)