Benjamin Redelings
4f6a57a138
Use new strategy for finding libraries on Linux & Mac.
7 years ago
Benjamin Redelings
4a79fe8d93
Factor out extra linker search dirs into new function.
7 years ago
Benjamin Redelings
48e32f8a4b
Add missing for_linux( ) function.
7 years ago
Benjamin Redelings
9272018b3b
Change values in lib_modules dict to lists (of linker args).
7 years ago
Benjamin Redelings
74b479d1a1
Add information about Linux and Mac.
7 years ago
Benjamin Redelings
b119484d62
Fix typo.
7 years ago
Benjamin Redelings
236c6b8628
Link against the library files that we found during module detection.
7 years ago
Benjamin Redelings
e10e261160
Factor out code to compute modname from basename into a single place.
7 years ago
Alexey Stukalov
5fddea73f1
add Compiler.thread_flags() stub
...
fixes #2834
7 years ago
Nirbheek Chauhan
87ea5b9b8a
compilers: Fix error when objc/objc++ compilers are not found
...
Earlier it would exit with a traceback:
UnboundLocalError: local variable 'out' referenced before assignment
7 years ago
Karol Szuster
6fc8c2473f
Add missing space
7 years ago
Jon Turney
fa415c54a0
Update prefix-dependent defaults when project(default_options:) changes prefix
...
Fixes #2811
7 years ago
Jon Turney
3e09ea1036
Add a test of prefix-dependent defaults for project(default_options:)
...
See #2811
7 years ago
Nirbheek Chauhan
6d44030a33
unit tests: Test that relative install_rpath works correctly
...
We weren't testing this with C++, so the breakage was missed.
https://github.com/mesonbuild/meson/issues/2814
7 years ago
Benjamin Redelings
948faa8202
Add whitespace around '+'.
7 years ago
Benjamin Redelings
b1a0422b76
Fix linking with clang++ on linux if install_rpath.
7 years ago
Niklas Claesson
c1b0bd3fc0
Add failing boost test
7 years ago
Niklas Claesson
2f690e4834
boost: Allow older behavior with a warning
...
Fixes #2813
7 years ago
Andrei Alexeyev
ec1ed1e99b
fix AttributeError in CustomTargetIndex.__repr__
7 years ago
Passw
5c0cbf7b32
add one more blank line at the tail of Disabler.md
...
From http://mesonbuild.com/Manual.html , it seems that `Disabler.md` messes up `Modules.md`
7 years ago
Dylan Baker
66292bca0a
dependencies: Also strip git version from llvm version
...
If LLVM is built from a git mirror instead of from SVN it will have
"git-<very short sha>" at the end of the version. We need to remove that
so that version comparison will work correctly.
Fixes : #2786
7 years ago
Dylan Baker
ed68c5cc3b
vim: Add warning function to list of builtins
7 years ago
Iñigo Martínez
0291722017
docs: Change variable in pkg-config example
...
The example provided for the `get_pkgconfig_variable` when using using the `define_variable` parameter is not the best example, because it is using `prefix` for both. This changes the retrieved variable for `libdir` so the efect of the variable redefinition is more noticeable.
7 years ago
Iñigo Martínez
ad08d8b9a0
docs: Add documentation to dependency variables
...
Meson is able to redefine variables when retrieving them from
`pkg-config` dependencies. However, the documentation is missing.
This patch adds documentation for this feature.
7 years ago
Ernestas Kulik
cc42e21202
tests: add Vala thread flag test
...
This test checks that things don’t fall apart when a threads dependency
is added to a Vala target.
7 years ago
Ernestas Kulik
42a92e182b
vala: add env parameter to thread flag methods
...
fc547ad05e
added a parameter to thread
flag methods, which broke the Vala case.
7 years ago
Jussi Pakkanen
e674434389
Updated version number for new release.
7 years ago
Jussi Pakkanen
cbefb57ffe
Merge pull request #2745 from dcbaker/submit/haiku
...
small fixes for haiku
7 years ago
Jussi Pakkanen
5ff9e05c8b
Merge pull request #2697 from mesonbuild/custom-target-depends-serialize
...
custom target: Consider all build depends while serializing
7 years ago
Nirbheek Chauhan
664771bb53
appveyor.yml: Use MSYS2-MinGW Python for tests
...
Fix MemoryError in python3 module:
https://ci.appveyor.com/project/jpakkane/meson/build/4334/job/aowc3iiq8yfs02bi
It's probably caused by improper mixing of MT and non-MT libraries,
but this is indicative of how people use Meson in MSYS2 anyway.
7 years ago
Nirbheek Chauhan
2c4e7ebb9b
dependencies: Don't use NotImplementedError for invalid methods
...
Using NotImplementedError throws an ugly traceback to the user which
does not print the line number and other information making it
impossible to figure out what's causing it.
Also override it for internal dependencies because self.name is "null"
for them.
7 years ago
Nirbheek Chauhan
533e666901
dependencies: Fix detection of link args on MSYS2
...
The sysconfig config variables are different on MSYS2 and the paths
are also different. We now also use the full path to the import or
static library instead of using -Lfoo -lpython35 etc.
Also obey the value of the 'static' keyword argument.
7 years ago
Nirbheek Chauhan
6f42f83867
dependencies: Fix detection of Python arch on MSYS
...
sysconfig.get_platform() returns 'mingw' with MSYS2, so we need to
use some other method; in this case I chose to use the CC that
Python was compiled with, which is a relatively reliably indicator
unless people start using Python on Windows compiled with Clang or
something.
7 years ago
Nirbheek Chauhan
5a1d294b5e
dependencies: Handle /usr/bin/env shebangs on Haiku
...
/usr/bin/env does not exist on Haiku since there's no /usr. The actual
location is /bin/env. Detect that case and directly use the
interpreter being passed to `env` in the shebang.
Also reorganize the Windows special cases which does the same thing.
7 years ago
Ernestas Kulik
7ae5716f67
Touch up install_dir() documentation
...
It no longer removes the target tree before copying files.
7 years ago
behlec
4217a9ca7e
Check for more errors when executing subprocess. ( #2746 )
7 years ago
Jon Turney
8d795a8403
Fix typo in release note snippet for get_unquoted
...
Grammar is still a bit fractured, but I'm not entirely sure what it's trying to say.
7 years ago
Eric Engestrom
3d63f21b60
Fix `array` type name
...
c9351ce30c
introduced the type as `array`,
so mintro should expose it under the same name.
(while at it, rename test 169 to be coherent)
7 years ago
behlec
5992ab1c72
Improve error handling when failing to execute program. ( #2743 )
7 years ago
Dylan Baker
75bc95bd66
docs: Add haiku to reference table
7 years ago
Dylan Baker
b56450f9b2
tests: Add haiku to get define test
7 years ago
Dylan Baker
fc547ad05e
haiku: do not add pthread arguments
...
Haiku has pthreads, but they are part of the standard C library, and do
not need either special compiler or linker flags.
7 years ago
Jussi Pakkanen
4ae0cadb7f
Renamed UserStringArrayOption to UserArrayOption for short.
7 years ago
Jussi Pakkanen
c2d23dd678
Add C++17 flags to GCC and Clang.
7 years ago
Jussi Pakkanen
de99b9d5b9
Silence git stdout messages.
7 years ago
Xavier Claessens
e2afaf40c0
Fix duplicated test case 168
7 years ago
Jussi Pakkanen
bc83c58d37
Merge pull request #2731 from mesonbuild/disabler
...
Created disabler object type
7 years ago
Jussi Pakkanen
d3dcef7efc
Added documentation for disabler objects.
7 years ago
Jon Turney
87e6201214
Document and improve not-found dependency objects
...
Document dependency('', required:false) usage.
Avoid emitting 'Dependency found: NO'.
7 years ago
Jussi Pakkanen
678daad6cc
Created a new disabler type.
7 years ago