Commit Graph

2283 Commits

Author SHA1 Message Date
Thomas Nagy 0eb79f2514 Force an asm-specific defines flag 2020-08-15 12:17:34 +02:00
Thomas Nagy 8722191e44 Fix playground/pch's second example 2020-08-10 21:16:06 +02:00
Thomas Nagy 49a9845639 Port file_to_obj to Python3 2020-08-03 23:31:18 +02:00
Thomas Nagy 1c1204a739 Improve wafcache process pre-allocation 2020-08-03 23:21:36 +02:00
Alibek Omarov 49c5b387f1 c_config: add MCST Elbrus detection 2020-07-12 14:33:33 +00:00
Matt Selsky a67a1bfc6e Typo 2020-06-30 23:39:13 -04:00
Thomas Nagy a01652d3c2 Conceal gccdeps/msvcdeps errors on inaccessible/unreadable files 2020-06-25 00:55:46 +02:00
Thomas Nagy 8b6786623d gccdeps/msvcdeps: renaming a header must rebuild silently #2293 2020-06-20 00:45:10 +02:00
Thomas Nagy 8537c0de4a Update c_dumbpreproc (broken) 2020-06-18 21:15:46 +02:00
Andreu Montiel 1e1818c06b Allow parameter "always" in doxygen tool (waflib/extra/doxygen.py) 2020-06-13 16:45:18 +02:00
Johan Pauwels 058552063c Escape quoted strings in Xcode project 2020-05-18 13:15:11 +01:00
Johan Pauwels 0d5f11ca29 Export preprocessor macros in Xcode project 2020-05-18 13:13:51 +01:00
Johan Pauwels 44cd7ff57d Fix configuration of linker flags in Xcode file 2020-05-18 13:12:48 +01:00
Johan Pauwels bb86b2c15b Fix alignment in generated Xcode file 2020-05-18 13:09:40 +01:00
ita1024 3ce7da0976 Merge branch 'sphynx_install' into 'master'
sphinx: fix installation phase (as generated files are unknown until build)

See merge request ita1024/waf!2289
2020-05-15 15:31:27 +00:00
Johan Pauwels aafc0364fc Xcode6 py3 fix.
The return type of .keys() in Python 3 is no longer a list, but a 
'dict_keys', which does not support the '+' operator.
2020-05-14 20:26:43 +00:00
Federico Pellegrin def556acd6 sphinx: fix installation phase (as generated files are unknown until build) 2020-05-06 13:50:26 +02:00
Federico Pellegrin b202ab275e qt5: improve documentation on library detection and options 2020-04-30 07:59:03 +02:00
Michael Vincent f414602722 msvcdeps: Tweak debug output
Print out which source file waf is gathering dependencies for and leave
the leading spaces in the dependency debug output because it can be
helpful to see the dependency hierarchy.
2020-04-22 19:12:13 -05:00
Mathieu Courtois cef110adc2 boost: ignore version number from library name 2020-04-10 09:34:26 +02:00
Mathieu Courtois d2bd00ec5a boost: fix removal of lib extension 2020-04-09 15:58:05 +02:00
Thomas Nagy f1d78d1246
waf-2.0.20 2020-03-28 09:16:58 +01:00
Federico Pellegrin e3227a61e9 c_config: -flto and -fno-lto need to be passed also when linking 2020-03-19 09:01:34 +01:00
Thomas Nagy c98e8b9b3d
Improve custom option processing #2280 2020-03-04 23:14:40 +01:00
swaldhoer 6182a905ea Add support for clang++ on cygwin 2020-03-01 13:32:53 +01:00
ita1024 7cfdf4cc33 Merge branch 'add-clang-support-to-cygwin' into 'master'
Add support for clang on cygwin

See merge request ita1024/waf!2279
2020-02-29 22:07:09 +00:00
swaldhoer bcf03c04c0 add support for clang on cygwin 2020-02-29 11:00:12 +01:00
Michael Vincent 44bb31da96 gccdeps: Add support for gas
Add support for generating and using gcc's native dependency files with
the GNU Assembler in addition to the existing C/C++ support.

When the gas and gccdeps tools are loaded, the configure step will test
whether gcc operating on an assembly file supports the -MMD argument.
If so, waf will pass the -MMD argument to .S files assembled with gcc
which will cause it to generate .d dependency files. Waf will then parse
those files for dependency information.

Note: This will only work for assembly files compiled through the gcc
frontend, not with GNU as directly. It also requires assembly files to
use the uppercase .S file extension.
2020-02-24 11:28:45 -06:00
Federico Pellegrin 69e1290b40 doxygen: add ext_int to force build ordering 2020-02-17 11:44:14 +01:00
ita1024 5f7924d81d Merge branch 'javatest-deps2' into 'master'
javatest: add dependency management for jar/java taskgens

See merge request ita1024/waf!2276
2020-01-04 10:30:34 +00:00
Federico Pellegrin f7962c5edc javatest: add dependency management for jar/java taskgens 2020-01-04 10:17:40 +01:00
Federico Pellegrin e32a6d4103 javaw: fix buglet overwrites working variable while adding dependencies
variable x is used in the outer loop and gets corrupted by inner enumeration in case of non-jar dependency

to reproduce: use the demos/java and run waf build twice: the first time will work (since no class files around)
while the second will not since will by bad luck pick a class file in the inner loop
2020-01-04 09:35:07 +01:00
ita1024 29af444dd0 Merge branch 'fix-buildcontext-detection' into 'master'
Fix detection of build context when a custom context is used

See merge request ita1024/waf!2274
2020-01-02 18:57:35 +00:00
Morten V. Pedersen 6467070a1f Using suggested self.cmd.startswith approach 2020-01-02 14:47:39 +01:00
Thomas Nagy 62e2f7fd87 Exclude ConfigSet from altering ConfigurationContext.run_build caches #2273 2019-12-20 07:55:36 +01:00
Morten V. Pedersen 23c533566f Fix detection of build context when a custom context is used 2019-12-18 11:24:32 +01:00
Thomas Nagy f5a398452e
Make multicheck collisions less likely 2019-12-14 23:49:49 +01:00
ita1024 ccd6bc4ea4 Merge branch 'distclean_no_lock_env_vars' into 'master'
Make distclean target 'no_lock_in_top/run' modifiers compatible with env vars

See merge request ita1024/waf!2271
2019-12-05 19:39:12 +00:00
Adriano Scoditti 89175bf974 Make distclean target 'no_lock_in_top/run' modifiers compatible with env vars 2019-12-05 08:16:10 +01:00
Thomas Nagy 702870e98c
Remove conf.find_cpp from irix compiler detection 2019-11-29 23:07:26 +01:00
Thomas Nagy d000220c26
Update irixcc 2019-11-29 22:58:50 +01:00
Thomas Nagy 61ee22b598
waf-2.0.19 2019-11-24 11:17:38 +01:00
Severin Strobl 63935db906 Support versioned shared libraries.
Shared libraries often use a suffix encoding their version which should
be handled when parsing linker flags.
2019-11-19 10:32:09 +01:00
Thomas Nagy fb499f29da
Improve the Qt5 fPIC/fPIE detection 2019-11-16 18:46:57 +01:00
Thomas Nagy ec79cdf125
Use task.get_cwd() in clang_compilation_database 2019-11-10 19:00:50 +01:00
Rafaël Kooi c0c4e29c9f Add back an accidentally deleted line clang_compilation_database.py 2019-11-10 15:50:30 +01:00
Thomas Nagy 3832f5c94b
Typo 2019-11-10 12:34:18 +01:00
Thomas Nagy 5b82ba4fa4
Fix relative path comparisons in clang_compilation_database 2019-11-10 12:32:51 +01:00
Thomas Nagy eaa1e372af
Remove the dependency on Qt5Gui in the Qt5 detection 2019-11-10 10:36:30 +01:00
Thomas Nagy b5173b099e
Fix one more issue in msvc_pdb.py 2019-11-09 00:55:18 +01:00
Thomas Nagy 8849fe04e7
Further simplifications 2019-11-09 00:22:31 +01:00
Thomas Nagy b0539ba41b
Simplify msvc_pdb.py 2019-11-09 00:16:15 +01:00
Thomas Nagy 0fca958657
Normalize the indentation according to the rest of the project 2019-11-08 20:43:45 +01:00
Thomas Nagy 3ac0ff4fd6
Ignore resource files 2019-11-08 20:39:47 +01:00
Federico Pellegrin 217b3fcaa6 Tools/c_config.py: update to documentation 2019-11-05 14:01:51 +01:00
Alibek Omarov e53f071bbe msvc_pdb: check compiled_tasks existence, so it will not misleadingly throw a stacktrace if no sources was added 2019-11-04 16:31:58 +03:00
Thomas Nagy 2931163e56
Improve os.environ propagation #2264 2019-11-03 10:24:43 +01:00
Thomas Nagy 9da14a3356 Improve cache activity verbosity 2019-10-27 12:57:11 +01:00
Thomas Nagy bd5ae88e15
Push wafcache files synchronously for now 2019-10-23 19:52:26 +02:00
Rafaël Kooi 05a9ba59c6 [MSVC/Fortran] Add /Fd flag when /Zi or /ZI flags are detected
Fixes #1731
2019-10-21 23:52:05 +02:00
Thomas Nagy 2c90724ca0
Propagate ldflags to fortran tasks #2262 2019-10-19 00:11:11 +02:00
Thomas Nagy fbee1a19d2
Tune the application name on --help #2254 2019-10-14 07:59:40 +02:00
Thomas Nagy 6539bd1ad3
Improve error messages in c_aliases 2019-10-08 20:04:00 +02:00
Thomas Nagy 2758fb3f7c Silently ignore negative values for -j 2019-09-26 21:50:18 +02:00
ita1024 a56186637c Merge branch 'pytest_njd' into 'master'
pytest: add handling also of java dependencies via CLASSPATH (ie. JEP/Jython)

See merge request ita1024/waf!2258
2019-09-13 22:24:55 +00:00
Federico Pellegrin 02c3711e2e javatest: manage environment also for non-java dependencies (ie. JNI / JEP) 2019-09-13 22:24:28 +00:00
Federico Pellegrin 7ab507c799 pytest: add handling also of java dependencies via CLASSPATH (ie. JEP/Jython) 2019-09-10 09:55:17 +02:00
Thomas Nagy 68bf3867df
Unbreak the endianness test with msvc 2019-09-08 22:51:09 +02:00
Alibek Omarov b8fd6a0515 clang_compilation_database: fix #2247, add clangdb command to generate database by request without rebuilding, add tests (WIP) 2019-09-08 20:05:37 +00:00
Thomas Nagy 4389e4400e
Add WAFCACHE_NO_PUSH to extras/wafcache 2019-09-01 09:31:07 +02:00
Thomas Nagy aece9b5e4b Enable wafcache remote servers 2019-08-25 22:31:12 +02:00
Thomas Nagy d2060dfd8a Conceal imp warnings in Python3 2019-08-14 22:05:45 +02:00
Thomas Nagy 0c0916ebdb
Add a new file-based waf cache implementation 2019-08-01 21:23:46 +02:00
Thomas Nagy 2793fb7dbb
Improve endianness detection 2019-07-31 21:04:53 +02:00
Thomas Nagy 4a79f95aa4
Disable lto for the endianness configuration test #2250 2019-07-30 18:45:07 +02:00
Thomas Nagy ea17399be6
waf-2.0.18 2019-07-14 10:44:58 +02:00
ita1024 a91bb8fa63 Merge branch 'doxygen_order_fix' into 'master'
Fix doxygen task-gen. pars input before processing

See merge request ita1024/waf!2255
2019-07-11 16:58:08 +00:00
Thomas Nagy bbaa976ae0
Add executable arguments for configuration tests / execute=True
conf.check(..., execute=True, test_args=['--abc=def'])
2019-07-11 07:55:38 +02:00
Thomas Nagy 88fa1fab83
Make the configuration cache more accurate #2251 2019-07-08 19:23:50 +02:00
Philipp Spilger ab167f687d Fix doxygen task-gen. pars input before processing
* OUTPUT_DIRECTORY now is created for a present parameter in `pars`
  of the task.
2019-07-05 10:38:10 +00:00
David Stöckel 0c16ab4f65 Set resource-dir explicitly for genpybind-parse 2019-07-02 10:46:34 +02:00
Johann Klähn cc20b414b3 Add genpybind feature 2019-07-02 10:46:34 +02:00
Thomas Nagy 8cf982a766 Fix a deadlock with cython+subst tasks #2244 2019-06-27 09:38:49 +02:00
Thomas Nagy 2e9954e087 Add a dependency scanner for gas/yasm and nasm (incomplete) 2019-06-26 15:00:03 +02:00
ita1024 bdb4dd90f6 Merge branch 'distclean_no_locks_aware' into 'master'
Do not clean lock files in top and run dirs if no-lock opts are set

See merge request ita1024/waf!2252
2019-06-26 10:46:33 +00:00
Thomas Nagy 770910fcda Detect of assembly features in bld.program()/bld.shlib() 2019-06-26 12:03:29 +02:00
Adriano Scoditti 9e59917ee0 Do not clean lock files in top and run dirs if no-lock opts are set 2019-06-26 11:33:46 +02:00
Thomas Nagy b7a6114ac7 Limit fast_partial.py failures on configuration tests 2019-06-25 11:53:00 +02:00
Thomas Nagy 173f410e3f Improve the configuration cache accuracy 2019-06-25 11:51:44 +02:00
Thomas Nagy 9b3ab4b874 Improve fast_partial compatibility #2240 2019-06-23 08:45:18 +02:00
Thomas Nagy 497b875a89 Add -fno-strict-aliasing flags only if missing
https://gitlab.com/ita1024/waf/merge_requests/2248/diffs
2019-06-20 23:14:51 +02:00
ita1024 0178e6a692 Merge branch 'python_flat_install' into 'master'
Allow for flat install of python files via `py` feature

See merge request ita1024/waf!2249
2019-06-20 17:18:55 +00:00
Eric Müller e319a9c2c9 Allow for flat install of python files via `py` feature 2019-06-19 22:33:36 +02:00
ita1024 e9498c9ad7 Merge branch 'cross_prefix_objcopy' into 'master'
Use cross_prefix option for objcopy if available

See merge request ita1024/waf!2247
2019-06-19 20:29:27 +00:00
Eric Müller 97ab1e5a52 Use cross_prefix option for objcopy if available 2019-06-19 22:15:03 +02:00
Eric Müller 68ec2057b9 Fix local_rpath tool 2019-06-19 22:03:59 +02:00
fedepell 31c51501d7 javaw: bugfix outdir is always a node (since converted in apply_javac) 2019-06-06 15:06:41 +02:00
Thomas Nagy 36898e12af
waf-2.0.17 2019-06-02 09:45:17 +02:00
Thomas Nagy fa6496dbc4
Use a constant instead of a hard-coded number (Qt5) 2019-06-02 09:23:57 +02:00
Thomas Nagy 36a0c12b3b
Rework installation colors 2019-06-02 09:20:29 +02:00