Commit Graph

647 Commits

Author SHA1 Message Date
fedepell e64061f6d2 DOXY_FILE_PATTERNS is generated as a string but then used as an array when using the RECURSIVE option, therefore the generated patterns for files to be searched are wrong. Convert it into an array with split() therefore to have correct patterns. 2016-06-04 08:51:09 +02:00
Thomas Nagy ae243dd23b
Fix waflib/extras/syms.py 2016-05-29 16:58:41 +02:00
Thomas Nagy 5526a71695
Update batched_cc for waf 1.9 2016-05-29 16:45:42 +02:00
Thomas Nagy 6665a6ebdd
Update waflib/extras/stale.py 2016-05-29 14:11:05 +02:00
Thomas Nagy 02a8361149
Beautify Logs.{debug,error,info,warn} now that the formatting bug is fixed 2016-05-28 16:18:51 +02:00
Thomas Nagy 34bad1498f
Remove the preforks since we already have a version with subprocesses in Utils.py 2016-05-27 18:59:40 +02:00
Thomas Nagy a2b7c639e8
cleanup 2016-05-27 18:23:04 +02:00
Thomas Nagy 67e7db41d9
Simplification x=x+1 -> x+=1 2016-05-22 00:45:47 +02:00
Thomas Nagy c2646d2380
Provide md5_tstamp by default and make it easier to add more persistent BuildContext dicts 2016-05-21 11:58:47 +02:00
Thomas Nagy 5cb7b89ac1
typo 2016-05-16 20:11:00 +02:00
Thomas Nagy da5c7d8b5c
Moved unnecessary constants out of Context.py 2016-05-11 21:59:16 +02:00
Thomas Nagy b1f5c0f814
Create installation tasks directly
Task generators created from other task generators may be
skipped during partial builds. This change re-enables
install_task as a task attribute and provides a task
object with input and output nodes which can be re-used
by other tasks.
2016-05-06 15:54:36 +02:00
Thomas Nagy fdc67d58f6
Fix an undefined variable in parallel_debug 2016-04-28 20:25:04 +02:00
Thomas Nagy bf45d33f9e
Update parallel_debug 2016-04-28 20:14:02 +02:00
Thomas Nagy 9133dbc5c9
Cleanup: no need for keys() everywhere 2016-04-22 21:10:22 +02:00
Thomas Nagy b87a761ead
Tuples in startswith/endswith (Python 2.5 feature) 2016-04-21 22:30:35 +02:00
Thomas Nagy d2ba87b296
Duplicate code 2016-04-21 22:12:39 +02:00
Thomas Nagy 8520dd65bb
Code cleanup 2016-04-19 22:00:21 +02:00
Thomas Nagy 8114914e62
Colorgcc for other compilers? Issue 1732 2016-04-19 21:47:59 +02:00
Thomas Nagy fd2981f91f
Remove Task.dep_vars as it is unnecessary 2016-04-16 13:05:27 +02:00
Thomas Nagy fa8d8e2b45
Typo in platform_toolset_ver 2016-04-12 22:06:08 +02:00
James Harris 10a6e27872 Add PlatformToolset ver. to msvs proj template
This patch adds support for an easier syntax for customizing which
version of Visual Studio msvs.py targets. It also allows users to
specify the PlatformToolset property on projects generated by waf. This
is necessary in order to properly generate projects for newer versions
of Visual Studio such as 2013 and 2015.

Example Syntax:

To generate a solution targeted at visual studio 2013 use the following
example:

```Python
class msvs_2013(msvs.msvs_generator):
    cmd = 'msvs2013'
    numver = '13.00'
    vsver = '2013'
    platform_toolset_ver = 'v120'
```

This will populate the associated fields correctly for msvs 2013.
2016-04-12 19:06:41 +02:00
Thomas Nagy d7a295ab0f
Simplification m.group(0) -> m.group() 2016-04-04 22:18:28 +02:00
Thomas Nagy 8717fa791f
outstanding.insert -> outstanding.append_left 2016-03-31 07:42:08 +02:00
Mac Clayton 19dc72e16d Fix qt4.py to use deque instead of list 2016-03-30 19:04:57 -05:00
Gustavo Jose de Sousa d46f541099 Use stash/revert/commit pattern for transactional configuration
Apply that pattern when relevant. That allows correct behavior if tools are
loaded inside a transaction.
2016-03-22 08:05:53 +01:00
Thomas Nagy 017d8fd39e
Use relative paths in apply_incpaths by default
Relative paths are usually best for for specialized compilers (emscripten),
so this is for convenience. Absolute paths are usually faster.
2016-03-17 22:56:34 +01:00
Daniel Bartel 015f522fb3 add option for line length to cpplint 2016-02-26 23:11:37 +01:00
Alexander Afanasyev b99a82ddfe Boost module enhancements and fixes
- Output detected version of boost in dot-form (e.g., 1.56.0, instead of 1_56)
- Fix Boost.Log library detection:
  * when linking to shared library, BOOST_LOG_DYN_LINK needs to be defined
  * when linking to non-multithreaded version, BOOST_LOG_NO_THREADS needs to be defined

  (see http://www.boost.org/doc/libs/1_60_0/libs/log/doc/html/log/installation/config.html)
2016-02-26 21:04:50 +01:00
Thiago da Silva Andrade Soares =^.~= 4bea5a28ae Cppcheck tool - Fix creation of invalid command on windows
The following error occurring when we try to run the cppcheck tool on windows.
As we see in the error message, the command is not well formed.

WafError:
    Command "['C:\\\\Program Files (x86)\\\\Cppcheck\\\\cppcheck.exe'] --inconclusive --report-progress --verbose --xml ..."
returned 1
2016-02-24 21:53:15 +01:00
Thomas Nagy 9147e9128a
Cleanup: unnecessary semicolons in Python code 2016-02-19 23:26:40 +01:00
Thomas Nagy 7e16c7cb1e
Removed bld.returned_tasks 2016-02-15 23:52:11 +01:00
Thomas Nagy 6c372e24fc
Issue 1701 - cpplint 2016-02-13 00:21:37 +01:00
Guillaume Poirier-Morency 70e49cc038 valadoc: Include the '--vala-target-glib' flag 2016-02-12 07:21:28 +01:00
Guillaume Poirier-Morency 8c8b0d8f0b
Apply 'Utils.to_list' on 'vala_defines' and include it in 'valadoc' tool 2016-02-04 07:23:10 +01:00
Jérôme Carretero bc80ea97ae waflib: extras: rst: update scan to provide dependent directive type 2016-02-01 21:59:59 -05:00
Jérôme Carretero c923c31031 extras: rst: extend parse_rst_node() 2016-01-30 13:07:29 -05:00
Thomas Nagy 2999a120a1
Missing cwd handling in exec_command 2016-01-30 16:59:35 +01:00
Ivan Tubert-Brohman 9a7381b20e
No-op in netcache run/post_run if nocache is true
When a task class has a true value for the nocache attribute,
setup_nocache doesn't decorate the run() and post_run() methods of the
class. In most cases, however, that's not enough to disable caching
because the base Task class is still modified; any class based on Task
which doesn't override these methods will still use caching even if it
sets nocache to True. This is solved by having the decorated versions of
run() and post_run() do nothing except call the original version of the
method when the task object has a true value for self.nocache.
2016-01-25 20:40:52 +01:00
Ivan Tubert-Brohman 2a7e0de018
Do chmod in netcache post_run
This ensures that, for example, executable files that are fetched from
the cache end up with the right permissions.
2016-01-25 20:21:15 +01:00
Bálint Aradi d1ebc6f308 Fixing version flag for NAG compiler. 2016-01-15 00:14:37 +01:00
Thomas Nagy adc1ce1375
Simplification: added Task.get_cwd() 2016-01-11 05:25:46 +01:00
Thomas Nagy 69e51290fd Made this project build on Linux 2016-01-03 06:54:21 +01:00
Thomas Nagy 8083205b81 Additional merges from #1666 2016-01-03 05:08:10 +01:00
Thomas Nagy 43e26b5bef
cwd must be a Node object 2016-01-02 01:54:52 +01:00
Thomas Nagy 5a3a89b4de Stop adding incompatible task data into the same dict objects 2015-12-24 18:36:48 +01:00
Thomas Nagy 06c7c09681 Provide node.exists() to increase filesystem abstraction 2015-12-24 18:36:42 +01:00
Thomas Nagy ddaf29b78d Process CPPFLAGS at the end of commands 2015-12-23 19:26:34 +01:00
Thomas Nagy 7681bddfb7 Remove Node.sig and Node.cache_sig 2015-12-23 17:55:44 +01:00
Thomas Nagy 2ab00f7f49 Removed Node.cache_sig 2015-12-23 17:55:44 +01:00
Thomas Nagy e1d82be8a5 The tool kde4 is not included by default in waf 1.9 2015-12-23 17:55:44 +01:00
Thomas Nagy 972d8e4904 The tool qt4 is not included by default in waf 1.9 2015-12-23 17:55:44 +01:00
Thomas Nagy d3f788da4c Added the tool called 'nobuild' to help troubleshoot build scripts 2015-12-23 17:55:44 +01:00
Thomas Nagy 8b74beb233 Removed the split functions from Node.py 2015-12-23 17:54:41 +01:00
Thomas Nagy a184a9e245 Experimental conf.define(key, val, comment='msg in config.h') 2015-12-20 14:26:14 +01:00
Thomas Nagy 95114ff205 wix.py - Issue 1666 2015-12-18 00:35:27 +01:00
Thomas Nagy bdca245588 Replace backslashes in resx.py - Issue 1666 2015-12-17 23:53:41 +01:00
Thomas Nagy 4293b8e19a
Compat - shorter version 2015-12-07 23:36:07 +01:00
Thomas Nagy d109ed4fc7
Additional fixes in extras/compat15.py 2015-12-05 14:00:56 +01:00
Thomas Nagy 2fb1e0cfb2
Let gccdeps work when a custom cwd is provided through bld.cwdx 2015-11-08 11:48:53 +01:00
Simon f3a20e293c Replaced 'source' arg to 'source_files'. Updated Docs and demo. Fixed bugs. 2015-11-08 10:06:03 +01:00
Thomas Nagy 8a3ff0e113
Missing Errors import in print_commands.py 2015-11-06 23:11:49 +01:00
Thomas Nagy ac226635d0
Quote arguments that contain spaces in print_commands.py, and use the latest version of exec_command 2015-11-06 23:07:23 +01:00
Thomas Nagy 7d25369e6c
Removed a leftover print statement 2015-11-06 22:55:45 +01:00
Thomas Nagy 18204eb963
Additional compatibility helpers in compat15.py 2015-11-05 00:57:37 +01:00
Thomas Nagy efbc47b434
Added a fake Constants module in compat15.py 2015-11-04 23:16:48 +01:00
Thomas Nagy cf334db465
Use options.enable_gccdeps if provided by user scripts 2015-10-31 11:24:53 +01:00
ita1024 975fdde91b Merge pull request #1648 from mimon/xcode6-gen
Xcode6 generator
2015-10-29 18:59:16 +01:00
Simon f1da3b34ef Updated useage and docs in xcode6 2015-10-29 11:53:19 +01:00
Simon 53cb70ec44 Renamed stuff in demos to xcode6 2015-10-29 11:52:58 +01:00
Simon 5fcda128b5 Updated documentation 2015-10-29 11:16:25 +01:00
Simon 24dbd3c43c Changed name for the new Xcode tool to xcode6 and kept the original xcode tool 2015-10-29 11:16:05 +01:00
Thomas Nagy 963c3b62c9
docs: apply_incpaths_emscripten will be removed in waf 1.9 2015-10-25 09:00:51 +01:00
Thomas Nagy 02423e440a
Make the emscripten option behave 2015-10-25 01:50:37 +02:00
Jérôme Carretero a0de0eacd5 extras: file_to_object: clean-up and fix issues (reported by Philippe Brais)
Changes:

- Use Node.read('rb') to get bytes (!)

- Remove use of binascii and generate better-looking C.
Binascii returns bytes if input is bytes, requiring a decode()...
There's not benefit in using it, especially if we want to make
better-looking code.

- Remove dead code
2015-10-20 08:19:41 -04:00
Thomas Nagy 26348711f0
Eliminated the last unused variables from the code 2015-10-13 22:57:45 +02:00
Jérôme Carretero bd0008f252 extras: file_to_object: default to safer C code generation
Using asm links makes sense with big files, and if that's the case,
the user can specify it.
The C method also works on all compilers.
2015-10-13 11:46:28 -04:00
Thomas Nagy f28426594e
Cleanup: removed most unused variables and imports 2015-10-11 11:32:27 +02:00
Jérôme Carretero 0f0da92a59 extras: cfg_cross_gnu: fix a typo... again 2015-10-08 16:18:15 -04:00
Thomas Nagy 807a193db6
build_logs disable colors - Issue 1631 2015-10-08 21:57:46 +02:00
Jérôme Carretero 996aca8b8f extras: cfg_cross_gnu: now use conf.env.env, and also clarify the way envars are gotten 2015-10-06 21:21:14 -04:00
Jérôme Carretero 5e7a7794c3 extras: cfg_cross_gnu: fixup typsdqdo 2015-10-06 10:27:19 -04:00
Jérôme Carretero 8da42b9365 extras: cfg_cross_gnu: improve environment variable passing
Changes:

- Can pass environment variables in the form `i686_pc_linux_gnu_AR`...
Dash didn't work...

- Use PKG_CONFIG_LIBDIR only if available
2015-10-05 15:34:30 -04:00
Thomas Nagy 7cba550826
Fixed a few Python3 compatibility issues in extras modules 2015-09-27 16:09:21 +02:00
ita1024 b6af6c5919 Merge pull request #1619 from srouquette/boost
boost: check Boost.Log in check_boost if the user uses it.
2015-09-02 02:30:29 +02:00
Syl 973863e418 boost: check Boost.Log in check_boost if the user uses it. 2015-09-01 20:52:03 +02:00
Thomas Nagy 143ccb7a74
Pull request 1618 - cpplint 2015-09-01 19:40:26 +02:00
Thomas Nagy 61f09a3f7c
Enable 'waf update' when use_config is provided - Issue 1541 2015-08-29 13:05:00 +02:00
Thomas Nagy 41bd22ebfa
Update use_config - Issue 1608 2015-08-29 10:31:02 +02:00
Thomas Nagy e9e8df28a4
iteritems does not work in python3 2015-08-12 18:31:14 +02:00
Thomas Nagy ccdbd79ffa
Python3 fix 2015-08-09 23:50:49 +02:00
Jérôme Carretero c913b779f5 extras: c_emscripten: use emar as AR 2015-08-07 08:50:15 -04:00
Jérôme Carretero ae07720a6d extras: add c_emscripten tool 2015-08-06 23:28:19 -04:00
Jérôme Carretero 699b836728 extras: cfg_cross_gnu: make pkg-config also use PKG_CONFIG_LIBDIR...
... to avoid having the default stuff prepended, and system libs found
when you want to do x-compilation.
2015-08-02 19:14:17 -04:00
Matt Fischer 2424393afd Handle .. within paths in gccdeps
The current code handles .. at the beginning of a path, but not within the path
2015-07-27 17:26:53 -05:00
Simon 70b294f2e1 Added unique_fileref() method to get reference of already existing file references 2015-07-17 00:23:27 +02:00
Simon 70fa79b181 Clean-up 2015-07-15 12:53:30 +02:00
Simon 64405a8c1a Reduced the ConfigureContext to a configure() func. Also replaced dependencies cxx/cxxprogram with ccroot 2015-07-13 13:43:15 +02:00
Simon 3924f60974 Added more target types. Added bld wrappers 2015-07-13 12:47:01 +02:00
Simon 7d50934a8e Removed unused method 2015-07-13 02:25:13 +02:00
Simon 47b5783be5 Docs 2015-07-13 02:24:49 +02:00
Simon a3a74e59c1 Added default values for required build settings 2015-07-13 02:16:52 +02:00
Simon dd19e4b1ee Fixes 2015-07-13 00:51:55 +02:00
Simon da9a86d2a6 Clean up 2015-07-12 22:31:10 +02:00
Simon a59e38835d Clean up 2015-07-12 22:17:26 +02:00
Simon e44ab6e6ec Support for framework,lib,stlib, etc. 2015-07-12 22:06:51 +02:00
Simon 6891ebb7c9 Switched over to use tmp_use_seen istead of link_framework 2015-07-11 16:04:10 +02:00
Thomas Nagy 4949c0d894
Ensure Doxygen outputs are installed even when the task is not run 2015-07-07 21:00:18 +02:00
Simon b8330b29cb Improved Project -> Configuration API 2015-07-07 18:21:35 +02:00
Simon 5f9a900dc1 Made better integrations with the standard INCPATHS variable 2015-07-07 18:07:21 +02:00
Simon ae4f1f5e27 Fixed some issues 2015-07-07 17:54:08 +02:00
Simon 9563da7875 Streamlined API more 2015-07-07 12:17:43 +02:00
Simon 79c91daffc Improved include paths. Added support for c_config files 2015-07-06 13:38:27 +02:00
Simon 1f918ce546 Added documentation 2015-07-05 16:57:27 +02:00
Simon 4167c43c2a Getting Custom file grouping reworked 2015-07-05 15:53:59 +02:00
Simon db2587ea61 Getting Custom source/include heirarchy to work - fixes 2015-07-05 12:37:25 +02:00
Simon d0279469df Getting Custom source/include heirarchy to work 2015-07-05 00:06:56 +02:00
Simon 922be2ff58 Custom source/include heirarchy 2015-07-04 22:56:54 +02:00
Simon d5c5db686a Custom project build configurations fix 2015-07-04 22:23:16 +02:00
Simon 0c864ecaac Custom project build configurations fix 2015-07-04 22:22:19 +02:00
Simon b7e4aed28b Custom project build configurations 2015-07-04 19:13:11 +02:00
Simon a62bef1323 Target dependecies now works 2015-07-04 12:11:10 +02:00
Simon 2424b81f30 Clean-up 2015-07-03 23:41:05 +02:00
Simon 7992473f7d Found out and made some fixes to parent build configurations 2015-07-03 21:16:27 +02:00
Simon ce6a58cd5f Removed recusive writing 2015-06-29 18:31:37 +02:00
Thomas Nagy 705404211a
Removed the unnecessary executable bit on files 2015-06-27 14:04:36 +02:00
Simon 616dd559ec Added ID print wrapper 2015-06-26 23:16:37 +02:00
Simon 11d85e44ee Removed duplicate elements being written 2015-06-26 21:42:02 +02:00
Simon b5b1d520ad Added headers search paths and support for other build settings 2015-06-25 00:44:28 +02:00
Simon c34269bb8c Initial impl. for Xcode 6 - basic tests 2015-06-24 19:32:46 +02:00
Thomas Nagy 65150769cd
Cleanup 2015-06-14 11:48:05 +02:00
Thomas Nagy f6b6191480
Additional crutches for protoc 2015-05-28 23:08:07 +02:00
Thomas Nagy 04556a4d28
Use adequate variable for include paths in protoc.py 2015-05-27 18:45:20 +02:00
Syl 8ef1fa7733 cpplint: keep the old import 2015-05-06 22:33:31 +02:00
Syl 085b80fdb3 cpplint: fixed import. The version on pypi is now up to date and works with Python3. 2015-05-06 19:19:05 +02:00
christophe.duvernois 533599b7ba swig tool can handle -outdir parameter 2015-05-03 16:58:50 +02:00
Thomas Nagy de6b9bde38
Replace cygwin paths in solution files - https://github.com/waf-project/waf/issues/1562 2015-05-01 13:00:45 +02:00
Thomas Nagy 3e3c84abfb
hcode in why.py - https://github.com/waf-project/waf/issues/1561 2015-04-30 20:58:44 +02:00
Jérôme Carretero 01f0ee1005 extras: file_to_object: allow source=[...] 2015-03-18 22:27:53 -04:00
Thomas Nagy fb1d5440ea
cleanup 2015-03-12 19:24:02 +01:00
Daniel Vollmer b1a606c8e6
Generate doxygen into a sub-folder of build
When no OUTPUT_DIRECTORY was set for doxygen, then the parent
directory of the doxyfile was used. If the doxyfile is in the
root-directory, then this was the build-directory itself, which
led to the complete build-directory (including all other build
artifacts) to be installed.

The OUTPUT_DIRECTORY set (if not given) now includes the name
of the doxyfile itself (+ suffix '.doxy').

The install of doxygen-generated files also did not preserve
the directory structure.

The doxy playground example was simplified and updated, as
separate installation is no longer needed.

Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2015-03-05 15:14:22 +01:00
Thomas Nagy df379d3ecd
Look up doxygen inputs relative to the doxygen file - Issue 1542 2015-03-04 19:25:35 +01:00
Harald Klimach 8d788d3e28 Make the NEC Fortran compiler detection flexible to cover the sxf03 as well as the sxf90. 2015-03-04 09:23:00 +01:00
Thomas Nagy 80344dee5e
Use splitlines when possible 2015-03-03 12:19:25 +01:00
Jérôme Carretero 340551d8a0 extras: file_to_object: basic file name escape (fixes issue on Windows) 2015-03-02 18:22:24 -05:00
Thomas Nagy c47b9bcd85
Configuration test for gccdeps flags 2015-03-02 16:54:56 +01:00
Thomas Nagy fa139c5d09
Invalid indentation in Python 3 and regexp enhancements 2015-02-26 23:05:27 +01:00
Thomas Nagy e5056b9ade
Example to how how to obtain build dependencies through strace 2015-02-26 22:30:47 +01:00
Harald Klimach d0c1333396 Corrected the module name convention for the NEC SX compiler. 2015-02-25 15:46:54 +01:00
Harald Klimach 8b58f728b9 Merge branch 'master' of https://code.google.com/p/waf 2015-02-25 11:21:01 +01:00
Harald Klimach 7775cda5c3 Added NEC compiler descriptions for SX machines. 2015-02-25 11:15:55 +01:00
Thomas Nagy b9e3d25918
Issue 1537 - batched_cc /Fo option requires a trailing path separator 2015-02-24 17:50:01 +01:00
Thomas Nagy a933244f48
Enable unity builds for C too 2015-02-23 10:44:57 +01:00
Thomas Nagy 17ab93f32a
Enable Visual Studio support in batched_cc for Issue 1537 (the unity tool provides best performance though) 2015-02-22 13:30:25 +01:00
Jérôme Carretero 49911f72a8 extras: file_to_object: support using the C compiler to support the feature more portably (WIP) 2015-02-20 12:05:08 -05:00
Thomas Nagy e8ae9c1a59
Enable gccdeps for clang too 2015-02-20 14:43:55 +01:00
Thomas Nagy 269c90fe1a
Cache the files read in c_dumbpreproc.py 2015-02-20 12:06:08 +01:00
Thomas Nagy 68a1bab004
Let the forked processes drop closed connections immediately - prefork 2015-02-17 17:10:47 +01:00
Thomas Nagy 412a677e06
Allow prefork.py builds to run concurrently (use random ports) 2015-02-14 15:29:58 +01:00
Thomas Nagy f8ff53ef02
Terminate preforked process if the parent terminates abruptly 2015-02-14 15:04:09 +01:00
Thomas Nagy 5716e35fdd
Slightly better error handling in prefork and preforkunix 2015-02-14 14:04:57 +01:00
Thomas Nagy ad5a6cb0e4
Issue 1467 2015-02-12 00:13:18 +01:00
Jérôme Carretero e1acde1bfb extras: file_to_object: fixup file extension of generated file
- append, don't change
- file extension is .s (don't run preprocessor)
2015-02-09 17:34:19 -05:00
Thomas Nagy e22f7b0cc2
reverting r522e3fb43a1dca184aa346a0cf00ac6bc83b3366 - Issue 1338 2015-02-08 18:51:39 +01:00
Thomas Nagy 1985579cb4
Example of tracking files in the build directory to force partial rebuilds 2015-02-08 11:05:28 +01:00
Thomas Nagy 004b866789
Updated the netcache client/server 2015-01-29 00:00:01 +01:00
Thomas Nagy 8bb6b1d299
Updated netcache_client to waf 1.8 2015-01-28 00:54:06 +01:00
Robert 57ea6be9fc
Issue 1526 - handle reasons for rebuild indepently in extas/why.py
Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2015-01-22 23:21:41 +01:00
Thomas Nagy 0c66df0fab
New option --pin-process for the preforks 2015-01-20 23:13:31 +01:00
Thomas Nagy e044142c8e
Disable preforkunix on w* systems 2015-01-20 22:13:50 +01:00
Thomas Nagy 0bf605e194
Cleanup in the prefork scripts 2015-01-20 21:48:41 +01:00
Thomas Nagy d9908f38ef
Python 3 fixes 2015-01-20 18:47:31 +01:00
Thomas Nagy f10accf861
cleanup 2015-01-19 22:35:20 +01:00
Thomas Nagy fa8d113d41
Additional notes on preforked build processes 2015-01-18 23:56:51 +01:00
Thomas Nagy 8d9e7fda30
New tool nobuild for profiling, and a unix-only version of prefork.py 2015-01-18 13:51:06 +01:00
Thomas Nagy 760b34e264
Do not run processes with file descriptors on the server 2015-01-16 22:14:29 +01:00
Thomas Nagy 59974469fc
Report errors from prefork.py 2015-01-16 21:32:58 +01:00
Thomas Nagy 2d43b3416c
Prevent external connections to the servers 2015-01-16 19:21:20 +01:00
Jérôme Carretero 7c33626306 extras: cfg_cross_gnu: update docs 2015-01-13 13:27:54 -05:00
Jérôme Carretero 0f4a1d5f7d extras: file_to_object: rerun on DEST_CPU change 2015-01-13 13:27:38 -05:00
Thomas Nagy 45d21e96a1
prefork example for executing commands - this can improve full build performance quite a bit 2015-01-11 15:42:27 +01:00
Jérôme Carretero 5746e9a99a extras: cfg_cross_gnu: parse LDFLAGS environment variable 2015-01-06 13:10:28 -05:00
Jérôme Carretero f3320a4b07 extras: cfg_altoptions: use option group 2015-01-06 13:10:20 -05:00
Thomas Nagy 149653a937
First commit of the year 2015 2015-01-01 16:24:54 +01:00
Thomas Nagy 90e7031d2d
blender.py belongs to extras/ 2014-12-20 18:46:55 +01:00
Thomas Nagy 20a1ed6146
Advanced example of library propagation in distnet 2014-11-22 11:53:13 +01:00
Thomas Nagy 2fa4078c47
Clean orphan Qt files 2014-10-31 22:47:58 +01:00
Thomas Nagy 7ffd53b803
Use EnvironmentError more often 2014-10-30 19:09:53 +01:00
Thomas Nagy 2e98ef1313
stale.py improvements 2014-10-30 07:49:59 +01:00
Thomas Nagy ddfabfd80a
Enable the stale.py tool to work with Qt projects 2014-10-25 13:19:22 +02:00
Thomas Nagy a3e882dbba
Moved the stale files example to a single module 2014-10-25 01:57:13 +02:00
Thomas Nagy 9fa6e0aa95
Issue 1503 - 'unicode' built-in handling in python3 2014-10-25 01:08:38 +02:00
Thomas Nagy 995c8a231d
Issue 1501 - Biber tool update 2014-10-22 18:45:21 +02:00
Thomas Nagy c50f084ac8
docs 2014-10-15 20:57:16 +02:00
Jérôme Carretero bb6ad916b2 extras: cfg_altoptions: fix check_cfg to return True on success 2014-10-12 12:19:16 -04:00
Jérôme Carretero d70cd50352 extras: rename my inadvertently offending 'c_' tools to 'cfg_' which hopefully will be more appropriate 2014-10-11 21:14:39 -04:00
Thomas Nagy 30fb9699ef
c_* modules are reserved by compiler_c. These modules redefine check_cfg which will break configuration tests in a very nasty way. 2014-10-12 00:08:16 +02:00
Thomas Nagy 310e691209
BOM is unnecessary 2014-10-11 19:35:16 +02:00
Thomas Nagy c705d019d1
Python3 syntax 2014-10-11 19:24:43 +02:00
Thomas Nagy 037cb7af78
waf 1.8.1 2014-10-11 11:49:00 +02:00
Jérôme Carretero 05ef26f3b8 waflib: extras: add c_cross_gnu tool that shortcuts cross-compilation config 2014-10-11 01:44:47 -04:00
Thomas Nagy 8c0ead0ca1
Python 2.5 is definitely required 2014-10-04 13:49:28 +02:00
Thomas Nagy 5e4110443e
Optimizations 2014-10-04 12:44:03 +02:00
Thomas Nagy 1979e7425c
Cosmetic changes 2014-10-04 02:02:38 +02:00
Thomas Nagy a3b59a5c02
Obtain the default prefix from the wscript file if provided 2014-10-01 01:11:05 +02:00
Thomas Nagy f748a01907
Some more compatibility in compat15.py 2014-09-30 23:53:52 +02:00
Thomas Nagy 608c2c51e1
Update load_module in compat15.py too 2014-09-28 02:58:24 +02:00
Jérôme Carretero 02ad15eb17 extras: halide: support generation of arbitrary outputs 2014-09-22 00:46:28 -04:00
Thomas Nagy d43e1278cf
missing import 2014-09-21 21:02:54 +02:00
Thomas Nagy c427ab45af
Issue 1392 - extras/use_config.py 2014-09-21 20:50:43 +02:00
Thomas Nagy d246665be2
Let the swig tool scan <> includes 2014-09-20 11:04:33 +02:00
Thomas Nagy 470219ee6b
Issue 1477 - boost python detection 2014-09-14 20:08:35 +02:00
Thomas Nagy d02127d136
sort the boost libraries by version number too, there may be more than one version installed on the system 2014-09-14 19:46:24 +02:00
Jérôme Carretero b541cd7327 extras: halide: handle variants, for cross-compilation 2014-09-13 13:49:25 -04:00
Jérôme Carretero cacc8c343b file_to_object: use different alignments 2014-09-08 17:36:49 -04:00
Jérôme Carretero e8f4715c8d extras: file_to_object: change method to work with the assembler instead of linker 2014-09-08 17:31:22 -04:00
Syl 2242b53413 reworked previous fix to match the extension in the regex, based on if the lib is linked statically or dynamically.
removed regex "group" because no rules were applied (+?), they were mandatory.
2014-09-03 00:23:19 +02:00
Syl e0d6bcd1bb related to #1477, add extension filter when matching lib names. 2014-09-02 23:42:55 +02:00
Syl ebfabe3cdb fix indent 2014-09-01 23:17:52 +02:00
Syl 6f228d762a fix issue #1477, thanks to Maxime Arthaud for the patch. 2014-09-01 23:14:10 +02:00
Jérôme Carretero 4b03c35660 extras: add c_config_alt tool 2014-09-01 11:26:03 -04:00
Jérôme Carretero a4d0442e45 extras: add file_to_object tool 2014-08-31 22:37:07 -04:00
Jérôme Carretero 3e378c45bf extras: add halide code generation tool 2014-08-31 22:18:03 -04:00
Thomas Nagy fdc868858d Merge branch 'master' of https://code.google.com/p/waf 2014-08-25 20:19:48 +02:00
Thomas Nagy 3bf6def01d
Issue 1476, regressions in syms.py due to find_program 2014-08-25 20:01:43 +02:00
Thomas Nagy 7e9c18f5e7
NameError -> TypeError - Issue 1475 2014-08-22 22:45:55 +02:00
Thomas Nagy 6eec35c1de
Fixed the 'missing shutdown function' error 2014-08-05 15:43:28 +02:00
Thomas Nagy 4958b4ec47
New extra tool for network shares and long paths handling 2014-08-04 23:09:54 +02:00
Syl ffc07831cc boost: find_file throw an exception is the file isn't found. 2014-07-06 17:30:14 +02:00
Syl b704a18559 boost: on Windows, install DLL for libs linked dynamically.
It will only install DLL when waf is called with the "install" parameter, and will install the DLL in the install directory.
If the user wants to run his exe in the build dir, I'd recommend setting boost lib in the PATH.
2014-07-06 16:35:52 +02:00
Syl 679fe6f807 boost.py: use a different variable to not overwrite tags when matching libs (with python) 2014-06-18 00:12:30 +02:00
Syl 398c505d3d removed testing code. 2014-06-17 23:52:57 +02:00
Syl 1b4eef898f boost.py:
improved regex, removing unnecessary plus sign (we want to match only one group)
reworked python matching (mostly for ubuntu I guess). In case of boost_python, tags and python version are optional, which should work on ubuntu and other cases, without duplicating matching patterns if we aren't searching for boost_python.
added back mandatory tags for the last line (for windows) and added a last line to match boost_lib only (arch/manjaro)
2014-06-17 23:40:21 +02:00
Syl 62879268b2 another potential breakage with previous boost.py
changed the way how the abi is generated, the tag for static (-s) is now added automatically based on the lib you specified in 'lib' and 'stlib'
added back --boost-mt
When checking file pattern, the abi is now optional in the last rule. It's now easier to find a lib on linux if your wscript if also configured for windows.
2014-06-17 20:29:26 +02:00
Syl 6251983780 WARNING: I broke the compatibility with previous boost.py
- removed "static" parameter, now use stlib to specify static libs (added a warning if you were using it)
- removed "mt" parameter, now specify it as part of the abi (see help)
- added "stlib" parameter, to specify which lib will be linked statically. "lib" is used to link shared libs.

explanation:
After struggling to link Boost.Log, the problem lies into which libs can/must be linked statically and dynamically.
I built a small test with only system, locale, log_setup, log and thread, and could link it as static.
But after adding boost_filesystem, I couldn't link everything as static anymore and would fail on a dependency in "locale" (icu, nconv).
Linking everything as shared would failed aswell (log). But linking only "locale" as shared, and the rest as static would work.
Hence the change.

Since I broke everything, I figured I would rework the "mt" parameter, since it's kinda part of the abi on windows.
2014-06-15 17:28:26 +02:00
Josh Bartel 20112c4556
doxygen: Ensure output directory is created
Ensure the output directory is always created to avoid issues when
trying to install on a clean build.

Change-Id: I64be30348af7862971cbbc1f17bc53213b9998f3
Type: Bug Fix
Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2014-06-12 07:20:31 +02:00
Josh Bartel 81c3ec0bf3
doxygen: Add install support
This adds support to the doxygen tool for installing the documentation
that was generated.  A new install_path attribute can be added to the
doxygen TaskGen to control where it should be installed to.

Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2014-06-09 00:33:20 +02:00
Josh Bartel 53945acb25
doxygen: Set cwd to the Doxyfile folder
The doxygen tool had previously been modified to always run from the
root of the build directory.  This was done as a workaround to allow
the OUTPUT_PATH in the doxyfile to contain a relative path.  The tool
then had to be modified to fix up any relative paths in the Doxyfile
to be relative to the root of the build directory.  This is problematic
because there are many DoxyFile parameters that can be relative paths.

This patch fixes up the logic to execute doxygen in the same directory
where the DoxyFile lives.  This allows all relative paths in the
Doxyfile to work so they no longer need fixed up.  It then updates the
logic for OUTPUT_DIRECTORY to handle relative paths correctly.

Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2014-06-09 00:31:13 +02:00
Thomas Nagy 1889619dd4
miscallenous enhancements - Issue 1450 2014-05-30 20:35:09 +02:00
Thomas Nagy 8c678183b0
Follow-up on Issue 1450 2014-05-29 07:23:57 +02:00
Thomas Nagy 3f484f4446
End of Issue 1450 2014-05-24 09:01:31 +02:00
Thomas Nagy 8821ab2b28
moved pch out of demos (requires extras/pch.py) and disabled the dependency on boost 2014-05-21 01:37:14 +02:00
Alexander Afanasyev 3970ffd149
extras/pch.py: Experimental extension to enable precompiled headers for clang++ and g++
Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2014-05-21 00:56:41 +02:00
Thomas Nagy c21317c727
Issue 1453 2014-05-19 21:32:24 +02:00
Thomas Nagy 14a8f03012
Cosmetic changes in extras/swig.py 2014-04-20 02:32:25 +02:00
Thomas Nagy 65d25a9a69
Unmask as many exceptions as possible 2014-04-20 02:29:27 +02:00
Thomas Nagy 0c4b23fe88 hard-coded code snippets in boost.py - Issue 1432 2014-04-10 07:44:17 +02:00
Thomas Nagy b5ceb9ef12
Regression due to lists in GHCPKG 2014-03-17 21:14:19 +01:00
Syl 300d0cf0bc fixed cpplint with -p command line parameter 2014-02-25 22:52:17 +01:00
Syl 45507b2cdf #1413: moved a test 2014-02-24 20:36:36 +01:00