summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba/wafsamba.py
AgeCommit message (Collapse)AuthorFilesLines
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>
2010-12-08s4-waf: get the version number right on private librariesAndrew Tridgell1-1/+1
use the first digit of the version number for the library version Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>
2010-12-08build: fix hpux build pbMatthieu Patou1-0/+1
Pair-Programmed-With: Thomas Nagy <tnagy2pow10@gmail.com> Fix the library extension from .so to .sl Add full path to library when linking this is needed due to a strange behavior of HP-UX: This command: gcc demo demo.c -L dir1/dir2/ -lsomelib will give a binary with a hard coded lib like dir1/dir2/libsomelib.sl. Somehow like a partial rpath, it has the first impact of fooling waf detection of wether the plateform support libraries or not (leading to being unable to compile samba on HPUX) and the impact of having non functionnal binaries. Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Wed Dec 8 00:32:50 CET 2010 on sn-devel-104
2010-11-21waf: fixed the build with a space in the source directoryAndrew Tridgell1-1/+1
2010-11-05waf: Put private libraries in a separate directory when building.Jelmer Vernooij1-0/+1
Thanks to Tridge for pointing out what exactly I had to change. :-)
2010-11-03waf: split pkgconfig logic into a separate moduleAndrew Tridgell1-56/+1
2010-11-01waf: removed the module aliases codeAndrew Tridgell1-32/+0
This is not needed with the new ldb modules approacg
2010-11-01waf: added module_init_name parameter to SAMBA_MODULE()Andrew Tridgell1-2/+3
this will be used for ldb module loading