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
d661759780
build: nicer error message on missing file in waf dist
2010-04-09 21:12:09 +10:00
Andrew Tridgell
0b8a3a4036
build: no need to re-create the lib and bin symlinks if they exist
...
this saves a few unlink/symlink calls for null builds
2010-04-09 20:31:06 +10:00
Andrew Tridgell
5f90d3260b
build: added --picky-developer and --fatal-errors
...
Added configure options for --fatal-errors and --picky-developer. This
removes -Wfatal-errors from the --enable-developer flags.
2010-04-09 20:31:06 +10:00
Andrew Tridgell
bf4189eb80
build: we need this isinstance() check for distcheck
...
Jelmer, this works around a bug in waf distcheck that will be fixed
soon. We really need the isinstance() check for now.
2010-04-08 22:11:50 +10:00
Andrew Tridgell
baec7a6b9e
build: the exceptions here are not useful
...
they just make the failure hard to spot
2010-04-08 22:11:49 +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
Jelmer Vernooij
e5bb6d56df
s4-waf: Fix 'waf dist' app name.
2010-04-07 22:53:39 +02:00
Andrew Tridgell
07d9da4d2f
build: use a target_in_list() function for more flexible builtin control
2010-04-06 20:27:27 +10:00
Andrew Tridgell
35ec7c34b3
build: cope with binaries with subdir prefixes (for s3 waf build)
2010-04-06 20:27:27 +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
cd712dff31
build: simpler symlink_bin and symlink_lib methods
2010-04-06 20:27:26 +10:00
Andrew Tridgell
7ae4372124
s4-waf: fixed waf distcheck for our standalone libs and s4
2010-04-06 20:27:26 +10:00
Andrew Tridgell
dfdabffae3
build: fixed LOAD_ENVIRONMENT for out of tree builds
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
1883ee6dbc
s4-waf: avoid having to run waf configure before waf dist
...
This should be useful for building tarballs from a clean checkout
2010-04-06 20:27:25 +10:00
Andrew Tridgell
3ed6d7e76f
build: nicer error msg when git ls-files fails
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
c8062fb65e
s4-waf: added 'waf dist' to build the tarball
2010-04-06 20:27:24 +10:00
Andrew Tridgell
735934bfed
build: removed some unused imports found by pyflakes
...
thanks to Jelmer for pointing me at pyflakes
2010-04-06 20:27:24 +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
7aa3f08f85
build: fixed DESTDIR for TOUCH_FILE()
2010-04-06 20:27:24 +10:00
Andrew Tridgell
1b15b28eaa
build: try the generic C compiler on hpux if gcc not found
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
Andrew Tridgell
b849bea079
build: initial version of a tru64 compiler module
...
this doesn't do shared libs yet, but at least configure passes
2010-04-06 20:27:23 +10:00
Andrew Tridgell
a799f5995e
pidl-waf: better handling of the man page generation
...
we now avoid leaving build files in the source tree
2010-04-06 20:27:23 +10:00
Andrew Tridgell
0c294655f6
build: don't depend on the blib/ files in SAMBA_PIDL()
2010-04-06 20:27:23 +10:00
Andrew Tridgell
93a099c2de
build: loop until all object reductions are complete
...
we will issue a warning if any object duplication remains
2010-04-06 20:27:23 +10:00
Andrew Tridgell
470c14cbf3
build: make sure the directory exists in TOUCH_FILE()
2010-04-06 20:27:23 +10:00
Andrew Tridgell
31a88f266c
build: nicer display of command type for prototypes and generators
2010-04-06 20:27:22 +10:00
Andrew Tridgell
865e478e25
s4-waf: create a blank __init__.py in samba/external
...
needed for the external lib loader
2010-04-06 20:27:22 +10:00
Andrew Tridgell
9eb5cb784c
build: a bit more information for tracking --target deps
2010-04-06 20:27:22 +10:00
Andrew Tridgell
4fa9c3187d
s4-waf: updates for the new python installer from jelmer
2010-04-06 20:27:22 +10:00
Andrew Tridgell
ba64e236d5
build: much simpler and faster rpath install handler
...
This avoids creating additional task generators at build time, and
instead moves all the rpath logic into samba_install.py where it is
triggered by the install_lib and install_bin features
2010-04-06 20:27:22 +10:00
Andrew Tridgell
6dbf576e81
build: only link install targets at install time
2010-04-06 20:27:22 +10:00
Andrew Tridgell
f189af143b
build: enable nothreads workaround only with WAF_NOTHREADS=1
2010-04-06 20:27:21 +10:00
Andrew Tridgell
d06df81df2
build: fixed the dependencies of the install targets
...
we want the install targets to have identical calculated dependencies
to the build targets.
2010-04-06 20:27:21 +10:00
Andrew Tridgell
c0b67c6e7e
build: fixed the task counter when nothreads is used
2010-04-06 20:27:21 +10:00
Andrew Tridgell
e42a13d1d0
build: enable 'nothreads' when JOBS=1
...
this makes waf not use pthreads, which should fix the problems on AIX
and maybe on HPUX. It looks like process handling with Python on AIX
is broken if threads are used.
When JOBS=1 we don't need threads anyway.
2010-04-06 20:27:21 +10:00
Andrew Tridgell
fe2c1f1e7c
build: refactor the object reduction code
...
split it out into a separate function, and use the final_* attributes
instead of the direct_* and indirect_* attributes
2010-04-06 20:27:21 +10:00
Andrew Tridgell
9ac8899d87
build: sys.exit is better than raise here
...
using raise produces a screen full of stuff the user can't
understand. The message is much clearer with an exit
2010-04-06 20:27:21 +10:00
Andrew Tridgell
cd104102b9
build: don't define vars in config.h for CONFIG_PATH()
...
we don't want paths in config.h, as that just causes full rebuilds
when you change --prefix. Better to use cflags= on the right subsystem
2010-04-06 20:27:20 +10:00
Andrew Tridgell
30fa7da524
build: finally got LIBRARY<->LIBRARY reductions working
...
the install size is now 100M
2010-04-06 20:27:20 +10:00
Andrew Tridgell
3154733c33
build: add python library object reduction
...
This reduces the install size of s4 from 393M down to 132M on my
system. We had a lot of duplicate code in our python modules!
2010-04-06 20:27:20 +10:00
Andrew Tridgell
d39b44c989
build: python libs need to be built shared, regardless of --disable-shared
...
we don't have a way to load them otherwise
2010-04-06 20:27:19 +10:00
Andrew Tridgell
178b0d178d
build: add require_headers option to CHECK_BUNDLED_SYSTEM()
...
Useful to ensure the package has usable headers
2010-04-06 20:27:18 +10:00
Andrew Tridgell
b498378c8f
s4-waf: fixed some of the group ordering
...
We need to try to keep targets in the right groups
2010-04-06 20:27:18 +10:00
Andrew Tridgell
4854afcfa1
build: expand indirect includes to fix disable-shared build
2010-04-06 20:27:18 +10:00
Andrew Tridgell
354a76aeb3
build: fixed install target for systems with rpath disabled
2010-04-06 20:27:18 +10:00