Commit Graph

1783 Commits

Author SHA1 Message Date
Thomas Nagy 15fb3a33eb
Make the invalid uid task verification slightly less verbose 2017-04-20 22:10:08 +02:00
Thomas Nagy 93053013f9
Cleanup: Break multiple statements on multiple lines 2017-04-17 13:20:00 +02:00
Thomas Nagy 43c7891fe5
Cleanup 2017-04-17 12:29:17 +02:00
Simon c967d29e48 Replace param 'source_files' with 'group_files'.
The 'source_files' param to the xcode6 tool was originally separated from the
conventional 'source' param because it was used to control how the source files
would appear in the XCode folder UI. Also, it'd allow to add any file extensions,
and not limited to those extensions supported by the loaded set of waf tools.

This commit renames 'source_files' param to 'group_files'. It also changes the semantic so that 'group_files' now is used like the following:

bld(
 source='...', # These are now the files compiled by XCode
 'group_files': ..., # Optionally customize the way source files appear i the UI
)

Previously, 'source_files' was used to collect source files for compilation in XCode, and to customize the UI folder structure. In this commit source_files is used only to let the user group files in different UI folders (and add additional resource files besides source files). I want to do the renaming to better reflect the param's meaning.

Additional changes:

* Remove unique_filereference

* Updated examples
2017-04-16 01:35:16 +02:00
Thomas Nagy 8bc0cfbcb3
Provide bld.cur property for compatibility
Though the property bld.cur was used internally, a few build
scripts may be relying on it. This property is to be removed
in waf-2.0
2017-04-15 15:15:32 +02:00
Thomas Nagy e30a2da973
Reflect the current build group in bld.current_group 2017-04-15 15:12:41 +02:00
Thomas Nagy 45b05b3f30
Cleanup #1943 2017-04-15 13:50:21 +02:00
Thomas Nagy 3ed319a744
Obtain NO_LOCK_IN_TOP/RUN/OUT from os.environ too 2017-04-14 13:04:51 +02:00
Thomas Nagy 2ef701bbbd
Do not cast test outputs to integers with add_to_env 2017-04-14 02:01:35 +02:00
Thomas Nagy b9df5b205e
Detect Python from conf.env.PYTHON 2017-04-14 01:54:26 +02:00
Thomas Nagy 6702434df4
Ensure env.PYTHON is set (regression) 2017-04-13 21:09:43 +02:00
Thomas Nagy 6d19d4211d
Waf 1.9.10 preparation 2017-04-13 19:46:52 +02:00
Thomas Nagy ae3f254315
Extract the distcheck command argument 2017-04-13 19:01:03 +02:00
Thomas Nagy 0664e621da
Ignore empty lock files 2017-04-13 12:12:09 +02:00
Thomas Nagy 65b5a3966d
Keep opt.load('python') optional 2017-04-13 12:11:36 +02:00
Thomas Nagy 22ac435454
Ignore empty environment variables in find_program 2017-04-10 20:39:45 +02:00
Thomas Nagy d300a7ce0f
Make target declaration unnecessary #1943 2017-04-09 11:28:53 +02:00
Thomas Nagy 26bd012695
Detect the most recent msvc version first 2017-04-08 21:35:23 +02:00
Thomas Nagy 059939ef60
Xcode 6 generator fixes #1939 2017-04-08 02:24:57 +02:00
Thomas Nagy f6a030e172
Docs for #1937 2017-04-01 10:12:31 +02:00
Thomas Nagy bffa757bae
Add -pie for parse_flags #1936 2017-04-01 09:29:10 +02:00
Thomas Nagy e503375cb0
Add new entries for parse_flags #1936 2017-03-31 18:15:14 +02:00
Matt Selsky b0524d1a6f Typos 2017-03-27 19:30:51 +02:00
Harald Klimach ede9ac0740 Fixed Fortran module naming scheme (unexpected upper instead of lower). 2017-03-27 19:30:13 +02:00
yngwe@FRY 94fd866949 #1925: improve support for Visual Studio 2017, added support for all cross compiler & added ARM64 target support 2017-03-25 23:22:21 +01:00
Thomas Nagy 14c57b47e6
waf-1.9.9 2017-03-25 13:36:20 +01:00
Thomas Nagy 389f3f3b28
Order msvc compiler detection #1907 2017-03-25 13:33:22 +01:00
Thomas Nagy ee4d91dfce
Improve Qt detection with frameworks 2017-03-25 12:51:26 +01:00
Jan Niklas Hasse aa73787f63 Support CLICOLOR(_FORCE) to control colored output 2017-03-25 10:38:27 +01:00
Gordon Tisher 2942da2efe Update vs2017 support to correctly configure x64 2017-03-15 18:18:44 +01:00
Gordon Tisher d86f2ccd17 Add the ability to detect Visual Studio 2017 to msvc 2017-03-14 22:32:10 +01:00
Simon Guillot 0a789a6f09 Fix bug in the clang_compilation_database tool when no C compiler is loaded 2017-03-14 22:20:43 +01:00
Thomas Nagy c8638eab3e
Cleanup 2017-03-08 18:26:20 +01:00
Justin Israel 7caabfd264 Extend ListContext to print TaskGen descriptions
Signed-off-by: Justin Israel <justinisrael@gmail.com>
2017-03-08 18:21:50 +01:00
fedepell 6ce409f98f cppcheck: fix Python3 incompatibilities (see #1921) 2017-03-08 18:17:52 +01:00
Thomas Nagy 56c9721d88
Additional fortran extensions #1916 2017-03-04 12:10:12 +01:00
Thomas Nagy f7a16da8fc
Provide unity builds per task generator 2017-03-04 12:08:55 +01:00
Thomas Nagy 512bbfd819
Obtain run_build_cls from run_build/check parameters 2017-03-04 08:31:59 +01:00
DragoonX6 70616f2b7d Make clang_compilation_database add-on always output complete listings. 2017-02-18 11:58:50 +01:00
Alexander Afanasyev 7779706bc9 qt5: Workaround for QT5 detection on macOS (Bug #1910) 2017-02-15 18:35:28 +01:00
Matt Selsky f2186bc17b Typo 2017-02-15 08:09:40 +01:00
Alexander Afanasyev f05372f897 c_osx: Fix install task for mac_files 2017-02-15 08:05:41 +01:00
Thomas Nagy cb0fa36265
Better error message on missing macros 2017-02-14 22:47:15 +01:00
Thomas Nagy b4485d8bb1
Warn for missing cflags/cxxflags in gccdeps 2017-02-14 22:46:46 +01:00
Thomas Nagy 1e7f260c07
Fix the thread index in parallel_debug 2017-02-14 19:42:34 +01:00
Thomas Nagy a6109383bf
waf-1.9.8 2017-02-13 20:54:50 +01:00
Thomas Nagy ffcbf5d402
Work around an annoying Python 3.6 regression #1889 2017-02-13 20:53:15 +01:00
Thomas Nagy ef3b1bdcbf
Keep winres flags in subsequent detections #1908 2017-02-11 23:34:21 +01:00
Thomas Nagy 27cba45b5f
cleanup 2017-02-08 21:55:50 +01:00
Yinon Ehrlich 166fa49679 Retain original trace-back (#1903) 2017-02-05 12:59:01 +01:00
Thomas Nagy ace38d2d75
Cleanup 2017-01-30 23:24:35 +01:00
Jan Niklas Hasse 86e77ef5c3 Improve error message about version mismatch (#1902) 2017-01-30 23:23:15 +01:00
Thomas Nagy 2cf69d9a79
Simplify the Qt5 library detection 2017-01-28 11:40:41 +01:00
Thomas Nagy 4bdcc37d06
Now -qopenmp option #1900 2017-01-25 18:36:33 +01:00
DigitalDan05 fcb95f4532 Allow numbers for Java compat attribute (#1899)
Force the java "compat" parameter as a string.
2017-01-24 20:51:29 +01:00
fedepell 823ad57b89 qt5: generate the list of Qt5 libraries by searching on the system, instead of hardcoded list in tool
This gives the possibility to search on the system (QT5_LIBDIR or library automatically
found) for libraries available instead of using the list hardcoded in the tool. The search is
done using a regexp that matches the same files as the ones used for library search with support
for dynamic/static and win32/unix.

This change makes the tool more versatile to new versions of Qt5 as we don't have to maintain the
library list anymore. It should also make configure faster as just the libraries phisically present
will be tested upon. Custom libraries installed on top of base Qt5 will be also recognized with this
method.
2017-01-24 18:25:28 +01:00
Matt Selsky d27f613fab Typo in docstring (#1895) 2017-01-16 18:41:23 +01:00
Federico Pellegrin 7133dab2dd Remove .so extension from detected qt5 library (#1892) 2017-01-11 21:29:59 +01:00
fedepell 821565818f qt5: add --qtextralibs option to add qt5 custom libraries on the system to the default libraries list present in the qt5 tool
example usages:
waf configure --qtextralibs Qt5OpcUA
waf configure --qtextralibs Qt5OpcUA,Qt5Dummy
2017-01-11 08:07:05 +01:00
Thomas Nagy fb4116f10e
docs 2017-01-06 23:14:51 +01:00
Thomas Nagy 3a12b52372
Fix the method specification in syms.py 2017-01-06 23:09:42 +01:00
Thomas Nagy 3938bb89aa
Missing parentheses in syms.py 2017-01-06 23:00:45 +01:00
Federico Pellegrin 17e1ef04ad Add qt5 5.8.x new libraries to qt5 tool (#1888) 2017-01-05 19:32:17 +01:00
Thomas Nagy 8fbb14356b simplification 2016-12-28 11:27:30 +01:00
Matt Selsky dcc0a6a917 Make sure to save compiler optimization flags from foo-config scripts (#1887)
python-config on openSUSE needs -O2 to match -D_FORTIFY_SOURCE

Fixes #1886
2016-12-28 11:21:09 +01:00
montonero b97681c110 Added '-o' flag for emscripten linker (#1885)
* correct static lib extension for emscripten

* added space after '-o' flag for emscripten/clang

* removed empty line

* -o flag for linker
2016-12-27 20:15:53 +01:00
Thomas Nagy 974f59780d Prevent accidental data sharing on ext_in/ext_out/before/after 2016-12-27 14:42:54 +01:00
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