2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2025-01-10 18:35:13 +01:00
Commit Graph

936 Commits

Author SHA1 Message Date
Krzysztof Kosiński
b0b7227ddd Rename the c_bgxlc tool to bgxlc.
Tool names starting with "c_" are reserved for special tools.
2014-01-25 21:34:28 +01:00
Krzysztof Kosiński
e95b150c56 Add simple compiler tools for clang and clang++ 2014-01-25 21:00:27 +01:00
Krzysztof Kosiński
30bdee769b Clean up some cruft in the compiler tools (icc, icpc, gxx) 2014-01-25 20:59:14 +01:00
Krzysztof Kosiński
82ab2fcaf5 Merge branch 'waf-1.8' of https://code.google.com/p/waf into waf-1.8 2014-01-25 20:35:48 +01:00
Krzysztof Kosiński
80b831a958 Improvements to conf.find_program()
1. When using a relative name passed through the environment,
search for it in PATH rather than using it as-is.
This is better, because PATH could have been changed.

2. Do not search for absolute paths in PATH.
2014-01-25 20:28:30 +01:00
Thomas Nagy
564c4c1a60 (keep the -1 in ansiterm for now) 2014-01-25 20:26:11 +01:00
Thomas Nagy
1b534ee8d2 ansiterm fix: use FillConsoleOutputCharacterW instead of FillConsoleOutputCharacterA 2014-01-25 19:59:51 +01:00
Krzysztof Kosiński
9a824a5649 Fix missing module import in compiler_c 2014-01-25 19:31:11 +01:00
Krzysztof Kosiński
c38a4fb4f0 More consistent error messages in the generic compiler tools 2014-01-25 19:28:55 +01:00
Krzysztof Kosiński
86b87413c8 Always return a value which evaluates to True when check_cfg succeeds. 2014-01-25 19:12:44 +01:00
Krzysztof Kosiński
ca60d62bed Modify the generic compiler tools to use the "Configuration options" group.
Add a mechanism to set the compiler precedence for D, for consistency.
2014-01-25 18:50:04 +01:00
Krzysztof Kosiński
cffbb89cb4 Move the initialization of default options from opt_parser
to OptionsContext, so that tools can add options to the default
option groups without using black magic.
2014-01-25 18:28:14 +01:00
Krzysztof Kosiński
f386392fb2 Change the option group for glib2 schema dir to be the same
as the one for gnu_dirs installation directories.
2014-01-25 18:24:51 +01:00
Krzysztof Kosiński
526abea553 Improve the directory descriptions in gnu_dirs 2014-01-25 18:23:07 +01:00
Thomas Nagy
c395bffed8 Workaround for Issue 1401 - the progress bar cannot display the last character on windows 2014-01-25 02:02:28 +01:00
Thomas Nagy
d413616400 The progress bar should always appear on stderr 2014-01-23 22:22:15 +01:00
Thomas Nagy
2943824c51 Issue 1399 - invalid cast in syms.py 2014-01-23 21:19:57 +01:00
Thomas Nagy
3498ef6773 info to stdout, warning and errors to stderr 2014-01-19 21:28:17 +01:00
Thomas Nagy
fa8fed39a0
'x use y use AAA' will add the AAA flags to x, but 'x use y uselib AAA' will not 2014-01-18 01:46:53 +01:00
Thomas Nagy
fbb7a0e720
Merge from Jerome's branch 2014-01-16 02:03:53 +01:00
Matt Fischer
2f2866a4cd msvs: Added support for MSVS 2012
With the addition of one new field, the project files generated by
the msvs command can be opened by 2012 as well as 2010.

Change-Id: I27c3a04ec156029f7a6690b27cf27013f5816d2f

Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2014-01-14 20:26:09 +01:00
Thomas Nagy
9f7ceb0e91 Issue 1395 2014-01-14 20:11:11 +01:00
Thomas Nagy
3581b89fbb
Enable custom regexp in bld(features='subst', re_m4=...) 2014-01-14 19:58:45 +01:00
Thomas Nagy
a29f775851 Merge from Jerome's branch 2014-01-14 02:31:08 +01:00
Thomas Nagy
b11454526d Fixed the KeyError for multiple dependencies on the same task 2014-01-12 21:19:49 +01:00
Thomas Nagy
010b944062 typo 2014-01-12 19:49:31 +01:00
Jérôme Carretero
0e7df22ad5 Utils: check_exe() to return an absolute path so it can be called
Because there cases where subprocess.Popen'ing the [result] can fail.
2014-01-08 01:58:11 -05:00
Thomas Nagy
12b1212f4d
command-line options override environment variables, and not the other way around 2014-01-06 15:00:45 +01:00
Thomas Nagy
0cc696faa3
Invalid parameter type c_int passed to FillConsoleOutputCharacterA 2014-01-06 01:14:21 +01:00
Thomas Nagy
5c85d5907d
FillConsoleOutputCharacterA seems to be requiring a c_char, not a c_wchar 2014-01-06 01:01:10 +01:00
Thomas Nagy
001488b8d3
Signatures for the rest of ctype functions 2014-01-06 00:54:35 +01:00
Jérôme Carretero
33a60e79e7 treecleaner: 'in [...]' replaced by 'in (...)' where appropriate 2014-01-05 16:27:06 -05:00
Thomas Nagy
d01f7f36e0
Stop creating range objects in ansiterm 2014-01-05 21:47:21 +01:00
Thomas Nagy
8d8ba52810
Removed the workaround in ansiterm.py 2014-01-05 21:39:39 +01:00
Thomas Nagy
e01695d536
Trying to get rid of the invalid handle errors in ansiterm 2014-01-05 21:31:54 +01:00
Thomas Nagy
107ebc9251
Trying to get rid of the invalid handle errors in ansiterm 2014-01-05 21:30:52 +01:00
Thomas Nagy
ece779b5ed
Temporary workaround for ctype errors (invalid handle is returned sometimes) 2014-01-05 20:53:13 +01:00
Thomas Nagy
68acc6a2b9
Return the column count on windows 2014-01-05 11:23:49 +01:00
Thomas Nagy
f8b24e70a9
Forgot to change always/never by yes/no in Options.py 2014-01-05 10:54:18 +01:00
Thomas Nagy
85bfd3eded
Minor changes in the logging system 2014-01-05 10:51:24 +01:00
Thomas Nagy
3deaeb241a
it turns out that writeconsole in ansiterm.py is not needed 2014-01-05 10:18:57 +01:00
Thomas Nagy
4107a0e29d
New option --color to control the coloring, and split the coloring from the output synchronization code 2014-01-05 01:39:32 +01:00
Thomas Nagy
fa5f149775
removed the is_vista verification, write the text by chunks and default to the default stream writer when not a tty 2014-01-04 23:20:17 +01:00
Thomas Nagy
526620f16d
Cleanup in ansiterm.py 2014-01-04 17:20:19 +01:00
Thomas Nagy
4ce22a6fa2
Typo 2014-01-04 12:15:21 +01:00
Thomas Nagy
1b34dadd88
Re-added Parallel.error_handler 2014-01-04 11:04:59 +01:00
Thomas Nagy
8ae91879ce
Revert 2f7d561cb0 - there are regressions and the performance improvement is in Pypy only 2014-01-03 22:32:58 +01:00
Thomas Nagy
5032695f26
Simplified the error handling on task status in Runner.py (API change) 2014-01-03 18:22:34 +01:00
Jérôme Carretero
f462fd9f31 extras: clang_compilation_database: python3 fixes 2014-01-02 18:26:10 -05:00
Thomas Nagy
f098a0dde4
make mem_reducer.py ready for python 3 2014-01-02 23:56:31 +01:00
Thomas Nagy
2f7d561cb0
Runtime improvements in Runner.py by using deques by default (python >= 2.4) 2014-01-02 23:35:17 +01:00
Thomas Nagy
5fc835639e
Encapsulate task skipping in a method to help with the shrinking sets feature 2014-01-02 20:21:45 +01:00
Thomas Nagy
44720924b6 case when c classes are brough by msvc but no c compiler is required, demos/c++/wscript on windows 2014-01-02 18:12:35 +01:00
Jérôme Carretero
a99ddb808f extras: gccdeps: fix for CXX_NAME (but some issues remain) 2014-01-02 06:24:52 -05:00
Jérôme Carretero
6546e34176 Tools: ar: support for ARFLAGS environment variable
For instance, to make deterministic archives::

ARFLAGS=rcsD waf configure
2014-01-02 06:24:39 -05:00
Thomas Nagy
80bc0a65ce
moved the TINY_STEP variable to the module level 2014-01-01 19:59:59 +01:00
Thomas Nagy
118bbfbf4d let ansiterm write to the standard error on windows 2014-01-01 15:11:32 +01:00
Thomas Nagy
4445b7e0b6 Issue 1391 xrange 2013-12-24 15:32:09 +01:00
Thomas Nagy
29252511d0 Issue 1390 - conf.check(lib='several libs') 2013-12-21 17:29:06 +01:00
Thomas Nagy
69f73f9625 Issue 1388 2013-12-20 18:16:41 +01:00
Thomas Nagy
a34eda4e8f Issue 1389 fc scanner improvements 2013-12-20 18:02:03 +01:00
Thomas Nagy
d2fcc7b7be special case of files created in the source directory in combination with update_outputs 2013-12-18 23:21:34 +01:00
Thomas Nagy
2048f0fb89 another optimization spot for the shrinking sets system 2013-12-15 17:21:02 +01:00
Thomas Nagy
f9536abbb8 shrinking sets for the memory reducer 2013-12-15 12:47:12 +01:00
Thomas Nagy
a4b03b0fd6 removed the set copy to enable faster iterations 2013-12-15 12:19:01 +01:00
Thomas Nagy
6d05e237d2 Memory usage reducer, based on a post to the mailing-list by Christian Nilsendahl 2013-12-12 15:26:56 +01:00
Thomas Nagy
c09de54b82 Issue 1384 - pickle changes in Python 3.4 2013-12-07 20:17:43 +01:00
Thomas Nagy
6fb96036f0 Issue 1382, hash randomization on python 3.3 causes reconfigurations 2013-11-28 20:00:50 +01:00
Thomas Nagy
16c0bc9d2b problem when merging qt5.py (no run method) 2013-11-24 18:24:03 +01:00
Thomas Nagy
5664664a1a regression in qt4.py when adding qt5.py 2013-11-24 17:58:50 +01:00
Thomas Nagy
cf75dc3308 qt5 tool 2013-11-24 14:19:28 +01:00
Thomas Nagy
bccf38b50a Issue 1381 - moc file caching 2013-11-23 12:50:39 +01:00
Thomas Nagy
c7c299ddf0 unused variable 2013-11-17 13:24:14 +01:00
Thomas Nagy
2226ee472f notes 2013-11-17 01:09:04 +01:00
Thomas Nagy
c521b1d076 Issue 1379, nasm trailing slashes 2013-11-16 20:13:41 +01:00
Thomas Nagy
346601b103 handle empty defines when pasting tokens 2013-11-15 23:24:51 +01:00
Thomas Nagy
797b935305 Issue 1377 2013-11-15 18:20:25 +01:00
Thomas Nagy
fb022f4787 do not convert to png anymore, and added a templating engine to replace the string appending 2013-11-14 22:44:12 +01:00
Thomas Nagy
4953daf3d4 Issue 1376: Hide commands starting by _ 2013-11-12 21:25:09 +01:00
Thomas Nagy
7b6c4e2c9d inconsistent tabs/spaces 2013-11-10 19:53:56 +01:00
Thomas Nagy
cc6de0b989 Guess the console columns in the general case by trying stderr and then stdout 2013-11-10 06:02:04 +01:00
Thomas Nagy
ecc1f63a63 moved imports to the top 2013-11-10 05:32:50 +01:00
Thomas Nagy
6055744a5f Use explicit imports in ansiterm.py 2013-11-10 05:27:18 +01:00
Thomas Nagy
8571c15a1b missing change 2013-11-08 22:46:51 +01:00
Thomas Nagy
dcd6184d3f Issue 1372 version detection for old and buggy sun compilers 2013-11-08 22:45:34 +01:00
Thomas Nagy
067ade9a40 Issue 1375, doxygen and paths containing spaces 2013-11-07 23:11:57 +01:00
Thomas Nagy
de94ba37c9 enable dist/distcheck on windows, Issue 1373 2013-11-07 22:07:05 +01:00
Thomas Nagy
3884124886 Issue 1371 2013-11-03 00:14:04 +01:00
Thomas Nagy
2f43179c39 1.7 -> 1.8 2013-10-28 21:32:25 +01:00
Thomas Nagy
feaad909d5 Missing folders for Issue 1325 2013-10-28 21:25:58 +01:00
Thomas Nagy
12cade1ec8 typo 2013-10-28 21:05:57 +01:00
Thomas Nagy
ff820ccf49 Extract rpath flags into use variables 2013-10-27 14:56:04 +01:00
Thomas Nagy
ed661ed41c have distclean remove the waf cache on windows 2013-10-27 14:01:38 +01:00
Thomas Nagy
b13e98f1e4 Match file extensions in the order of declaration 2013-10-27 12:42:41 +01:00
Thomas Nagy
8f24d28534 recompile swig files if the swig version changes 2013-10-27 10:17:38 +01:00
Matt Fischer
f381bfd901 syms.py: Fix dep_nodes manipulation
Fixed a line in syms.py to append to the dep_nodes list instead of
forcibly overwriting it.

Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2013-10-25 00:02:48 +02:00
Thomas Nagy
84c9aa9a04 another regression caused by find_program changes 2013-10-23 00:10:28 +02:00
Thomas Nagy
50737b138a Python 3.4 now provides non-inheritable file handles by default 2013-10-21 20:58:00 +02:00
Thomas Nagy
0f0f36b040 Issue 1367, python 2.4 and boost.py 2013-10-20 19:39:28 +02:00
Thomas Nagy
b0ec707975 Issue 1366, swig defines 2013-10-17 21:37:30 +02:00
7f2fe42579 implicit cython dependency pyx->pxd, Issue 1363 2013-10-15 00:42:13 +02:00
Dariusz Pelowski
53ab568fe5 fix for missing package name argument for 'pkg-config' call during fetching custom variables
Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2013-10-15 00:25:26 +02:00
Thomas Nagy
455e22838a Issue 1361, syms.py and python3 2013-09-30 17:56:48 +02:00
Thomas Nagy
90b491e834 moved the parser function definition out of the while loop 2013-09-30 00:05:36 +02:00
Thomas Nagy
9ec230fb4d cleanup 2013-09-29 23:45:36 +02:00
Thomas Nagy
54d4ff7ce0 'is not None' is unnecessary 2013-09-28 23:55:08 +02:00
Nate Rosenblum
87403f4285 Allow doxygen parameters to be passed to task
The doxygen demo program suggests that doxy parameters can be passed
as arguments to the task, e.g.,

   bld(features="doxygen", doxyfile="doxy.conf",
        pars={'INPUT': bld.path.ant_glob("**/*.c")})

Previously, these inputs were not passed from the task generator
to the task, and only the parameters read from the doxy configuration
file were used. This patch retrieves parameters (if any) from the task
generator and uses them to override those in the doxy file,
allowing more flexible overriding for individual build targets.

Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2013-09-28 23:54:55 +02:00
Jérôme Carretero
e7425bc2ba extras: rst: fix typo 2013-09-24 00:59:16 -04:00
Thomas Nagy
9838d0bb08 New cppckeck tool from Michel Mooij 2013-09-22 17:41:17 +02:00
Jérôme Carretero
dcea4231ef extras: rst: also build rst2html from the folder in which the target is built 2013-09-20 13:32:03 -04:00
Jérôme Carretero
b170b314ad extras: rst: shorter rst2*tex code 2013-09-18 23:57:05 -04:00
Jérôme Carretero
4e205c4487 extras: rst: add rst2s5 support via extension of rst2html 2013-09-18 23:25:09 -04:00
Jérôme Carretero
7a20f2fd44 rst: rst2pdf fixup for includes in source and build folder 2013-09-18 02:15:54 -04:00
Jérôme Carretero
952c5b1ec7 extras: rst: fix another typo and add rst2xetex support 2013-09-18 02:06:01 -04:00
Jérôme Carretero
27afbfe600 extras: rst: fix "typo" 2013-09-18 02:01:09 -04:00
Thomas Nagy
d693385073 merged the openbsd shared library installation fixes from waf 1.7 2013-09-17 00:26:16 +02:00
Jérôme Carretero
57f6a272e2 Tools: tex: note on target bypass 2013-09-14 00:34:13 -04:00
Jérôme Carretero
8a9b3825a2 Tools: msvc: fix regression in msvc MT tool call (issue #1357)
Yeah, env['MT'] is a list.
2013-09-12 18:50:06 -04:00
Thomas Nagy
e07529ad89 Issue 1348, gdc detection for gdc-msys 2013-09-11 07:52:27 +02:00
Thomas Nagy
487cc43df2 Issue 1354, clang compilation databases 2013-09-11 07:50:25 +02:00
Thomas Nagy
dedafdfa81 Disabled the pickle gc optimization by default (computers are fast enough now, and it can be reenabled if necessary) 2013-09-10 21:28:25 +02:00
Jérôme Carretero
f81e6c5499 extras: rst: little fixes 2013-09-09 01:01:57 -04:00
Thomas Nagy
fe1bbf536f Issue 1356 icl detection with python 3 2013-09-07 13:27:13 -04:00
Jérôme Carretero
00946bacdb extras: protoc: document protoc trickiness
I tried to quickly go through the protoc source to find how the include
paths are interpreted, but I'm sleepy now.
2013-09-05 01:10:20 -04:00
Jérôme Carretero
bf5ce8b30c extras: protoc: add dep scanner 2013-09-05 00:48:29 -04:00
Jérôme Carretero
12b5c2f2a4 TaskGen: create_task: allow passing attributes to task instance via kw
use case: some programs want to run in specific folders
2013-09-05 00:48:00 -04:00
Jérôme Carretero
863662fa65 extras: rst: fix typo 2013-09-05 00:18:15 -04:00
Jérôme Carretero
150d1ed0b5 extras: ocaml: env.OCAMLC is a list 2013-09-05 00:16:50 -04:00
Jérôme Carretero
8076e8d52e Tools: c_config: one more fix for the path, which can also be a string... 2013-09-05 00:12:45 -04:00
Jérôme Carretero
89358e70d4 Tools: flex: env.FLEX is a list 2013-09-05 00:08:00 -04:00
Jérôme Carretero
da5d43d418 Tools: perl: env.PERL is a list (+ simplifications) 2013-09-05 00:05:04 -04:00
Jérôme Carretero
5b97eefb66 Tools: vala: env.VALAC is a list 2013-09-04 23:53:30 -04:00
Jérôme Carretero
85e7df4ea1 Tools: c_config: fix mistake in previous commit 2013-09-04 23:47:47 -04:00
Jérôme Carretero
95679a89bb Tools: ruby: env.RUBY is a list 2013-09-04 23:36:21 -04:00
Jérôme Carretero
14ee893d20 Tools: qt4: command paths are lists already 2013-09-04 23:35:58 -04:00
Jérôme Carretero
8d37f79ea2 Tools: c_config: pkg-config is indeed a list of strings 2013-09-04 23:21:19 -04:00
Jérôme Carretero
d6dd3fd8ab Tools: unit test: fix indentation 2013-09-04 23:20:51 -04:00
Jérôme Carretero
dc75919559 extras: swig: env.SWIG is a list now 2013-09-04 23:15:12 -04:00
Jérôme Carretero
1f4c66f0c7 Tools: ruby: env.RUBY is a list 2013-09-04 23:13:34 -04:00
Jérôme Carretero
5064fd92ef always use the convention that commands are lists, remove find_perl_program, add interpreter 2013-09-04 23:10:10 -04:00
Jérôme Carretero
1fad148b2c Tools: python: allow passing PYTHON in environment 2013-09-04 00:35:49 -04:00
Thomas Nagy
e87782e58b removed Node.bld_base, used only once 2013-09-01 21:46:43 +02:00
Thomas Nagy
a1b8eb3831 Issue 1352, changed the default name for qt resources 2013-09-01 21:29:34 +02:00
Jérôme Carretero
24cc97f42e Utils: remove str_to_dict 2013-08-30 10:23:10 -04:00
Jérôme Carretero
2e08d80fce Utils: shave a few bytes from Timer 2013-08-30 01:10:29 -04:00
Thomas Nagy
f14314faa2 Mention that makeglossaries is a program when raising the error 2013-08-27 12:11:50 +02:00
Joe Steeve
4cbee2c4ed Issue 1342 Tools.tex, run 'makeglossaries' if 'glossaries' is used
Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2013-08-27 11:54:16 +02:00
Jérôme Carretero
a67c8c9017 fix shlib vnum for OpenBSD 2013-08-26 16:09:19 -04:00
Jérôme Carretero
ccec98efc4 tools: tex: replace warnings by info as they are not warnings at all 2013-08-25 20:09:42 -04:00
Jérôme Carretero
459f04cbee extras: rst: fix scan regression 2013-08-25 18:33:53 -04:00
Jérôme Carretero
7f571e0a28 tools: tex: allow to pass a Node as manual dep 2013-08-25 15:37:11 -04:00
Jérôme Carretero
f9944a5ec7 rst: make parser overridable 2013-08-25 15:35:33 -04:00
Jérôme Carretero
e62d3771e1 extras: rst: add basic rst2latex support 2013-08-24 21:26:37 -04:00
Jérôme Carretero
f982e0461a tools: tex: scan (local) style files too 2013-08-24 20:24:02 -04:00
Jérôme Carretero
2b309cfb79 extras: rst: use to_list on rst options, use -o switch to make older rst2pdf happy 2013-08-21 01:21:17 -04:00
Jérôme Carretero
669094a51f extras: rst: add install_path processing (defaults to not installing) 2013-08-20 13:59:45 -04:00
Jérôme Carretero
24abf4f08c extras: rst: pimp the scanner
Changes:
- update the include regexp to support the figure directive, and
  substitution targets.
- warn on missing files that would be included
2013-08-18 23:29:50 -04:00
Jérôme Carretero
5e16b5dbbc extras: add rst tool, for reStructuredText processing 2013-08-18 17:17:00 -04:00
Alexander Afanasyev
8e50cda867 extras/doxygen: Adding support for RECURSIVE and making detection non-mandatory by default
added: support for RECURSIVE, as well as for included and excluded files

changed: detection of doxygen is non-mandatory by default. If it is
         desired that doxygen is mandatory, user is expected to check
         bld|conf.env.DOXYGEN and bld|conf.env.TAR variables

Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2013-08-18 21:31:22 +02:00
Thomas Nagy
135fed0830 Issue 1334 2013-08-17 20:24:21 +02:00
Thomas Nagy
20ae777428 disabled the check_exe validation by default and enabled invalid name detection 2013-08-17 18:19:10 +02:00
Alexander Afanasyev
9b75b843ae Tools/python: Extending python tool
add: show more command-line arguments to control which
     python is used and where py/pyext files should be installed.
     The new options are in addition to the existing PYTHON, PYTHONDIR,
     and PYTHONARCHDIR environment variable, providing the help messages
     to the user, so it can easily change parameters without second-guessing
     of what are they.

     Environmental parameters override command line arguments (is it right?)

updated: An extension to Configure.find_command to allow specification
         of the name for the searched command (using `msg` option). This is
         helpful when the search command is a huge list, as in the case of
         python's python-config case.

updated: Do not specify prefix for `get_python_lib`, since this way it
         can result in a wrong PYTHONDIR and PYTHONARCHDIR on certain platforms
         (e.g., OSX)

updated: Changing logic with byte-compilation of python files. Mow, files are
         compiled during the build stage, not install stage.  During the
         install stage files are simply copied to the requested
         location.

updated: If there is an error in python source code, byte-compilation
         phase will raise an exception and abort building process.

Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2013-08-17 18:15:05 +02:00
Jérôme Carretero
b32ab8c7c5 utils: fix "typo" in check_exe()
Yeah, I was returning the directory name in some cases...
2013-08-14 17:57:26 -04:00
Thomas Nagy
19e624b5f4 Issue 1345 multibib support in tex/latex 2013-08-14 18:37:16 +02:00
Jérôme Carretero
8c2c8f1615 Context: simplify waf tool loading error handling
- Assuming that an exception could have been raised, the worst thing
  we do is presenting the wrong exception to the user.
- Actually, the exception is more precise now:

  - if we want to load('pouet'), the error will always be::

      ``No module named pouet``.

  - if we want to load('pouet.coin') the error will always be::

      ``No module named pouet.coin``

    Before it could be either::

      ``No module named pouet.coin``

    or::

      ``No module named coin``
2013-08-14 11:31:44 -04:00
Jérôme Carretero
5db6202ce1 context: "fix" waf tool loading with python 3.3 2013-08-14 11:20:01 -04:00
Jérôme Carretero
f3f9e9f99d provide a clearer error message in case Popen'ed executable is not executable
subprocess.Popen() will give a proper error message if the first
argument is an absolute path, but if it's a bare command name, it will
complain with a "Permission Denied" error.

This change provides a clear error every time.

If speed is proven to have an impact on this code, we could add
the "Logs.verbose > 0" precondition or add memoization.
2013-08-12 20:00:47 -04:00
Jerome Carretero
a40dbe073b waf-zip: zip-packed waf
Ability to use a waflib.zip file with waf-zip entry point

Changes:

- created waf-zip entry point
- waflib.zip can created by doing::

     zip waflib -9 waflib/*.py waflib/Tools/*.py waflib/extras/*.py

- the wscript also builds waflib.zip
- allow selecting which core tools to use (saves 31k for C/C++ only)
  By default, everything is included.
- altered module loading functions to allow loading modules from a zip file.
2013-08-12 19:34:43 -04:00
Thomas Nagy
30c10e85d5 Issue 1343, regression in qt4 support after some refactoring 2013-08-12 07:55:01 +02:00
Jerome Carretero
3c00a614d7 Revert "Issue 1334 - let FOO_ST:FOO return empty when FOO_ST is empty/undefined"
This reverts commit d4d33bba2a.

It breaks demos/c
2013-07-20 14:57:20 -04:00
Jerome Carretero
edf26656ab Tools: ccroot: fix typo introduced in e5cd63a6 2013-07-20 14:52:19 -04:00
Thomas Nagy
007acd87cf Issue 1335 2013-07-16 21:10:32 +02:00
Thomas Nagy
e9fd0660dc Undefined 'logger' variable 2013-07-16 21:00:02 +02:00
Matt Hoosier
1aad65b886 Add 'msvcdeps' tool
This tool operates similarly to 'gccdeps' by offloading the
flattening of the #include dependency tree to the compiler.

Change-Id: I5e58e8ca838f3d3dc65efa6ce4abf161110632ea

Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2013-07-16 20:57:06 +02:00
Thomas Nagy
f588f95a27 Issue 1339 detect the sun compiler version number 2013-07-13 19:06:08 +02:00
Thomas Nagy
d4d33bba2a Issue 1334 - let FOO_ST:FOO return empty when FOO_ST is empty/undefined 2013-07-08 19:37:42 +02:00
Thomas Nagy
a1d35c0a69 simplification in syms.py 2013-06-27 22:22:25 +02:00
Matt Hoosier
24983316d6 syms.py: allow environment to supply paths to dumpbin and nm
This is required when doing cross-compilation.

Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2013-06-27 22:18:59 +02:00
Thomas Nagy
5ea64b56ac Issue 1329 C# response file flag quoting issues 2013-06-21 18:22:43 +02:00
Thomas Nagy
3f78d2223a Issue 1328 forgot to use the maxdepth argument in ant_glob() 2013-06-21 18:16:37 +02:00
Thomas Nagy
58fe611bb9 Issue 1327 - typo 2013-06-09 09:47:39 +02:00
Thomas Nagy
319289ec3c Issue 1223 2013-06-09 09:47:18 +02:00
Thomas Nagy
3a285c62b1 Issue 1327 2013-06-09 09:47:01 +02:00
Thomas Nagy
b241462a2a Issue 1327 2013-06-09 09:46:44 +02:00
Thomas Nagy
1e2e7f6074 Issue 1323 2013-06-01 03:53:06 +02:00
Thomas Nagy
4e8fda5644 Fix for systems without threading - Issue 1323
Conflicts:

	ChangeLog
2013-05-30 21:18:26 +02:00
Thomas Nagy
144f4a4d25 Issue 1321, more accurate task count for qt4 and build groups 2013-05-29 22:36:07 +02:00
Thomas Nagy
fa5ed99a21 Removed the unused env parameter from conf.write_config_header() 2013-05-26 21:48:26 +02:00
Thomas Nagy
e8eafe4b9b removed Node.search (use Node.search_node) and an old compiler_cc references 2013-05-26 21:43:27 +02:00
Thomas Nagy
5c6d626048 removed the cache from the task level, it usually degrades performance and is better implemented on the compiler level 2013-05-26 10:14:49 +02:00
Thomas Nagy
e5cd63a670 Issue 1320, do not propagate external libraries uselib vars 2013-05-26 09:58:11 +02:00
Thomas Nagy
5b3dc2c5ab apidoc fixes 2013-05-25 22:49:22 +02:00
Thomas Nagy
5906f37447 Simple system for logging the outputs
Add the following to your wscript file:

def init(ctx):
    ctx.load('build_logs')
2013-05-25 17:39:41 +02:00
Thomas Nagy
856db9cc90 added export_includes/export_defines parameters to read_shlib/read_stlib 2013-05-25 15:17:25 +02:00
Thomas Nagy
c9fa0b75b5 preparation for waf 1.7.11 2013-05-25 12:00:37 +02:00
Thomas Nagy
760d0f875c Issue 1319 Reduce the amount of paths for the unit test execution 2013-05-19 08:49:40 +02:00
Thomas Nagy
c4685a8cb8 Issue 1310 use INCLUDE/LIB environment variables to detect boost libs on windows 2013-05-19 08:36:00 +02:00
Thomas Nagy
6d570f08bd use os.remove instead of os.unlink for consistency 2013-05-18 19:51:45 +02:00
Thomas Nagy
426637d10a Prevent unnecessary rebuilds in the qt processing
A list was changed during iteration, causing an unnecessary dependency to be
kept, and triggering subsequent rebuilds. This only occured with multiple .moc included.
2013-05-18 19:31:56 +02:00
Thomas Nagy
8267e7ae97 Issue 1318 reuse moc tasks 2013-05-18 14:08:41 +02:00
Thomas Nagy
29f80f4aeb Issue 1317 append to moc flags 2013-05-18 09:48:27 +02:00
Thomas Nagy
174b01bba9 Issue 1313 extra check_dir call causing uninstall failures 2013-05-16 08:33:05 +02:00
Thomas Nagy
621ffa83ed Issue 1315 QtDesigner library detection in qt4.py 2013-05-16 08:22:16 +02:00
yngwe
031e94ffa7 allow c_config to recognize clang as gcc 2013-05-13 20:07:25 +02:00
Thomas Nagy
7af8b2f268 slightly faster regexp for replacing c/c++ comments 2013-05-09 11:01:46 +02:00
Thomas Nagy
b0bae3baa1 Merge branch 'master' of http://code.google.com/p/waf 2013-05-08 23:19:10 +02:00
Thomas Nagy
3934918217 Issue 1253 2013-05-08 23:18:53 +02:00
Thomas Nagy
57f0df2c8a Remove the requirement for opt.load('qt4') 2013-05-08 16:51:14 +02:00
Thomas Nagy
1da291a1e6 Force a fixed order in the link task inputs to prevent unnecessary rebuilds 2013-05-07 17:49:59 +02:00
Thomas Nagy
69f5f71120 Removed the annoying assert in msvs.py 2013-05-07 10:08:49 +02:00
Thomas Nagy
417b2c53cd deployment extension in msvs projects 2013-05-07 08:53:18 +02:00
Thomas Nagy
57eaf369c5 extend the subst task to support other copy modes such as hard linking 2013-05-05 22:54:19 +02:00
Thomas Nagy
d151c86ad1 Issue 1262 2013-05-04 09:24:38 +02:00
Thomas Nagy
43caa85c5a Issue 1272 2013-05-01 10:55:26 +02:00
Alexander Afanasyev
b059ce784d Correcting Darwin compilation
gcc, gxx, and fc_config for Darwin platform were specifying
-compatibility_version and -current_version compilation flags.  These
flags are actually are link flags and generate warnings by clang
compiler.

Also, these flags were specified in non-standard way, which was
confusing clang compiler.

Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2013-04-28 10:11:17 +02:00
Alexander Afanasyev
522e3fb43a protoc: small correction
Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2013-04-28 10:08:42 +02:00
Thomas Nagy
01ef0ed313 Issue 1297 2013-04-28 00:15:32 +02:00
Thomas Nagy
1caaec653a Issue 1299 2013-04-27 09:19:16 +02:00
Thomas Nagy
230d35c9c3 Issue 1300 2013-04-27 02:10:15 +02:00
Thomas Nagy
345f6bc99f Issue 1278 2013-04-16 17:19:30 +02:00
Caitlin Potter
1c562a034a Explicitly execute python binary (sys.executable) in distcheck
Signed-off-by: Caitlin Potter <snowball@defpixel.com>
Signed-off-by: Thomas Nagy <tnagy1024@gmail.com>
2013-04-15 14:52:15 +02:00
Stian Selnes
336c3f2e3f msvc: fix check of intel composer version with visual studio 2010
Signed-off-by: Thomas Nagy <tnagy1024@gmail.com>
2013-04-02 17:04:44 +02:00
Thomas Nagy
c3cbd4c353 New version 1.7.10 2013-03-22 15:47:41 +01:00
Thomas Nagy
7eef6588af Use Utils.readf/Utils.writef whenever possible 2013-03-14 13:45:10 +01:00
Oliver Sauder
813a1aff14 Exclude auto-generated .intlcache
Signed-off-by: Thomas Nagy <tnagy1024@gmail.com>
2013-03-13 11:52:08 +01:00
Thomas Nagy
77dc8ea368 Issue 1266 2013-03-12 14:10:12 +01:00
Thomas Nagy
0f64aea102 Issue 1261 2013-03-04 17:13:31 +01:00
yngwe
7aab452acb Merge branch 'master' of https://code.google.com/p/waf 2013-02-17 15:11:25 +01:00
Thomas Nagy
526fe68773 Issue 1231 2013-02-17 14:29:41 +01:00
yngwe
46f51a3925 Added support for Windows Phone 8 compilers; added feature support for Windows Desktop Application and Windows Phone Application compilation 2013-02-17 14:09:32 +01:00
Thomas Nagy
582a1a59f1 Issue 1255 2013-02-15 10:35:20 +01:00
Thomas Nagy
a308c89c35 Issue 1180 2013-02-10 11:45:35 +01:00
Thomas Nagy
89ae826782 New codelite plugin 2013-02-02 11:06:20 +01:00
Thomas Nagy
fd1305af1d Issue 1248 2013-02-01 23:52:13 +01:00
Thomas Nagy
ba984b57b7 Issue 1248 2013-02-01 23:45:30 +01:00
Thomas Nagy
bf27d10fd5 Issue 982 2013-02-01 23:01:53 +01:00
Thomas Nagy
17aff345ea New release 1.7.9 2013-01-13 11:51:07 +01:00
Harald Klimach
2d29dfc528 Issue 1245 2013-01-08 19:45:14 +01:00
Daniel Welty
9e92489dbc gccdeps: Cache path to node lookup
The find_resource call is slow, so caching the resulting Node object
gives a significant speed up, about twice as fast.

Issue: 1244

Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2013-01-04 18:24:40 +01:00
Thomas Nagy
99919342f0 Merge branch 'master' of https://code.google.com/p/waf 2013-01-04 02:28:51 +01:00
Thomas Nagy
67b8e27c34 Issue 1237 2013-01-04 02:27:42 +01:00
Matt Hoosier
3b699e3fed Make msvc.py behave itself when other toolchains are loaded
Chain down to the pre-existing Task.exec_command() implementation if
task.env.CC_NAME indicates that the current taskgen isn't building using
Microsoft tools.

Attempt #2. The previous version (9b443a4e, reverted in 148598a8) was
found in Issue 1243 to lead to unusual infinite regress if the
monkeypatching code executed more than once in a Python interpreter
lifetime. This version uses dynamic subclassing to avoid that problem.

Issue 1237.

Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2013-01-04 02:11:26 +01:00
Kevin Ollivier
13ad17f96c Add support for parsing more MSVC command line options to check_cfg. 2013-01-01 12:13:23 -08:00
Thomas Nagy
148598a815 reverted the changes from #1212 and #1237 2012-12-28 21:58:37 +01:00
Thomas Nagy
ed52334a57 Issue 1232 2012-12-19 02:51:33 +01:00
Matt Clarkson
6e87e321bf Change the apply_vnum installation tasks to be created only if there is already an install_task. It checked to see if self.bld.is_install was not False but that can lead to exceptions being thrown when a shared library is created but install_path=None
Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2012-12-19 02:04:10 +01:00
Thomas Nagy
0e243e4212 New release 1.7.8 2012-12-17 18:08:43 +01:00
Matt Clarkson
8c566d1a42 Fixed up a bug in the gather_intel_composer_versions that results in an exception being thrown on windows systems with no intel composer versions installed. Raise in issue 1239
Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2012-12-17 18:07:25 +01:00
Thomas Nagy
f42b9410c2 documentation update, and preparation for the release 2012-12-16 17:18:10 +01:00
Thomas Nagy
c0575b8528 New release 1.7.7 2012-12-16 17:08:08 +01:00
Thomas Nagy
59363114c3 Issue 1232 2012-12-16 16:58:55 +01:00
Thomas Nagy
083b6e138e Issue 1234 2012-12-15 00:32:20 +01:00
Thomas Nagy
fc9d6f4200 Issue 1222 2012-12-14 23:43:28 +01:00
Matt Hoosier
9b443a4e88 Make msvc.py behave itself when other toolchains are loaded
Chain down to the pre-existing Task.exec_command() implementation
if task.env.CC_NAME indicates that the current taskgen isn't building
using Microsoft tools.

Issue 1237.

Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2012-12-14 22:20:22 +01:00
Thomas Nagy
4b4aaf7dc5 Issue 1236 2012-12-12 20:09:40 +01:00
Thomas Nagy
2da7b2f549 missing r for strings containing \ 2012-12-10 19:32:25 +01:00
Matt Clarkson
c7529b3a09 Added a warning message about the intel compilervars_arch.bat file because it only searches for \IDE\VSWinExpress.exe to determine if VS Express is installed. However, Microsoft have changed up VS2012 with differnt SKUs that install with different executable names. I have filed this on the Intel forums at http://software.intel.com/en-us/forums/topic/328487 and hoping for a fix in 2013.03 C++ composer. In the meantime it checks the compilervars_arch.bat to see if the VS2012 express SKU it is searching for is not installed and prints a warning, only once, about patching the batch script. Without the patch the intel compiler cannot be found for command line processing with any Visual Studio Express SKU other than the one for Windows 8
Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2012-12-10 19:29:02 +01:00
Matt Clarkson
3723b8bdbe Added a new function gather_intel_composer_versions and fixed up get_msvc_version so that it correctly strips the output of intel batch files. Also added new supported compilers too the comments at the top of the file as I have tested the configure and it finds VS2012, Intel 13 and WSDK 7.1 compilers
Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2012-12-10 19:27:39 +01:00
Thomas Nagy
597e4a4f4c import libraries should go to LIBDIR along with the 2012-12-10 19:23:34 +01:00
Thomas Nagy
a71ca54558 Issue 1232 2012-12-09 05:29:59 +01:00
Thomas Nagy
072edeb396 possible fix for python 3 IO issues on windows 2012-12-05 01:23:52 +01:00
Thomas Nagy
e9d5d29ce1 missing change 2012-12-05 00:40:50 +01:00
Thomas Nagy
f824ab8481 Issue 1230 2012-12-05 00:38:58 +01:00
Thomas Nagy
79e2901e4e typo in the API documentation 2012-12-01 17:36:53 +01:00
Thomas Nagy
df67c02a0e simple tool for unity builds 2012-11-30 21:21:22 +01:00
Thomas Nagy
e21ec6a3fe Merge branch 'master' of https://code.google.com/p/waf 2012-11-28 01:02:20 +01:00
Thomas Nagy
07c5337f8b possible osx fixes 2012-11-28 01:02:07 +01:00
Harald Klimach
04eb20b1e1 Fixed fc_xlf to import Errors 2012-11-12 17:36:32 +01:00
Thomas Nagy
e0820153c8 Make demos/subst work in Python 3.2 2012-11-11 22:58:50 +01:00
Thomas Nagy
704f85f131 New release 1.7.6 2012-11-11 22:44:11 +01:00
Thomas Nagy
82b49862e2 Issue 1220 2012-11-04 10:29:36 +01:00
Thomas Nagy
5eed580a0c Merge branch 'master' of https://code.google.com/p/waf 2012-11-04 10:28:44 +01:00
Thomas Nagy
6635a9788b Issue 1220 2012-11-04 10:28:34 +01:00
immerrr
54464995c6 Avoid possible "unused parameter" warnings in check_c/check_cc boilerplates
When CFLAGS/CXXFLAGS contains '-Wextra -Werror', such warnings are reported
and become errors, which causes respective checks to fail.

Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2012-11-04 10:24:34 +01:00
alexrp
ba6718fb05 Add more stuff to the macro-to-DEST_CPU list. 2012-11-01 14:14:08 +01:00
Thomas Nagy
b022f8a314 no more file() in python 3.3 2012-10-31 02:00:01 +01:00
Thomas Nagy
5ce68b696a Issue 1218 2012-10-26 22:54:53 +02:00
Thomas Nagy
27aeab577c Issue 1218 2012-10-25 21:36:41 +02:00
Thomas Nagy
689fe3c0b9 Merge branch 'master' of https://code.google.com/p/waf 2012-10-21 11:29:49 +02:00
Thomas Nagy
85698bdb53 support for python modules in fortran -_- 2012-10-21 11:29:40 +02:00
alexrp
b3b0383840 Add output file patterns for D tasks on Darwin. 2012-10-21 02:13:33 +02:00
Thomas Nagy
1350ebc7a5 Issue 1212 2012-10-20 23:45:16 +02:00
Thomas Nagy
a1d0f9c13e force a stable name in bld(rule=...) 2012-10-17 18:50:20 +02:00
Thomas Nagy
c85678dc4a hash subst_fun 2012-10-10 22:52:30 +02:00
Anthony Baire
57b555b5fe allow using the flex shipped with MSYS
(it expects path separated by / instead of \)

Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2012-10-10 18:39:51 +02:00
Thomas Nagy
6499810aec Issue 1209 2012-10-09 22:35:58 +02:00
Thomas Nagy
43277c8e77 provide bld(features='subst', subst_fun= fun(task, text)) for convenience 2012-10-08 18:30:47 +02:00
Thomas Nagy
294050ff41 Potential fix for #1204 2012-10-05 00:21:27 +02:00
Anthony Baire
2c22ec2a59 fixed waf clean to preserve config files from all environments
Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2012-10-05 00:07:59 +02:00
Thomas Nagy
0856e2492b Issue 1207 2012-10-05 00:06:24 +02:00
Thomas Nagy
85d863bd52 Issue 1205 2012-10-02 03:43:58 +02:00
Thomas Nagy
0d6cd93f95 empty --prefix 2012-09-29 17:32:46 +02:00
Thomas Nagy
9c7c864fcc Merge branch 'master' of https://code.google.com/p/waf 2012-09-27 21:08:37 +02:00
Thomas Nagy
b52d97adff Issue 1184 2012-09-27 21:08:26 +02:00
Thomas Nagy
d3210ea74b configuration fix for kde4 2012-09-27 19:48:30 +02:00
alexrp
c62073538b The fsc tool should set FS_NAME, not CS_NAME. 2012-09-27 14:47:41 +02:00
Thomas Nagy
4c23f80a7c waf-1.7.4 2012-09-26 18:43:10 +02:00
Thomas Nagy
c14f00f4c1 Code mistakenly removed from the core classes 2012-09-26 18:41:58 +02:00
Thomas Nagy
ab385ea63c #1202 2012-09-23 19:49:17 +02:00
Thomas Nagy
665aff8a57 cabal script by Anton Feldmann 2012-09-23 10:19:44 +02:00