Commit Graph

461 Commits

Author SHA1 Message Date
poxip 644ab20549
blender: Do not use default platform
Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2014-12-20 18:45:24 +01:00
poxip 229d5b93d6
Create blender tool
Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2014-12-20 18:45:15 +01:00
Thomas Nagy 1689bc658a
Issue 1510 - suncc and CC 2014-11-20 20:43:56 +01:00
Thomas Nagy c18f457215
Issue 1509 cmd -> cmd.exe 2014-11-13 19:27:58 +01:00
Thomas Nagy 9a46ff7558
No one has ever used conf.as_needed() 2014-11-10 22:08:36 +01:00
Thomas Nagy 67a5bb5c73
Regression due to Issue 1502 2014-11-01 23:38:02 +01:00
Thomas Nagy 7ffd53b803
Use EnvironmentError more often 2014-10-30 19:09:53 +01:00
Thomas Nagy 0cb547e65d
Issue 1498 - no python-config on windows, use the system from waf 1.7 2014-10-27 04:02:39 +01:00
Thomas Nagy e297881d30
Missing method in qt5.py 2014-10-25 13:50:23 +02:00
Thomas Nagy d24092184a
Issue 1502 - too much caching in qt logic 2014-10-25 13:39:22 +02:00
Thomas Nagy 86b25fa523
print the latex command executed 2014-10-23 22:22:18 +02:00
Thomas Nagy 9f6f814999
Issue 1497 - keep the hcode in subclasses 2014-10-13 19:45:05 +02:00
Thomas Nagy b2cd86fc21
Do not force task generator attributes to be all lists 2014-10-10 07:31:16 +02: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 6c9e7c6233
Much faster version of get_config_header 2014-10-02 21:09:16 +02:00
Damián Nohales a9edfca3c8 glib2: Remove r_change_ext function 2014-10-01 01:23:42 +02:00
Thomas Nagy 9a0a7ca562
Added crutches for python-config detection on Python 2.5 2014-09-28 23:07:02 +02:00
Thomas Nagy a3942d386b
Fixed the accidental data sharing introduced by the previous patches 2014-09-28 21:32:59 +02:00
Thomas Nagy fcc950dd46
Short build outputs by default in waf 1.8 2014-09-27 16:35:33 +02:00
Damián Nohales 2459bee8af intltool: add style option to intltool_in
This allow to user to get abstracted about the passed intltool-merge
flags, so this code:

    bld(
        features = 'intltool_in',
        flags    = ['-d', '-q', '-u'],
        source   = 'myapp.desktop.in',
    )

Now is equivalent to:

    bld(
        features = 'intltool_in',
        style    = 'desktop',
        source   = 'myapp.desktop.in',
    )
2014-09-22 20:13:00 +02:00
Damián Nohales 9cd10fe885 glib2: add GResource support 2014-09-21 20:59:04 +02:00
Thomas Nagy fec1956327
Issue 1212 2014-09-21 12:47:32 +02:00
Thomas Nagy 10f0efd217
Issue 1319 - make unit test paths more configurable 2014-09-21 11:03:34 +02:00
Thomas Nagy 69c1fb1fec
Issue 1319 - make unit test paths more configurable 2014-09-21 10:58:52 +02:00
Damián Nohales f990fca8ff intltool: use APPNAME by default in intltool_po
Now user doesn't need to specify appname for intltool_po taskgen if he
has declared APPNAME.
2014-09-20 22:00:06 +02:00
Thomas Nagy e1076cea83
Issue 1461 - Faster LaTeX processing 2014-09-20 21:51:54 +02:00
Thomas Nagy c182070bc5
Issue 1067 2014-09-20 19:27:27 +02:00
Thomas Nagy 9a782b0179
Issue 1322 2014-09-20 17:41:10 +02:00
Damián Nohales c0314641b7 intltool: move some code outside a loop in intltool_in
It's fine to execute this code just one time since the environment
variables won't change throughout the different source files.
2014-09-18 16:54:35 -03:00
Damián Nohales 2b5cab25d0 intltool: don't install merged files by default in intltool_in
It doesn't make sense to install merged files in LOCALEDIR in most
cases.
2014-09-18 16:54:35 -03:00
Damián Nohales 71b21ac6ed intltool: fix INTLCACHE directory 2014-09-18 16:54:35 -03:00
Damián Nohales 8cf01e50b1 intltool: make podir default value consistent
Is more predictable if intltool_po and intltool_in have the same default
podir, that is, the current src directory.
2014-09-18 16:54:35 -03:00
Damián Nohales d3badc58b4 intltool: be more clear on what is the default podir 2014-09-18 16:54:35 -03:00
Thomas Nagy d491de7486
conf.check generalization using arbitrary build functions 2014-09-14 10:58:29 +02:00
Thomas Nagy 08c4b175bf
Include all static libraries specified in the use=line 2014-09-14 10:48:12 +02:00
Harald Klimach 7605c17732 Include the '-' in the regex to match the IA-32 string on 32 bit windows. 2014-09-03 13:50:10 +02:00
Thomas Nagy a112808610
Issue 1481 - unreadable configuration cache file 2014-09-02 22:14:51 +02:00
Thomas Nagy 49a8bb15b2
Issue 1471 - use python-config to detect python 2014-08-31 21:11:41 +02:00
Thomas Nagy 69bb9f9209
Handle the -Xlinker case in parse_flags 2014-08-31 21:03:03 +02:00
Thomas Nagy 671add18e0
Install in the pycache folder of the file, not in the one of the task generator - Issue 1478 2014-08-29 20:05:58 +02:00
Harald Klimach 80f8225f8d Do not use /logo on windows, as ifort expects input files with this option. 2014-08-28 11:27:44 +02:00
Harald Klimach 3c49de07a7 Modified ifort to use the -logo option for search of the compiler version. 2014-08-18 19:47:11 +02:00
Harald Klimach ad330d76bc Changed version option on windows to use /-prefix. 2014-08-14 20:19:51 +02:00
Thomas Nagy cc1d38d14c
It seems that the Intel compiler dropped 'ifort' string 2014-08-14 20:03:28 +02:00
Thomas Nagy 32d2f0e1da
merged the os2 case in Utils.is_win32 2014-08-09 18:08:39 +02:00
Thomas Nagy f6aca05fdd
Create __pycache__ files - Issue 1403 2014-07-25 18:15:23 +02:00
Syl 76731c8155 qt5: added Qt5WinExtras 2014-07-14 22:27:40 +02:00
Syl 4a3a3116c5 qt5: added qtmain to the possible lib
on Windows, build with QTMAIN and subsystem="windows" to create a Qt app without the console, Qt will use your "main" and manage the "WinMain" for you.
2014-07-06 11:28:54 +02:00
yngwe 342b4ab1ce c_config: cleanup directory after configuration if no cache is needed. 2014-07-02 09:37:22 +02:00
Josh Bartel a7eb3d811b
msvc: Create new task to install pdb file
Previously the msvc tool was re-using the install_task set up by ccroot
in apply_link by appending files to install_task.sources.

This is problematic because the install task is posted by the time the
call to install_files returns and the post method of the install task
copies files from sources to inputs and inputs as the list of files
that get installed.  This usually worked due to the fact that the
install_task does not guard against getting posted multiple times.  In
some situations such as installing and building a single target using
the --targets flag this was not working and pdb files would not be
installed.

This updates the msvc tool to create a separate task to install the
pdb files instead of re-using the existing install_task.  This fixes
the issue observed with pdb files not being installed when building and
installing a single target and is also consistent with how other files
are being installed from ccroot such as in apply_implib and apply_vnum.

Change-Id: I9fc53061847453fdb5cf105f2276a2eab5fd43b4
Type: Bug Fix
Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2014-06-11 00:26:14 +02:00
Alexander Afanasyev 9bad7d4f58
ccroot: Setting chmod=Utils.O644 for installation of static libraries
Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2014-06-09 00:25:52 +02:00
Thomas Nagy 4161ce4827
Issue 1457 - boost or.hpp file 2014-05-23 00:49:27 +02:00
Thomas Nagy 27f0fc9450
Issue 1454 2014-05-21 17:21:29 +02:00
Thomas Nagy 79ef335d3d
Added defines for asm - #1442 2014-04-30 22:37:36 +02:00
Thomas Nagy d4ca0e8cdc
Issue 1440 2014-04-27 20:06:04 +02:00
Thomas Nagy 8e7c583496
add bld(ut_cmd=True) to enable specific test execution commands - Issue 1438 2014-04-14 18:54:04 +02:00
Thomas Nagy 063da21871
Changed the default installation folders for import libraries 2014-04-09 22:24:55 +02:00
Thomas Nagy 816023237b Define the intltool cache flag automatically - Issue 1221 2014-03-30 01:33:15 +01:00
Thomas Nagy 6a419b6289 New qt5 libs 2014-03-25 22:17:51 +01:00
Chris Winter 53387d8eff c_config: parse_flags: add support for parsing '-isystem' and friends
Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2014-03-24 12:43:29 +01:00
Thomas Nagy 0cd060c394
Make it easier to declare asm or preprocessed outputs to c/c++ tasks
The following can be used to add asm outputs to a c++ task (gcc):

        from waflib import Task
        from waflib.TaskGen import feature, after_method
        @feature('cxx')
        @after_method('process_source')
        def add_asm_outputs(self):
                for tsk in self.compiled_tasks:
                        node2 = tsk.outputs[0].change_ext('.s')
                        tsk.env.append_value('CXXFLAGS', '-Wa,-adhln=%s' % node2.abspath())
                        tsk.outputs.append(node2)
2014-03-11 21:23:57 +01:00
Thomas Nagy 11180ae9f6 rcc detection for rcc-qt4 2014-03-11 01:24:49 +01:00
Thomas Nagy 92638245ff
Fixed bld(features='tex', deps='wscript') 2014-03-09 18:25:53 +01:00
Thomas Nagy 72334441ce Issue 1419 - gcc 2.95 detection 2014-03-05 21:23:32 +01:00
Thomas Nagy 015ad7349b Write a different waf-print-msvc.py file each time to help debugging 2014-02-26 07:24:47 +01:00
Thomas Nagy f4185e7a26 Added global file installation pointcut 2014-02-17 00:26:58 +01:00
Krzysztof Kosiński f88bf4f554 Fix defining the xxx_compiler variables in configure().
Due to recent changes, setting xxx_compiler in configure() had no effect.
This commit fixes the problem and changes the examples to show setting
the xxx_compiler variables at the top level of the wscript, so that
the default compilers are correctly reported in the help output.
2014-02-10 09:27:11 +01:00
Gustavo Carneiro 69fb126a4c Issue 1405 2014-02-04 10:55:26 +00:00
Thomas Nagy 8faafeb913 Issue 1276 - suppress configuration outputs 2014-02-02 04:04:21 +01:00
Thomas Nagy 1018065c2e Disabled the duplicate flag filter in bld(...) 2014-01-30 21:37:00 +01:00
Krzysztof Kosiński 6f18c1bd99 Revert the prune_flags changes.
The changes break flags such as -framework X -framework Y.
2014-01-27 16:34:40 +01:00
Krzysztof Kosiński c9fe554af4 Fix typos in compiler_* tools.
Commit ca60d62bed contaied some errors resulting from copy-pasting
code around, which caused problems with D and Fortran compiler tools.
2014-01-27 16:20:01 +01:00
Krzysztof Kosiński 48a82dacbf ccroot: allow overriding the prune_flags setting
through a taskgen parameter
2014-01-27 16:12:02 +01:00
Krzysztof Kosiński 1e92b72aa6 ccroot: optional deduplication of command line flags.
Introduce a global variable in ccroot called prune_flags.
If set to "True", only the last repetition of each flag
will be left in the command line.
2014-01-27 04:46:14 +01:00
Krzysztof Kosiński 8147d0a18b Add support for parameter define_name to check_cfg 2014-01-27 03:45:35 +01:00
Krzysztof Kosiński 47bd581246 Modularize the tools 'glib2' and 'intltool'.
In some scenarios only some components of the glib2 tool are
necessary; for example, if intltool-merge is only used for
creating localized desktop files, it's not useful on Windows.

Rewrite the configuration function of the tools into several methods,
so that the 'funs' parameter can be used to only configure
specific programs from the tools.
2014-01-27 02:34:27 +01:00
Krzysztof Kosiński e4afaa957e Update default compilers in compiler_c and compiler_cxx
to include the clang tools
2014-01-25 22:12:29 +01:00
Krzysztof Kosiński e95b150c56 Add simple compiler tools for clang and clang++ 2014-01-25 21:00:27 +01:00
Krzysztof Kosiński 30bdee769b Clean up some cruft in the compiler tools (icc, icpc, gxx) 2014-01-25 20:59:14 +01:00
Krzysztof Kosiński 9a824a5649 Fix missing module import in compiler_c 2014-01-25 19:31:11 +01:00
Krzysztof Kosiński c38a4fb4f0 More consistent error messages in the generic compiler tools 2014-01-25 19:28:55 +01:00
Krzysztof Kosiński 86b87413c8 Always return a value which evaluates to True when check_cfg succeeds. 2014-01-25 19:12:44 +01:00
Krzysztof Kosiński ca60d62bed Modify the generic compiler tools to use the "Configuration options" group.
Add a mechanism to set the compiler precedence for D, for consistency.
2014-01-25 18:50:04 +01:00
Krzysztof Kosiński f386392fb2 Change the option group for glib2 schema dir to be the same
as the one for gnu_dirs installation directories.
2014-01-25 18:24:51 +01:00
Krzysztof Kosiński 526abea553 Improve the directory descriptions in gnu_dirs 2014-01-25 18:23:07 +01:00
Thomas Nagy fa8fed39a0
'x use y use AAA' will add the AAA flags to x, but 'x use y uselib AAA' will not 2014-01-18 01:46:53 +01:00
Thomas Nagy 9f7ceb0e91 Issue 1395 2014-01-14 20:11:11 +01:00
Thomas Nagy 010b944062 typo 2014-01-12 19:49:31 +01:00
Jérôme Carretero 33a60e79e7 treecleaner: 'in [...]' replaced by 'in (...)' where appropriate 2014-01-05 16:27:06 -05:00
Thomas Nagy 44720924b6 case when c classes are brough by msvc but no c compiler is required, demos/c++/wscript on windows 2014-01-02 18:12:35 +01:00
Jérôme Carretero 6546e34176 Tools: ar: support for ARFLAGS environment variable
For instance, to make deterministic archives::

ARFLAGS=rcsD waf configure
2014-01-02 06:24:39 -05:00
Thomas Nagy 4445b7e0b6 Issue 1391 xrange 2013-12-24 15:32:09 +01:00
Thomas Nagy 29252511d0 Issue 1390 - conf.check(lib='several libs') 2013-12-21 17:29:06 +01:00
Thomas Nagy a34eda4e8f Issue 1389 fc scanner improvements 2013-12-20 18:02:03 +01:00
Thomas Nagy 16c0bc9d2b problem when merging qt5.py (no run method) 2013-11-24 18:24:03 +01:00
Thomas Nagy 5664664a1a regression in qt4.py when adding qt5.py 2013-11-24 17:58:50 +01:00
Thomas Nagy cf75dc3308 qt5 tool 2013-11-24 14:19:28 +01:00
Thomas Nagy bccf38b50a Issue 1381 - moc file caching 2013-11-23 12:50:39 +01:00
Thomas Nagy c521b1d076 Issue 1379, nasm trailing slashes 2013-11-16 20:13:41 +01:00
Thomas Nagy 346601b103 handle empty defines when pasting tokens 2013-11-15 23:24:51 +01:00
Thomas Nagy 8571c15a1b missing change 2013-11-08 22:46:51 +01:00
Thomas Nagy dcd6184d3f Issue 1372 version detection for old and buggy sun compilers 2013-11-08 22:45:34 +01:00
Thomas Nagy 3884124886 Issue 1371 2013-11-03 00:14:04 +01:00
Thomas Nagy ff820ccf49 Extract rpath flags into use variables 2013-10-27 14:56:04 +01:00
Thomas Nagy 84c9aa9a04 another regression caused by find_program changes 2013-10-23 00:10:28 +02:00
Dariusz Pelowski 53ab568fe5 fix for missing package name argument for 'pkg-config' call during fetching custom variables
Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2013-10-15 00:25:26 +02:00
Thomas Nagy 90b491e834 moved the parser function definition out of the while loop 2013-09-30 00:05:36 +02:00
Thomas Nagy d693385073 merged the openbsd shared library installation fixes from waf 1.7 2013-09-17 00:26:16 +02:00
Jérôme Carretero 57f6a272e2 Tools: tex: note on target bypass 2013-09-14 00:34:13 -04:00
Jérôme Carretero 8a9b3825a2 Tools: msvc: fix regression in msvc MT tool call (issue #1357)
Yeah, env['MT'] is a list.
2013-09-12 18:50:06 -04:00
Thomas Nagy e07529ad89 Issue 1348, gdc detection for gdc-msys 2013-09-11 07:52:27 +02:00
Thomas Nagy fe1bbf536f Issue 1356 icl detection with python 3 2013-09-07 13:27:13 -04:00
Jérôme Carretero 8076e8d52e Tools: c_config: one more fix for the path, which can also be a string... 2013-09-05 00:12:45 -04:00
Jérôme Carretero 89358e70d4 Tools: flex: env.FLEX is a list 2013-09-05 00:08:00 -04:00
Jérôme Carretero da5d43d418 Tools: perl: env.PERL is a list (+ simplifications) 2013-09-05 00:05:04 -04:00
Jérôme Carretero 5b97eefb66 Tools: vala: env.VALAC is a list 2013-09-04 23:53:30 -04:00
Jérôme Carretero 85e7df4ea1 Tools: c_config: fix mistake in previous commit 2013-09-04 23:47:47 -04:00
Jérôme Carretero 95679a89bb Tools: ruby: env.RUBY is a list 2013-09-04 23:36:21 -04:00
Jérôme Carretero 14ee893d20 Tools: qt4: command paths are lists already 2013-09-04 23:35:58 -04:00
Jérôme Carretero 8d37f79ea2 Tools: c_config: pkg-config is indeed a list of strings 2013-09-04 23:21:19 -04:00
Jérôme Carretero d6dd3fd8ab Tools: unit test: fix indentation 2013-09-04 23:20:51 -04:00
Jérôme Carretero 1f4c66f0c7 Tools: ruby: env.RUBY is a list 2013-09-04 23:13:34 -04:00
Jérôme Carretero 5064fd92ef always use the convention that commands are lists, remove find_perl_program, add interpreter 2013-09-04 23:10:10 -04:00
Jérôme Carretero 1fad148b2c Tools: python: allow passing PYTHON in environment 2013-09-04 00:35:49 -04:00
Thomas Nagy a1b8eb3831 Issue 1352, changed the default name for qt resources 2013-09-01 21:29:34 +02:00
Thomas Nagy f14314faa2 Mention that makeglossaries is a program when raising the error 2013-08-27 12:11:50 +02:00
Joe Steeve 4cbee2c4ed Issue 1342 Tools.tex, run 'makeglossaries' if 'glossaries' is used
Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2013-08-27 11:54:16 +02:00
Jérôme Carretero a67c8c9017 fix shlib vnum for OpenBSD 2013-08-26 16:09:19 -04:00
Jérôme Carretero ccec98efc4 tools: tex: replace warnings by info as they are not warnings at all 2013-08-25 20:09:42 -04:00
Jérôme Carretero 7f571e0a28 tools: tex: allow to pass a Node as manual dep 2013-08-25 15:37:11 -04:00
Jérôme Carretero f982e0461a tools: tex: scan (local) style files too 2013-08-24 20:24:02 -04: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
Thomas Nagy 19e624b5f4 Issue 1345 multibib support in tex/latex 2013-08-14 18:37:16 +02:00
Thomas Nagy 30c10e85d5 Issue 1343, regression in qt4 support after some refactoring 2013-08-12 07:55:01 +02: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 f588f95a27 Issue 1339 detect the sun compiler version number 2013-07-13 19:06:08 +02:00
Thomas Nagy 5ea64b56ac Issue 1329 C# response file flag quoting issues 2013-06-21 18:22:43 +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 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 856db9cc90 added export_includes/export_defines parameters to read_shlib/read_stlib 2013-05-25 15:17:25 +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 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