Nirbheek Chauhan
7e1654bf08
compilers: Use __has_include macro for has_header checks
...
If it's available, it's much much faster than doing #include
+ preprocess. Speeds up has_header checks by about 40% for me.
Currently, only Clang supports this
8 years ago
Nirbheek Chauhan
f49b50d432
compilers: Remove unnecessary arguments to super()
8 years ago
Jussi Pakkanen
469a758c32
Merge pull request #1320 from centricular/fix-llvmir-and-assembly
...
Fix llvmir and assembly
8 years ago
Nirbheek Chauhan
23f3cec9d0
Force installation dir options to be inside prefix
...
With the exception of things like sysconfdir (/etc), every other
installation directory option must be inside the prefix.
Also move the prefix checks to coredata.py since prefix can also be set
from inside project() with default_options and via mesonconf. Earlier
you could set prefix to a relative path that way.
This also allows us to return consistent values for get_option('xxxdir')
regardless of whether relative paths are passed or absolute paths are
passed while setting options on the command-line, via mesonconf, or via
default_options in project(). Now the returned path will *always* be
relative to the prefix.
Includes a unit test for this, and a failing test.
Closes #1299
8 years ago
Nirbheek Chauhan
f762e896d2
mintro.py: Assume the current dir is a builddir if not specified
...
Also fix running with backends other than Ninja by not assuming that
install.dat is always available.
8 years ago
Nirbheek Chauhan
d9c31d4a24
tests/4 qt: Force the use of -std=c++11
...
Qt5 now requires this, and if no -std option is passed to clang, it does
not enable C++ 11 features and we get a build failures.
8 years ago
Nirbheek Chauhan
f71136b89e
Print the problematic headers in these assertions
8 years ago
Nirbheek Chauhan
7b3957afbd
Fix targets with generated LLVM IR and Assembly sources
...
These two are also C-like sources, so don't ignore them in
backends/ninjabackend.py:generate_target() when we call
is_source() on the list of generated sources for that target.
Closes #1318
8 years ago
Nirbheek Chauhan
86a0c39f4b
Add test for generated assembly
...
We weren't testing for this and it was broken
8 years ago
Nirbheek Chauhan
f934598865
Add a test for generated LLVM IR files
8 years ago
Jussi Pakkanen
577a9b40d5
Merge pull request #1312 from centricular/print-pkgdep-error-osx
...
Fix pkg-config error handling on OS X
8 years ago
Mike Sinkovsky
550761d97b
cleanup: @staticmethod
8 years ago
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
cfc33ac421
Merge pull request #1303 from mesonbuild/buildonall
...
Add kwarg build_by_default
8 years ago
Jussi Pakkanen
7a28f387e2
More readable total statistics.
8 years ago
Jussi Pakkanen
21d8505825
build_by_default it is.
8 years ago
Jussi Pakkanen
72a346dacf
Merge pull request #1257 from QuLogic/generator-files
...
Add support for Files passed to generators.
8 years ago
Nirbheek Chauhan
0bc44da702
tests/common/126: Also skip unsupported CPUs here
...
Related to https://github.com/mesonbuild/meson/pull/1289 and
https://github.com/mesonbuild/meson/issue/1287
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
Jussi Pakkanen
4aea0276f0
Merge pull request #1279 from trhd/master
...
mesontest: Improve test suite selection.
8 years ago
Hemmo Nieminen
5833bd6735
tests: Add a test for new test suite selection.
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
eea0670872
style: disable flake8 warnings E241, E251, E305, E401
8 years ago
Mike Sinkovsky
5b626ab4cb
style: [E1**] Indentation
8 years ago
Mike Sinkovsky
0dd1e33898
style: [E251] unexpected spaces around keyword / parameter equals
8 years ago
Mike Sinkovsky
ab4f7b56ce
style: [E272] multiple spaces before keyword
8 years ago
Mike Sinkovsky
3adf5aed81
style: [E402] module level import not at top of file
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
34caf6471c
Merge pull request #787 from mesonbuild/py3module
...
Created a Python 3 module for simpler building of Python extension mo…
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
Jussi Pakkanen
9cf0991a1d
Merge pull request #1278 from mesonbuild/newmodules
...
Bring some order to modules
8 years ago