Benjamin Redelings
632d12f281
Add the right directory to linker search path.
7 years ago
Benjamin Redelings
f62a8aa413
Remove old code and debug messages since abi tags now work.
7 years ago
Benjamin Redelings
c54af27cd1
Add missing dash.
7 years ago
Benjamin Redelings
ead02636dc
Try using abi-tag to get libname and globber on windows.
7 years ago
Benjamin Redelings
a517c657fa
Compute abi tags for windows also.
7 years ago
Benjamin Redelings
7749497923
Move log_fail() out of sub-method.
7 years ago
Jon Turney
227ad7605b
Same for libwmf
7 years ago
Benjamin Redelings
03ec76a842
Attempt to make Unix and Windows use the same code for get_link_args( ).
7 years ago
Benjamin Redelings
465a31cf9d
Update verbose comments.
7 years ago
Benjamin Redelings
1af531c2d5
Restore comments.
7 years ago
Benjamin Redelings
f68bae49da
Use get_linker_search_args(libdir) instead of '-L'+libdir
7 years ago
Benjamin Redelings
a8c051256f
Begin factoring abi_tag logic into own function.
7 years ago
Benjamin Redelings
9759294a7f
Factor check for invalid BOOST modules into separate function.
7 years ago
Jan Niklas Hasse
b37706737c
Log instead of raise if Boost library not found ( #2924 )
7 years ago
Jon Turney
cdf241420c
Same for cups
7 years ago
Jon Turney
638095125d
Same for pcap
7 years ago
Jon Turney
8efdcca930
Make Dependency.get_methods() a static method
...
Since this is only consulted while constructing the Dependency object, it's
result doesn't depend on the instance (and it would make no sense if it did)
7 years ago
Jon Turney
0a6cbcce03
Fix typos
7 years ago
Jon Turney
1a948b2e67
Fix dependency('boost') on Cygwin
...
Fix dependency('boost') on Cygwin, broken in PR #2824
Like linux, Cygwin doesn't use -mt tags
Not sure what's correct for BSDs and Haiku
7 years ago
Benjamin Redelings
62bec86aa6
Handle header-only boost modules on Unix when BOOST_ROOT is not set.
7 years ago
Benjamin Redelings
ce0b0d463f
Fix macports builds: don't override include paths unless BOOST_ROOT.
...
We don't want to add /usr/local to the include path, because that will
pick up homebrew headers.
7 years ago
Benjamin Redelings
075e2d4154
Add todo comments.
7 years ago
Benjamin Redelings
a12d47984e
Remove unqualified import and add mesonlib. in from of symbols.
7 years ago
Benjamin Redelings
57265e2486
Use include path to find <boost/version.hpp> and version number.
7 years ago
Benjamin Redelings
ea4d5697a8
Fix style issues.
7 years ago
Benjamin Redelings
a82abfcb4a
Use new strategy for finding libraries on Linux & Mac.
7 years ago
Benjamin Redelings
1043b0b4a2
Factor out extra linker search dirs into new function.
7 years ago
Benjamin Redelings
d55f330df0
Change values in lib_modules dict to lists (of linker args).
7 years ago
Benjamin Redelings
1af17075ab
Add information about Linux and Mac.
7 years ago
Benjamin Redelings
074bd544c7
Fix typo.
7 years ago
Benjamin Redelings
4c7802b107
Link against the library files that we found during module detection.
7 years ago
Benjamin Redelings
71d24094cd
Factor out code to compute modname from basename into a single place.
7 years ago
Niklas Claesson
d014087fd9
boost: Allow older behavior with a warning
...
Fixes #2813
7 years ago
Xavier Claessens
1c0570906c
pkgconfig: Allow passing Dependency objects to library(_private)
...
Special case ThreadDependency by taking compiler's flags and
PkgConfigDependency by adding them in requires(.private) instead. For
other Dependency objects just take their link_args and compile_args.
Closes #2725
7 years ago
Alexis Jeandet
0560478f75
[Dependencies] Add --ldflags to cups-config invocation
...
--libs only gives libs to link with, not flags and eventually lib path
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
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
Niklas Claesson
9884508535
Boost: Pick correct version
...
If many binary packages are installed, pick the one built with the correct
toolset. Fixes #2532
7 years ago
Nirbheek Chauhan
133df3b045
dependencies: Pass language to PkgConfigDependency
...
Also try harder to find a compiler that dependencies can use.
This means that in C++-only projects we will use the C++ compiler for
compiler checks, which can be important.
7 years ago
Dylan Baker
df3c006456
Use ConfigToolDependency for libwmf
7 years ago
Dylan Baker
11fbc982d3
Use ConfigToolDependency for pcap
7 years ago
Dylan Baker
a2f3182172
Use ConfigToolDependency for cups
7 years ago
Dylan Baker
203c5ce990
dependencies: Don't like for python 3 in /System on macOS
...
That python will always be python2
7 years ago
Iñigo Martínez
935ca12822
dependencies: Allow pkg-config to define variables
...
pkg-config enables to define variables by using the define-variable
option. This allows some packages to redefine relative paths, so
files can be installed in the same relative paths but under prefix.
7 years ago
Anonymous Maarten
5cfb378442
Enable get_pkgconfig_variable for python3 dependencies
...
fixes mesonbuild/meson#2508
7 years ago
Jan Niklas Hasse
46736fc16c
Use mlog.warning for invalid boost module
...
Instead of mlog.debug. This make the warning visible to the user.
7 years ago
Jan Niklas Hasse
c3d143298b
Log instead of raise if Boost module invalid
...
BOOST_LIBS could become outdated in future versions, which would result
in dependency('boost', modules : [ 'foo' ], required : false) to fail,
although required was set to false. Therefore turn the exception into
log_fail(). If required was set to true, this will still be caught since
is_found remains False.
This also improves logging by printing all invalid module names instead
of only the first one.
7 years ago
Félix Piédallu
bb84c1d109
Add LibWmf as a specified dependency, and associated tests.
7 years ago
Goncalo Carvalho
01611a66e2
Fix boost link cmd line when compiler.find_library returns None, self.request_modules doesn't have 'boost_' prefix but lib_modules is keyed on 'boost_*'
7 years ago
Niklas Claesson
14e7b0af25
Boost: Add Python libraries
...
Fixes : #2507
7 years ago