diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-03-27 16:47:43 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-06 20:27:10 +1000 |
commit | 5c6e8371b28cd768ee731832fc5194ff31e1418e (patch) | |
tree | 86fd7d66ab23bf29a71d8aa909994148e7f0ac0f /buildtools | |
parent | 723e9b87ceb2676ce7501b7a59d8bf79de8e6f3d (diff) | |
download | samba-5c6e8371b28cd768ee731832fc5194ff31e1418e.tar.gz samba-5c6e8371b28cd768ee731832fc5194ff31e1418e.tar.bz2 samba-5c6e8371b28cd768ee731832fc5194ff31e1418e.zip |
build: a hack to get perl to put its generated blib files in the build directory
perl wants to put generated files in the source directory, whereas waf wants
them in the build directory. Use a symlink to trick perl into putting them
in the right place
Diffstat (limited to 'buildtools')
-rw-r--r-- | buildtools/wafsamba/wafsamba.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py index 876cdf6988..1dc71b4fae 100644 --- a/buildtools/wafsamba/wafsamba.py +++ b/buildtools/wafsamba/wafsamba.py @@ -37,6 +37,14 @@ def SAMBA_BUILD_ENV(conf): if not os.path.lexists(link_target): os.symlink('../' + p, link_target) + # get perl to put the blib files in the build directory + blib_bld = os.path.join(conf.blddir, 'default/pidl/blib') + blib_src = os.path.join(conf.srcdir, 'pidl/blib') + mkdir_p(blib_bld + '/man1') + mkdir_p(blib_bld + '/man3') + if not os.path.lexists(blib_src): + os.symlink(blib_bld, blib_src) + ################################################################ @@ -459,7 +467,7 @@ def SAMBA_GENERATOR(bld, name, rule, source, target, return bld.SET_BUILD_GROUP(group) - bld( + t = bld( rule=rule, source=bld.EXPAND_VARIABLES(source, vars=vars), target=target, @@ -471,6 +479,7 @@ def SAMBA_GENERATOR(bld, name, rule, source, target, if public_headers is not None: bld.PUBLIC_HEADERS(public_headers, header_path=header_path) + return t Build.BuildContext.SAMBA_GENERATOR = SAMBA_GENERATOR |