Andrew Bartlett
23cafd5569
buildtools: Add 'make testenv' to Samba4 make targets
...
I'm still too addicted to this as my standard debugging environment, and while I can learn the new command, this helps the muscle-memory.
Andrew Bartlett
2010-05-09 21:18:52 +10: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
815fcfba48
build: treat a blank --build or --host as not a cross-compile
...
This matches autoconf behaviour
2010-05-07 09:03:47 +02:00
Andrew Tridgell
c61f4dcc0f
build: added a reconfigure target
...
this is meant to be used by the s3 build, to allow jelmers work on
smbtorture4 in s3 to avoid re-running configure unless its needed
2010-05-06 14:56:43 +02:00
Andrew Tridgell
ed2941ba3d
build: added configure test for inline
2010-05-05 16:14:13 +02:00
Andrew Tridgell
20d77705ce
build: update version of waf
...
this fixes a slow configure problem on HPUX
2010-05-05 16:14:13 +02:00
Andrew Tridgell
3d2819bd86
build: use the wrapper commands in testwaf.sh
...
this ensures they are well tested
2010-05-05 16:14:13 +02:00
Andrew Tridgell
f8120ab697
build: added a distcheck target
2010-05-05 16:14:13 +02:00
Andrew Tridgell
47fb7dfd1c
build: mark cloned task generators as not posted
...
this solves an incompatibility with a newer version of waf from svn
2010-05-05 16:14:13 +02:00
Andrew Tridgell
fa172c494f
build: exit with an error if waf configure fails
...
We don't want configure in the build farm to show green when it fails
2010-05-05 16:14:13 +02:00
Andrew Tridgell
6ed45442c4
build: enable python 3.0 and 3.1 in testwaf.sh
...
try to ensure that we don't let support for python 3.x bitrot
2010-05-04 13:02:30 +02:00
Andrew Tridgell
ce67027c07
build: fixed wildcard handling for python 3.x
...
print must take parentheses
2010-05-04 13:02:30 +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
6d1e8c5835
build: use the waf patterns for RPATH
...
Use the self.env.RPATH variable to set the RPATH for each target. This
gives consistent ordering of the link command, ensuring that we don't
get rebuilds if we ask for a --targets= build after a normal build.
This also means we are now using the RPATH_ST pattern, which means we
can potentially support compilers that don't use -Wl,xxx as the
command line for rpath support
2010-05-03 17:16:48 +02:00
Andrew Tridgell
b3d8a7136a
build: added a check for group ordering within target dependencies
...
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
2010-05-03 17:16:47 +02:00
Andrew Tridgell
8bc5194b04
build: fix for combined configure/build in one command
...
This is a fix from ita for "waf distclean configure build". Running
it as one command failed with missing config.h
2010-05-03 17:16:47 +02:00
Andrew Tridgell
d83850abe2
build: uname on opensolaris returns 1 for success
...
check for -1 as failure, not 0 for success
2010-05-02 18:25:13 +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
0a47bf5f15
build: automatically run autogen-waf.sh when needed
2010-04-26 14:36:55 +10:00
Andrew Tridgell
c6b8ffd3a5
build: normalise paths in unique source checking
2010-04-26 14:36:54 +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
c8824fd9b4
build: use option_group() not add_option_group()
...
option_group() ensures we don't end up with duplicate groups
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
051535f196
buildtools/wafsamba: inline defines during configure into the tests
...
There 2 reasons for this change:
- This is how autoconf tests work and it makes config.log much more useful
- The waf c preprocessor ignored changes in bin/default/__confdefs.h when using
waf configure -C, because is outside of the configure tests project path
and handled like a system header.
Many thanks to ita for pointing out the fix.
metze
2010-04-24 20:03:50 +02: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
93c86fe615
build: give a more useful error when the source dir has moved
...
you need a distclean if you mv the source directory
2010-04-23 08:25:01 +10:00
Andrew Tridgell
a36c7b8b74
build: use 'waf distclean' for make distclean
...
this cleans up the more than rm -rf bin
2010-04-23 08:25:01 +10:00
Andrew Tridgell
6669152a4a
build: we don't need this makefile magic any more
...
The waf build now checks for all A=B variables passed via make
and sets the same waf internal variable. This means all waf options
are available via make.
Removing this from the Makefile makes us less reliant on a modern
version of make.
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-04-22 19:36:15 +10:00
Andrew Tridgell
d950e9e6f3
build: added --enable-auto-reconfigure
...
this is off by default until some issues are resolved. See my mail to
samba-technical for details.
2010-04-22 12:03:36 +10:00
Andrew Tridgell
adb5f943de
build: recalculate project deps when NONSHARED_BINARIES changes
2010-04-21 17:29:06 +10:00
Andrew Tridgell
681f3dad7c
build: added --nonshared-binary=LIST option
...
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
2010-04-21 17:13:16 +10:00
Andrew Tridgell
06fa4c8ebc
build: make python development headers not mandatory in standalone libs
...
This needed an update to the python tool in waf
thanks to Kai for spotting this
2010-04-21 16:17:08 +10:00
Andrew Tridgell
ab2555faac
waftest: updated the cross compilation environment I test with
2010-04-21 15:36:26 +10:00
Andrew Tridgell
667f672c94
build: fixed uname output to be on target machine when cross compiling
...
this also makes the output of define_ret configure tests show up
in the configure output
2010-04-21 15:16:01 +10:00
Andrew Tridgell
5e69259671
build: added uname display and SYSTEM_UNAME define
...
suggestion from Metze
2010-04-20 23:43:33 +10:00
Andrew Tridgell
cdaac0afc1
build: include uninitialised data in the ABI symbols
...
This is needed for symbols like tdb_null in tdb, which are part
of the public ABI
Pair-Programmed-With: Rusty Russell <rusty@samba.org>
2010-04-20 15:50:26 +10:00
Andrew Tridgell
0e56037129
build: quote cross-answer strings
...
This allows for spaces and special characters in cross-answers
2010-04-20 15:50:26 +10:00
Andrew Tridgell
f2bd78cb26
build: allow "waf --abi-check" to force a re-check of the ABI
2010-04-20 15:50:26 +10: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
d25e1e15d3
build: update waf from svn
...
this adds bld.install_dir()
2010-04-19 21:00:51 +10:00
Andrew Tridgell
db0eb2f239
s4-waf: install some missing empty directories
2010-04-19 21:00:36 +10:00
Andrew Tridgell
d2b35c3a24
build: make compare_install.sh also check for missing directories
...
Thanks to Nadya for pointing this out
2010-04-19 21:00:16 +10:00
Andrew Tridgell
b6dff759f7
build: added --cross-answers support
...
This allows you to easily cross-compile even without a --cross-execute
emulator
See http://wiki.samba.org/index.php/Waf#cross-compiling for details
2010-04-19 16:34:14 +10:00
Andrew Tridgell
93f4f7a037
build: fixed a python-3 indent error
2010-04-19 16:34:14 +10:00
Andrew Tridgell
4e51bf1ffd
build: expanded testwaf to include cross-compiling and python versions
2010-04-19 16:34:14 +10:00
Andrew Tridgell
69ce29826c
build: more dependencies on /usr/bin/perl -> ${PERL}
2010-04-18 23:08:28 +10:00
Andrew Tridgell
3ca5fd8e03
build: cope with perl not being in /usr/bin/perl
...
This should fixed the pidl build on SerNet-NetBSD5
2010-04-18 22:55:16 +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
f8e3e5ce07
build: fixed install of binary targets that are in subdirs
...
this should fix the smbd/smbd install problem with Kai's s3 waf build
2010-04-18 21:08:48 +10:00