Commit Graph

3236 Commits

Author SHA1 Message Date
ita1024 62918799db Merge branch 'eclipse_scanner_config' into 'master'
eclipse: add generation of editor language settings

See merge request ita1024/waf!2329
2021-08-31 22:42:53 +00:00
Federico Pellegrin 161be6e647 eclipse: add generation of editor language settings
Add automatic generation of editor language settings for C and C++,
so the automatic code correction uses the correct compiler and
compiler flags, including for example the correct C/C++ standard
so construct from such standards are correctly managed by the IDE.
Correct compiler and flags are automatically generated using the
build environment data gathered during configure phase.
The playground example has been modified to contain some code that
is standard specific to demonstrate the new feature when run under
Eclipse.
2021-08-31 10:40:10 +02:00
ita1024 abc4c27fcd Merge branch 'master' into 'master'
Make clang_compilation_database compatible with variants

See merge request ita1024/waf!2328
2021-07-15 17:07:33 +00:00
Federico Giovanardi 23df45272c Make clang_compilation_database compatible with variants
In the current implementation if a project is using
build variants it's not possible to use the clang_compilation_database
plugin because it strips the variant information from the build object.
2021-07-15 10:57:23 +02:00
ita1024 3536dfecf8 Merge branch 'color-gcc-fix-2' into 'master'
color_gcc: Check that cmd has elements in it before processing it.

See merge request ita1024/waf!2327
2021-06-22 18:25:37 +00:00
Erik Parker e65bd769f3 color_gcc: Check that cmd has elements in it before processing it. 2021-06-21 13:48:05 -05:00
Thomas Nagy f44e4592a7 Process dependency Nodes in bld(rule=..., deps=[..]) 2021-06-16 22:12:57 +02:00
Thomas Nagy c5bcd7e9b9 Improve error messages from scanner errors #2356 2021-06-12 08:12:33 +02:00
Thomas Nagy 05ebc97be6 Handle deprecated Thread.setDaemon in Python 3.10 2021-05-13 17:10:55 +02:00
Thomas Nagy df4d81e4c2 Disable OpenIndiana from the pipelines 2021-05-05 00:26:31 +02:00
Thomas Nagy b1098d40a7 On windows, try $INCLUDEPY/../libs to detect the Python library path 2021-04-30 18:38:01 +02:00
ita1024 7f1fdd36d5 Merge branch 'swig_module_name_cr' into 'master'
swig: skip CR (\r) if present in module name

Closes #2350

See merge request ita1024/waf!2324
2021-04-29 06:19:08 +00:00
Federico Pellegrin 47778d9c8f swig: skip CR (\r) if present in module name
Handles presence of \r in module name (ie. DOS mode swig .i files)
Should fix #2350
2021-04-29 04:33:07 +02:00
Michael Vincent b3663173b5 gccdeps: Refactor cache lock
Rework how gccdeps' cached_nodes lock is used so acquiring the lock is
only necessary on a cache miss. Also use a "with" context manager to
simplify management of the lock lifecycle.

Ported from 8b5a2a2086
2021-04-22 12:53:59 +02:00
Michael Vincent c52efadbe6 gccdeps: Move scan() method
Move the scan() method down in the file to match msvcdeps' method
ordering. This makes it easier to compare gccdeps.py and msvcdeps.py
to keep them in sync.
2021-04-22 12:50:22 +02:00
Michael Vincent 412b5c3e49 gccdeps: Rename some variables
Rename some local variables to clarify their purpose and to align with
msvcdeps.py.
2021-04-22 12:49:17 +02:00
Michael Vincent 0bc85fb681 msvcdeps: Align with gccdeps
Just a few small changes to make msvcdeps.py align with gccdeps.py
better.
2021-04-22 12:48:25 +02:00
Michael Vincent 99820803b9 msvcdeps: Remove unused variable 2021-04-22 12:42:21 +02:00
Thomas Nagy c082c5c668 Let msvcsdeps process relative paths and in a deterministic manner 2021-04-22 02:19:25 +02:00
ita1024 71ada95e04 Merge branch 'msvcdeps-perf' into 'master'
msvcdeps: Faster case correction

See merge request ita1024/waf!2323
2021-04-22 00:14:59 +00:00
Michael Vincent 2d14817f1f msvcdeps: Faster case correction
Visual Studio returns paths to dependencies with incorrect case.
ant_glob() is very slow for this use case (40~50% impact to overall
build time). This patch uses os.listdir() to find the correct case
of each path component.
2021-04-20 13:38:46 -05:00
ita1024 80ffb62e4d Merge branch 'a1batross-master-patch-10902' into 'master'
c_config: add RISC-V generic detection

See merge request ita1024/waf!2322
2021-04-15 15:29:05 +00:00
Alibek Omarov 64dff6f4fe c_config: add RISC-V generic detection 2021-04-15 12:37:06 +00:00
ita1024 36376fbaca Merge branch 'winres-update' into 'master'
winres: Pass include paths by environment variable

See merge request ita1024/waf!2320
2021-04-05 20:01:38 +00:00
Erik Parker ec3ce5c30d winres: Pass include paths by environment variable 2021-04-05 20:01:38 +00:00
ita1024 b8bcf0dbb6 Merge branch 'vs-soln-gen' into 'master'
msvs: Update project sorting in visual studio solution file

See merge request ita1024/waf!2319
2021-03-13 06:10:54 +00:00
Erik Parker 8fecd438f3 msvs: Update project sorting in visual studio solution file
In order to correctly set a default project in visual studio any folders
must be listed at the top of the solution file. This change ensures that
any folders included in generated solutions sort to the top of the .sln
file. The default project, if one exists, will be located after the
folders. Note that it should also be correct to place the default
at the top of the file, followed by any folders.
2021-03-12 13:00:38 -06:00
Thomas Nagy 3f8bb16329
waf-2.0.22 2021-01-30 17:27:48 +01:00
Thomas Nagy 816d5bc48b Work around faulty vcvarsall.bat scripts #2315 2021-01-29 23:46:05 +01:00
ita1024 9ace152810 Merge branch 'windows-unit-test-fix' into 'master'
waf_unit_test: Fix command handling under windows

See merge request ita1024/waf!2314
2021-01-21 17:50:35 +00:00
Bootsma, James c747a09a7d waf_unit_test: Fix command handling under windows
The unit test tool moved from a simple split to using shlex.split for
handling the unit test command. This results in the path separators on
windows being treated as escapes.

To handle this the unit test exec command is properly escaped before
joining so that the subsequent split restores the original arguments.
The quote function is also exposed in the Utilities module so that
wscripts making use of the unit test tool can properly quote their
contributions to the command as well.
2021-01-20 16:22:59 -07:00
Thomas Nagy 954adf62e7 Allow mixing Unix paths with destdir on non-Unix platforms 2021-01-19 20:44:13 +01:00
Thomas Nagy 5e96d35cda Fix Build.py indentation 2021-01-19 17:50:25 +01:00
Thomas Nagy f95264563e Add more docs to clang_compilation_database 2021-01-19 17:49:54 +01:00
Thomas Nagy 99a041cb36 Increase clang_compilation_database and swig compatibility 2021-01-13 17:39:52 +01:00
Thomas Nagy 0c31d99614 Suppress cache trimming operation errors 2021-01-12 18:16:57 +01:00
ita1024 57bdad7822 Merge branch 'wafcache_error_parclean' into 'master'
wafcache: fix reporting of concurrent trim error

See merge request ita1024/waf!2312
2021-01-11 22:38:13 +00:00
Federico Pellegrin 1619c2f0fa wafcache: fix reporting of concurrent trim error
As this is run in the non-waf process we don't have Logs, so we
write to stderr instead or we will get a NameError name 'Logs' is
not defined.
2021-01-11 11:18:48 +01:00
ita1024 da22d7253c Merge branch 'cuda_compiler_options' into 'master'
Minor cuda playground improvements

See merge request ita1024/waf!2311
2021-01-09 00:27:55 +00:00
Federico Pellegrin 70e7209f32 cuda: pass correctly compiler options from nvcc to the underlying compiler with --compiler-options 2021-01-07 09:48:05 +01:00
Federico Pellegrin e3f8191097 cuda: solve warnings due to testapp being created by two tg 2021-01-07 09:45:01 +01:00
ita1024 3b46768d3b Merge branch 'wafcache_log_typo' into 'master'
wafcache: fix small typo on stats log message

See merge request ita1024/waf!2310
2021-01-07 07:18:59 +00:00
Federico Pellegrin 5dbae3b012 wafcache: fix small typo on stats log message 2021-01-07 04:09:11 +01:00
Thomas Nagy cf8468a7c3 Do not detect Qt6 when detecting Qt5 2020-12-27 15:33:31 +01:00
ita1024 3e92585541 Merge branch 'wafcache_stats' into 'master'
wafcache: add simple cache statistics collection, configurable via env

See merge request ita1024/waf!2309
2020-12-26 19:24:33 +00:00
Federico Pellegrin 08c2ca49e0 wafcache: add simple cache statistics collection, configurable via env 2020-12-24 04:20:38 +01:00
Andrew Brodko 329cd106bc Haxe support 2020-12-23 21:40:34 +01:00
Thomas Nagy 60e3f5f488 Work around distutils MACOSX_DEPLOYMENT_TARGET regression #2330 2020-12-17 14:17:35 +01:00
Thomas Nagy 307202417c Improve clang_compilation_database interaction with wafcache 2020-12-16 11:08:11 +01:00
Thomas Nagy abfd2f6c76 Reduce wafcache verbosity on cleanup operations 2020-12-16 11:08:03 +01:00