Jelmer Vernooij
84c1874677
waf: Support aliases in SAMBA_MODULE.
2010-09-04 15:00:32 +02:00
Jelmer Vernooij
1ba533f4cb
waf: Make shared modules available in the build dir.
2010-09-04 15:00:32 +02:00
Andrew Tridgell
cfcfe3c1f5
s4-waf: re-use SAMBA_LIBRARY() in building shared modules
...
make SAMBA_MODULE() call SAMBA_LIBRARY() to do the heavy lifting. This
fixes the problem with modules being a bit too slim :-)
Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>
2010-08-22 16:35:30 +02:00
Andrew Tridgell
8cbd36afe8
build: allow always=True/False on SAMBA_GENERATOR()
...
this allows us to force a rule to always run. Will be used by
samba_version
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-06-29 14:28:08 +10:00
Andrew Tridgell
f6e46ee0fb
build: check if the manpages stylesheet is available locally
...
this avoids trying to fetch the stylesheet from the internet. If we
can't process the stylesheet with --nonet at configure time then don't
build manpages.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-06-24 18:46:57 +10:00
Jelmer Vernooij
24930aa716
wafsamba: Use octal modes directly rather than constants.
2010-06-19 16:00:04 +02:00
Jelmer Vernooij
e0fe941218
wafsamba: Use BUILTIN_LIBRARY() rather than relying on side-effects.
2010-06-18 23:51:40 +02:00
Jelmer Vernooij
a4a127ea5a
s4-waf: Fix build of libldb_ildap against system ldb.
2010-06-15 20:52:01 +02:00
Jelmer Vernooij
773e47f4a9
wafsamba: Fix include path inheritance from module subsystems.
2010-06-15 20:35:22 +02:00
Jelmer Vernooij
fb7a98aa32
ldb: Fix included ldb build.
2010-06-15 13:15:50 +02:00
Jelmer Vernooij
de68718d3d
wafsamba: Fix filenames for ldb modules.
2010-06-15 13:15:50 +02:00
Jelmer Vernooij
0d7f8fb73d
wafsamba: Fix building of modules as shared libraries.
2010-06-15 13:15:50 +02:00
Jelmer Vernooij
419928b8df
wafsamba: Only add init function if not building module as shared library.
2010-06-15 13:15:50 +02:00
Jelmer Vernooij
2edd652729
s4-waf: Fix installation of .so links for libraries that are not bundled but have a mangled name.
2010-06-13 20:52:47 +02:00
Thomas Nagy
09fb7fcd5f
Do not use headermap.txt for the header installation
...
Try to find the headers by searching on the filesystem. Warn when
a public header replacement cannot be found (talloc.h, ...).
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-13 19:26:48 +02:00
Jelmer Vernooij
a22d7db308
wafsamba: Only try to build manpages if XSLTPROC was actually found.
2010-05-31 20:45:14 +02:00
Stefan Metzmacher
1da4153459
buildtools/wafsamba: use build group 'final' for the creation of manpages
...
This way we don't try to build manpages just for waf build --target=smbtorture
metze
2010-05-31 17:52:31 +02:00
Jelmer Vernooij
f89e390fbc
waf: Refactor manpage building code.
2010-05-31 13:56:25 +02:00
Jelmer Vernooij
f98bb7ffc3
Add manpages argument to SAMBA_LIBRARY().
2010-05-31 13:56:25 +02:00
Kai Blin
e3997c2a6d
wafsamba: Correctly detect if bld.env.XSLTPROC is not set
...
This fixes the build on some build farm hosts and my machine.
Jelmer, please check.
2010-05-31 09:40:14 +02:00
Jelmer Vernooij
3858b5db8b
s4-waf: sanitize library names like the old build system did, only add
...
-samba4 suffix for libraries that are bundled.
2010-05-31 03:28:42 +02:00
Jelmer Vernooij
f3f1745e27
wafsamba: Actually install manual pages.
2010-05-31 01:38:35 +02:00
Andrew Bartlett
892a4b24e7
waf Read VERSION file inside WAF to set package version
...
This replaces the call to mkversion.sh in both the Samba3 and Samba4
WAF builds.
Andrew Bartlett
2010-05-28 15:20:03 +10:00
Thomas Nagy
792743cfab
solve the error "ldb.inst.h does not exist"
...
The error happens when headermap.txt is not available
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-05-24 01:26:43 +02:00
Thomas Nagy
bd8e3cf855
Substitute the pidl files without using 'headermap.txt'
...
The headers generated by pidl contain references to bin/default. Those paths
may be replaced automatically.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-05-23 17:51:06 +02:00
Thomas Nagy
66cbc62961
s4-waf: Replace local includes in header files with proper system names.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-05-19 22:30:05 +02:00
Andrew Tridgell
022266566d
build: fixed pc file variable substitution
...
We should not substitute for the first use of each variable
declaration in the pkgconfig file
2010-05-07 15:14:49 +02:00
Andrew Tridgell
7281b02181
build: allow use of target names as commands in waf
...
This allows for the following types of commands:
waf smbd/samba
waf smbd/server.c
waf ../lib/util/util_file.c
waf ../lib/util/util_file_*.o
this will be used as part of an updated minimal_includes.pl script
2010-05-04 11:45:43 +02:00
Andrew Tridgell
08c3ce25c6
build: added enabled=True/False option to SAMBA_BINARY()
2010-04-29 08:01:48 +10:00
Andrew Tridgell
f66fcd9608
build: cope with realname for install of non-python libs
...
this fixes the install of mit_samba.so
2010-04-26 19:06:06 +10:00
Andrew Tridgell
a241daae2d
build: a library is only empty if it has no deps
2010-04-26 14:36:54 +10:00
Andrew Tridgell
6c79b9f480
build: cope with duplicates in source lists
2010-04-26 14:36:54 +10:00
Stefan Metzmacher
1ed5f71820
buildtools/wafsamba: make sure we create bin/default/ before trying to create symlinks in it
...
metze
2010-04-24 20:03:50 +02:00
Andrew Tridgell
456351cdb1
s4-waf: follow the configure directories for the empty install dirs
...
Thanks to Metze for spotting this
2010-04-19 21:54:40 +10:00
Andrew Tridgell
db0eb2f239
s4-waf: install some missing empty directories
2010-04-19 21:00:36 +10:00
Andrew Tridgell
211bf1ea17
s4-waf: removed the unused installdir= option to SAMBA_BINARY()
...
This was left over from the automatic conversion of the config.mk
files
2010-04-18 21:47:00 +10:00
Andrew Tridgell
d3dea9b124
build: added ABI checking to the WAF build
...
See http://wiki.samba.org/index.php/Waf#ABI_Checking for details
2010-04-18 15:00:37 +10:00
Andrew Tridgell
0bda3bae4c
build: throw a fatal error for duplicate target declarations
...
We don't want someone to declare two subsystems of the same name but
with different source files
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-04-15 14:43:50 +10:00
Andrew Tridgell
167ba0eac9
build: make the 'wrong version of waf' message even clearer
...
suggest ./autogen-waf.sh
2010-04-15 09:22:24 +10:00
Andrew Tridgell
208eb7469d
build: check that the user is not using an old /usr/bin/waf
...
some systems have /usr/bin/waf installed, and its quite old
2010-04-15 08:57:07 +10:00
Stefan Metzmacher
4f73658544
wafsamba: don't add global dependencies to hostcc targets
...
metze
2010-04-12 12:31:14 +02:00
Stefan Metzmacher
8a00c56649
wafsamba: allow passing 'use_hostcc' to SAMBA_SUBSYSTEM()
...
metze
2010-04-12 12:31:13 +02:00
Andrew Tridgell
45d3ac05b3
build: use Logs.error() and Logs.info() instead of print()
...
this gives appropriate colors on output, and ensures it works with
compiler output
2010-04-09 21:12:09 +10:00
Andrew Tridgell
4ca46c6b8d
build: make the handling of relative paths a bit saner
...
This should fix a problem that Anatoliy has struck with the PIDL
rules. It also brings us much closer to a working build for a true out
of tree build (ie. with waf configure -b /tmp/build)
2010-04-08 22:11:49 +10:00
Thomas Nagy
7f3116a63d
build: allow the waf build to work with python 3.0 and 3.1
...
Python 3.x is a bit fussier about print statements and indentation.
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-04-08 07:46:39 +10:00
Andrew Tridgell
64594f296c
s4-waf: replace TOUCH_FILE() with normal install rules
...
this allows it to work with 'waf uninstall'
2010-04-06 20:27:26 +10:00
Andrew Tridgell
553324bc10
s4-waf: move to a universal method of recursing into subdirs
...
This works with both standalone lib builds and bundled builds
2010-04-06 20:27:25 +10:00
Andrew Tridgell
528d7c7cf3
s4-waf: added 'waf dist' to our standalone libs as well
2010-04-06 20:27:25 +10:00
Andrew Tridgell
23ff97e629
build: fixed the expansions in pkgconfig files
...
thanks to Jelmer for the hint on this
2010-04-06 20:27:24 +10:00
Andrew Tridgell
20c7cd878b
build: added 'generic' cc support and a simple irix cc support module
...
these will let us get past the 'detect cc' stage and try a build. It
also makes for a reasonable template for new ports
2010-04-06 20:27:23 +10:00