Guillaume Poirier-Morency
bbddf51a54
Use 'C sharp' instead of 'C#'
...
The '#' is reserved for Ninja comments and cannot be escaped.
8 years ago
Guillaume Poirier-Morency
5b58ff2783
compilers: Use 'get_display_language' for language-related exceptions
8 years ago
Jussi Pakkanen
3262be23dc
Fixed issues raised in review.
8 years ago
Nirbheek Chauhan
5dab5f1600
environment: Fix exception when no defines were found
...
Lists are not hashable.
Closes https://github.com/mesonbuild/meson/issues/1989
8 years ago
Guillaume Poirier-Morency
fab5634916
Add 'Compiler.get_display_language'
...
Use this when we print language-related information to the console and
via the Ninja backend.
8 years ago
Jussi Pakkanen
4a37baf3c5
Fixed the remaining modules.
8 years ago
Jussi Pakkanen
80d665e8de
Converted some modules.
8 years ago
Jussi Pakkanen
7f482824bb
Add kwarg checker in module code.
8 years ago
Jussi Pakkanen
50e75baa91
Removed in_builddir from public usage as it is an internal feature that was visible by accident.
8 years ago
Jussi Pakkanen
fe74c54079
Alphabetization.
8 years ago
Jussi Pakkanen
97b7a7b10e
Moved func_ methods from base class to Interpreter.
8 years ago
Jussi Pakkanen
325a231abe
Add a few more.
8 years ago
Jussi Pakkanen
f7da8dc84d
A few more.
8 years ago
Jussi Pakkanen
e08d735105
Added a few more kwarg checks to functions.
8 years ago
Jussi Pakkanen
0eb41a9a08
Checks for all build target functions.
8 years ago
Jussi Pakkanen
92493d4e5e
Added kwargs for executable().
8 years ago
Jussi Pakkanen
46e61971ce
Decorator to check for permitted kwargs.
8 years ago
Jussi Pakkanen
506cc57cc8
Do not permit invalid and/or nodes to be declared. Closes #1886 .
8 years ago
Alistair Thomas
117f4ab8b5
Split out languages from compilers.py
8 years ago
Alistair Thomas
d71da5bdb3
Converted compilers.py to a sub-package
8 years ago
Alistair Thomas
e5559903b3
Split linkers out from compilers.py
8 years ago
Nirbheek Chauhan
185808bf16
vala: Only add --use-header for unity builds
...
Closes https://github.com/mesonbuild/meson/issues/1969
8 years ago
Jens Georg
ce3cec40da
Skip handling non-available dependencies
...
This way, an optional dependency can always be added on Vala targets without
meson adding --pkg
8 years ago
Elliott Sales de Andrade
70776cda98
Add build include directory to gtkdoc source paths.
...
This enables gtkdoc to produce documentation on files that were
generated, using configure_file, for example.
8 years ago
Adam C. Foltzer
6165612f6b
fix indentation per @ignatenkobrain
8 years ago
Elliott Sales de Andrade
ca798e1538
Add all internal dep rpaths to gnome module builds.
...
Running gtkdoc on a shared library that depends on another shared
library would fail otherwise.
8 years ago
Elliott Sales de Andrade
6bc14424b4
Use absolute path to target dir within gnome module.
...
Stuff like gtkdoc may not be run in the top-level build directory, so
these paths need to be absolute.
Fixes #1950 .
8 years ago
Jussi Pakkanen
797bca22a5
Bump version number for new development.
8 years ago
Jussi Pakkanen
defcea7fb5
Update version number for bugfix release.
8 years ago
Jussi Pakkanen
fa9fde5029
Storage object has changed so use values(). Closes #1963 .
8 years ago
Jussi Pakkanen
cccb932f8f
Expand magic markers on custom and run targets too. Closes #1681 .
8 years ago
Jussi Pakkanen
9baa740aa1
Only call to_native once per invocation.
8 years ago
Jussi Pakkanen
7c7dc0efde
Fix a stray variable renaming. Closes #1952 .
8 years ago
Jussi Pakkanen
1c34707aee
Preserve standalone -D arguments always.
8 years ago
Patrick Griffis
ccb253189a
gnome.generate_gir(): Fix linking to libasan if sanitizer enabled
...
This is a bit of a workaround linking directly to it but it is
at least functional unlike before.
Fixes #1910
8 years ago
Nirbheek Chauhan
73c06780f9
Make external library no-op when used with incompatible target ( #1941 )
...
* tests: Add a test for C library in Vala target
https://github.com/mesonbuild/meson/issues/1939
* Make external library no-op when used with incompatible target
This is how it used to behave earlier, but we accidentally regressed
Closes https://github.com/mesonbuild/meson/issues/1939
8 years ago
Nirbheek Chauhan
1441cb9812
wxwidgets: Fix usage of multiple dependency() calls
...
This was broken because the class property will say True but the
object property will not be set. Store the value on the class property
and transfer to object in __init__. Just like PkgConfigDependency.
8 years ago
Nirbheek Chauhan
ea3e28dbb9
valgrind: Fix __init__ call
...
Adds a test so that this is catched later.
Closes https://github.com/mesonbuild/meson/issues/1937
8 years ago
Patrick Griffis
604adce33f
gnome: Fix getting sanitize cflags for gir
...
There was an API break somewhere and this wasn't kept in sync.
Part of #1910
8 years ago
Adam C. Foltzer
35fae9d019
fix failing Rust test cases
8 years ago
Adam C. Foltzer
69b18cf7e9
rename `crate_type` to `rust_crate_type` per @TingPing
8 years ago
Elliott Sales de Andrade
79d005364f
Add Mercurial dist support.
8 years ago
Elliott Sales de Andrade
1aa1d0d9ad
Remove extraneous os.path.split()s.
...
Since only one part is needed, they can be replaced by dirname,
basename, or the originally joined file name.
8 years ago
Jussi Pakkanen
f75d394683
Update versions for new development.
8 years ago
Jussi Pakkanen
93681b0137
Updated version number for release.
8 years ago
Nirbheek Chauhan
d23e6b34c7
Preserve -L -l pairings fetched from external deps
...
While adding link args for external deps, sometimes different
libraries come from different prefixes, and an older version of the
same library might be present in other prefixes and we don't want to
accidentally pick that up.
For example:
/usr/local/lib/libglib-2.0.so
/usr/local/lib/pkgconfig/glib-2.0.pc
/usr/local/lib/libz.so
/usr/local/lib/pkgconfig/zlib.pc
/home/mesonuser/.local/lib/libglib-2.0.so
/home/mesonuser/.local/lib/pkgconfig/glib-2.0.pc
PKG_CONFIG_PATH="/home/mesonuser/.local/lib/pkgconfig/:/usr/local/lib/pkgconfig/"
If a target uses `dependencies : [glib_dep, zlib_dep]`, it will end up
using /usr/local/lib/libglib-2.0.so instead of
/home/mesonuser/.local/lib/libglib-2.0.so despite using the pkg-config
file in /home/mesonuser/.local/lib/pkgconfig because we reorder the -L
flag and separate it from the -l flag.
With this change, external link arguments will be added to the
compiler list without de-dup or reordering.
Closes https://github.com/mesonbuild/meson/issues/1718
8 years ago
Florian Müllner
a3dda095bc
gnome: Guard all cflags passed to g-ir-scanner
...
While g-ir-scanner's compatible -I and -D flags cover what most dependencies
use, there's no guarantee that a dependency's cflags don't include more
exotic flags that conflict with the tool's own options.
For a real world example, mozjs-38 has '-include some-header-file.h', which
translates to '--include nclude another-file-to-scan.h' for the scanner;
unless for some reason there's an 'nclude' GIR available on the system,
the target will thus fail.
For this purpose, g-ir-scanner allows explicitly marking some flags as
preprocessor/compiler flags by guarding them with --cflags-begin and
--cflags-end. Make sure it is used this for all cflags, not only for
global and project flags.
8 years ago
Florian Müllner
4b8dc3b746
gnome: Fix includedir cflags
...
Include directories are passed with the -I flag to both the compiler
and g-ir-scanner, not as input files.
8 years ago
Nirbheek Chauhan
1e42241ef3
gnome: Don't assume that a C compiler is being used
8 years ago
Nirbheek Chauhan
d38f3deaed
gnome: Work around GNU ld bug with -rpath,$ORIGIN
...
g-ir-scanner doesn't understand -rpath, so we use -L instead which
has the same effect.
Closes https://github.com/mesonbuild/meson/issues/1911
8 years ago