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
Aleksey Filippov
4de02cb5b0
Document declare_dependency() link_whole parameter
7 years ago
Aleksey Filippov
9f1d4c0dbe
Add declare_dependency() test for transitive link_whole
7 years ago
Aleksey Filippov
cd245eccbd
Add declare_dependency() test for link_whole
7 years ago
Aleksey Filippov
077d59daa4
Add link_whole argument to declare_dependency()
7 years ago
Jussi Pakkanen
7842bc03dd
Merge pull request #3165 from jon-turney/run-unittests
...
Enable linux-like unit tests on all posix-like platforms
7 years ago
Jukka Laurila
8f340ffb8d
Generate meson.build based on existing source files when meson init is run in a non-empty directory.
7 years ago
Jukka Laurila
fcb95847ed
Fix the C and C++ project template options, they were reversed before.
7 years ago
Jussi Pakkanen
9819bc9c56
Add Python minimum version requirement in release notes. [skip ci]
7 years ago
TÖRÖK Attila
3e92a86db4
doc: Fix a syntax error in an example in 'Generating sources'. [skip ci]
7 years ago
Alexis Jeandet
d10b836155
Activate Qt5 tests on OSX CI
...
v2:
Qt5 only
Fix Qt PATH
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
7 years ago