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
c62078dae5
Add missing for_linux( ) 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
Jussi Pakkanen
4a189cf8c5
Add unit test that checks that the sample projects compile.
7 years ago
Jussi Pakkanen
f1afd44b2b
Added C++ library sample.
7 years ago
Jussi Pakkanen
21101fd00a
Added C++ exe sample project.
7 years ago
Jussi Pakkanen
3cc1462dd2
Add a sample shared library project.
7 years ago
Jussi Pakkanen
d2b68d31dd
Added init command that creates a sample exe project.
7 years ago
snsmac
27d5c1c3f9
The scanbuild script does now also look for executables with a version in the name
7 years ago
Alexey Stukalov
4f32d11e1b
add Compiler.thread_flags() stub
...
fixes #2834
7 years ago
Jon Turney
ad5cc2ce55
Append warning location to warning output by warning()
7 years ago
Jon Turney
3c75ae9ced
Add filename and lineno to duplicate kwargs warning
...
Fixes #1626
Also fix 'a an error' typo
7 years ago
Nirbheek Chauhan
ae0f4ef055
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
Nirbheek Chauhan
6f3e2a0a07
compilers: prefer C++ over objc in clink_langs
...
Otherwise we will try to use the objc compiler when linking projects
with both objc and C++.
Technically we should use the objc++ linker when doing this, but on
most (all?) systems the objc++ linker is `c++`, which is the same
as the C++ linker.
Closes https://github.com/mesonbuild/meson/issues/2468
7 years ago
Gabríel Arthúr Pétursson
2fc3fc8d67
Remember which Visual Studio backend was auto-detected
...
This fixes the REGEN build target since VSINSTALLDIR does not get set by
Visual Studio when building targets.
Fixes #2848 .
7 years ago
Gabríel Arthúr Pétursson
c8355c9ffa
Fail Visual Studio version detection if VSINSTALLDIR is not set
...
The Visual Studio Developer Command Prompt always sets the VSINSTALLDIR
environment variable. If not, we probably have a broken environment and
won't get very far anyway.
7 years ago
Karol Szuster
8fb7d9261a
Add missing space
7 years ago
Andrei Alexeyev
84e47ab654
fix AttributeError in CustomTargetIndex.__repr__
7 years ago
Niklas Claesson
d014087fd9
boost: Allow older behavior with a warning
...
Fixes #2813
7 years ago
Benjamin Redelings
f3c182f07d
Add whitespace around '+'.
7 years ago
Benjamin Redelings
907744d55e
Fix linking with clang++ on linux if install_rpath.
7 years ago
Iñigo Martínez
f022cb3a40
gnome.gtkdoc: Add dependencies over generated targets
...
The gtkdoc function can also use generated targets to create
documentation. However, the dependencies over these generated files
are missing, so these must be also included in the run target.
7 years ago
Niklas Claesson
7f4f082d69
Print 'cached' if dependency is found in cache
7 years ago
Niklas Claesson
ba161d42ee
subproject handling: add fix
7 years ago
Xavier Claessens
68eedc8b71
pkgconfig: Rename DepsHolder to DependenciesHelper
7 years ago
Jon Turney
861cbc2e73
Update prefix-dependent defaults when project(default_options:) changes prefix
...
Fixes #2811
7 years ago
Jussi Pakkanen
ff98407ade
Dead code removal.
7 years ago
Xavier Claessens
49977686b5
pkgconfig: Use the pc file we generated for libraries
7 years ago
Xavier Claessens
9e541a0fff
pkgconfig: Avoid duplicated -L flags
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
Iñigo Martínez
1eab075c8e
Deprecate duplicated values in array options
...
Duplicated options in array types have been removed by a previous
commit but someone could be using it.
The previous behaviour has been restored but the existence of
duplicates is now tested, and in that case a `DEPRECATION` message
is shown.
7 years ago
Christoph Behle
c772841af7
Fix: More information for C compilers.
...
Add full version to gnu and icc C compiler.
7 years ago
Dylan Baker
e245e57865
Warn on unknown command line arguments
...
I have a tendency to typo things. Humans in general are bad at spotting
spelling mistakes, computers are not. This patches prints the bad
options and provides the generic meson "This will be a hard error
someday" message.
7 years ago
Dylan Baker
e1c9d2f53a
mesonmain: Remove useless ternary
...
This ternary checks the value of a bool, and returns the same value.
7 years ago
Iñigo Martínez
f92d117bec
gnome.gtkdoc: Add support for non string based content files
...
gnome's gtkdoc function does not support content files which are
not strings. However, there are situations where files generated
by other targets might be needed.
7 years ago
Jussi Pakkanen
8eaa0a2732
Use -MD instead of -MMD for reliability.
7 years ago
Iñigo Martínez
3a1f4ab34c
Remove duplicated values in array options
...
Array options can receive duplicated values, which can produce
errors if case those duplicated values make processing some
elements twice when they are expected to be processed only once.
7 years ago
Jussi Pakkanen
164fb9a150
Also promote wrap files.
7 years ago
Jussi Pakkanen
5b9d79b902
Print instructions on how to promote subsubprojects.
7 years ago
Jussi Pakkanen
46c071ea5c
Add functionality to promote nested dependencies to top level.
7 years ago
Hemmo Nieminen
d232a80e90
Allow value 'if-release' for b_ndebug project option. ( #1896 )
...
When set, NDEBUG will be automatically defined for for release builds but
not for other build types.
7 years ago
snsmac
2b12d3b20f
Exclude llvm/clang lib headers from test coverage
...
Excludes the /usr/lib/llvm-*/include/ directory from coverage.
This directory is used on Ubuntu for the libclang-dev packages
7 years ago
Christoph Behle
7bd30c522b
Fix flake8 issues.
7 years ago
Christoph Behle
1f3b41021d
More version information for Fortran.
7 years ago