Jussi Pakkanen
be0aa7fd74
Merge pull request #2357 from LukeShu/flake8
...
Bring into compliance with flake8
2017-09-22 21:33:34 +03:00
Luke Shumaker
4dbbb4884c
flake8: Clean up complained-about unused imports
...
This also adds a "# noqa: F401" comment on an unused "import lzma",
which we are using it in a try/except block that is being used to
check if the lzma module is importable; of course it is unused.
v2: This turned out to be a little tricky.
mesonbuild/modules/__init__.py had the "unused" import:
from ..interpreterbase import permittedKwargs, noKwargs
However, that meant that the various modules could do things like:
from . import noKwargs # "." is "mesonbuild.modules"
Which breaks when you remove __init__.py's "unused" import. I
could have tagged that import with "# noqa: F401", but instead I
chose to have each of the module import directly from
"..interpreterbase" instead of ".".
2017-09-21 13:41:03 -04:00
Jussi Pakkanen
2f6702839e
Merge pull request #2340 from NickeZ/generator-fix
...
Add @PLAINNAME@ and @BASENAME@ to arguments argument for Generator
2017-09-21 20:02:21 +03:00
Luke Shumaker
bb25260f00
flake8: Perform suggested whitespace/formatting changes
...
This only touches newlines, spaces, and (occaisionally) commas. Anything
else is left for another commit.
2017-09-21 11:59:03 -04:00
Florian Zwoch
7e1caaf1cd
ninja: Generator is more informative on what it is doing.
2017-09-20 18:53:46 +03:00
Niklas Claesson
07dde545d9
Add @PLAINNAME@ and @BASENAME@ to arguments argument for Generator
...
Fixes #1282
2017-09-20 13:00:34 +02:00
Guillaume Poirier-Morency
02ad00b982
ninja: Fix the dependency on the VAPI when 'vala_vapi' is used
2017-09-18 20:40:53 +03:00
Nirbheek Chauhan
7c2ae55fab
Revert "Revert "Merge pull request #1931 from centricular/use-patched-ninja""
...
This reverts commit 5eb64a6f3e
.
Let's try again, with a fixed Ninja by QuLogic.
2017-09-18 18:40:24 +03:00
Jussi Pakkanen
75208604da
Merge pull request #1943 from QuLogic/duplicate-names
...
Fix creation of objects with duplicate names
2017-09-12 20:37:43 +03:00
Jussi Pakkanen
b63710863b
Renamed test serialisation from is_cross to is_cross_built for clarity.
2017-09-12 20:32:07 +03:00
Jussi Pakkanen
9b50a4aac1
An external program is never a "cross test".
2017-09-12 20:32:07 +03:00
Nirbheek Chauhan
5b1babd611
backends: Add custom target inc dirs before target inc dirs
...
Custom target include dirs must be overridable by target-specific
include dirs otherwise in case of header name collisions, the user has
no way to override this behaviour.
2017-09-11 14:50:35 +05:30
Thibault Saunier
0968991394
csharp: Take into account project and global args
2017-08-24 20:48:13 -03:00
Thibault Saunier
52b7f1a096
c#: Handle external dependencies from .pc files
2017-08-24 16:09:07 -03:00
Thibault Saunier
a83eb4ddb2
ninjabackend: Add support for generated csharp sources.
2017-08-23 15:00:19 -03:00
Jussi Pakkanen
a1326581a5
Fix coverage target breakage and add a test for it.
2017-08-20 20:32:30 +03:00
Jussi Pakkanen
50fb7d37ab
Make all functionality invokable via the main Meson binary,
...
which can be a Windows .exe file.
2017-08-18 12:08:20 +03:00
Jussi Pakkanen
aa49c3cebd
Ignore encoding when scanning Fortran sources.
2017-08-17 00:20:34 +03:00
Elliott Sales de Andrade
cf1242655f
Remove VS implementation of object name resolver.
...
The upstream one should work properly now, one hopes.
2017-08-14 22:47:36 -04:00
Elliott Sales de Andrade
320862991a
Fix object extraction in unity builds.
2017-08-14 22:47:36 -04:00
Elliott Sales de Andrade
bf0164ff6e
Use full relative paths to generate object names.
...
This prevents files with the same name from different directories from
producing object files with the same name and breaking ninja.
Fixes #1494 .
2017-08-14 22:47:36 -04:00
Elliott Sales de Andrade
b68cb3c713
Use object_filename_from_source when creating objects.
...
This will ensure a consistent path between generated object names and
names expected of extracted objects.
2017-08-14 22:47:35 -04:00
Elliott Sales de Andrade
879770ccf0
Only calculate absolute source path when necessary.
2017-08-14 22:47:35 -04:00
Elliott Sales de Andrade
ba6fdb996a
Simplify path-determination in compile-generation.
2017-08-14 22:47:35 -04:00
Nirbheek Chauhan
7d36776307
ninja: Fix detection of vs compiler usage
...
Just because cl.exe exists in PATH doesn't mean we are using it right
now. Instead, check the list of compilers that were configured.
2017-08-15 01:38:01 +05:30
Nirbheek Chauhan
be4428005d
ninja: Fix cleaning in various edge cases
...
We need to use target aliases for reserved target names and run
targets to workaround a ninja bug:
https://github.com/ninja-build/ninja/issues/828
Closes https://github.com/mesonbuild/meson/issues/1644
2017-08-15 01:38:01 +05:30
Jussi Pakkanen
5c8328d27f
Use "meson test" in test invocations so it will not print the deprecation warning.
2017-08-14 15:54:57 +03:00
Elliott Sales de Andrade
5cb1d00537
Allow excluding files from `install_subdir`
...
The install_subdir command now accepts a new `exclude` keyword argument
that allows specified files to be excluded from the installed
subdirectory.
2017-08-06 03:58:35 -04:00
Jussi Pakkanen
61a05f26e3
Add option to disable implicit include directories. Closes #2139 .
2017-08-05 00:26:13 +03:00
Jussi Pakkanen
a800c96f99
Add option to limit maximum number of concurrent link processes.
2017-08-05 00:24:59 +03:00
nyorain
0a9170bbbe
Fix #1993
2017-08-04 19:50:39 +03:00
Ben
0ed0bcce49
Vala: enable colored warning and error output ( #2142 )
2017-08-01 06:22:17 -04:00
Jussi Pakkanen
a572ebd2a1
Convert man inputs to Files so you can install_man the output of configure_file. Closes #2135 .
2017-07-31 18:47:09 -04:00
Gabríel Arthúr Pétursson
3ddf9bf6dd
Ensure same compiler flags are used for compiling PCH as normal sources
...
Precompiled headers should generally be compiled with the same flags as
the sources that will include the header. Some deviations are safe,
however, most will cause the compiler to reject the precompiled header
or possibly lead to compiler crashes.
2017-07-24 00:11:27 +03:00
Sam Thursfield
094c8dc250
Consider `link_whole` as well as `link_with` for Vala deps
...
Otherwise, when you have a static helper library written in Vala
that you want to `link_whole` into a shared library you have to
manually add the .vapi file as a source.
2017-07-23 19:34:42 +03:00
Adam C. Foltzer
4eda3ca0fc
add `crate-name` to Rust target args
...
This is required for downstream Rust dependencies to properly import
libraries using `extern crate`.
2017-07-22 03:49:39 +03:00
Jussi Pakkanen
bff37a90fc
Merged buildrpath branch.
2017-07-21 22:19:07 +03:00
Patrick Griffis
67f0a1a44d
Fix run_target() accepting ConfigureFile for command
2017-07-21 20:16:08 +03:00
Jussi Pakkanen
2269b7f60b
Add build_rpath as new property allowing people to specify rpath entries that are used in the build tree but will be removed on install.
2017-07-21 19:40:54 +03:00
Jon Turney
3fa3922cea
Support implibs for executables on Windows
...
Add a boolean 'implib' kwarg to executable(). If true, it is permitted to
use the returned build target object in link_with:
On platforms where this makes sense (e.g. Windows), an implib is generated
for the executable and used when linking. Otherwise, it has no effect.
(Rather than checking if it is a StaticLibrary or SharedLibary, BuildTarget
subclasses gain the is_linkable_target method to test if they can appear in
link_with:)
Also install any executable implib in a similar way to a shared library
implib, i.e. placing the implib in the appropriate place
Add tests of:
- a shared_module containing a reference to a symbol which is known (at link
time) to be provided by the executable
- trying to link with non-implib executables (should fail)
- installing the implib
(This last one needs a little enhancement of the installed file checking as
this is the first install test we have which needs to work with either
MSVC-style or GCC-style implib filenames)
2017-07-20 21:11:56 +01:00
FredericHamel
6f4e5e96d8
Allow test to depend on executable target in cross build. ( #2007 )
...
* Add a crossbuild case in 'test case/common/1 trivial/meson.build'
* Add native flags for crossbuild tests.
2017-07-20 12:25:59 +03:00
Jussi Pakkanen
5eb64a6f3e
Revert "Merge pull request #1931 from centricular/use-patched-ninja"
...
This reverts commit aab7ada356
, reversing
changes made to e1b24765af
.
2017-07-18 00:30:52 +02:00
Nirbheek Chauhan
e307865596
ninja backend: Detect ninja only once and log it
...
Needed for the CI, but good to have in general too.
2017-07-17 17:26:21 +05:30
Jussi Pakkanen
5cec8fc43a
Removed consecutive identical variable assignments.
2017-07-16 12:04:24 +03:00
Goncalo Carvalho
bcb2556c69
add project/global args and include_dirs (useful for module maps) to swift targets
2017-06-29 11:04:57 -04:00
Jussi Pakkanen
dfb0414d9c
Merged Genie support.
2017-06-27 19:01:00 +03:00
Jussi Pakkanen
4a4322064e
Merge pull request #1986 from phako/master
...
Skip handling non-available dependencies
2017-06-27 04:13:25 -04:00
Guillaume Poirier-Morency
fab5634916
Add 'Compiler.get_display_language'
...
Use this when we print language-related information to the console and
via the Ninja backend.
2017-06-26 14:15:44 -04:00
Alistair Thomas
cca0fa8154
Recognise .gs extension as a Vala source
2017-06-26 13:57:52 +01:00
Alistair Thomas
e5559903b3
Split linkers out from compilers.py
2017-06-22 20:09:58 +01:00