build: allow shared and python staging areas to be referenced in build tree
authorAndrew Tridgell <tridge@samba.org>
Tue, 16 Mar 2010 05:41:14 +0000 (16:41 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:26:49 +0000 (20:26 +1000)
buildtools/wafsamba/wafsamba.py

index 5b63c1eef91dd5b4256afb7acc1179ab0dd08517..a6b95523139a37b2d3cf22de9d8779edc5d6638e 100644 (file)
@@ -27,6 +27,10 @@ def SAMBA_BUILD_ENV(conf):
     conf.env['BUILD_DIRECTORY'] = conf.blddir
     mkdir_p(os.path.join(conf.blddir, LIB_PATH))
     mkdir_p(os.path.join(conf.blddir, 'python/samba/dcerpc'))
+    # this allows all of the bin/shared and bin/python targets
+    # to be expressed in terms of build directory paths
+    os.symlink('../python', os.path.join(conf.blddir, 'default/python'))
+    os.symlink('../shared', os.path.join(conf.blddir, 'default/shared'))
 
 
 ################################################################