Nirbheek Chauhan
5113eb14b9
gnome: Use raw link arguments with g-ir and gtk-doc
...
Those tools use our arguments to build a file and execute it to
introspect it at runtime. However, they do not know that you can pass
the full path to the library to use, and ignore the arguments.
The long-term fix for this is to have them output a .c file that Meson
will build for them, which they can then run, but that will require
upstream changes:
https://gitlab.gnome.org/GNOME/gtk-doc/merge_requests/1
Closes https://github.com/mesonbuild/meson/issues/3774
6 years ago
Nirbheek Chauhan
d737488150
dependencies: Don't assume self.compiler is a C compiler
...
All dependencies were using find_library, has_header, get_define, etc on
self.compiler assuming that it's a compiler that outputs and consumes
C-like libraries. This is not true for D (and in the future, for Rust)
since although they can consume C libraries, they do not use the
C ecosystem.
For such purposes, we now have self.clib_compiler. Nothing uses
self.compiler anymore as a result, and it has been removed.
7 years ago
Xavier Claessens
00414a326a
dependencies: Take options from coredata instead of cmd line
...
These are the last remaining places where attributes set by argparse for
"--builtin-option" are used.
7 years ago
Jukka Laurila
52c50da6c7
Refactor: Add log.error and log.exception to reduce code duplication.
7 years ago
Aleksey Filippov
ffa5293901
Split boost dependency out into separate file
...
Boost dependency is very complex and it is easier to manage it
in a separate file.
7 years ago
Benjamin Redelings
ab37727289
Add comment.
7 years ago
Benjamin Redelings
52775ecb14
Clean up code a bit.
7 years ago
Benjamin Redelings
8596c36214
Don't give up - boost could be in search path.
7 years ago
Benjamin Redelings
80e4ac2d49
Don't give up before check for libraries - they could be in search path.
7 years ago
Benjamin Redelings
45a7d094cc
Remove completed TODO notes.
7 years ago
Benjamin Redelings
b762655e98
Remove unused import.
7 years ago
Benjamin Redelings
8cf9c7f268
Allow finding boost libraries on windows.
7 years ago
Benjamin Redelings
4babf035e5
Factor our sourceforge dir names, and don't crash on non-msvc.
7 years ago
Benjamin Redelings
47ced35b77
Don't crash if we are not msvc.
7 years ago
Benjamin Redelings
f7862bcd92
Add note about mingw-w64 libraries.
7 years ago
Benjamin Redelings
7a233d01c7
Factor out debug tag.
7 years ago
Benjamin Redelings
a47a521b50
Correctly check for cross-compilation.
7 years ago
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