except OSError: pass
def find_lib():
- return os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
+ return os.path.abspath(os.path.join(os.path.dirname(__file__), '../../third_party/waf'))
wafdir = find_lib()
w = join(wafdir, 'wafadmin')
third_party/popt:third_party/popt
lib/util:lib/util lib/tdb_wrap:lib/tdb_wrap
lib/ccan:lib/ccan libcli/util:libcli/util
- buildtools:buildtools''')
+ buildtools:buildtools third_party/waf:third_party/waf''')
def set_options(opt):
samba_dist.DIST_DIRS('''lib/ldb:. lib/replace:lib/replace lib/talloc:lib/talloc
lib/tdb:lib/tdb lib/tdb:lib/tdb lib/tevent:lib/tevent
third_party/popt:third_party/popt
- buildtools:buildtools''')
+ buildtools:buildtools third_party/waf:third_party/waf''')
def set_options(opt):
import wafsamba, samba_dist
import Options
-samba_dist.DIST_DIRS('lib/replace buildtools:buildtools')
+samba_dist.DIST_DIRS('lib/replace buildtools:buildtools third_party/waf:third_party/waf')
def set_options(opt):
opt.BUILTIN_DEFAULT('NONE')
import wafsamba, samba_dist, Options
# setup what directories to put in a tarball
-samba_dist.DIST_DIRS('lib/talloc:. lib/replace:lib/replace buildtools:buildtools')
+samba_dist.DIST_DIRS("""lib/talloc:. lib/replace:lib/replace
+buildtools:buildtools third_party/waf:third_party/waf""")
def set_options(opt):
import wafsamba, samba_dist, Options, Logs
-samba_dist.DIST_DIRS('lib/tdb:. lib/replace:lib/replace buildtools:buildtools')
+samba_dist.DIST_DIRS('lib/tdb:. lib/replace:lib/replace buildtools:buildtools third_party/waf:third_party/waf')
tdb1_unit_tests = [
'run-3G-file',
import wafsamba, samba_dist, Options, Logs
-samba_dist.DIST_DIRS('lib/tevent:. lib/replace:lib/replace lib/talloc:lib/talloc buildtools:buildtools')
+samba_dist.DIST_DIRS('lib/tevent:. lib/replace:lib/replace lib/talloc:lib/talloc buildtools:buildtools third_party/waf:third_party/waf')
def set_options(opt):
opt.BUILTIN_DEFAULT('replace')
planpythontestsuite(
"none", "wafsamba.tests.test_suite",
extra_path=[os.path.join(samba4srcdir, "..", "buildtools"),
- os.path.join(samba4srcdir, "..", "buildtools", "wafadmin")])
+ os.path.join(samba4srcdir, "..", "third_party", "waf", "wafadmin")])
plantestsuite(
"samba4.blackbox.dbcheck.alpha13", "none",
["PYTHON=%s" % python, os.path.join(bbdir, "dbcheck-oldrelease.sh"),
#node = producer.bld.path.make_node('pdebug.svg')
f = open('pdebug.svg', 'w')
f.write("".join(out))
-
-
setattr(t, 'post_run', post_run)
setattr(t, 'old_can_retrieve_cache', t.can_retrieve_cache)
setattr(t, 'can_retrieve_cache', can_retrieve_cache)
-
self.check_message_2(kw['okmsg'])
return ret
-
Task.Task.signature_bak = Task.Task.signature # unused, kept just in case
Task.Task.signature = signature # overridden
-
def detect(conf):
fluid = conf.find_program('fluid', var='FLUID', mandatory=True)
conf.check_cfg(path='fltk-config', package='', args='--cxxflags --ldflags', uselib_store='FLTK', mandatory=True)
-
cls.post_run = post_run
cls.scan = scan
cls.sig_implicit_deps = sig_implicit_deps
-
self.path.find_or_declare(self.target))
self.go_link_task.set_run_after(self.go_compile_task)
self.go_link_task.dep_nodes.extend(self.go_compile_task.outputs)
-
Build.BuildContext.raw_compile = Build.BuildContext.compile
Build.BuildContext.compile = compile
Build.BuildContext.sweep = sweep
-
check_task_classes(self)
return comp(self)
Build.BuildContext.compile = compile
-
def build(bld):
# dangerous, there is no other command hopefully
Utils.exec_command = exec_command
-
def detect(conf):
swig = conf.find_program('swig', var='SWIG', mandatory=True)
-
def detect(conf):
conf.find_program('valadoc', var='VALADOC', mandatory=False)
-
install_as = group_method(install_as)
install_files = group_method(install_files)
symlink_as = group_method(symlink_as)
-
"decorator: attach new configuration tests (registered as strings)"
ConfigurationContext.tests[f.__name__] = f
return conf(f)
-
-
# negative '<-' uninstall
INSTALL = 1337
UNINSTALL = -1337
-
object.__delattr__(self, name)
else:
del self[name]
-
# may be initialized more than once
init_log()
-
def parse_args(self, args=None):
parse_args_impl(self.parser, args)
-
#print loop
assert (self.count == 0 or self.stop)
-
# FIXME remove in Waf 1.6 (kept for compatibility)
def add_subdir(dir, bld):
bld.recurse(dir, 'build')
-
delattr(x, 'cache_sig')
except AttributeError:
pass
-
else: self.source += lst
def clone(self, env):
- """when creating a clone in a task generator method,
- make sure to set posted=False on the clone
+ """when creating a clone in a task generator method,
+ make sure to set posted=False on the clone
else the other task generator will not create its tasks"""
newobj = task_gen(bld=self.bld)
for x in self.__dict__:
self.bld.prev = self
feature('seq')(sequence_order)
-
#!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2006 (ita)
-
v = conf.env
conf.check_tool('ar')
if not v['AR']: conf.fatal('ar is required for static libraries - not found')
-
-
def detect(conf):
bison = conf.find_program('bison', var='BISON', mandatory=True)
conf.env['BISONFLAGS'] = '-d'
-
cls = Task.simple_task_type('cc_link', link_str, color='YELLOW', ext_in='.o', ext_out='.bin', shell=False)
cls.maxjobs = 1
cls.install = Utils.nada
-
def add_as_needed(conf):
if conf.env.DEST_BINFMT == 'elf' and 'gcc' in (conf.env.CXX_NAME, conf.env.CC_NAME):
conf.env.append_unique('LINKFLAGS', '--as-needed')
-
for c_compiler in test_for_compiler.split():
opt.tool_options('%s' % c_compiler, option_group=cc_compiler_opts)
-
for cxx_compiler in test_for_compiler.split():
opt.tool_options('%s' % cxx_compiler, option_group=cxx_compiler_opts)
-
for d_compiler in ['gdc', 'dmd']:
opt.tool_options('%s' % d_compiler, option_group=d_compiler_opts)
-
@conftest
def cxx_load_tools(conf):
conf.check_tool('cxx')
-
def set_options(opt):
opt.add_option('--with-csc-binary', type='string', dest='cscbinary')
-
cls = Task.simple_task_type('cxx_link', link_str, color='YELLOW', ext_in='.o', ext_out='.bin', shell=False)
cls.maxjobs = 1
cls.install = Utils.nada
-
print imp + " ",
print
"""
-
def detect(conf):
dbus_binding_tool = conf.find_program('dbus-binding-tool', var='DBUS_BINDING_TOOL')
-
if conf.env.D_COMPILER.find('ldc') > -1:
conf.common_flags_ldc()
-
def detect(conf):
conf.find_program('flex', var='FLEX', mandatory=True)
conf.env['FLEXFLAGS'] = ''
-
conf.find_program(['gas', 'as'], var='AS')
if not conf.env.AS: conf.env.AS = conf.env.CC
#conf.env.ASFLAGS = ['-c'] <- may be necesary for .S files
-
conf.cc_load_tools()
conf.cc_add_flags()
conf.link_add_flags()
-
conf.check_tool('d')
conf.common_flags_gdc()
conf.d_platform_flags()
-
def detect(conf):
glib_genmarshal = conf.find_program('glib-genmarshal', var='GLIB_GENMARSHAL')
mk_enums_tool = conf.find_program('glib-mkenums', var='GLIB_MKENUMS')
-
def set_options(opt):
opt.add_option('--want-rpath', type='int', default=1, dest='want_rpath', help='set rpath to 1 or 0 [Default 1]')
-
str_default = default
str_help = '%s [Default: %s]' % (help, str_default)
dirs_options.add_option(option_name, help=str_help, default='', dest=name.upper())
-
gob2 = conf.find_program('gob2', var='GOB2', mandatory=True)
conf.env['GOB2'] = gob2
conf.env['GOB2FLAGS'] = ''
-
v['SHLIB_MARKER'] = ''
v['STATICLIB_MARKER'] = ''
- v['SONAME_ST'] = ''
+ v['SONAME_ST'] = ''
@conftest
def gxx_modifier_aix(conf):
conf.cxx_load_tools()
conf.cxx_add_flags()
conf.link_add_flags()
-
def set_options(opt):
opt.add_option('--want-rpath', type='int', default=1, dest='want_rpath', help='set rpath to 1 or 0 [Default 1]')
opt.add_option('--datadir', type='string', default='', dest='datadir', help='read-only application data')
-
break
else:
conf.fatal('could not find lib jvm in %r (see config.log)' % libDirs)
-
conf.env['MSGFMT'] = conf.find_program('msgfmt')
Task.simple_task_type('msgfmt', '${MSGFMT} ${SRC} -o ${TGT}', color='BLUE', shell=False)
-
if __name__ == '__main__':
useCmdLine()
-
def detect(conf):
conf.find_program('luac', var='LUAC', mandatory = True)
-
Task.task_type_from_func('copy', vars=[], func=action_process_file_func)
TaskGen.task_gen.classes['command-output'] = cmd_output_taskgen
-
self.do_manifest = False
outfile = self.outputs[0].bldpath(env)
-
+
manifest = None
for out_node in self.outputs:
if out_node.name.endswith('.manifest'):
manifest = out_node.bldpath(env)
break
if manifest is None:
- # Should never get here. If we do, it means the manifest file was
- # never added to the outputs list, thus we don't have a manifest file
+ # Should never get here. If we do, it means the manifest file was
+ # never added to the outputs list, thus we don't have a manifest file
# to embed, so we just return.
return 0
cls = Task.TaskBase.classes.get(k, None)
if cls:
cls.exec_command = exec_command_msvc
-
try: obj_ext = self.obj_ext
except AttributeError: obj_ext = '_%d.o' % self.idx
- task = self.create_task('nasm', node, node.change_ext(obj_ext))
+ task = self.create_task('nasm', node, node.change_ext(obj_ext))
self.compiled_tasks.append(task)
self.meths.append('apply_nasm_vars')
def detect(conf):
nasm = conf.find_program(['nasm', 'yasm'], var='NASM', mandatory=True)
-
v['LIBPATH_OCAML'] = Utils.cmd_output(conf.env['OCAMLC']+' -where').strip()+os.sep
v['CPPPATH_OCAML'] = Utils.cmd_output(conf.env['OCAMLC']+' -where').strip()+os.sep
v['LIB_OCAML'] = 'camlrun'
-
Task.task_type_from_func('macapp', vars=[], func=app_build, after="cxx_link cc_link static_link")
Task.task_type_from_func('macplist', vars=[], func=plist_build, after="cxx_link cc_link static_link")
-
def set_options(opt):
opt.add_option("--with-perl-binary", type="string", dest="perlbinary", help = 'Specify alternate perl binary', default=None)
opt.add_option("--with-perl-archdir", type="string", dest="perlarchdir", help = 'Specify directory where to install arch specific files', default=None)
-
find_deps(node)
return (nodes, names)
-
-
default=1,
help='Do not install optimised compiled .pyo files (configuration) [Default:install]',
dest='pyo')
-
opt.add_option('--no-qt4-framework', action="store_false", help='do not use the framework version of Qt4 in OS X', dest='use_qt4_osxframework',default=True)
opt.add_option('--translate', action="store_true", help="collect translation strings", dest="trans_qt4", default=False)
-
opt.add_option('--with-ruby-archdir', type='string', dest='rubyarchdir', help='Specify directory where to install arch specific files')
opt.add_option('--with-ruby-libdir', type='string', dest='rubylibdir', help='Specify alternate ruby library path')
opt.add_option('--with-ruby-binary', type='string', dest='rubybinary', help='Specify alternate ruby binary')
-
cls.scan = scan
cls = b('pdflatex', pdflatex_build, vars=pdflatex_vardeps)
cls.scan = scan
-
for (f, code, out, err) in lst:
if code:
Utils.pprint('CYAN', ' %s' % f)
-
-
valaopts.add_option ('--vala-target-glib', default=None,
dest='vala_target_glib', metavar='MAJOR.MINOR',
help='Target version of glib for Vala GObject code generation')
-
conf.fatal('winrc was not found!')
v['WINRCFLAGS'] = ''
-
return ret
wrap.__cache__ = cache
return wrap
-
sys.stderr = sys.stdout = AnsiTerm()
os.environ['TERM'] = 'vt100'
-
self.wait()
return (stdout, stderr)
-
for v in all_modifs[k]:
modif(os.path.join(dir, 'wafadmin'), k, v)
#print('substitutions finished')
-