1 # a waf tool to add autoconf-like macros to the configure section
2 # and for SAMBA_ macros for building libraries, binaries etc
4 import Build, os, sys, Options, Task, Utils, cc, TaskGen, fnmatch, re, shutil, Logs, Constants
5 from Configure import conf
7 from samba_utils import SUBST_VARS_RECURSIVE
8 TaskGen.task_gen.apply_verif = Utils.nada
10 # bring in the other samba modules
11 from samba_optimisation import *
12 from samba_utils import *
13 from samba_version import *
14 from samba_autoconf import *
15 from samba_patterns import *
16 from samba_pidl import *
17 from samba_autoproto import *
18 from samba_python import *
19 from samba_deps import *
20 from samba_bundled import *
21 from samba_third_party import *
23 import samba_conftests
37 # some systems have broken threading in python
38 if os.environ.get('WAF_NOTHREADS') == '1':
43 os.environ['PYTHONUNBUFFERED'] = '1'
46 if Constants.HEXVERSION < 0x105019:
48 Please use the version of waf that comes with Samba, not
49 a system installed version. See http://wiki.samba.org/index.php/Waf
52 Alternatively, please run ./configure and make as usual. That will
53 call the right version of waf.''')
58 def SAMBA_BUILD_ENV(conf):
59 '''create the samba build environment'''
60 conf.env.BUILD_DIRECTORY = conf.blddir
61 mkdir_p(os.path.join(conf.blddir, LIB_PATH))
62 mkdir_p(os.path.join(conf.blddir, LIB_PATH, "private"))
63 mkdir_p(os.path.join(conf.blddir, "modules"))
64 mkdir_p(os.path.join(conf.blddir, 'python/samba/dcerpc'))
65 # this allows all of the bin/shared and bin/python targets
66 # to be expressed in terms of build directory paths
67 mkdir_p(os.path.join(conf.blddir, 'default'))
68 for (source, target) in [('shared', 'shared'), ('modules', 'modules'), ('python', 'python_modules')]:
69 link_target = os.path.join(conf.blddir, 'default/' + target)
70 if not os.path.lexists(link_target):
71 os.symlink('../' + source, link_target)
73 # get perl to put the blib files in the build directory
74 blib_bld = os.path.join(conf.blddir, 'default/pidl/blib')
75 blib_src = os.path.join(conf.srcdir, 'pidl/blib')
76 mkdir_p(blib_bld + '/man1')
77 mkdir_p(blib_bld + '/man3')
78 if os.path.islink(blib_src):
80 elif os.path.exists(blib_src):
81 shutil.rmtree(blib_src)
84 def ADD_INIT_FUNCTION(bld, subsystem, target, init_function):
85 '''add an init_function to the list for a subsystem'''
86 if init_function is None:
88 bld.ASSERT(subsystem is not None, "You must specify a subsystem for init_function '%s'" % init_function)
89 cache = LOCAL_CACHE(bld, 'INIT_FUNCTIONS')
90 if not subsystem in cache:
92 cache[subsystem].append( { 'TARGET':target, 'INIT_FUNCTION':init_function } )
93 Build.BuildContext.ADD_INIT_FUNCTION = ADD_INIT_FUNCTION
97 #################################################################
98 def SAMBA_LIBRARY(bld, libname, source,
103 public_headers_install=True,
110 external_library=False,
113 autoproto_extra_source='',
124 target_type='LIBRARY',
125 bundled_extension=True,
131 private_library=False,
132 grouping_library=False,
133 allow_undefined_symbols=False,
136 '''define a Samba library'''
138 if LIB_MUST_BE_PRIVATE(bld, libname):
142 SET_TARGET_TYPE(bld, libname, 'DISABLED')
145 source = bld.EXPAND_VARIABLES(source, vars=vars)
147 source = bld.SUBDIR(subdir, source)
149 # remember empty libraries, so we can strip the dependencies
150 if ((source == '') or (source == [])) and deps == '' and public_deps == '':
151 SET_TARGET_TYPE(bld, libname, 'EMPTY')
154 if BUILTIN_LIBRARY(bld, libname):
157 obj_target = libname + '.objlist'
159 if group == 'libraries':
160 subsystem_group = 'main'
162 subsystem_group = group
164 # first create a target for building the object files for this library
165 # by separating in this way, we avoid recompiling the C files
166 # separately for the install library and the build library
167 bld.SAMBA_SUBSYSTEM(obj_target,
170 public_deps = public_deps,
172 public_headers = public_headers,
173 public_headers_install = public_headers_install,
174 header_path = header_path,
176 group = subsystem_group,
177 autoproto = autoproto,
178 autoproto_extra_source=autoproto_extra_source,
179 depends_on = depends_on,
180 hide_symbols = hide_symbols,
181 allow_warnings = allow_warnings,
184 local_include = local_include,
185 global_include = global_include)
187 if BUILTIN_LIBRARY(bld, libname):
190 if not SET_TARGET_TYPE(bld, libname, target_type):
193 # the library itself will depend on that object target
194 deps += ' ' + public_deps
196 deps.append(obj_target)
198 realname = bld.map_shlib_extension(realname, python=(target_type=='PYTHON'))
199 link_name = bld.map_shlib_extension(link_name, python=(target_type=='PYTHON'))
201 # we don't want any public libraries without version numbers
202 if (not private_library and target_type != 'PYTHON' and not realname):
203 if vnum is None and soname is None:
204 raise Utils.WafError("public library '%s' must have a vnum" %
207 raise Utils.WafError("public library '%s' must have pkg-config file" %
209 if public_headers is None:
210 raise Utils.WafError("public library '%s' must have header files" %
213 if target_type == 'PYTHON' or realname or not private_library:
214 bundled_name = libname.replace('_', '-')
216 bundled_name = PRIVATE_NAME(bld, libname, bundled_extension,
219 ldflags = TO_LIST(ldflags)
221 features = 'cc cshlib symlink_lib install_lib'
225 features += ' pyembed'
228 features += ' abi_check'
231 if bld.env.HAVE_LD_VERSION_SCRIPT:
233 version = "%s_%s" % (Utils.g_module.APPNAME, Utils.g_module.VERSION)
235 version = "%s_%s" % (libname, vnum)
239 vscript = "%s.vscript" % libname
240 bld.ABI_VSCRIPT(libname, abi_directory, version, vscript,
242 fullname = apply_pattern(bundled_name, bld.env.shlib_PATTERN)
243 fullpath = bld.path.find_or_declare(fullname)
244 vscriptpath = bld.path.find_or_declare(vscript)
246 raise Utils.WafError("unable to find fullpath for %s" % fullname)
248 raise Utils.WafError("unable to find vscript path for %s" % vscript)
249 bld.add_manual_dependency(fullpath, vscriptpath)
250 if Options.is_install:
251 # also make the .inst file depend on the vscript
252 instname = apply_pattern(bundled_name + '.inst', bld.env.shlib_PATTERN)
253 bld.add_manual_dependency(bld.path.find_or_declare(instname), bld.path.find_or_declare(vscript))
254 vscript = os.path.join(bld.path.abspath(bld.env), vscript)
256 bld.SET_BUILD_GROUP(group)
260 target = bundled_name,
261 depends_on = depends_on,
262 samba_ldflags = ldflags,
264 samba_includes = includes,
265 version_script = vscript,
266 local_include = local_include,
267 global_include = global_include,
271 samba_inst_path = install_path,
273 samba_realname = realname,
274 samba_install = install,
275 abi_directory = "%s/%s" % (bld.path.abspath(), abi_directory),
276 abi_match = abi_match,
277 private_library = private_library,
278 grouping_library=grouping_library,
279 allow_undefined_symbols=allow_undefined_symbols
282 if realname and not link_name:
283 link_name = 'shared/%s' % realname
286 t.link_name = link_name
288 if pc_files is not None and not private_library:
289 bld.PKG_CONFIG_FILES(pc_files, vnum=vnum)
291 if (manpages is not None and 'XSLTPROC_MANPAGES' in bld.env and
292 bld.env['XSLTPROC_MANPAGES']):
293 bld.MANPAGES(manpages, install)
296 Build.BuildContext.SAMBA_LIBRARY = SAMBA_LIBRARY
299 #################################################################
300 def SAMBA_BINARY(bld, binname, source,
310 use_global_deps=True,
323 '''define a Samba binary'''
326 SET_TARGET_TYPE(bld, binname, 'DISABLED')
329 if not SET_TARGET_TYPE(bld, binname, 'BINARY'):
332 features = 'cc cprogram symlink_bin install_bin'
334 features += ' pyembed'
336 obj_target = binname + '.objlist'
338 source = bld.EXPAND_VARIABLES(source, vars=vars)
340 source = bld.SUBDIR(subdir, source)
341 source = unique_list(TO_LIST(source))
343 if group == 'binaries':
344 subsystem_group = 'main'
346 subsystem_group = group
348 # only specify PIE flags for binaries
350 pie_ldflags = TO_LIST(ldflags)
351 if bld.env['ENABLE_PIE'] == True:
352 pie_cflags += ' -fPIE'
353 pie_ldflags.extend(TO_LIST('-pie'))
354 if bld.env['ENABLE_RELRO'] == True:
355 pie_ldflags.extend(TO_LIST('-Wl,-z,relro,-z,now'))
357 # first create a target for building the object files for this binary
358 # by separating in this way, we avoid recompiling the C files
359 # separately for the install binary and the build binary
360 bld.SAMBA_SUBSYSTEM(obj_target,
365 group = subsystem_group,
366 autoproto = autoproto,
367 subsystem_name = subsystem_name,
368 local_include = local_include,
369 global_include = global_include,
370 use_hostcc = use_hostcc,
372 use_global_deps= use_global_deps)
374 bld.SET_BUILD_GROUP(group)
376 # the binary itself will depend on that object target
378 deps.append(obj_target)
385 samba_includes = includes,
386 local_include = local_include,
387 global_include = global_include,
388 samba_modules = modules,
390 samba_subsystem= subsystem_name,
392 samba_inst_path= install_path,
393 samba_install = install,
394 samba_ldflags = pie_ldflags
397 if manpages is not None and 'XSLTPROC_MANPAGES' in bld.env and bld.env['XSLTPROC_MANPAGES']:
398 bld.MANPAGES(manpages, install)
400 Build.BuildContext.SAMBA_BINARY = SAMBA_BINARY
403 #################################################################
404 def SAMBA_MODULE(bld, modname, source,
409 module_init_name='samba_init_module',
411 autoproto_extra_source='',
413 internal_module=True,
421 allow_undefined_symbols=False,
424 '''define a Samba module.'''
426 source = bld.EXPAND_VARIABLES(source, vars=vars)
428 source = bld.SUBDIR(subdir, source)
430 if internal_module or BUILTIN_LIBRARY(bld, modname):
431 # Do not create modules for disabled subsystems
432 if subsystem and GET_TARGET_TYPE(bld, subsystem) == 'DISABLED':
434 bld.SAMBA_SUBSYSTEM(modname, source,
438 autoproto_extra_source=autoproto_extra_source,
440 local_include=local_include,
441 global_include=global_include,
442 allow_warnings=allow_warnings,
445 bld.ADD_INIT_FUNCTION(subsystem, modname, init_function)
449 SET_TARGET_TYPE(bld, modname, 'DISABLED')
452 # Do not create modules for disabled subsystems
453 if subsystem and GET_TARGET_TYPE(bld, subsystem) == 'DISABLED':
456 obj_target = modname + '.objlist'
459 if subsystem is not None:
460 deps += ' ' + subsystem
461 while realname.startswith("lib"+subsystem+"_"):
462 realname = realname[len("lib"+subsystem+"_"):]
463 while realname.startswith(subsystem+"_"):
464 realname = realname[len(subsystem+"_"):]
466 realname = bld.make_libname(realname)
467 while realname.startswith("lib"):
468 realname = realname[len("lib"):]
470 build_link_name = "modules/%s/%s" % (subsystem, realname)
473 cflags += " -D%s=%s" % (init_function, module_init_name)
475 bld.SAMBA_LIBRARY(modname,
481 autoproto = autoproto,
482 local_include=local_include,
483 global_include=global_include,
485 link_name=build_link_name,
486 install_path="${MODULESDIR}/%s" % subsystem,
489 allow_undefined_symbols=allow_undefined_symbols,
490 allow_warnings=allow_warnings
494 Build.BuildContext.SAMBA_MODULE = SAMBA_MODULE
497 #################################################################
498 def SAMBA_SUBSYSTEM(bld, modname, source,
503 public_headers_install=True,
508 init_function_sentinel=None,
510 autoproto_extra_source='',
513 local_include_first=True,
518 use_global_deps=True,
525 '''define a Samba subsystem'''
528 SET_TARGET_TYPE(bld, modname, 'DISABLED')
531 # remember empty subsystems, so we can strip the dependencies
532 if ((source == '') or (source == [])) and deps == '' and public_deps == '':
533 SET_TARGET_TYPE(bld, modname, 'EMPTY')
536 if not SET_TARGET_TYPE(bld, modname, 'SUBSYSTEM'):
539 source = bld.EXPAND_VARIABLES(source, vars=vars)
541 source = bld.SUBDIR(subdir, source)
542 source = unique_list(TO_LIST(source))
544 deps += ' ' + public_deps
546 bld.SET_BUILD_GROUP(group)
552 features += ' pyembed'
558 samba_cflags = CURRENT_CFLAGS(bld, modname, cflags,
559 allow_warnings=allow_warnings,
560 hide_symbols=hide_symbols),
561 depends_on = depends_on,
562 samba_deps = TO_LIST(deps),
563 samba_includes = includes,
564 local_include = local_include,
565 local_include_first = local_include_first,
566 global_include = global_include,
567 samba_subsystem= subsystem_name,
568 samba_use_hostcc = use_hostcc,
569 samba_use_global_deps = use_global_deps,
572 if cflags_end is not None:
573 t.samba_cflags.extend(TO_LIST(cflags_end))
575 if autoproto is not None:
576 bld.SAMBA_AUTOPROTO(autoproto, source + TO_LIST(autoproto_extra_source))
577 if public_headers is not None:
578 bld.PUBLIC_HEADERS(public_headers, header_path=header_path,
579 public_headers_install=public_headers_install)
583 Build.BuildContext.SAMBA_SUBSYSTEM = SAMBA_SUBSYSTEM
586 def SAMBA_GENERATOR(bld, name, rule, source='', target='',
587 group='generators', enabled=True,
589 public_headers_install=True,
593 '''A generic source generator target'''
595 if not SET_TARGET_TYPE(bld, name, 'GENERATOR'):
602 if isinstance(vars, dict):
603 dep_vars = vars.keys()
604 elif isinstance(vars, list):
607 bld.SET_BUILD_GROUP(group)
610 source=bld.EXPAND_VARIABLES(source, vars=vars),
612 shell=isinstance(rule, str),
616 samba_type='GENERATOR',
617 dep_vars = [rule] + dep_vars,
623 if public_headers is not None:
624 bld.PUBLIC_HEADERS(public_headers, header_path=header_path,
625 public_headers_install=public_headers_install)
627 Build.BuildContext.SAMBA_GENERATOR = SAMBA_GENERATOR
632 def SETUP_BUILD_GROUPS(bld):
633 '''setup build groups used to ensure that the different build
634 phases happen consecutively'''
635 bld.p_ln = bld.srcnode # we do want to see all targets!
636 bld.env['USING_BUILD_GROUPS'] = True
637 bld.add_group('setup')
638 bld.add_group('build_compiler_source')
639 bld.add_group('vscripts')
640 bld.add_group('base_libraries')
641 bld.add_group('generators')
642 bld.add_group('compiler_prototypes')
643 bld.add_group('compiler_libraries')
644 bld.add_group('build_compilers')
645 bld.add_group('build_source')
646 bld.add_group('prototypes')
647 bld.add_group('headers')
648 bld.add_group('main')
649 bld.add_group('symbolcheck')
650 bld.add_group('syslibcheck')
651 bld.add_group('final')
652 Build.BuildContext.SETUP_BUILD_GROUPS = SETUP_BUILD_GROUPS
655 def SET_BUILD_GROUP(bld, group):
656 '''set the current build group'''
657 if not 'USING_BUILD_GROUPS' in bld.env:
660 Build.BuildContext.SET_BUILD_GROUP = SET_BUILD_GROUP
665 def ENABLE_TIMESTAMP_DEPENDENCIES(conf):
666 """use timestamps instead of file contents for deps
667 this currently doesn't work"""
668 def h_file(filename):
670 st = os.stat(filename)
671 if stat.S_ISDIR(st[stat.ST_MODE]): raise IOError('not a file')
673 m.update(str(st.st_mtime))
674 m.update(str(st.st_size))
677 Utils.h_file = h_file
680 def SAMBA_SCRIPT(bld, name, pattern, installdir, installname=None):
681 '''used to copy scripts from the source tree into the build directory
682 for use by selftest'''
684 source = bld.path.ant_glob(pattern)
686 bld.SET_BUILD_GROUP('build_source')
687 for s in TO_LIST(source):
689 if installname is not None:
691 target = os.path.join(installdir, iname)
692 tgtdir = os.path.dirname(os.path.join(bld.srcnode.abspath(bld.env), '..', target))
694 link_src = os.path.normpath(os.path.join(bld.curdir, s))
695 link_dst = os.path.join(tgtdir, os.path.basename(iname))
696 if os.path.islink(link_dst) and os.readlink(link_dst) == link_src:
698 if os.path.exists(link_dst):
700 Logs.info("symlink: %s -> %s/%s" % (s, installdir, iname))
701 os.symlink(link_src, link_dst)
702 Build.BuildContext.SAMBA_SCRIPT = SAMBA_SCRIPT
705 def copy_and_fix_python_path(task):
706 pattern='sys.path.insert(0, "bin/python")'
707 if task.env["PYTHONARCHDIR"] in sys.path and task.env["PYTHONDIR"] in sys.path:
709 elif task.env["PYTHONARCHDIR"] == task.env["PYTHONDIR"]:
710 replacement="""sys.path.insert(0, "%s")""" % task.env["PYTHONDIR"]
712 replacement="""sys.path.insert(0, "%s")
713 sys.path.insert(1, "%s")""" % (task.env["PYTHONARCHDIR"], task.env["PYTHONDIR"])
717 if task.env["PYTHON"][0] == "/":
718 replacement_shebang = "#!%s\n" % task.env["PYTHON"]
720 replacement_shebang = "#!/usr/bin/env %s\n" % task.env["PYTHON"]
722 installed_location=task.outputs[0].bldpath(task.env)
723 source_file = open(task.inputs[0].srcpath(task.env))
724 installed_file = open(installed_location, 'w')
726 for line in source_file:
728 if lineno == 0 and task.env["PYTHON_SPECIFIED"] == True and line[:2] == "#!":
729 newline = replacement_shebang
730 elif pattern in line:
731 newline = line.replace(pattern, replacement)
732 installed_file.write(newline)
734 installed_file.close()
735 os.chmod(installed_location, 0755)
739 def install_file(bld, destdir, file, chmod=MODE_644, flat=False,
740 python_fixup=False, destname=None, base_name=None):
742 destdir = bld.EXPAND_VARIABLES(destdir)
746 destname = os.path.basename(destname)
747 dest = os.path.join(destdir, destname)
749 # fixup the python path it will use to find Samba modules
750 inst_file = file + '.inst'
751 bld.SAMBA_GENERATOR('python_%s' % destname,
752 rule=copy_and_fix_python_path,
755 bld.add_manual_dependency(bld.path.find_or_declare(inst_file), bld.env["PYTHONARCHDIR"])
756 bld.add_manual_dependency(bld.path.find_or_declare(inst_file), bld.env["PYTHONDIR"])
757 bld.add_manual_dependency(bld.path.find_or_declare(inst_file), str(bld.env["PYTHON_SPECIFIED"]))
758 bld.add_manual_dependency(bld.path.find_or_declare(inst_file), bld.env["PYTHON"])
761 file = os.path.join(base_name, file)
762 bld.install_as(dest, file, chmod=chmod)
765 def INSTALL_FILES(bld, destdir, files, chmod=MODE_644, flat=False,
766 python_fixup=False, destname=None, base_name=None):
767 '''install a set of files'''
768 for f in TO_LIST(files):
769 install_file(bld, destdir, f, chmod=chmod, flat=flat,
770 python_fixup=python_fixup, destname=destname,
772 Build.BuildContext.INSTALL_FILES = INSTALL_FILES
775 def INSTALL_WILDCARD(bld, destdir, pattern, chmod=MODE_644, flat=False,
776 python_fixup=False, exclude=None, trim_path=None):
777 '''install a set of files matching a wildcard pattern'''
778 files=TO_LIST(bld.path.ant_glob(pattern))
782 files2.append(os_path_relpath(f, trim_path))
787 if fnmatch.fnmatch(f, exclude):
789 INSTALL_FILES(bld, destdir, files, chmod=chmod, flat=flat,
790 python_fixup=python_fixup, base_name=trim_path)
791 Build.BuildContext.INSTALL_WILDCARD = INSTALL_WILDCARD
794 def INSTALL_DIRS(bld, destdir, dirs):
795 '''install a set of directories'''
796 destdir = bld.EXPAND_VARIABLES(destdir)
797 dirs = bld.EXPAND_VARIABLES(dirs)
798 for d in TO_LIST(dirs):
799 bld.install_dir(os.path.join(destdir, d))
800 Build.BuildContext.INSTALL_DIRS = INSTALL_DIRS
803 def MANPAGES(bld, manpages, install):
804 '''build and install manual pages'''
805 bld.env.MAN_XSL = 'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl'
806 for m in manpages.split():
808 bld.SAMBA_GENERATOR(m,
812 rule='${XSLTPROC} --xinclude -o ${TGT} --nonet ${MAN_XSL} ${SRC}'
815 bld.INSTALL_FILES('${MANDIR}/man%s' % m[-1], m, flat=True)
816 Build.BuildContext.MANPAGES = MANPAGES
818 def SAMBAMANPAGES(bld, manpages, extra_source=None):
819 '''build and install manual pages'''
820 bld.env.SAMBA_EXPAND_XSL = bld.srcnode.abspath() + '/docs-xml/xslt/expand-sambadoc.xsl'
821 bld.env.SAMBA_MAN_XSL = bld.srcnode.abspath() + '/docs-xml/xslt/man.xsl'
822 bld.env.SAMBA_CATALOGS = 'file:///etc/xml/catalog file:///usr/local/share/xml/catalog file://' + bld.srcnode.abspath() + '/bin/default/docs-xml/build/catalog.xml'
824 for m in manpages.split():
826 if extra_source is not None:
827 source = [source, extra_source]
828 bld.SAMBA_GENERATOR(m,
832 rule='''XML_CATALOG_FILES="${SAMBA_CATALOGS}"
833 export XML_CATALOG_FILES
834 ${XSLTPROC} --xinclude --stringparam noreference 0 -o ${TGT}.xml --nonet ${SAMBA_EXPAND_XSL} ${SRC[0].abspath(env)}
835 ${XSLTPROC} --nonet -o ${TGT} ${SAMBA_MAN_XSL} ${TGT}.xml'''
837 bld.INSTALL_FILES('${MANDIR}/man%s' % m[-1], m, flat=True)
838 Build.BuildContext.SAMBAMANPAGES = SAMBAMANPAGES
840 #############################################################
841 # give a nicer display when building different types of files
842 def progress_display(self, msg, fname):
843 col1 = Logs.colors(self.color)
844 col2 = Logs.colors.NORMAL
845 total = self.position[1]
847 fs = '[%%%dd/%%%dd] %s %%s%%s%%s\n' % (n, n, msg)
848 return fs % (self.position[0], self.position[1], col1, fname, col2)
850 def link_display(self):
851 if Options.options.progress_bar != 0:
852 return Task.Task.old_display(self)
853 fname = self.outputs[0].bldpath(self.env)
854 return progress_display(self, 'Linking', fname)
855 Task.TaskBase.classes['cc_link'].display = link_display
857 def samba_display(self):
858 if Options.options.progress_bar != 0:
859 return Task.Task.old_display(self)
861 targets = LOCAL_CACHE(self, 'TARGET_TYPE')
862 if self.name in targets:
863 target_type = targets[self.name]
864 type_map = { 'GENERATOR' : 'Generating',
865 'PROTOTYPE' : 'Generating'
867 if target_type in type_map:
868 return progress_display(self, type_map[target_type], self.name)
870 if len(self.inputs) == 0:
871 return Task.Task.old_display(self)
873 fname = self.inputs[0].bldpath(self.env)
874 if fname[0:3] == '../':
876 ext_loc = fname.rfind('.')
878 return Task.Task.old_display(self)
879 ext = fname[ext_loc:]
881 ext_map = { '.idl' : 'Compiling IDL',
882 '.et' : 'Compiling ERRTABLE',
883 '.asn1': 'Compiling ASN1',
886 return progress_display(self, ext_map[ext], fname)
887 return Task.Task.old_display(self)
889 Task.TaskBase.classes['Task'].old_display = Task.TaskBase.classes['Task'].display
890 Task.TaskBase.classes['Task'].display = samba_display
895 def apply_bundle_remove_dynamiclib_patch(self):
896 if self.env['MACBUNDLE'] or getattr(self,'mac_bundle',False):
897 if not getattr(self,'vnum',None):
899 self.env['LINKFLAGS'].remove('-dynamiclib')
900 self.env['LINKFLAGS'].remove('-single_module')