summaryrefslogtreecommitdiffstats
path: root/buildtools/wafsamba/samba_deps.py
Commit message (Collapse)AuthorAgeFilesLines
* s4-python: Various formatting fixes.Jelmer Vernooij2012-09-271-4/+4
| | | | | | * Trailing whitespace * use of "==" where "is" should be used * double spaces
* waf: Fix mispellingSimo Sorce2012-04-191-6/+6
| | | | | Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Thu Apr 19 17:36:41 CEST 2012 on sn-devel-104
* Fix typoSimo Sorce2012-04-171-2/+2
| | | | | Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Tue Apr 17 22:22:26 CEST 2012 on sn-devel-104
* build: use include paths for pkg-config found librariesAndrew Bartlett2012-04-111-1/+1
|
* wafsamba: Fix some whitespace issues.Jelmer Vernooij2012-02-181-4/+1
|
* waf: introduce reverse logic for allowing unknown symbolsMatthieu Patou2011-04-261-0/+4
| | | | | | | | Some os (ie OSX 10.6) forbids by default unknown symbols so in order to allow them (for special case) we have no to remove linker option *but* to add options to ask the linker to be more relax. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* wafsamba: added global_include optionAndrew Tridgell2011-03-151-2/+3
| | | | | | this allows you to disable the global include additions. We will use this for testing our public headers without including any of the source tree directories
* build: added allow_undefined_symbols options for libraries and modulesAndrew Tridgell2011-02-181-1/+5
| | | | | | | | the s4 build uses linker flags to disallow undefined symbols in libraries. To accomodate s3 libraries in the top level build we need to be able to disable this on a per-library basis. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* waf: use Utils.WafError() instead of sys.exit(1)Andrew Tridgell2011-02-181-2/+1
| | | | better to raise an expection than just exiting
* waf: substitute '/' in -D static defines as well.Günther Deschner2011-02-111-2/+4
| | | | | | Tridge, please check. Guenther
* waf: samba deps generation depends on EXTRA_INCLUDESAndrew Tridgell2011-02-071-1/+1
|
* buildtools/wafsamba: import 'sys' and 'Logs' if we use themStefan Metzmacher2011-01-051-1/+1
| | | | | | | We should avoid generating a backtrace in a normal error case, just because sys.exit(1) isn't known. metze
* wafsamba: Move version script handling out of SAMBA_LIBRARY.Jelmer Vernooij2010-12-171-1/+1
|
* waf: fixed re-running of build rulesAndrew Tridgell2010-12-151-2/+2
| | | | | the addition of ldflags deps caused us to re-run the build rules every time.
* waf: use -Wl,--version-script if availableAndrew Tridgell2010-12-081-1/+2
| | | | | | | | | | | | | | | | | | | | | | | This enables symbol version on our libraries, if the system supports it If the library is a public library, then set the symbol version based on the major number. If it is a private library then set it based on the full version number (which will include the git hash if available). This ensures that applications using our libraries don't use symbols from other libraries that they may be linked to. It also ensures we only use the right version of any private libraries. Note that the linker ends up generating both a version and unversioned symbol for all symbols. This means existing users of our public libraries will continue to work, with symbols resolved to the unversioned symbol. When applications are re-linked they will bind to the specific symbol version. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>
* waf: fixed tabs/spaces for python3.0Andrew Tridgell2010-11-081-1/+1
| | | | | Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Mon Nov 8 00:55:13 UTC 2010 on sn-devel-104
* waf: more agressively expand subsystem syslib depsAndrew Tridgell2010-11-031-4/+9
| | | | | | | | this solves an openchange build problem with an indirect dependency on talloc when talloc is a syslib Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Wed Nov 3 02:17:30 UTC 2010 on sn-devel-104
* waf: rerun deps calculation on LDFLAGS or CFLAGS changeAndrew Tridgell2010-11-031-1/+1
|
* waf: added automatic prototyping of static module init functionsAndrew Tridgell2010-11-011-0/+8
| | | | | | | this avoids the need to manually list all our static init functions in the code Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* waf: fixed building of non-shared binaries that contain modulesAndrew Tridgell2010-10-301-0/+19
| | | | we need to incorporate the module objects too
* waf: get rid of target aliases in wafsambaAndrew Tridgell2010-10-301-24/+1
| | | | these aliases are no longer needed, and can cause a lot of confusion
* waf: save the samba_deps_extendedAndrew Tridgell2010-10-301-1/+1
| | | | this is needed for the symbols.py extension
* waf: give a better error on a bad grouping libraryAndrew Tridgell2010-10-301-0/+1
| | | | | | give a clear error on an unknown dependency in a grouping library Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* waf: cope with subsystems with no static modulesAndrew Tridgell2010-10-301-4/+6
| | | | | | | we still need the STATIC_xx_MODULES define when there are no static modules. It contains just the sentinal. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* waf: don't auto-depend on subsystemsAndrew Tridgell2010-10-301-7/+0
| | | | | | | | | | | | this is part of an effort to reduce the amount of automatic dependency munging we do. When working on the correct dependency tree for Samba it is easier to add the right dependencies in the wscript files than rely on them being added by the waf rules. This change removes the automatic dependency of modules on their subsystem. Many modules don't actually need this dependency anyway, so it is better to add it where they are needed (for example, for ldb modules) Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* waf: separate out get_tgt_list()Andrew Tridgell2010-10-301-12/+1
| | | | | | | this is a useful function for the new symbols code, so separate it out of samba_deps.py Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* waf: display the paths in library loopsAndrew Tridgell2010-10-301-0/+21
| | | | | | | when we detect a library loop, try to display the paths between the two libraries. This should make it easier to fix. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* waf: sped up the project rules checkingAndrew Tridgell2010-10-271-21/+60
| | | | | | | this also makes the --show-duplicates output more useful Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Wed Oct 27 01:36:46 UTC 2010 on sn-devel-104
* waf: quote subsystem names to make them clearerAndrew Tridgell2010-10-261-1/+1
|
* waf: loosen the restriction on depending on python libsAndrew Tridgell2010-10-211-1/+3
| | | | | the pidl generated python code can generate dependencies between two python modules, so we have to allow this for now
* waf: fixed the handling of -Wl,-no-undefinedAndrew Tridgell2010-10-211-1/+1
| | | | | this flag was not being propogated to our link rules, so we were not in fact enforcing no undefined symbols in libraries.
* waf: show duplicate objects in python modules as well as librariesAndrew Tridgell2010-10-211-2/+3
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* waf: raise an error on a dependency on a python moduleAndrew Tridgell2010-10-211-0/+3
| | | | | | it is never correct to list a dependency on a python module Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* waf: prevent the global deps list creating depenency loopsAndrew Tridgell2010-10-211-1/+9
| | | | | this prevents a loop between SOCKET_WRAPPER and replace in the s3 waf build
* waf: added the concept of a grouping_libraryAndrew Tridgell2010-10-211-1/+32
| | | | | | | | | | | | a grouping library is one which 'groups' a set of subsystems. This means that if a target depends on a subsystem that is within a grouping library then that dependency is replaced with a dependency on the grouping library. This gives us a powerful method to avoid duplicated object files between libraries. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* waf: fixed expansion of direct_objects and direct_libsAndrew Tridgell2010-10-211-2/+2
| | | | these do not need to be expanded in break_dependency_loops()
* waf: rework expand_subsystem_deps()Andrew Tridgell2010-10-211-18/+36
| | | | | | | | | make the variable names a lot clearer, and restrict the expansion of subsystem deps to object style subsystems and modules. If a subsystem or a module is built as a library then we don't need to expand the dependencies across that boundary Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* waf: added --show-deps and --show-duplicatesAndrew Tridgell2010-10-211-1/+66
| | | | | | these options make it easier to examine our depenency tree, by showing any objects linked into more than one library, and by showing the dependency tree for a chosen target
* waf: don't save deps on installAndrew Tridgell2010-10-191-1/+2
| | | | | this prevents an install triggering a new check of the project rules on the next build
* s4-waf: automatically remove stale C and header filesAndrew Tridgell2010-10-141-0/+1
| | | | | | | | | | this prevents stale .c and .h files in bin/ from causing build problems Thanks to Thomas Nagy for the example implementation! Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Oct 14 07:44:13 UTC 2010 on sn-devel-104
* wafsamba: Don't allow circular dependencies involving libraries byJelmer Vernooij2010-10-131-7/+17
| | | | default.
* wafsamba: Warn about circular dependencies between libraries.Jelmer Vernooij2010-10-121-1/+1
|
* wafsamba: Improve assertion error message to include the module.Jelmer Vernooij2010-06-151-1/+2
|
* build: added a check for group ordering within target dependenciesAndrew Tridgell2010-05-031-0/+47
| | | | | | | If target A depends on target B, then target B must not be in a later build group from target A Pair-Programmed-With: Thomas Nagy
* build: normalise paths in unique source checkingAndrew Tridgell2010-04-261-1/+1
|
* build: recalculate project deps when NONSHARED_BINARIES changesAndrew Tridgell2010-04-211-0/+10
|
* build: added --nonshared-binary=LIST optionAndrew Tridgell2010-04-211-0/+13
| | | | | | This allows you to specify some binaries that should be built without shared libs. A non-shared smbtorture will make testing s3 in the build farm easier
* build: ensure we don't recreate library loops in expansionsAndrew Tridgell2010-04-151-1/+26
| | | | | | | | | after removing library loops from the dependeny graph, we re-add parent dependencies. We need to ensure that we don't re-add a dependency which re-creates the loop we so carefully removed. This also adds a final check for library dependency loops, and shows an appropriate error if one is found.
* build: check the type of implied dependenciesAndrew Tridgell2010-04-131-1/+12
| | | | an implied dependency needs to be a library or module
* wafsamba: don't add global dependencies to hostcc targetsStefan Metzmacher2010-04-121-1/+2
| | | | metze