2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-26 11:51:20 +01:00
Commit Graph

1092 Commits

Author SHA1 Message Date
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
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
6ffde12338
Use os.path.join to enable builds from drive letters X:\ 2014-08-30 13:05:46 +02:00
Thomas Nagy
f7fb6e2f95
Enable waf to run from an existing python process 2014-08-29 22:30:20 +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
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
a122bc98c9
another example 2014-08-20 21:25:41 +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
Thomas Nagy
002badce44
new command-line option --color - Issue 1474 2014-08-17 22:59:18 +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
679b2850d7
print_usage is useless - override with print_help 2014-08-10 21:38:08 +02:00
Thomas Nagy
32d2f0e1da
merged the os2 case in Utils.is_win32 2014-08-09 18:08:39 +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
Thomas Nagy
2b5377cd87
Better support for UNC paths in external tools 2014-08-04 19:52:58 +02:00
Thomas Nagy
81ce0b6c17
max path limitation in file installation - Issue 1469 2014-08-04 15:17:28 +02:00
Thomas Nagy
bd26b078ca
Issue 1468, accents in python files 2014-08-03 17:34:18 +02:00
Thomas Nagy
f6aca05fdd
Create __pycache__ files - Issue 1403 2014-07-25 18:15:23 +02:00
Thomas Nagy
e9ae4cc5b0
Moved the ocaml, fluid, go and swig examples to the playground area 2014-07-20 05:14:56 +02:00
Thomas Nagy
1491e620ad
Added Configure.autoconfig = 'clobber' to force previous configuration options 2014-07-20 05:13:22 +02:00
Syl
76731c8155 qt5: added Qt5WinExtras 2014-07-14 22:27:40 +02:00
Thomas Nagy
e48ed4d37a
Issue 1465 2014-07-14 19:59:01 +02:00
Syl
2db34905bd fixed --make-waf with python3 2014-07-06 17:41: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
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
Thomas Nagy
6bd7beb194
Enable case-insensitive Node lookup 2014-07-05 23:02:38 +02:00
yngwe
342b4ab1ce c_config: cleanup directory after configuration if no cache is needed. 2014-07-02 09:37:22 +02:00
Matt Hoosier
78c9384e1c
Improve support for BuildContext.install_*() to overwrite exiting files
A request such as:

  def build(bld):
    bld.install_files('/usr/share/foo/', bld.path.find_node('foo.txt'),
                      chmod=0444)

Will currently cause an IOError (especially on Windows) upon repeated
requests to invoke 'waf install'. This is due to a wedged state in
which the first 'waf intall' makes the destination file with 0444
permissions, but the OS (again, especially Windows) refuses to honor
subsequent attempts to write the file as the current
InstallContext.do_install() handles this attempt.

This changeset adjusts InstallContext.do_install() so that its
behavior is more similar to the familiar 'install' program used during
an Autotools programs' "make install" phase. That is, we now
explicitly attempt to temporarily adjust the permissions of the target
file to include user-writability (0644) for the moment of overwrite.
This has no observable effect on the end result; the last bit of
InstallContext.do_install() forcibly resets the target file to the
user's requested permission mask anyway.

Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
2014-06-29 22:25:16 +02:00
Thomas Nagy
d96844a913
Updated the pdflatex example for newer texlive versions (Ubuntu 14) 2014-06-20 11:40:49 +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
Thomas Nagy
89d3870951
Another regression due to the change in find_program from Jerome 2014-06-12 21:32:23 +02:00
Thomas Nagy
e6b729487a
Moved the doxygen example to where it belongs under playground/ 2014-06-12 07:24:55 +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
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
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
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
3ee08a88f4
Issue 1451 2014-06-08 17:34:35 +02:00
Thomas Nagy
1889619dd4
miscallenous enhancements - Issue 1450 2014-05-30 20:35:09 +02:00