2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-30 05:52:24 +01:00
Commit Graph

585 Commits

Author SHA1 Message Date
Jérôme Carretero
f9944a5ec7 rst: make parser overridable 2013-08-25 15:35:33 -04:00
Jérôme Carretero
e62d3771e1 extras: rst: add basic rst2latex support 2013-08-24 21:26:37 -04:00
Jérôme Carretero
f982e0461a tools: tex: scan (local) style files too 2013-08-24 20:24:02 -04:00
Jérôme Carretero
2b309cfb79 extras: rst: use to_list on rst options, use -o switch to make older rst2pdf happy 2013-08-21 01:21:17 -04:00
Jérôme Carretero
669094a51f extras: rst: add install_path processing (defaults to not installing) 2013-08-20 13:59:45 -04:00
Jérôme Carretero
24abf4f08c extras: rst: pimp the scanner
Changes:
- update the include regexp to support the figure directive, and
  substitution targets.
- warn on missing files that would be included
2013-08-18 23:29:50 -04:00
Jérôme Carretero
5e16b5dbbc extras: add rst tool, for reStructuredText processing 2013-08-18 17:17:00 -04:00
Alexander Afanasyev
8e50cda867 extras/doxygen: Adding support for RECURSIVE and making detection non-mandatory by default
added: support for RECURSIVE, as well as for included and excluded files

changed: detection of doxygen is non-mandatory by default. If it is
         desired that doxygen is mandatory, user is expected to check
         bld|conf.env.DOXYGEN and bld|conf.env.TAR variables

Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2013-08-18 21:31:22 +02:00
Thomas Nagy
135fed0830 Issue 1334 2013-08-17 20:24:21 +02:00
Thomas Nagy
20ae777428 disabled the check_exe validation by default and enabled invalid name detection 2013-08-17 18:19:10 +02:00
Alexander Afanasyev
9b75b843ae Tools/python: Extending python tool
add: show more command-line arguments to control which
     python is used and where py/pyext files should be installed.
     The new options are in addition to the existing PYTHON, PYTHONDIR,
     and PYTHONARCHDIR environment variable, providing the help messages
     to the user, so it can easily change parameters without second-guessing
     of what are they.

     Environmental parameters override command line arguments (is it right?)

updated: An extension to Configure.find_command to allow specification
         of the name for the searched command (using `msg` option). This is
         helpful when the search command is a huge list, as in the case of
         python's python-config case.

updated: Do not specify prefix for `get_python_lib`, since this way it
         can result in a wrong PYTHONDIR and PYTHONARCHDIR on certain platforms
         (e.g., OSX)

updated: Changing logic with byte-compilation of python files. Mow, files are
         compiled during the build stage, not install stage.  During the
         install stage files are simply copied to the requested
         location.

updated: If there is an error in python source code, byte-compilation
         phase will raise an exception and abort building process.

Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2013-08-17 18:15:05 +02:00
Jérôme Carretero
b32ab8c7c5 utils: fix "typo" in check_exe()
Yeah, I was returning the directory name in some cases...
2013-08-14 17:57:26 -04:00
Thomas Nagy
19e624b5f4 Issue 1345 multibib support in tex/latex 2013-08-14 18:37:16 +02:00
Jérôme Carretero
8c2c8f1615 Context: simplify waf tool loading error handling
- Assuming that an exception could have been raised, the worst thing
  we do is presenting the wrong exception to the user.
- Actually, the exception is more precise now:

  - if we want to load('pouet'), the error will always be::

      ``No module named pouet``.

  - if we want to load('pouet.coin') the error will always be::

      ``No module named pouet.coin``

    Before it could be either::

      ``No module named pouet.coin``

    or::

      ``No module named coin``
2013-08-14 11:31:44 -04:00
Jérôme Carretero
5db6202ce1 context: "fix" waf tool loading with python 3.3 2013-08-14 11:20:01 -04:00
Jérôme Carretero
f3f9e9f99d provide a clearer error message in case Popen'ed executable is not executable
subprocess.Popen() will give a proper error message if the first
argument is an absolute path, but if it's a bare command name, it will
complain with a "Permission Denied" error.

This change provides a clear error every time.

If speed is proven to have an impact on this code, we could add
the "Logs.verbose > 0" precondition or add memoization.
2013-08-12 20:00:47 -04:00
Jerome Carretero
a40dbe073b waf-zip: zip-packed waf
Ability to use a waflib.zip file with waf-zip entry point

Changes:

- created waf-zip entry point
- waflib.zip can created by doing::

     zip waflib -9 waflib/*.py waflib/Tools/*.py waflib/extras/*.py

- the wscript also builds waflib.zip
- allow selecting which core tools to use (saves 31k for C/C++ only)
  By default, everything is included.
- altered module loading functions to allow loading modules from a zip file.
2013-08-12 19:34:43 -04:00
Thomas Nagy
30c10e85d5 Issue 1343, regression in qt4 support after some refactoring 2013-08-12 07:55:01 +02:00
Jerome Carretero
3c00a614d7 Revert "Issue 1334 - let FOO_ST:FOO return empty when FOO_ST is empty/undefined"
This reverts commit d4d33bba2a.

It breaks demos/c
2013-07-20 14:57:20 -04:00
Jerome Carretero
edf26656ab Tools: ccroot: fix typo introduced in e5cd63a6 2013-07-20 14:52:19 -04:00
Thomas Nagy
007acd87cf Issue 1335 2013-07-16 21:10:32 +02:00
Thomas Nagy
e9fd0660dc Undefined 'logger' variable 2013-07-16 21:00:02 +02:00
Matt Hoosier
1aad65b886 Add 'msvcdeps' tool
This tool operates similarly to 'gccdeps' by offloading the
flattening of the #include dependency tree to the compiler.

Change-Id: I5e58e8ca838f3d3dc65efa6ce4abf161110632ea

Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2013-07-16 20:57:06 +02:00
Thomas Nagy
f588f95a27 Issue 1339 detect the sun compiler version number 2013-07-13 19:06:08 +02:00
Thomas Nagy
d4d33bba2a Issue 1334 - let FOO_ST:FOO return empty when FOO_ST is empty/undefined 2013-07-08 19:37:42 +02:00
Thomas Nagy
a1d35c0a69 simplification in syms.py 2013-06-27 22:22:25 +02:00
Matt Hoosier
24983316d6 syms.py: allow environment to supply paths to dumpbin and nm
This is required when doing cross-compilation.

Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2013-06-27 22:18:59 +02:00
Thomas Nagy
5ea64b56ac Issue 1329 C# response file flag quoting issues 2013-06-21 18:22:43 +02:00
Thomas Nagy
3f78d2223a Issue 1328 forgot to use the maxdepth argument in ant_glob() 2013-06-21 18:16:37 +02:00
Thomas Nagy
58fe611bb9 Issue 1327 - typo 2013-06-09 09:47:39 +02:00
Thomas Nagy
319289ec3c Issue 1223 2013-06-09 09:47:18 +02:00
Thomas Nagy
3a285c62b1 Issue 1327 2013-06-09 09:47:01 +02:00
Thomas Nagy
b241462a2a Issue 1327 2013-06-09 09:46:44 +02:00
Thomas Nagy
1e2e7f6074 Issue 1323 2013-06-01 03:53:06 +02:00
Thomas Nagy
4e8fda5644 Fix for systems without threading - Issue 1323
Conflicts:

	ChangeLog
2013-05-30 21:18:26 +02:00
Thomas Nagy
144f4a4d25 Issue 1321, more accurate task count for qt4 and build groups 2013-05-29 22:36:07 +02:00
Thomas Nagy
fa5ed99a21 Removed the unused env parameter from conf.write_config_header() 2013-05-26 21:48:26 +02:00
Thomas Nagy
e8eafe4b9b removed Node.search (use Node.search_node) and an old compiler_cc references 2013-05-26 21:43:27 +02:00
Thomas Nagy
5c6d626048 removed the cache from the task level, it usually degrades performance and is better implemented on the compiler level 2013-05-26 10:14:49 +02:00
Thomas Nagy
e5cd63a670 Issue 1320, do not propagate external libraries uselib vars 2013-05-26 09:58:11 +02:00
Thomas Nagy
5b3dc2c5ab apidoc fixes 2013-05-25 22:49:22 +02:00
Thomas Nagy
5906f37447 Simple system for logging the outputs
Add the following to your wscript file:

def init(ctx):
    ctx.load('build_logs')
2013-05-25 17:39:41 +02:00
Thomas Nagy
856db9cc90 added export_includes/export_defines parameters to read_shlib/read_stlib 2013-05-25 15:17:25 +02:00
Thomas Nagy
c9fa0b75b5 preparation for waf 1.7.11 2013-05-25 12:00:37 +02:00
Thomas Nagy
760d0f875c Issue 1319 Reduce the amount of paths for the unit test execution 2013-05-19 08:49:40 +02:00
Thomas Nagy
c4685a8cb8 Issue 1310 use INCLUDE/LIB environment variables to detect boost libs on windows 2013-05-19 08:36:00 +02:00
Thomas Nagy
6d570f08bd use os.remove instead of os.unlink for consistency 2013-05-18 19:51:45 +02:00
Thomas Nagy
426637d10a Prevent unnecessary rebuilds in the qt processing
A list was changed during iteration, causing an unnecessary dependency to be
kept, and triggering subsequent rebuilds. This only occured with multiple .moc included.
2013-05-18 19:31:56 +02:00
Thomas Nagy
8267e7ae97 Issue 1318 reuse moc tasks 2013-05-18 14:08:41 +02:00
Thomas Nagy
29f80f4aeb Issue 1317 append to moc flags 2013-05-18 09:48:27 +02:00
Thomas Nagy
174b01bba9 Issue 1313 extra check_dir call causing uninstall failures 2013-05-16 08:33:05 +02:00
Thomas Nagy
621ffa83ed Issue 1315 QtDesigner library detection in qt4.py 2013-05-16 08:22:16 +02:00
yngwe
031e94ffa7 allow c_config to recognize clang as gcc 2013-05-13 20:07:25 +02:00
Thomas Nagy
7af8b2f268 slightly faster regexp for replacing c/c++ comments 2013-05-09 11:01:46 +02:00
Thomas Nagy
b0bae3baa1 Merge branch 'master' of http://code.google.com/p/waf 2013-05-08 23:19:10 +02:00
Thomas Nagy
3934918217 Issue 1253 2013-05-08 23:18:53 +02:00
Thomas Nagy
57f0df2c8a Remove the requirement for opt.load('qt4') 2013-05-08 16:51:14 +02:00
Thomas Nagy
1da291a1e6 Force a fixed order in the link task inputs to prevent unnecessary rebuilds 2013-05-07 17:49:59 +02:00
Thomas Nagy
69f5f71120 Removed the annoying assert in msvs.py 2013-05-07 10:08:49 +02:00
Thomas Nagy
417b2c53cd deployment extension in msvs projects 2013-05-07 08:53:18 +02:00
Thomas Nagy
57eaf369c5 extend the subst task to support other copy modes such as hard linking 2013-05-05 22:54:19 +02:00
Thomas Nagy
d151c86ad1 Issue 1262 2013-05-04 09:24:38 +02:00
Thomas Nagy
43caa85c5a Issue 1272 2013-05-01 10:55:26 +02:00
Alexander Afanasyev
b059ce784d Correcting Darwin compilation
gcc, gxx, and fc_config for Darwin platform were specifying
-compatibility_version and -current_version compilation flags.  These
flags are actually are link flags and generate warnings by clang
compiler.

Also, these flags were specified in non-standard way, which was
confusing clang compiler.

Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2013-04-28 10:11:17 +02:00
Alexander Afanasyev
522e3fb43a protoc: small correction
Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2013-04-28 10:08:42 +02:00
Thomas Nagy
01ef0ed313 Issue 1297 2013-04-28 00:15:32 +02:00
Thomas Nagy
1caaec653a Issue 1299 2013-04-27 09:19:16 +02:00
Thomas Nagy
230d35c9c3 Issue 1300 2013-04-27 02:10:15 +02:00
Thomas Nagy
345f6bc99f Issue 1278 2013-04-16 17:19:30 +02:00
Caitlin Potter
1c562a034a Explicitly execute python binary (sys.executable) in distcheck
Signed-off-by: Caitlin Potter <snowball@defpixel.com>
Signed-off-by: Thomas Nagy <tnagy1024@gmail.com>
2013-04-15 14:52:15 +02:00
Stian Selnes
336c3f2e3f msvc: fix check of intel composer version with visual studio 2010
Signed-off-by: Thomas Nagy <tnagy1024@gmail.com>
2013-04-02 17:04:44 +02:00
Thomas Nagy
c3cbd4c353 New version 1.7.10 2013-03-22 15:47:41 +01:00
Thomas Nagy
7eef6588af Use Utils.readf/Utils.writef whenever possible 2013-03-14 13:45:10 +01:00
Oliver Sauder
813a1aff14 Exclude auto-generated .intlcache
Signed-off-by: Thomas Nagy <tnagy1024@gmail.com>
2013-03-13 11:52:08 +01:00
Thomas Nagy
77dc8ea368 Issue 1266 2013-03-12 14:10:12 +01:00
Thomas Nagy
0f64aea102 Issue 1261 2013-03-04 17:13:31 +01:00
yngwe
7aab452acb Merge branch 'master' of https://code.google.com/p/waf 2013-02-17 15:11:25 +01:00
Thomas Nagy
526fe68773 Issue 1231 2013-02-17 14:29:41 +01:00
yngwe
46f51a3925 Added support for Windows Phone 8 compilers; added feature support for Windows Desktop Application and Windows Phone Application compilation 2013-02-17 14:09:32 +01:00
Thomas Nagy
582a1a59f1 Issue 1255 2013-02-15 10:35:20 +01:00
Thomas Nagy
a308c89c35 Issue 1180 2013-02-10 11:45:35 +01:00
Thomas Nagy
89ae826782 New codelite plugin 2013-02-02 11:06:20 +01:00
Thomas Nagy
fd1305af1d Issue 1248 2013-02-01 23:52:13 +01:00
Thomas Nagy
ba984b57b7 Issue 1248 2013-02-01 23:45:30 +01:00
Thomas Nagy
bf27d10fd5 Issue 982 2013-02-01 23:01:53 +01:00
Thomas Nagy
17aff345ea New release 1.7.9 2013-01-13 11:51:07 +01:00
Harald Klimach
2d29dfc528 Issue 1245 2013-01-08 19:45:14 +01:00
Daniel Welty
9e92489dbc gccdeps: Cache path to node lookup
The find_resource call is slow, so caching the resulting Node object
gives a significant speed up, about twice as fast.

Issue: 1244

Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2013-01-04 18:24:40 +01:00
Thomas Nagy
99919342f0 Merge branch 'master' of https://code.google.com/p/waf 2013-01-04 02:28:51 +01:00
Thomas Nagy
67b8e27c34 Issue 1237 2013-01-04 02:27:42 +01:00
Matt Hoosier
3b699e3fed Make msvc.py behave itself when other toolchains are loaded
Chain down to the pre-existing Task.exec_command() implementation if
task.env.CC_NAME indicates that the current taskgen isn't building using
Microsoft tools.

Attempt #2. The previous version (9b443a4e, reverted in 148598a8) was
found in Issue 1243 to lead to unusual infinite regress if the
monkeypatching code executed more than once in a Python interpreter
lifetime. This version uses dynamic subclassing to avoid that problem.

Issue 1237.

Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2013-01-04 02:11:26 +01:00
Kevin Ollivier
13ad17f96c Add support for parsing more MSVC command line options to check_cfg. 2013-01-01 12:13:23 -08:00
Thomas Nagy
148598a815 reverted the changes from #1212 and #1237 2012-12-28 21:58:37 +01:00
Thomas Nagy
ed52334a57 Issue 1232 2012-12-19 02:51:33 +01:00
Matt Clarkson
6e87e321bf Change the apply_vnum installation tasks to be created only if there is already an install_task. It checked to see if self.bld.is_install was not False but that can lead to exceptions being thrown when a shared library is created but install_path=None
Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2012-12-19 02:04:10 +01:00
Thomas Nagy
0e243e4212 New release 1.7.8 2012-12-17 18:08:43 +01:00
Matt Clarkson
8c566d1a42 Fixed up a bug in the gather_intel_composer_versions that results in an exception being thrown on windows systems with no intel composer versions installed. Raise in issue 1239
Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2012-12-17 18:07:25 +01:00
Thomas Nagy
f42b9410c2 documentation update, and preparation for the release 2012-12-16 17:18:10 +01:00
Thomas Nagy
c0575b8528 New release 1.7.7 2012-12-16 17:08:08 +01:00
Thomas Nagy
59363114c3 Issue 1232 2012-12-16 16:58:55 +01:00