Mike Sinkovsky
dac8351ff1
cleanup: Unbound local variable
8 years ago
Mike Sinkovsky
c9423cc3a8
cleanup: Replace assignment with augmented assignment
8 years ago
Mike Sinkovsky
969be1f679
cleanup: Remove redundant parentheses
8 years ago
Mike Sinkovsky
1d177fb127
cleanup: Unused local variables
8 years ago
Mike Sinkovsky
22eed4c417
cleanup: Redundant character escape
8 years ago
Nirbheek Chauhan
705612f7cf
pkgdep: Print found message after setting cargs/libs
...
Fetching cflags and libs can also fail if, for instance, the pkg-config
file for a dependency needed by this package isn't found. Without this,
we will print "Found: YES" and then "Found: NO".
8 years ago
Nirbheek Chauhan
2d31851d3b
Print pkg-config error when framework dep isn't found
...
Without this, macOS users can't figure out why a particular dependency
wasn't found because the pkg-config error message gets masked by the
fresh and useless DependencyException.
8 years ago
Nirbheek Chauhan
e441a74282
Derive all exceptions correctly from base exceptions
...
Don't need to define __init__ and manually call the parent init. Doing
so messes up the error message you get by doing str(exception) because
it includes the current class name in it repeatedly.
8 years ago
Jussi Pakkanen
11f9425a5e
Can use targets directly in test arguments.
8 years ago
Jussi Pakkanen
21d8505825
build_by_default it is.
8 years ago
Jussi Pakkanen
58878b998d
Get rid of hasattr.
8 years ago
Jussi Pakkanen
db8ad2a4bd
Add test for build_on_all.
8 years ago
Jussi Pakkanen
b1087f011c
Moved detection of targets to build on all into own function.
8 years ago
Jussi Pakkanen
7abc7c64b0
Created base class for all targets and moved common functionality there.
8 years ago
Hemmo Nieminen
b90956c2f2
mesontest: Improve test suite selection.
...
Suite option can now be given to specify in more detail which tests should
be run.
8 years ago
Elliott Sales de Andrade
78b030cf19
Add support for Files passed to generators.
...
I need this for windows.compile_resources to be able to use
configure_file results, but it may have other benefits.
8 years ago
Mike Sinkovsky
5b626ab4cb
style: [E1**] Indentation
8 years ago
Mike Sinkovsky
ab4f7b56ce
style: [E272] multiple spaces before keyword
8 years ago
Mike Sinkovsky
77515ee541
style: [E303] too many blank lines (2)
8 years ago
Mike Sinkovsky
84902cb93a
style: [E301] expected 1 blank line, found 0
8 years ago
Mike Sinkovsky
f9344b03a8
style: [E721] do not compare types, use 'isinstance()'
8 years ago
Mike Sinkovsky
bf14cec81b
style: [E712] comparison to True should be 'if cond is True:' or 'if cond:'
8 years ago
Mike Sinkovsky
c8981bdd1b
style: [E711] comparison to None should be 'if cond is None:'
8 years ago
Mike Sinkovsky
e9a891fe25
style: [E502] the backslash is redundant between brackets
8 years ago
Jussi Pakkanen
6ac9a8e738
Add .find_python() method. Supersedes #777 .
8 years ago
Jussi Pakkanen
fbabe8ad85
There are two different kinds of extensions: modules that create new
...
objects directly and snippets that just call into interpreter methods.
8 years ago
Jussi Pakkanen
24221d71cc
Created a Python 3 module for simpler building of Python extension modules.
8 years ago
Nirbheek Chauhan
747d4f2b03
We only need Ninja 1.5.x for the core code
...
This change helps us run on older distros such as Ubuntu LTS which is
very lazy in updating even non-core and stable packages such as Ninja.
Ninja 1.6.x is only needed for running the tests.
8 years ago
Jussi Pakkanen
340781c515
Fix Gnome module.
8 years ago
Jussi Pakkanen
00f62d0755
Can get values in ConfigurationData objects.
8 years ago
Jussi Pakkanen
fdd0675661
Better error messages. Closes #1284 .
8 years ago
Jussi Pakkanen
570c9b150b
Fix a few more modules.
8 years ago
Jussi Pakkanen
de24fddbd1
Create a module return value object.
8 years ago
Jussi Pakkanen
027af6b064
Error out if trying to do gettext without appropriate tools.
8 years ago
Nirbheek Chauhan
2589009d23
ifort: Derive from IntelCompiler base class
...
And fix the list of supported file suffixes, and use .f90 for all
fortran tests since ifort, the Intel Fortran compiler ignores files
ending with .f95, .f03, and .f08
8 years ago
Nirbheek Chauhan
6e5c87e380
icc: Always specify the language to use for PCH usage
...
Without this, ICC sometimes gets confused and thinks that the included
header is a C header instead of a C++ header.
8 years ago
Nirbheek Chauhan
e31d067fed
compilers.py: Use a common variable for warn args
...
Makes it totally clear what extra args are added by each warning level.
8 years ago
Nirbheek Chauhan
509bc30cdd
compilers: gnu++03 is not a valid Clang C++ standard
...
It is not (no longer?) supported by Clang:
error: invalid value 'gnu++03' in '-std=gnu++03'
8 years ago
Nirbheek Chauhan
731aca216e
icc: Fix C/C++ std options and add a unit test for them
...
Compiler versions 15.0 and later actually ignore invalid values for the
-std= option unless `-diag-error 10159` is passed, so we need to put
that in the unit test.
I have tested this with versions 14.0.3, 15.0.6, 16.0.4, and 17.0.1.
Would be great if someone could test with 13.x.y
8 years ago
Philipp Geier
54697b4130
ICC 17.0.0 working for Linux and Ninja Backend.
...
Added IntelCompiler, IntelCCompiler and IntelCCompiler.
environments.py has been changed to detect icc and icpc.
ninjabackend changed for proper pch generation.
ICC 17.0.0 does not support C++13 (that's why default arguments tests fails).
Test 25 object extraction fails due to some unescaped whitespaces.
Some test with vala fail because of successful build, although they
should fail, as warning do not exit with failure.
8 years ago
Mike Sinkovsky
079e43f70b
fix 'unreachable code' warnings
8 years ago
Mike Sinkovsky
3b0eec7703
fix 'method signature does no match signature of overridden method'
8 years ago
Igor Gnatenko
f4058b692d
backends/ninja: remove unused variable
...
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
8 years ago
Jussi Pakkanen
b3d51abff2
Can put external programs to test suite exe wrappers directly.
8 years ago
Jussi Pakkanen
74f15263b6
Can set envvars in test setups.
8 years ago
Jussi Pakkanen
ee8a6e6fc5
Can specify test setups and run them with mesontest.
8 years ago
Igor Gnatenko
ef3cc6b3fa
style: fix E127 violations
...
E127: continuation line over-indented for visual indent
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
8 years ago
Igor Gnatenko
cdd05aa5dc
style: fix E241 violations
...
E241: multiple spaces after ','
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
8 years ago
Igor Gnatenko
dd36847c4b
style: fix E202 violations
...
E202: whitespace before ']'
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
8 years ago
Igor Gnatenko
c13160034f
style: fix E201 violations
...
E201: whitespace after '['
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
8 years ago