Xavier Claessens
5eef325ab6
pkgconfig generator: Only skip dependencies when using shared_library()
...
It is weird and inconsistent to have different pc file depending on
default_library value when using library() or build_target(). We should
skip dependencies only when user explicitly want shared library only.
7 years ago
Xavier Claessens
cf0e997167
Remove duplicated list of known kwargs for build targets
7 years ago
Sébastien Wilmet
51a1952172
gtkdochelper: print warnings
...
The GTK-Doc commands output was never printed, except in case of error.
So there was no way to see the warnings.
https://github.com/mesonbuild/meson/issues/2396
7 years ago
Jussi Pakkanen
3e23f36a3c
Fix detection to work with newer Java compilers.
7 years ago
Somasekhar Penugonda
7f89083363
Fix for issue in cpp.py
...
Change-Id: Iad9623d20eb5086528dacefce5d2f4f9bb9d0312
7 years ago
Matthias Klumpp
2dc1e87cae
Ensure D feature flags get applied to all D files
...
This resolves issue #3337
7 years ago
Alexis Jeandet
16c4a3b4f8
Added link to documentation and examples for find_library replacement ( #3346 )
7 years ago
Alexis Jeandet
ebeb248c07
[Qt module] Added generated resource test case + some fixes
...
Subdir is already in generated resource path.
Some PEP8 fixes.
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
7 years ago
Alexis Jeandet
fd245ce5cf
[Qt module] add some logic to detect if resources are in build dir
...
In order to handle generated resources embedded in qrc file, we
need to be able to detect if files pointed from qrc are in build
directory or not.
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
7 years ago
behlec
37d379ebe5
Allow meson build file to exit early. ( #2808 )
7 years ago
Matthias Klumpp
6146353f45
Don't crash when using d_module_versions for pkg-config
7 years ago
chitranjali
cc6be2e43d
Fixing flake8
7 years ago
chitranjali
34cb503c85
PR review changes closes #2865
7 years ago
chitranjali
83766313a7
fix2865
7 years ago
Xavier Claessens
b4aee4675a
pkgconfig: Add a simple version of the generator ( #3284 )
7 years ago
Aleksey Filippov
ddc6f72507
Use consistent quotes
7 years ago
Aleksey Filippov
827d33c8b6
Split SingleTestRunner.run()
7 years ago
makise-homura
67f067d5b2
Added version detection for lcc compiler
7 years ago
Aleksey Filippov
0e8c69b796
Split SingleTestRunner._get_cmd() out of run()
7 years ago
Aleksey Filippov
9596fd6c24
Move run_single_test() into separate class
7 years ago
Aleksey Filippov
3eebb1f83a
Make run_single_test() method static
...
Closes #3318
7 years ago
Aleksey Filippov
9c01fc0e49
Do not access counters from parallel code
7 years ago
Aleksey Filippov
2aa1c3d575
Use enum instead of string constants
7 years ago
Aleksey Filippov
84e3cadc70
Use hermetic parameters in run_single_test(), initialize them before in the caller
7 years ago
Somasekhar Penugonda
e62b8109eb
Updates to CPP support and update review changes
7 years ago
Jussi Pakkanen
9b2e533d87
Always build parser objects anew to avoid leaking old data.
7 years ago
Alexis Jeandet
0407fac59e
[Qt module] Add File object support for generated or not qrc files
...
Added missing sub-folder test
Closes #3324
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
7 years ago
Xavier Claessens
8efd940092
pkgconfig generator: Add required version
7 years ago
Chris Lamb
979eaa804a
Make the generated pkgconfig files reproducible.
...
Whilst working on the Reproducible Builds effort [0], we noticed
that meson creates non-reproducible pkgconfig files as it relies
on Python set ordering.
This was originally filed in Debian as #892515 [1].
[0] https://reproducible-builds.org/
[1] https://bugs.debian.org/892515
7 years ago
Víctor Manuel Jáquez Leal
6f7f7c69a2
dependency's wanted version might be a list
...
A dependency declared in a subproject should be able to behave as
a pkgconfig dependency, thus it should process the wanted version
as a list.
7 years ago
Thierry Reding
c4192a04fd
Support data types larger than 128 bytes
...
Recent versions of systemd (starting with v238) started to check for the
existence of the statx structure using the cc.sizeof() operation. The cc
compiler implementation fails to detect this structure because it's size
limit is 128, meaning it will fail for any type larger than 128 bytes in
the following way during cross-compilation checks:
meson.build:10:2: ERROR: Cross-compile check overflowed
Increase the size limit for data types to 1024 bytes, which should give
plenty of room for even large data structures. This is obviously not
guaranteed to be an upper bound, but given the binary search algorithm
implemented in the cross-compile check, raising the limit too high may
significantly increase the time required for this check on smaller data
types.
Signed-off-by: Thierry Reding <treding@nvidia.com>
7 years ago
Aleksey Filippov
c18ceac040
Add depends keyword to test() function
7 years ago
Aleksey Filippov
642df0505a
Use unholder=True instead of checking held_object attribute presence
7 years ago
Sam H
3e48d47674
Squash target_type warning for jar targets
7 years ago
Aleksey Filippov
8b1e9a6f6a
Enable b_ndebug on VisualStudioCCompiler
7 years ago
Alexis Jeandet
e89008b657
Added get_asneeded_args method to Intel compiler.
...
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
7 years ago
Jussi Pakkanen
30827b5644
Do not install configure_file output if install_dir is empty. Closes #3270 .
7 years ago
Aleksey Filippov
2febb99eee
Fix b_ndebug=if-release option
...
Provide get_{type}_options_for_target() methods that unite {type} and builtin options.
7 years ago
makise-homura
546f81e0f9
Fixed lchmod detection for lcc C/C++ compilers
7 years ago
nyorain
dd614015e0
Open mesontest logfiles in utf-8 mode
...
Otherwise unit tests fail on windows when they output some
non-utf8 data.
7 years ago
Jussi Pakkanen
58156ef7cf
Grab a file lock on the build dir during modifications.
7 years ago
makise-homura
942e34241f
Fixed compatibility issue regarding Python 3.5
...
In Python 3.5 os.path.join accepts str or bytes, not path-like
objects as in Python 3.6.
7 years ago
makise-homura
3b254c6e49
Fixed failure if compiler messages is not in UTF-8
...
For example, Elbrus lcc does output in KOI8-R, if LC_ALL=C, and
there is no English counterpart for original Russian message.
7 years ago
makise-homura
08bd07f860
Added specific get_library_dirs function for lcc
7 years ago
Thibault Saunier
62165aef43
options: s/yiel/yield/ typo
...
Making the option unusable with Invalid kwargs for option use_orc: "yield"
7 years ago
Nirbheek Chauhan
d012b5b997
Create a helper for checking if a string has a path component
...
This is used in a number of places, and in some places it is incomplete.
Use a helper to ensure it's used properly.
7 years ago
David Seifert
7eb187c5f2
Add -Wl,-dead_strip_dylibs support
...
* `-Wl,-dead_strip_dylibs` is the analogue
of `-Wl,--as-needed` on macOS.
7 years ago
Jussi Pakkanen
cf5f1a83d5
Fix existing tests.
7 years ago
Joel Klinghed
b2ffb6b565
Generate coveragereport directory for gcovr html target
7 years ago
Joel Klinghed
8bad2d9827
Exclude subprojects when doing coverage
...
Restore subproject exclusion for the html coverage report that existed
in the ninja backend legacy target.
Also exclude subprojects for the gcovr generated reports.
7 years ago