Commit Graph

2308 Commits

Author SHA1 Message Date
Thomas Nagy 24825b5575
waf-1.9.13 2017-08-02 19:46:33 +02:00
Thomas Nagy 66f1d5bc94
docs 2017-08-02 19:45:08 +02:00
Thomas Nagy f6eee2b041
Typo process_uselib_vars -> propagate_uselib_vars #2005 2017-08-02 00:38:11 +02:00
Simon bf14d0f340 Fixed a crash when building a subset of xcode6 targets
E.g. when running 'waf xcode6 --targets=some-target'

  File "/waf/waflib/Scripting.py", line 167, in waf_entry_point
    run_commands()
  File "/waf/waflib/Scripting.py", line 268, in run_commands
    ctx = run_command(cmd_name)
  File "/waf/waflib/Scripting.py", line 252, in run_command
    ctx.execute()
  File "/waf/waflib/extras/xcode6.py", line 679, in execute
    self.post_group()
  File "/waf/waflib/Build.py", line 767, in post_group
    if self.current_group < self._min_grp:
AttributeError: 'xcode' object has no attribute '_min_grp'
2017-08-02 00:10:42 +02:00
Simon 1d22579536 Make xcode6 tool consider standard waf build flags
Build flags like 'cflags', 'cxxflags' passed to xcode6 builds
are now considered by the xcode6 tool. For example, running command 'waf xcode6'
with the following wscript:

cnf.env.CXXFLAGS = ['-std=c++11']
...
bld.program(..., cxxflags='-O3')

now sets the OTHER_CPLUSCPLUSFLAGS in Xcode to '-O3 -std=c++11'
2017-08-02 00:10:42 +02:00
fedepell 3e7ad303d2 qt5: minor correction of uic tool search error message (wrong versions printed) 2017-08-01 22:39:32 +02:00
Thomas Nagy 10a2b6bd04
Support for old gcc compilers #2003 2017-07-30 17:25:20 +02:00
Thomas Nagy 88bb8cc6a1
TypeError -> ValueError #2002 2017-07-30 00:14:19 +02:00
Roman C. Podolski a6f4ad6e1d Protoc: Fix bug in src-path
The tool was using an relative path for the includes, but an absolute
for the src-files. Protoc cannot distinguish between relative and
absolute paths and is not able to find sources when relative and
absolute paths are combined.

Tested with protoc 2.6.1, python 3.5.1
2017-07-23 13:24:28 +02:00
Thomas Nagy df1767728f
WAF_PRINT_FAILURE_LOG #1930 2017-07-20 19:26:56 +02:00
Thomas Nagy 2fe4083f13
Do not force an encoding on config.log on python2 #1974 2017-07-19 22:39:15 +02:00
Sean Fisk 963c3bfd0c Avoid Qt re-builds by sorting set of includes
Because Python's set type is unordered, storing include paths in it
can produce unnecessary re-builds by generating different compiler
command lines between successive builds. Avoid this by using the
sorted() function on the includes.

The documentation for Python ≥ 2.7 guarantees that sorted() is stable,
while for Python 2.5–2.6 it uses the same algorithm as list.sort(),
which is stable [1].

[1]: https://stackoverflow.com/a/1915418
2017-07-06 07:46:33 +02:00
Thomas Nagy 424e5aa4ce Cleanup for #1984 2017-06-21 12:03:14 +02:00
fedepell 928faedb44 eclipse: code cleanups as by comment to #1984 2017-06-21 11:55:40 +02:00
fedepell 32164c1004 eclipse: query the compiler for standard include dirs and add them in eclipse search path, so standard includes can be found also with non standard compilers
if command doesn't succeed use hardcoded paths as before. tried with various gcc and llvm.
2017-06-21 11:55:40 +02:00
Thomas Nagy c668663362 Decode vswhere output as utf8/replace when cp1252 fails 2017-06-19 20:24:21 +02:00
Thomas Nagy 17cd653136 Clarify the buildall alias 2017-06-16 11:16:22 +02:00
Thomas Nagy 2c9f86cc62 Ensure link tasks are processed after swig tasks 2017-06-08 19:56:04 +02:00
Thomas Nagy aea1c587d3 Fix the docstring of find_file #1980 2017-06-07 19:21:27 +02:00
Thomas Nagy c5227d0a2b
docs 2017-06-04 08:41:43 +02:00
Thomas Nagy a782130a2e
waf-1.9.12 2017-06-02 21:19:25 +02:00
Thomas Nagy 7153756042
Force an encoding on config.log #1974 2017-06-02 21:17:09 +02:00
Seth Hinze c2a1081a41 Allow overriding namespace of resx files. 2017-06-01 00:01:55 +02:00
Seth Hinze 68e7e073f0 Add xmldoc support to cs tool. 2017-06-01 00:01:27 +02:00
Seth Hinze 026de60641 Allow /noconfig to be used with csc 2017-06-01 00:00:48 +02:00
Seth Hinze 1f2ebd6db9 Fix pdb installation in cs tool. 2017-06-01 00:00:16 +02:00
Thomas Nagy 85efdc2246
Handle spaces in python paths on Windows #1973 2017-05-28 20:13:55 +02:00
fedepell 45dafcb0fe eclipse: generate configuration just for languages that are effecitvely used in wscript and not all of them all the time 2017-05-19 21:00:35 +02:00
fedepell a952131d03 eclipse: little code cleanup 2017-05-19 21:00:35 +02:00
Federico Pellegrin b0eb986e9a eclipse: added a playground area for testing the eclipse extra (#1968)
* eclipse: added a playground area for testing the eclipse extra

* eclipse: try to clean up a bit the playground by collapsing some wscripts
2017-05-18 22:16:43 +02:00
Gustavo Sousa 003f9dd5a8 javaw: run use_javac_files() before propagate_uselib_vars()
Updating the uselib attribute after propagate_uselib_vars() is called won't
yield the desired effect.
2017-05-17 21:05:04 +02:00
fedepell ce23d509ba eclipse: add support also for java project configuration generation 2017-05-16 18:11:52 +02:00
Akira Baruah cc52c6e230 cpplint: logger subclasses also inherit from object to safely call super() 2017-05-13 10:56:59 +02:00
Thomas Nagy 5e6e73fce6
Handle vswhere output encodings in Python2 #1965 2017-05-13 09:53:49 +02:00
Akira Baruah f7ff1dd521 cpplint: fix Python 2 import name collision using `absolute_import` 2017-05-09 07:42:32 +02:00
Thomas Nagy cbf4c4f861
waf-1.9.11 2017-05-06 16:55:03 +02:00
Thomas Nagy a65c7c03b7
Detect older products with vswhere.exe 2017-05-06 11:38:25 +02:00
Refael Ackermann e19d9d990f Detect MSVS 15.0 Installation path (via vswhere)
Fixes: #1924

Inspired by the scripts from https://github.com/node4good/msvs-com-helper
2017-05-06 04:19:34 +02:00
Jan Niklas Hasse 7142640257 Import library files need to be installed into lib/ on Windows
Fix #1860.
2017-05-06 03:43:10 +02:00
fedepell 28cb614069 eclipse: create the pydev python path configuration from the waf setup so the symbols can be correctly resolved in the IDE 2017-05-03 21:07:25 +02:00
fedepell adc94bce75 eclipse: use standard variable ${PROJECT_DIR_NAME} in pydev configuration instead of hardcoded name for better portability 2017-05-03 21:07:25 +02:00
fedepell ddd49b571b eclipse: absolute include paths must be added without the workspace prefix or they will result in an incorrect path. treat them correctly as system paths. 2017-05-02 18:44:25 +02:00
fedepell 543cc204a6 eclipse: generate tool index dynamically or visually eclipse will get confused and overwrite the name of the tools, even if the functionality seems somehow to work anyway.
documentation I found seems to point that the index should be unique.
2017-05-02 18:44:25 +02:00
fedepell d618c52931 eclipse: pass correct languageId for C++ when generating tool otherwise settings will not be used when C++ files are edited 2017-05-02 18:44:25 +02:00
Akira Baruah 6cf97685f3 cpplint: add `--cpplint-root` option 2017-04-27 21:32:12 +02:00
Akira Baruah 3f15e5e2c8 Check `env.CPPLINT_SKIP` after `options` are converted to `env`s #1953 2017-04-26 07:36:56 +02:00
Akira Baruah 6e5baffd47 Remove undeclared `ve` variable for performance improvement #1950 2017-04-25 23:59:04 +02:00
Thomas Nagy f2366e8c93
Improve waf -v speed in verbose mode #1950 2017-04-23 19:10:12 +02:00
Thomas Nagy 008c9016a8
Code simplifications 2017-04-22 22:12:50 +02:00
Thomas Nagy 1a876716cb
Typo 2017-04-22 21:49:03 +02:00