mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
lib/replace/wscript: update to handle waf 2.0.4
Signed-off-by: Alexander Bokovoy <ab@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
0c703f1d3a
commit
ea578830ce
@ -3,22 +3,24 @@
|
||||
APPNAME = 'libreplace'
|
||||
VERSION = '1.2.1'
|
||||
|
||||
blddir = 'bin'
|
||||
|
||||
import Logs, sys, os
|
||||
import sys
|
||||
import os
|
||||
|
||||
# find the buildtools directory
|
||||
srcdir = '.'
|
||||
while not os.path.exists(srcdir+'/buildtools') and len(srcdir.split('/')) < 5:
|
||||
srcdir = srcdir + '/..'
|
||||
sys.path.insert(0, srcdir + '/buildtools/wafsamba')
|
||||
top = '.'
|
||||
while not os.path.exists(top+'/buildtools') and len(top.split('/')) < 5:
|
||||
top = top + '/..'
|
||||
sys.path.insert(0, top + '/buildtools/wafsamba')
|
||||
|
||||
import wafsamba, samba_dist
|
||||
import Options, Utils
|
||||
out = 'bin'
|
||||
|
||||
import wafsamba
|
||||
from wafsamba import samba_dist
|
||||
from waflib import Options, Utils, Logs, Context
|
||||
|
||||
samba_dist.DIST_DIRS('lib/replace buildtools:buildtools third_party/waf:third_party/waf')
|
||||
|
||||
def set_options(opt):
|
||||
def options(opt):
|
||||
opt.BUILTIN_DEFAULT('NONE')
|
||||
opt.PRIVATE_EXTENSION_DEFAULT('')
|
||||
opt.RECURSE('buildtools/wafsamba')
|
||||
|
Loading…
x
Reference in New Issue
Block a user