Fabrice Fontaine
2e128f71bb
Fix FileNotFoundError when restorecon unavailable
...
Fixes:
- http://autobuild.buildroot.net/results/d5dcdfdfab3503fdc387f99e68267972a38c417d
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
7 years ago
Jussi Pakkanen
24ae120868
Turn deprecated commands into errors.
7 years ago
Jussi Pakkanen
9ecb75670f
Merge pull request #3127 from bluetech/method-permitted-kwargs
7 years ago
Jussi Pakkanen
ae0e469b06
Merge pull request #3145 from thejk/gcovr
...
Support gcovr >= 3.1 and add gcovr html report as fallback
7 years ago
Aleksey Filippov
552916d2d2
pkgconfig: allow any non-found dependency requires arguments
...
On some platforms such as OSX external dependency falls back
to different dependency types if it is not found.
7 years ago
Aleksey Filippov
6e83e41af7
pkgconfig: print requires argument type on error
7 years ago
Joel Klinghed
dfc0655bcd
fixup! Fix coverage-xml and coverage-text targets for gcovr >= 3.1
...
Fix fail cases of detect_gcovr
7 years ago
Jussi Pakkanen
a20c5ccd13
Fix snippet heading to conform to new formatting rules.
7 years ago
Joel Klinghed
4e1b229b37
fixup! Allow gcovr >= 3.1 to be used to generate html coverage report
...
Rename gcovr_3_1 to gcovr_new_rootdir
7 years ago
Joel Klinghed
ed8197207e
fixup! Fix coverage-xml and coverage-text targets for gcovr >= 3.1
...
Rename gcovr_3_1 to gcovr_new_rootdir
7 years ago
Jussi Pakkanen
8d8caef636
Merge pull request #3205 from sarum9in/use-itertools
7 years ago
Jukka Laurila
1d0169f4e7
Fix shared library building on xcode.
7 years ago
Aleksey Filippov
fe215bb826
Use os.path.dirname() instead of os.path.split(...)[0]
7 years ago
Jussi Pakkanen
6585427a7d
Merge pull request #3131 from sarum9in/pkgconfig
...
Pkgconfig accepts libraries and pkgconfig-dependencies in requires/requires_private parameters
7 years ago
Nirbheek Chauhan
28b19c78d6
PkgConfigDependency: Search for pkg-config with ExternalProgram
...
Strawberry Perl on Windows ships with a Perl implementation of
pkg-config embedded inside a BAT file. True horror of horrors, but
people do use it, so search for pkg-config with ExternalProgram which
has the right Windows-specific cases to deal with that.
Closes https://github.com/mesonbuild/meson/issues/3221
7 years ago
Jon Turney
7bf29b8efd
Fix typo preventing soname unit tests from running
...
Fix a typo in ac256cb6
preventing soname unit tests from running
7 years ago
Aleksey Filippov
98fc7a82dc
Link "External commands" page from run_command() reference [skip ci]
7 years ago
Aleksey Filippov
3493a372e2
Use specific exception types instead of Exception
7 years ago
Aleksey Filippov
093bdcafc9
Use subprocess.check_output() instead of Popen().communicate()
7 years ago
Aleksey Filippov
e4faf396e6
Do not use bare except [flake8]
...
Use more specific exception types where appropriate.
This patch does not change bare except calls if exception is re-raised.
7 years ago
Aleksey Filippov
d977b78f1b
Use itertools.chain() instead of list concatenation
7 years ago
Jon Turney
6f8e541f55
docs: update for mesonintrospect.py -> meson introspect
...
mesonintrospect is deprecated since 59a35c4c
(PR #2067 )
7 years ago
Jon Turney
e79454c2a4
docs: Add custom dependencies missing documentation
...
Add some brief documnentation about custom dependency lookups which are
implemented but not documented.
7 years ago
Jon Turney
e6d6b609cc
docs: polish documentation for custom dependency detectors
...
Various grammar fixes
Fix syntax of MPI examples
Add Qt4
7 years ago
Jon Turney
64bc2b84f8
docs: update system cross file documentation
...
Works on all non-Windows since cf98f5e3
(PR #3119 )
7 years ago
Jon Turney
fa0386d98a
docs: remove reference to mesongui
...
mesongui was removed in 71f18226
(PR #574 )
7 years ago
Jussi Pakkanen
407b6dfc29
Merge pull request #3203 from jukkalaurila/bug3185
...
Fix bug 3185, "Setting -Dc_args=... option and some others during initial run fails silently'
7 years ago
Jon Turney
8ca2cf03a5
Show info about possible subproject promotion when appropriate
...
Move call to print_nested_info down into do_subproject()
So we don't print info about possible subproject promotion unless subproject
failure is due to directory non-existence
And we do do that for subproject('foo'), as well as for dependency(fallback:
['foo', ...])
7 years ago
Niklas Claesson
e4ec7989e8
Add LANG to Dockerfile
7 years ago
Niklas Claesson
7074bcb88a
Exclude subprojects when doing coverage
7 years ago
Jukka Laurila
52c50da6c7
Refactor: Add log.error and log.exception to reduce code duplication.
7 years ago
Alex Hirsch
f6fd03485e
Fix C++ code used for doxygen test
7 years ago
Jukka Laurila
8789278e5e
Fixed bug 3185.
7 years ago
Jukka Laurila
2fcd9d35c5
Add test for bug https://github.com/mesonbuild/meson/issues/3185
7 years ago
Jukka Laurila
31df4ae164
Default run_project_tests backend to ninja instead of xcode on OS X.
...
The xcode backend is still incomplete and fails many tests.
7 years ago
Jukka Laurila
58ce5fe62d
Fix xcode backend to run "meson test" instead of the nonexistent meson_test.py.
7 years ago
Dylan Baker
1ea96b710b
setup.py: set the python_requires field
...
This instructs tools like pip that meson requires python 3.5 or greater,
so if one tries to install on an older version pip will fall back to an
older version of meson.
This won't fix 0.45 since it's already in the wild (unless someone wants
to delete and re-upload the version on pypi). But it should fix future
versions.
Retain the hand rolled version check, but update it to enforce our
actual requirements.
7 years ago
Jussi Pakkanen
8bd33ab981
Merge pull request #3195 from sarum9in/link_whole-generators
...
Get generated headers from link_whole_targets as meson does for link_targets
7 years ago
Eduardo Lima (Etrunko)
ccd198a849
Gnome-module.md: Add information about output files to mkenums()
...
[skip ci]
7 years ago
Jon Turney
ffe6ed2a47
doc: Tweak text about get_option('foodir') in reference manual [skip ci]
...
* The example for executable()'s install_dir: should use join_paths()
* Clarify how to use directory options which are potentially not prefix
relative
This is mentioned in https://github.com/mesonbuild/meson/issues/1637 and see
also https://patchwork.freedesktop.org/patch/200373/ for an example of this
usage, and the possible confusion that can arise.
7 years ago
Aleksey Filippov
c03a2fd283
Add indentation to 'common/64 custom header generator' test case
7 years ago
Mathieu Duponchelle
9f7bdedc94
mesonlib: fix meson detection (again)
...
Starting from 8fc4244187
, tests
failed on my system (python 3.6 arch) because
shutil.which('meson.py') returns 'meson.py', not './meson.py'.
Refactor that codepath by using os.path.isabs instead of
"m_dir == '.'", also remove the adjacent comment because
it doesn't make much sense.
7 years ago
Aleksey Filippov
9b6d2f8a25
Skip whole_archive test for VS older than 2015
7 years ago
Aleksey Filippov
bf0e01d779
Get generated headers from link_whole_targets as meson does for link_targets
7 years ago
Aleksey Filippov
bcd076276e
Add 'common/180 generator link whole' test case
...
This test covers usage of generated files in static_library
that is later linked into shared_library.
7 years ago
Jussi Pakkanen
e98ae58d0e
Merge pull request #3086 from sarum9in/declare-link-whole
...
Add declare_dependency() link_whole parameter
7 years ago
Evgenii Shatokhin
19718a8d9c
Allow passing a compiler object to run_command()
...
Sometimes it is needed to run the current compiler with specific options
not to compile a file but rather to obtain additional info. For example,
GCC has several -print-* options to query it about the paths to
different libraries and development files. One use case is to get the
location of development files for GCC plugins, which is not easily
obtainable by other means:
gcc -print-file-name=plugin
For this purpose, it would be convenient if the compiler object returned
by meson.get_compiler(lang) could be used in run_command() directly.
This commit implements it.
Signed-off-by: Evgenii Shatokhin <eshatokhin@virtuozzo.com>
7 years ago
Jukka Laurila
048508c989
Make "meson help" and "meson help <subcommand>" do the expected thing.
7 years ago
Jussi Pakkanen
fa1401bec1
Verify that snippets conform to expected format.
7 years ago
Nirbheek Chauhan
9e18e4c703
Improve vcs_tag documentation [skip ci]
...
Document that dependencies must be explicitly signalled, just like with a custom target.
7 years ago