aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2018-03-09Add test for bug https://github.com/mesonbuild/meson/issues/3185Jukka Laurila2-0/+11
2018-03-09Default run_project_tests backend to ninja instead of xcode on OS X.Jukka Laurila1-2/+0
The xcode backend is still incomplete and fails many tests.
2018-03-09Fix xcode backend to run "meson test" instead of the nonexistent meson_test.py.Jukka Laurila1-3/+1
2018-03-07setup.py: set the python_requires fieldDylan Baker1-2/+4
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.
2018-03-07Merge pull request #3195 from sarum9in/link_whole-generatorsJussi Pakkanen7-1/+132
Get generated headers from link_whole_targets as meson does for link_targets
2018-03-07Gnome-module.md: Add information about output files to mkenums()Eduardo Lima (Etrunko)1-1/+3
[skip ci]
2018-03-07doc: Tweak text about get_option('foodir') in reference manual [skip ci]Jon Turney1-2/+7
* 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.
2018-03-07Add indentation to 'common/64 custom header generator' test caseAleksey Filippov1-3/+3
2018-03-07mesonlib: fix meson detection (again)Mathieu Duponchelle1-5/+4
Starting from 8fc424418720da4ef61bde9348f4cc1a149d1cb2, 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.
2018-03-07Skip whole_archive test for VS older than 2015Aleksey Filippov1-0/+7
2018-03-07Get generated headers from link_whole_targets as meson does for link_targetsAleksey Filippov1-1/+2
2018-03-07Add 'common/180 generator link whole' test caseAleksey Filippov6-0/+123
This test covers usage of generated files in static_library that is later linked into shared_library.
2018-03-06Merge pull request #3086 from sarum9in/declare-link-wholeJussi Pakkanen11-5/+45
Add declare_dependency() link_whole parameter
2018-03-06Allow passing a compiler object to run_command()Evgenii Shatokhin5-5/+44
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>
2018-03-06Make "meson help" and "meson help <subcommand>" do the expected thing.Jukka Laurila2-0/+13
2018-03-06Verify that snippets conform to expected format.Jussi Pakkanen1-1/+15
2018-03-06Improve vcs_tag documentation [skip ci]Nirbheek Chauhan1-4/+12
Document that dependencies must be explicitly signalled, just like with a custom target.
2018-03-06Document declare_dependency() link_whole parameterAleksey Filippov2-0/+6
2018-03-06Add declare_dependency() test for transitive link_wholeAleksey Filippov3-0/+16
2018-03-06Add declare_dependency() test for link_wholeAleksey Filippov3-0/+14
2018-03-06Add link_whole argument to declare_dependency()Aleksey Filippov4-5/+9
2018-03-06Merge pull request #3165 from jon-turney/run-unittestsJussi Pakkanen3-15/+51
Enable linux-like unit tests on all posix-like platforms
2018-03-06Generate meson.build based on existing source files when meson init is run ↵Jukka Laurila3-7/+139
in a non-empty directory.
2018-03-06Fix the C and C++ project template options, they were reversed before.Jukka Laurila1-3/+3
2018-03-05Add Python minimum version requirement in release notes. [skip ci]Jussi Pakkanen1-12/+19
2018-03-05doc: Fix a syntax error in an example in 'Generating sources'. [skip ci]TÖRÖK Attila1-1/+1
2018-03-05Activate Qt5 tests on OSX CIAlexis Jeandet1-2/+2
v2: Qt5 only Fix Qt PATH Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
2018-03-05Enable linux-like unit tests on all posix-like platformsJon Turney1-3/+29
Enable linux-like unit tests on all posix-like platforms, not just linux, skipping tests where appropriate. This enables these tests for OSX and Cygwin in CI. * Allow in-process (as well as out of process) tests to be skipped by returning MESON_SKIP_TEST This is needed to allow test_old_gnome_module_codepaths to be skipped when 'test cases/frameworks/7 gnome' is missing it's pre-prequisites * Skip PIC tests on platforms where it's irrelevant * Apple Clang reports the XCode version number, not the LLVM version number, so the check for stdc(|++)17 needs adjusting * Skip tests that only pertain to ELF or RPATH mechanics when irrelevant * Skip tests that require valac if missing * Skip asan test on Cygwin
2018-03-04Fix "meson 'test cases/frameworks/4 qt master' _build -Dmethod=qmake" on OSXJon Turney1-1/+6
ExtraFrameworkDependency doesn't support any method: other than auto, so handing down the method: used from QtBaseDependency leads to (sic): meson.build:13:2: ERROR: Unsupported detection method: qmake, allowed methods are auto and auto
2018-03-04Fix reporting of Qt detection method used on OSXJon Turney1-1/+2
Ensure that from_text is set to the name of the qmake executable we used, rather than the return value of _framework_detect(), which is always 'None'
2018-03-04Fix QtBaseDependency._framework_detectJon Turney1-1/+4
At the moment, QtBaseDependency._framework_detect sets is_found if at least one module is found. This gives the incorrect result in the case where both found and not-found modules are given. Fix it so it only sets is_found if all the modules given are found.
2018-03-04Invoke 'qmake --version' correctly in test_qt5dependency_qmake_detectionJon Turney1-5/+2
subprocess.getoutput() takes a string, not a list. I'm going to guess this is the cause of the mysterious behaviour alluded to in the comment...
2018-03-04Fix dependency('qt4|5', method: 'qmake') for CygwinJon Turney1-2/+6
Fix dependency('qt4|5', method: 'qmake') detection when shared library extension isn't .so Note that OSX already has a special case to look for .framework
2018-03-05Merge pull request #3177 from infirit/consistant_config_outpuJussi Pakkanen1-87/+60
mconf: re-implement print_aligned fixes #3149
2018-03-05meson test: let gdb handle ^C instead of usAlicia Boya García1-4/+21
Fixes https://github.com/mesonbuild/meson/issues/3156
2018-03-05Merge pull request #3171 from jon-turney/flake8Jussi Pakkanen13-41/+31
Fix flake8 issues
2018-03-04Bumped version number for new development.Jussi Pakkanen1-1/+1
2018-03-04Add missing code block end marker.Jussi Pakkanen1-0/+1
2018-03-04mconf: Make it pep8 compliantSander Sweers1-2/+7
2018-03-04mconf: make print_aligned staticSander Sweers1-1/+2
2018-03-04mconf: Do not store dict keys for no reasonSander Sweers1-13/+8
If a dict is empty it will evaluate to False
2018-03-04mconf: User newline instead of printing empty stringSander Sweers1-17/+8
2018-03-04mconf: Replace usage of keys() on dicts with direct call by sortedSander Sweers1-5/+4
Calling sorted or list on a dictionary will return the keys.
2018-03-04Re-implement function print_alignedSander Sweers1-51/+34
It is now more readable, more pythonic and fixes #3149
2018-03-04mconf: Do not turn opt.choices into a stringSander Sweers1-2/+1
It is inconsistent with other option groups. It also breaks print_aligned as it handles lists.
2018-03-04Updated information for new release.0.45.0Jussi Pakkanen27-176/+200
2018-03-04Make gtkdoc test pass on Debian unstable.Jussi Pakkanen2-6/+9
2018-03-04Skip test that requires mocking when using an external exe. Also logging.Jussi Pakkanen1-1/+10
2018-03-04Explain change of default better. [skip ci]Jussi Pakkanen1-32/+165
2018-03-04Fixing broken language arguments [skip ci]Tim Ansell1-1/+1
Missing ending pipe was causing it to fail to render.