Thomas Nagy
b95cd931fd
Improve process_rule cache accuracy
2016-12-23 18:06:57 +01:00
dffischer
15c45b365d
glib2: Compile schemas per directory ( #1881 )
...
* glib2: Compile schemas per directory
By changing GSETTINGSSCHEMADIR during the build setup or on single tasks
or generators, the user may place schemas in various locations. Adding a
post build function for each of this location compiles all of them
instead of only one global directory.
* glib2: Notify user about failed schema compilation
* glib2: Demo schemas installed to multiple places
A new schema lacking lacking any enumerations was introduced. Installing
it isolated simplifies the generator creation to the essential
components demonstrated.
2016-12-22 18:31:07 +01:00
Thomas Nagy
1c63e4d7ee
Simplify TaskGen.process_rule
2016-12-22 18:28:03 +01:00
Thomas Nagy
3c22fd412e
Fix chmod with tuple rules #1884
2016-12-22 12:07:08 +01:00
Thomas Nagy
c78d53a7a2
Include all vars in tuple rules #1883
2016-12-22 12:02:25 +01:00
montonero
e3e8e6b711
Fixed '-o' flag for emscripten/clang ( #1882 )
...
* correct static lib extension for emscripten
* added space after '-o' flag for emscripten/clang
* removed empty line
2016-12-22 11:16:34 +01:00
Thomas Nagy
0dd0e17ecc
Optimize Node.path_from
2016-12-21 19:50:29 +01:00
Thomas Nagy
ea032a73ae
Update the gsettings schema cache without a shell
2016-12-20 14:01:17 +01:00
XZS
f0c5c732a7
glib2: consider destdir when compiling schemas
...
When a destdir is set, the schemas are now not only installed below it,
but also compiled there.
2016-12-20 13:54:54 +01:00
cconverse711
ec3bf9d046
Fix boost library naming conventions
2016-12-17 14:29:07 +01:00
Ricardo Crudo
b9dfbf3caf
Tools/python: add option --nopycache ( #1878 )
...
Add option to not use __pycache__ dir when installing python objects.
2016-12-15 19:03:29 +01:00
montonero
0143b86505
correct static lib extension for emscripten ( #1876 )
2016-12-13 16:23:10 +01:00
Thomas Nagy
4095f1403a
waf-1.9.7
2016-12-13 10:26:11 +01:00
Thomas Nagy
ade48ed52e
Conceal Python 2.6 subprocess errors
2016-12-08 22:43:58 +01:00
Thomas Nagy
de7e8b758e
Read variables from self.vars #1873
2016-12-07 19:04:46 +01:00
Thomas Nagy
ad8f681072
docs
2016-12-04 01:37:18 +01:00
Matt Selsky
70899622e2
Fix grammar in ConfigSet pydoc ( #1872 )
2016-12-02 18:23:37 +01:00
Thomas Nagy
0bca3987ad
docs - waf 1.9.6
2016-11-27 14:23:37 +01:00
Thomas Nagy
dbcda7ec6a
Fix the inconsistent partial detection for #1865
2016-11-26 19:30:53 +01:00
Thomas Nagy
8dae660ec7
Allocate Utils.lru_cache lazily
2016-11-26 18:14:28 +01:00
Thomas Nagy
f0ef5624cc
waf 1.9.6
2016-11-26 15:27:18 +01:00
Thomas Nagy
283e7953cb
More cleanup for #1865
2016-11-26 14:23:04 +01:00
Thomas Nagy
906bf781ac
Cleanup for #1865
2016-11-26 11:51:20 +01:00
Gustavo J. A. M. Carneiro
421e0e3ab9
Accept functools.partial() as a task rule #1862 ( #1865 )
...
Accept functools.partial() as task generator rules #1862
2016-11-26 11:00:01 +01:00
Thomas Nagy
57ee30760a
Increase the cache size for #1833 and #1859
2016-11-22 20:34:58 +01:00
Thomas Nagy
6c48f08e97
Simplify waflib/extras/force_build_directory.py
2016-11-20 13:47:31 +01:00
Thomas Nagy
4699a7871d
Warn of single dots in ant_glob #1853
2016-11-19 09:12:33 +01:00
Thomas Nagy
af66a27da3
Specify shell usage in test script execution
2016-11-19 00:11:46 +01:00
Thomas Nagy
bdb18e8394
Changed --dump-test-runner to --dump-test-scripts
2016-11-19 00:03:55 +01:00
fedepell
e8942d7f22
waf_unit_test: add new option --dump-test-runner that creates python scripts to manually run or debug test executions
...
this can be very useful when debugging unit test problems as when run outside waf then the LD_LIBRARY_PATH (or PYTHONPATH if used with pytest extra) is set dynamically by waf and therefore running the executable manually or via gdb is not immediate
all the environment will be dumped in python script that can then be executed to run manually tests.
2016-11-18 23:40:59 +01:00
Thomas Nagy
24cc1dc057
missing import
2016-11-14 22:20:57 +01:00
Thomas Nagy
af7716f014
docstring for #1851
2016-11-14 22:13:26 +01:00
Thomas Nagy
0454ee677e
docs
2016-11-08 21:31:11 +01:00
Thomas Nagy
058b8f7f39
simplifications
2016-11-06 12:00:35 +01:00
Federico Pellegrin
90b66a4f04
cppcheck: fix extra forn multiple build rules are in a single wscript ( #1844 )
...
* cppcheck: fix extra forn multiple build rules are in a single wscript
When executed the output from cppcheck will be put inside cppcheck.xml and
then the generated error output inside cppcheck/index.html (and related
subfiles). Of course if two separate build rules are present the files
will clash with each other and data will be lost.
So this will not work in previous version:
bld.program(source=bld.path.ant_glob('src/ex-prog-*.cpp'), includes='src/', target='ex-prog-c')
bld.program(source=bld.path.ant_glob('src/ex-prog2-*.cpp'), includes='src/', target='ex-prog2-c')
In the output just one of the two results will be there (or in worst case
we will have files being deleted/garbled) as they both try to work on
cppcheck.xml and index.html (in build and build/cppcheck respectively)
With this commit the xml/html files have a reference to the task name (so
appended with a dash) so they are unique and don't clash. Also all the
messages to the user are corrected accordingly so the user is pointed to
the correct name of the file (and so are the internal links generated in
the html file).
In the previous case we will have:
ccpcheck detected (possible) problem(s) in task 'ex-prog2-c', see report for details:
file:///home/fede/waf/cppc/build/cppcheck/index-ex-prog2-c.html
ccpcheck detected (possible) problem(s) in task 'ex-prog-c', see report for details:
file:///home/fede/waf/cppc/build/cppcheck/index-ex-prog-c.html
* cppcheck: Provide as an option also old way of single index.html file for compatibility
2016-11-06 11:33:25 +01:00
Thomas Nagy
6ecf6390a8
Better error message on method cycle detection
2016-11-05 11:56:08 +01:00
Thomas Nagy
076d9202ba
Append tex configuration outputs to config.log
2016-11-04 06:10:17 +01:00
Thomas Nagy
86e9c0527c
Cleanup
2016-11-03 22:42:17 +01:00
fedepell
572cd98aab
cppcheck: add possibility to use -j option for multiple parallel threads, speeds up drastically when executing on multiple source files
2016-11-03 22:02:10 +01:00
fedepell
655217384a
cppcheck: check very ugly if code checking for configuration mode
2016-10-27 18:36:34 +02:00
fedepell
c6ebd2547c
cppcheck: do not execute task when in configuration mode as this can break other tools (ie qt5) which do a test build. see also #1840
2016-10-26 22:41:02 +02:00
fedepell
54a5ebe46a
pytest extra: add more graceful and informative error if parameter is pointing to no valid source files
2016-10-24 11:17:21 +02:00
Thomas Nagy
0db417ac1a
docs - #1836
2016-10-20 18:44:55 +02:00
Thomas Nagy
cd50b17e7b
Wrong cwd path for unity.py
2016-10-18 18:09:44 +02:00
Thomas Nagy
287046547b
Let unity builds use relative paths for msys #1834
2016-10-17 20:06:39 +02:00
Thomas Nagy
9ae47088bb
Enable configurable preprocessor cache sizes #1833
2016-10-14 19:28:26 +02:00
Thomas Nagy
4bd13de095
Unnecessary file
2016-10-11 18:35:12 +02:00
Thomas Nagy
3e47e4250e
Display @argfile contents in msvcdeps #1831
2016-10-11 18:34:35 +02:00
Thomas Nagy
443985720f
Do not change permissions on symlinks because this is not used anywhere
2016-10-09 21:41:31 +02:00
Thomas Nagy
b159ecc44f
waf-1.9.5
2016-10-09 16:28:59 +02:00
Thomas Nagy
4ed44b2e99
Fix the api documentation
2016-10-08 23:29:46 +02:00
Thomas Nagy
f02047b8ea
Add install_user and install_group to bld.install/bld.install_as/bld.symlink_as
2016-10-08 22:35:05 +02:00
Thomas Nagy
4417a3c8c1
Minimize the amount of tasks displayed during the build #1828
2016-10-08 12:53:16 +02:00
ita1024
6f415aa17a
Merge pull request #1818 from mimon/xcode6-updates
...
bugfix: do not merge env variables of type dictionary in xcode6 tool
2016-10-03 21:29:26 +02:00
Simon
7da04766a3
docs +xcode6 bugfix: do not merge env variables of type dictionary into PROJ_SETTINGS config
2016-10-03 20:36:10 +02:00
Thomas Nagy
70a40c1673
Let the Python byte-compilation display pyc/pyo
2016-10-03 15:30:04 +02:00
Thomas Nagy
37388fda3b
Enable waf --zones=argfile to display @argfile contents
2016-10-03 14:08:42 +02:00
Thomas Nagy
3686ac341d
Simplifications for #1823
2016-10-03 13:02:51 +02:00
Thomas Nagy
eab0bd4c82
Simplifications
2016-09-30 21:36:28 +02:00
Jan Niklas Hasse
bfcef62e45
Don't fail on output decoding errors
2016-09-30 14:25:49 +02:00
Jan Niklas Hasse
87419b3c6b
Less verbose output when a task failed if not running with -v
2016-09-26 12:44:23 +02:00
fedepell
df3b886067
If compiler_cxx was not configured before qt5 then qt5 will try to build applications with an empty compiler which gives very strange errors in the config log. Just check if the compiler is not there and remember the user that compiler_cxx should be configured before qt5.
2016-09-19 17:17:39 +02:00
Thomas Nagy
410d1568d5
Better error message for 'File %r has no mapping in %s'
2016-09-15 22:00:26 +02:00
Thomas Nagy
9ed7d41488
Expand '--foo=' with shell=False - Issue #1814
2016-09-15 21:36:02 +02:00
fedepell
40dafce024
Add qt5 5.7.x new libraries to qt5 tool
2016-09-15 14:40:24 +02:00
ita1024
ca71d1c12b
Merge pull request #1813 from fedepell/pyqt5-pyqt4
...
Add also support for older PyQt4 bindings
2016-09-14 22:02:39 +02:00
fedepell
4770983a87
Add also support for older PyQt4 bindings
2016-09-14 21:42:10 +02:00
fedepell
e8f6d4bfe7
Correct option used for python executable (--python and not --pythondir)
2016-09-14 21:09:45 +02:00
Simon
8b912d2b1f
changed name for alias exe() to program() in xcode6
2016-09-10 15:39:07 +02:00
Thomas Nagy
9c50a30f94
waf 1.9.4
2016-09-10 12:33:21 +02:00
Thomas Nagy
8797425153
Expose Python3 timeout on Task.timeout and bld(rule=..., timeout=...)
2016-09-10 12:32:01 +02:00
Thomas Nagy
86e9b6b959
Set the configuration test build class on conf.run_build_cls
2016-09-10 12:12:46 +02:00
Thomas Nagy
62459e1147
Accept Task.cwd as str besides Node
2016-09-10 10:44:08 +02:00
Thomas Nagy
445e989594
Unnecessary __slots__ annotation on thread subclass
2016-09-04 16:21:03 +02:00
Thomas Nagy
fc2946ce64
Re-raise TimeoutExpired from process executors
2016-09-03 22:36:41 +02:00
Thomas Nagy
af172413f4
Python 3.3 fix
2016-09-03 22:24:29 +02:00
Thomas Nagy
71aed22539
Call killpg only if setsid is enabled
2016-09-03 20:22:43 +02:00
Thomas Nagy
a91e7be005
Ignore subprocess timeouts on Python < 3.3
2016-09-03 18:36:19 +02:00
Thomas Nagy
9f14c9dda0
Kill process trees on timeouts (os.killpg)
2016-09-03 18:29:41 +02:00
Thomas Nagy
1721a505d9
Use the new syntax for sets
2016-09-02 20:20:43 +02:00
Thomas Nagy
7719af7af1
Missing timeout settings
2016-09-02 20:06:26 +02:00
Thomas Nagy
e3092aadc7
Parallel tests can now have an execution order
2016-09-01 22:08:03 +02:00
Thomas Nagy
478d31e701
Can we start using the 'with' keyword now?
2016-08-28 14:06:39 +02:00
Thomas Nagy
d8d7c87ba1
Display parallel test results as they finish
2016-08-28 13:48:16 +02:00
Thomas Nagy
8dba949014
Use the same logic as Python3.5 for handling timeouts #1807
2016-08-28 13:12:55 +02:00
Thomas Nagy
1fb3bfee6a
ValueError and OSError are subclasses of Exception
2016-08-28 10:48:41 +02:00
Gustavo Jose de Sousa
86da12e56e
Fix error when adding new items to SAVED_ATTRS
...
If something was added to SAVED_ATTRS, the next build command failed because
the saved dictionary in the pickle file didn't have that new key.
2016-08-25 13:10:33 -03:00
Thomas Nagy
fdc3b47067
Python3 - Kill processes in subprocess timeouts #1807
2016-08-25 07:48:14 +02:00
Thomas Nagy
f7367c8051
Enable 'waf dist' in arbitrary paths
2016-08-24 18:07:24 +02:00
Thomas Nagy
6e4ba6620c
Remove the Go example because Go has a completely distinct toolchain now
2016-08-22 19:06:12 +02:00
Thomas Nagy
a4f6c7468d
Netcache example update
2016-08-21 17:10:17 +02:00
Thomas Nagy
e169da4227
waf 1.9.3
2016-08-21 15:35:44 +02:00
Thomas Nagy
d31398c4a3
Docs on conf.multicheck
2016-08-21 15:31:47 +02:00
Thomas Nagy
96fe543f2e
Docs
2016-08-21 15:17:47 +02:00
Thomas Nagy
5b30eba4db
Let parallel tests run all tests by default (do not stop on the first error)
2016-08-21 15:10:20 +02:00
Thomas Nagy
ec6b72b0ad
Display failed configuration tests in yellow in multicheck
2016-08-20 13:06:23 +02:00
Thomas Nagy
7d3ddac860
Parallel configuration tests with arbitrary functions #1793
2016-08-19 22:15:04 +02:00
Bernhard Vogginger
49236784b2
Add suppport for finding lib boost_python in gentoo
...
* find libname pattern "libboost_python-2.7.so"
Change-Id: I19a66a5992f7d077c2ed8e35e26e414ab194a7e6
2016-08-19 11:31:22 +02:00
fedepell
a9bb62b3f6
qt5: qt5 5.7 detection, added also case with std=c++11 but no fPIC/fPIE
2016-08-19 06:59:40 +02:00
Thomas Nagy
adea933f1a
Qt 5.7 -std=c++11 #1798
2016-08-18 22:21:35 +02:00
Thomas Nagy
26fc0cfced
Enhance the display of parallel configuration tests
2016-08-15 22:48:29 +02:00
Thomas Nagy
7d60c89744
Split Nag Fortran compiler flags #1797
2016-08-15 19:41:50 +02:00
fedepell
c31aee8745
Add configuration option to select PySide2 Python QT5 bindings, while PyQt5 bindings remain otherwise searched first by default.
2016-08-14 22:02:48 +02:00
Thomas Nagy
f5cfef4be3
Set no_errcheck_out on a task to disable the output files verification
2016-08-13 19:49:28 +02:00
Thomas Nagy
07c153c220
Un-hardcode the cfgtask class name for parallel tests
2016-08-13 09:39:25 +02:00
Thomas Nagy
a4e7cb1930
Copy os.environ because Python3 cannot serialize it
2016-07-31 18:48:36 +02:00
Thomas Nagy
332f3c5665
waf 1.9.2
2016-07-31 18:39:33 +02:00
Thomas Nagy
a76388b632
Obvious mistake
2016-07-31 18:16:31 +02:00
Thomas Nagy
3e08a19a56
Use the parent os.environ value as default in pre-forked processes #1791
2016-07-31 15:55:47 +02:00
Thomas Nagy
8be4adcc64
Docs
2016-07-30 22:54:46 +02:00
Thomas Nagy
7778868718
Set TaskBase.keep_last_cmd to keep the last command executed
2016-07-30 10:09:55 +02:00
Thomas Nagy
70e438393d
Add a parameter to keep the last command executed
2016-07-29 23:10:26 +02:00
Thomas Nagy
3169e0bd4b
Cleanup
2016-07-29 23:02:15 +02:00
Thomas Nagy
452907d102
Cleanup
2016-07-29 20:44:38 +02:00
Thomas Nagy
11ff58981a
Replace FileNotFoundError by EnvironmentError for python2
2016-07-29 20:40:38 +02:00
ita1024
1308001a9e
Merge pull request #1790 from fedepell/pyqt5-separate
...
pyqt5 extra to support qt5 files to python conversion
2016-07-29 18:57:56 +02:00
fedepell
f4e1b59bbc
Fix install_from after suggestion of ita on how to do it better and make sure install_path is present as python requires it
2016-07-29 16:36:01 +02:00
Gustavo Jose de Sousa
8c4401637a
Set do_config as True if file is not found
...
Instead of leaving the user with an error due to FileNotFoundError exception.
2016-07-28 18:28:20 -03:00
Thomas Nagy
954594bf07
Support flexflags as arguments - #1782
2016-07-28 23:19:25 +02:00
Thomas Nagy
195a3e6562
Remove an unnecessary gccdeps verification #1784
2016-07-28 22:22:52 +02:00
Thomas Nagy
ce65dfb415
Node.search -> Node.search_node #1783
2016-07-28 22:03:39 +02:00
fedepell
7ade9796a6
Fix installation path for .py files that are generated on the fly in build
2016-07-28 18:13:26 +02:00
Thomas Nagy
3c2c6a62b0
Remove leftover 'print' statements
2016-07-27 20:22:48 +02:00
Thomas Nagy
7aaa7c14ba
Make gccdeps and msvcdeps compatible - #1780
2016-07-26 19:41:57 +02:00
Thomas Nagy
fe2f2b4fe6
Fix a docstring error
2016-07-25 23:27:05 +02:00
Thomas Nagy
1df8c148f6
Move pytest to the extras/ section
2016-07-25 23:23:44 +02:00
Thomas Nagy
8e68aa4ade
Python 2 fix
2016-07-25 23:10:10 +02:00
Thomas Nagy
c916febaf7
Update some old code
2016-07-25 22:12:35 +02:00
Thomas Nagy
9332a9c24d
Whitespace and Options.options for cppcheck
2016-07-25 20:18:49 +02:00
ita1024
2197dbdff1
Merge pull request #1774 from xbreak/pytest
...
Python unit test support via `pytest' feature.
2016-07-25 19:45:57 +02:00
Thomas Nagy
f623675524
Fix an obsolete import
2016-07-25 19:05:36 +02:00
Calle Rosenquist
3fb1abbb39
Python unit test support via `pytest' feature.
2016-07-25 12:47:41 +00:00
fedepell
d3367e9b0a
Clear up usage text
2016-07-23 14:24:57 +02:00
fedepell
5d8c8a2080
Fixes on comments
2016-07-23 14:22:26 +02:00
fedepell
ad356b3ed2
- Fixed identations
...
- Search for tools just in PATH not in other directories as for C++
- Remove options handling as there is none at the moment
- Use find_program instead of local find_bin
- Fix author
- Try to make documentation clearer
- Remove useless after_link decorator
2016-07-23 14:13:40 +02:00
fedepell
0c78c7ad8e
First version of the pyqt5 extra to add QT5 ui/resources translation to py to be used with pyqt5 or pyside2
2016-07-23 12:51:04 +02:00
Simon
04b7fb6086
Updated docs for xcode6 tool. Also, xcode6 tool tested for XCode 7 (successfully)
2016-07-18 14:01:29 +02:00
Thomas Nagy
ef0cf35cb1
Force qt5 static library detection for #1588
...
Use: 'QT5_XCOMPILE=1 QT5_FORCE_STATIC=1 waf configure'
2016-07-17 15:19:06 +02:00
Thomas Nagy
6e078cff66
Python 3 fix for waf dist #1769
2016-07-14 21:21:50 +02:00
Thomas Nagy
ebc0048eb0
Use if/else blocks instead of and/or in python 2.5
2016-07-14 17:45:49 +02:00
Thomas Nagy
cdb46e29f9
Disable defines by setting define_name='' #1766
2016-07-08 19:39:34 +02:00
Thomas Nagy
1b1bad8231
Unused keyword
2016-07-07 07:47:15 +02:00
Thomas Nagy
1fa2e6f7e1
waf-1.9.1
2016-07-03 09:51:45 +02:00
Thomas Nagy
0189850710
Do not de-duplicate configuration flags passed in conf.check(stlib=) for consistency reasons
2016-07-02 19:59:17 +02:00
Gustavo Jose de Sousa
9a0932951f
Fallback to run_regular_process if we can't pickle arguments
2016-06-27 20:49:37 -03:00
Thomas Nagy
39056a6ba5
waf 1.9
2016-06-26 13:45:21 +02:00
Thomas Nagy
ff1be31ec4
Fix Qt5 detection when pkg-config is missing
2016-06-26 12:06:17 +02:00
Thomas Nagy
50ae7dc3ba
Api docs
2016-06-26 11:59:27 +02:00
Thomas Nagy
461c065bbb
Typo
2016-06-26 00:16:51 +02:00
Thomas Nagy
f84b219818
Api docs
2016-06-26 00:15:41 +02:00