summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba/wafsamba.py
AgeCommit message (Collapse)AuthorFilesLines
2011-12-03Revert making public of the samba-module library.Jelmer Vernooij1-1/+1
This library was tiny - containing just two public functions than were themselves trivial. The amount of overhead this causes isn't really worth the benefits of sharing the code with other projects like OpenChange. In addition, this code isn't really generically useful anyway, as it can only load from the module path set for Samba at configure time. Adding a new library was breaking the API/ABI anyway, so OpenChange had to be updated to cope with the new situation one way or another. I've added a simpler (compatible) routine for loading modules to OpenChange, which is less than 100 lines of code. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Dec 3 08:36:33 CET 2011 on sn-devel-104
2011-11-13waf: Simplify handling of python modules.Jelmer Vernooij1-4/+0
2011-11-13Revert 9a5ae8edd6d006c078b3af8fdfd84677a63276b1.Jelmer Vernooij1-3/+0
2011-11-13wafsamba: Support allow_undefined_symbols in SAMBA_SUBSYSTEM.Jelmer Vernooij1-4/+10
2011-11-13ldb: Use pyembed rather than pyext for ldb-util library.Jelmer Vernooij1-1/+5
2011-11-13waf: Don't link python modules against libpython2.x, consistent with other ↵Jelmer Vernooij1-3/+2
Python modules. Rather, rely just on waf's pyext feature. This fixes a warning from dh_python2.
2011-10-28lib/util Rename samba_init_module -> samba_module_initAndrew Bartlett1-1/+1
This is to provide a cleaner namespace in the public samba plugin functions. Andrew Bartlett
2011-08-21wafsamba: Only install .pc files if libraries are public.Jelmer Vernooij1-1/+1
2011-08-21wafsamba: Require public libraries to have headers.Jelmer Vernooij1-0/+3
2011-08-21wafsamba: Require public libraries to have a pc file specified, or ↵Jelmer Vernooij1-4/+11
explicitly specified that they don't need one.
2011-07-08param: Move per-share parameters into a seperate file, to share with s3Andrew Bartlett1-0/+2
This will allow the struct loadparm_service to be in common between the two loadparm implementations in the tree. Andrew Bartlett
2011-06-15build: fixed dependencies on install prefix for pc files and python scriptsAndrew Tridgell1-0/+2
waf can't automatically determine these dependencies as the construction of the files is via a python function thanks to Andrew for noticing this bug
2011-06-01build: fixed a problem with installing scripts in the build treeAndrew Tridgell1-18/+9
the SAMBA_SCRIPT() function was not always triggering correctly. The base problem was that we were using a target outside the build tree. This implements a simpler solution where we just create the links directly in SAMBA_SCRIPT() rather than creating a waf task Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Wed Jun 1 06:50:04 CEST 2011 on sn-devel-104
2011-03-15waf: build headers in separate 'headers' build groupAndrew Tridgell1-0/+1
2011-03-15waf: always generate public headers in the build treeAndrew Tridgell1-1/+5
this allows us to properly test our public headers before install
2011-03-15waf: build substituted public headers in build treeAndrew Tridgell1-1/+3
the bin/default/include/public directory will contain headers that are ready to install
2011-03-15waf: moved header file handling into its own moduleAndrew Tridgell1-196/+1
It is getting quite complex now, and shouldn't just be mixed in with everything else
2011-03-15wafsamba: keep a list of public headersAndrew Tridgell1-1/+3
this will be used to construct test_headers.h, for testing our public headers
2011-03-15wafsamba: added global_include optionAndrew Tridgell1-1/+12
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
2011-03-15build: install public headers in the build treeAndrew Tridgell1-15/+54
this symlinks our public headers into the build tree, which will allow us to refer to the public headers by their public name inside the source tree.
2011-02-22python: use os.environ[] instead of os.putenv()Andrew Tridgell1-1/+1
using os.putenv() causes too much confusion, as it doesn't update os.getenv() Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-18waf: improved error message for bad paths in SAMBA_LIBRARY()Andrew Tridgell1-1/+7
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-18waf: support building libraries with a directory prefixAndrew Tridgell1-2/+2
SAMBA_LIBRARY('libsmb/smbclient') can now be built, which distinguishes it from the binary 'smbclient' Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-18build: fixed passing of includes= for modulesAndrew Tridgell1-0/+1
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-18build: added subdir option for module buildingAndrew Tridgell1-0/+3
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-18build: added allow_undefined_symbols options for libraries and modulesAndrew Tridgell1-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>
2011-02-18waf: added subdir= option in SAMBA_*() rulesAndrew Tridgell1-0/+9
this allows you to prepend a subdirectory to the source rules, after variable substitution. This is useful for the s3 waf build when it is in s3build/
2011-02-16waf Fix dependencies for .pc (pkg-config) filesAndrew Bartlett1-1/+1
We used the wrong parameter for the dependency calculation. thanks to Thomas Nagy for the fix! Andrew Bartlett
2011-02-07build: fixed error message for incorrect waf versionAndrew Tridgell1-3/+2
just need configure now Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-02waf: Replace python installation rule to allow PYTHONARCHDIR and PYTHONDIRAndrew Bartlett1-7/+23
The old rule could only substitute one part of one line, but we need to add a second line to handle when PYTHONDIR and PYTHONARCHDIR do not match. This also avoids shelling out to sed with a regex, which was difficult to read. Andrew Bartlett
2011-01-14waf: use PYTHONARCHDIR for installing python shared libsAndrew Tridgell1-2/+2
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Fri Jan 14 08:19:40 CET 2011 on sn-devel-104
2011-01-05buildtools/wafsamba: import 'sys' and 'Logs' if we use themStefan Metzmacher1-1/+1
We should avoid generating a backtrace in a normal error case, just because sys.exit(1) isn't known. metze
2010-12-18wafsamba: Use abi_match in version script files.Jelmer Vernooij1-1/+2
2010-12-17wafsamba: Specify full vscript path so non-autogenerated files are possible, ↵Jelmer Vernooij1-0/+1
too.
2010-12-17wafsamba: Don't build vscript for modules.Jelmer Vernooij1-3/+2
2010-12-17wafsamba: Move version script handling out of SAMBA_LIBRARY.Jelmer Vernooij1-1/+3
2010-12-17heimdal_build: Simplify library handling.Jelmer Vernooij1-1/+1
2010-12-15waf: fixed re-running of build rulesAndrew Tridgell1-2/+3
the addition of ldflags deps caused us to re-run the build rules every time.
2010-12-14wafsamba: change the default value for SAMBA_MODULE of pyembed to FalseMatthieu Patou1-1/+1
ALL SAMBA_MODULE didn't need this, new modules that could need will just have to opt this in Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Tue Dec 14 14:45:15 CET 2010 on sn-devel-104
2010-12-10waf: the libXX.inst.so file also depends on the vscriptAndrew Tridgell1-0/+4
this fixes a problem with installed libraries not relinking after a git version change Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Fri Dec 10 09:30:46 CET 2010 on sn-devel-104
2010-12-09waf: remove the restriction that private libraries must not have a vnumAndrew Tridgell1-5/+0
we need the vnum for ABI checking for public libraries built as private libraries when bundled Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Dec 9 12:47:41 CET 2010 on sn-devel-104
2010-12-09waf: fixed path to abi_directoryAndrew Tridgell1-1/+1
this broke in a recent patch
2010-12-09waf: add a dependency between the library and its vscriptAndrew Tridgell1-0/+2
Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Dec 9 04:32:18 CET 2010 on sn-devel-104
2010-12-09waf: don't use symbol versioning on our modulesAndrew Tridgell1-3/+6
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-12-09waf: use vscripts for our private libraries tooAndrew Tridgell1-8/+9
if the library has a vnum, then use it. If it doesn't have a vnum then use the application version for symbol versions
2010-12-09waf-abi: auto-generate per-symbol versions from ABI filesAndrew Tridgell1-14/+8
This changes our version-script generation to use the ABI files that are saved in git with each version number change of our public libraries. We use these ABI files to generate a linker version script that gives the exact version number that each symbol was introduced. This provides us with automatic fine grained symbol versioning. Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org> Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-12-08buildtools: private_libraries should not have a version in the sonameStefan Metzmacher1-1/+1
metze
2010-12-08buildtools: make sure we have no '+' in the version scriptsStefan Metzmacher1-1/+1
This happens if '--git-local-changes' was used. metze
2010-12-08waf: make all generators depend on their rulesAndrew Tridgell1-0/+2
this ensures we rebuild when a constructed rule changes
2010-12-08waf: use -Wl,--version-script if availableAndrew Tridgell1-1/+17
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>