aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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.
2018-03-04Document wxwidgets dependency, closes #3159 [skip ci]Aleksey Filippov1-2/+26
2018-03-04The "outputs" kwarg should be "output" and rewrapping. Closes #3166. [skip ci]Jussi Pakkanen2-16/+64
2018-03-03Fix remaining flake8 reportJon Turney1-1/+1
$ flake8 ./mesonbuild/interpreterbase.py:411:13: F821 undefined name 'set_variable' This looks like an actual bug which would affect disabler use :)
2018-03-03Fix flake8 'variable assigned value but unused' reportsJon Turney4-8/+4
$ flake8 | grep -E 'F841' ./run_unittests.py:1987:13: F841 local variable 'objc' is assigned to but never used ./run_unittests.py:1988:13: F841 local variable 'objcpp' is assigned to but never used ./mesonbuild/minit.py:272:5: F841 local variable 'uppercase_token' is assigned to but never used ./mesonbuild/minit.py:307:5: F841 local variable 'uppercase_token' is assigned to but never used ./mesonbuild/modules/unstable_icestorm.py:36:9: F841 local variable 'result' is assigned to but never used ./mesonbuild/modules/unstable_icestorm.py:78:9: F841 local variable 'up_target' is assigned to but never used ./mesonbuild/modules/unstable_icestorm.py:81:9: F841 local variable 'time_target' is assigned to but never used ./msi/createmsi.py:226:17: F841 local variable 'file_source' is assigned to but never used
2018-03-03Fix various flake8 indentation reportsJon Turney4-8/+8
$ flake8 | grep -E '(E123|E127|E128)' ./run_unittests.py:1358:37: E127 continuation line over-indented for visual indent ./run_unittests.py:1360:37: E127 continuation line over-indented for visual indent ./mesonbuild/minit.py:311:66: E128 continuation line under-indented for visual indent ./mesonbuild/minit.py:312:66: E128 continuation line under-indented for visual indent ./mesonbuild/minit.py:313:66: E128 continuation line under-indented for visual indent ./mesonbuild/compilers/cpp.py:115:63: E127 continuation line over-indented for visual indent ./msi/createmsi.py:156:13: E123 closing bracket does not match indentation of opening bracket's line ./msi/createmsi.py:188:13: E123 closing bracket does not match indentation of opening bracket's line
2018-03-03Fix various flake8 whitespace reportsJon Turney4-13/+12
$ flake8 | grep -E '(E203|E221|E226|E303|W291|W293)' ./run_unittests.py:1503:5: E303 too many blank lines (2) ./mesonbuild/interpreter.py:2342:64: E226 missing whitespace around arithmetic operator ./mesonbuild/minit.py:110:17: E221 multiple spaces before operator ./mesonbuild/minit.py:131:1: W293 blank line contains whitespace ./mesonbuild/minit.py:135:19: E221 multiple spaces before operator ./mesonbuild/minit.py:155:1: W293 blank line contains whitespace ./mesonbuild/minit.py:181:1: W293 blank line contains whitespace ./mesonbuild/minit.py:183:1: W293 blank line contains whitespace ./mesonbuild/minit.py:294:47: W291 trailing whitespace ./mesonbuild/minit.py:331:47: W291 trailing whitespace ./mesonbuild/modules/unstable_icestorm.py:49:1: W293 blank line contains whitespace ./mesonbuild/modules/unstable_icestorm.py:76:31: E203 whitespace before ':' ./mesonbuild/modules/unstable_icestorm.py:82:22: E203 whitespace before ':'
2018-03-03Fix flake8 'imported but unused' reportsJon Turney9-11/+6
$ flake8 | grep F401 ./meson.py:17:1: F401 'mesonbuild.mesonlib' imported but unused ./meson.py:18:1: F401 'locale' imported but unused ./run_unittests.py:24:1: F401 'sys' imported but unused ./mesonbuild/minit.py:2:1: F401 'pyclbr.Function' imported but unused ./mesonbuild/minit.py:18:1: F401 'os' imported but unused ./mesonbuild/backend/vs2010backend.py:15:1: F401 'sys' imported but unused ./mesonbuild/backend/xcodebackend.py:19:1: F401 'sys' imported but unused ./mesonbuild/dependencies/ui.py:20:1: F401 'shutil' imported but unused ./mesonbuild/modules/python3.py:15:1: F401 'sys' imported but unused ./mesonbuild/modules/unstable_icestorm.py:15:1: F401 '..compilers' imported but unused ./mesonbuild/modules/unstable_icestorm.py:15:1: F401 '..mlog' imported but unused ./test cases/common/98 gen extra/srcgen3.py:3:1: F401 'os' imported but unused
2018-03-03Fix test setup's timeout_multiplier handling.Hemmo Nieminen1-2/+4
2018-03-03Fix OSX CI with current homebrewJon Turney1-1/+2
Since [1], python3 is now an alias for python, so installing it, rather than upgrading it, will fail. It seems that homebrew can't do this upgrade without breaking python2, so uninstall and reinstall python2 (and mercurial which depends on it) to work around that problem. [1] https://brew.sh/2018/01/19/homebrew-1.5.0/
2018-03-01Merge pull request #3150 from trhd/setups2Jussi Pakkanen8-102/+103
Fix a data pickling bug.
2018-03-01Add jpakkane's answer to "Why must all subprojects be inside a single ↵Aleksey Filippov1-0/+24
directory?" [skip ci]
2018-03-01Add links to Subprojects.md page from subproject() and subproject object ↵Aleksey Filippov1-1/+3
documentation [skip ci]
2018-03-01Add reference to implicit_include_directories from include_directories() ↵Aleksey Filippov1-0/+4
[skip ci] Closes #3153
2018-03-01Avoid unnecessary unpickling of build data during testing.Hemmo Nieminen1-24/+24
2018-03-01Harmonize data pickling.Hemmo Nieminen8-78/+83
Try to be more consistent on using save() and load() methods to pickle data.
2018-03-01Remove some unused variables.Hemmo Nieminen2-5/+1
2018-02-27Allow gcovr >= 3.1 to be used to generate html coverage reportJoel Klinghed5-6/+28
Modern gcovr includes html generation support so if lcov and genhtml are not available fallback to gcovr. Kept lcov and genhtml as default so to not surprise existing users of coverage-html with the different output of gcovr. gcovr added html support in 3.0 but as there already is a test for 3.1 because of the changes to -r/--rootdir I opted to only allow html generation for >= 3.1 to keep things simple.
2018-02-27Fix coverage-xml and coverage-text targets for gcovr >= 3.1Joel Klinghed3-10/+32
In gcovr 3.1 the -r/--rootdir argument changed meaning causing reports generated with gcovr 3.1 to not find the source files and look for *.gcda in the whole source tree rather than the build dir. So, detect gcovr version and if 3.1 give build_root to -r instead of source_root.
2018-02-27Merge pull request #2311 from trhd/setupsJussi Pakkanen11-61/+134
Improve test setup selection.
2018-02-27Enable 'test cases/frameworks/10 gtk-doc' for gtkdoc >= 1.26Jon Turney2-5/+12
Enable 'test cases/frameworks/10 gtk-doc' if gtkdoc version is 1.26 or later. Old versions of gtkdoc-scan also output the version to stdout rather than stderr, so be sure to handle that...
2018-02-27Refactor 'common/145 whole archive' test caseAleksey Filippov13-17/+23
Former test is extremely hard to follow, target names are inconsistent with directory names, test case mixes up 2 separate testing scenarios, names are meaningless. In order to fix this provides comments what each command is doing and why, renamed targets into descriptive and longer names, made names consistent with contents so that it is easier to follow test logic without looking up source code.
2018-02-27Do not unpack link_whole target, BuildTarget.link_whole() does listify() anywayAleksey Filippov1-4/+0
2018-02-27Look up compilers based on sources from deps, too. Closes #2768.Jussi Pakkanen4-3/+23
2018-02-25Add a release note snippet for the improved test setup selection.Hemmo Nieminen1-0/+16
2018-02-25Add some test setup selection tests.Hemmo Nieminen7-0/+54
2018-02-25Use test setups from the active (sub)project by default.Hemmo Nieminen1-40/+44
Replace the logic where a test setup with no project specifier defaults to the main project with one that takes the test setup from the same (sub)project from where the to-be-executed test has been read from.
2018-02-25Include project name in a test object.Hemmo Nieminen2-11/+11
2018-02-25Namespace test setups.Hemmo Nieminen2-13/+12
Use $project_name:$test_setup namespace scheme for test setups. This allows one to choose from which (sub)project a test setup is taken from should there be several sharing the same name. Defaults to the main project. E.g. "meson test --setup subproj:valgrind".
2018-02-25Change an error message when find_program() fails.Hemmo Nieminen1-1/+1
Mention all the sought programs in the error message.
2018-02-25Adding a "Projects using Meson" to Community section (#3138)Tim Ansell1-0/+10
2018-02-25[skip ci] Improve Contributing file slightlyTim Ansell2-4/+8
[GitHub links to your Contributing instructions when people send pull requests](https://help.github.com/articles/setting-guidelines-for-repository-contributors/). For this reason it is good for this file to be a bit nicer and more welcoming. This file has been changed to Markdown so GitHub renders it nicely and some encouragement text has been added. The link to the full contributing instructions has also been reformatted and this makes the file look nicer when viewing in plain text form too!
2018-02-25Use include_directories for D impdirs.Jussi Pakkanen5-14/+68
Change the code to store D properties as plain data. Only convert them to compiler flags in the backend. This also means we can fully parse D arguments without needing to know the compiler being used.
2018-02-25Merge pull request #3132 from mesonbuild/cscJussi Pakkanen17-47/+123
Visual Studio C# compiler support and some fixes
2018-02-25[skip ci] docs: Add reference table for language args parameter names (#3126)Hylke Bons2-0/+20
2018-02-25Determining whether to run C# tests is so difficult it deserves its own ↵Jussi Pakkanen1-1/+23
function.
2018-02-25Hide banner when invoking csc.Jussi Pakkanen1-1/+7
2018-02-24Document pkgconfig.generate() requires parametersAleksey Filippov2-2/+8
2018-02-24Add library with generated_pc and PkgConfigDependency support to ↵Aleksey Filippov4-2/+50
pkgconfig.generate()
2018-02-25Made test program consist of two source files.Jussi Pakkanen3-3/+11
2018-02-25Added release note snippet for csc support.Jussi Pakkanen1-0/+4
2018-02-25Removed test dir 4 which was doing the same thing as the other test dir ↵Jussi Pakkanen2-23/+0
number 4.
2018-02-25Renamed test dir with duplicate number.Jussi Pakkanen5-0/+0
2018-02-25Skip tests if deps are not found.Jussi Pakkanen2-2/+12
2018-02-25Add support for Visual Studio csc c# compilerThibault Saunier5-24/+73
2018-02-24Use listify(unholder=True) instead of manual unwrappingAleksey Filippov1-3/+1
2018-02-24Robustify msi creator script.Jussi Pakkanen1-2/+7
2018-02-23Warn if non-permitted keyword arguments are given to compiler methodsRan Benita4-1/+137
This can help future generations avoid mistakes like this: https://github.com/xkbcommon/libxkbcommon/commit/edb1c662394578a54b7bbed231d918925e5d8150 To avoid breaking builds, this is currently just an error. After sufficient time has passed this can hopefully become a hard error, similarly to the already-existing `permittedKwargs` warnings.
2018-02-23Remove invalid kwarg from test cases/linuxlike/9 compiler checks with ↵Ran Benita1-1/+1
dependencies cc.has_function() does not accept a `name` keyword argument.