aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2019-05-02munstable_coredata: Adapt to coredata changes.Martin Hostettler2-4/+13
2019-05-02mesonlib: Make a few type annotations stringsDylan Baker2-4/+5
Mypy know what to do with these and isn't confused, but some versions of python 3.5 (at least 3.5.2) can't handle these annotations. By making them strings the python interpreter wont try to evaluate them. Fixes #5326
2019-05-02Merge pull request #5311 from mensinda/flake8PluginsJussi Pakkanen30-111/+122
Added flake8 plugins and some code fixes
2019-05-02per-target manual specification of link_languageMichael Hirsch, Ph.D8-8/+67
2019-05-02Add vc++ cpp_std flags to the documentationNicole Mazzuca1-1/+1
2019-05-02Merge pull request #5161 from TheQwertiest/feature/custom_target_linkJussi Pakkanen11-12/+336
Can link against custom_target[i]
2019-05-02mtest: check for an empty suite listPeter Hutterer5-17/+29
For consistency, it can be useful to have an explicit empty test suite list for a test: test('test-name', binary, suite: []) This currently passes meson but fails when running meson tests: Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/mesonbuild/mesonmain.py", line 122, in run return options.run_func(options) File "/usr/lib/python3.7/site-packages/mesonbuild/mtest.py", line 1005, in run return th.doit() File "/usr/lib/python3.7/site-packages/mesonbuild/mtest.py", line 756, in doit self.run_tests(tests) File "/usr/lib/python3.7/site-packages/mesonbuild/mtest.py", line 896, in run_tests visible_name = self.get_pretty_suite(test) File "/usr/lib/python3.7/site-packages/mesonbuild/mtest.py", line 875, in get_pretty_suite rv = TestHarness.split_suite_string(test.suite[0])[0] IndexError: list index out of range Fix it by simply checking for the test suite to be a valid list we can pass on Fixes #5340 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2019-05-02Describe how to add support for new compilers. [skip ci]Jussi Pakkanen1-0/+34
2019-05-02Non-required appleframework deps should not be an error. Closes #5295.Jussi Pakkanen3-2/+15
2019-05-02Add some type annotations and fix lintsJohn Ericson8-21/+20
Some things, like `method[...](...)` or `x: ... = ...` python 3.5 doesn't support, so I made a comment instead with the intention that it can someday be made into a real annotation.
2019-05-01Don't close fds when executing programsMichael Olbrich1-1/+1
This is basically the same as #1612 just for new new Popen_safe_legacy().
2019-04-29Do not pass None to mlog.exceptionDaniel Mensinger1-1/+1
2019-04-29Cleaned up `isinstance` usageTheQwertiest2-6/+6
2019-04-29Added special handling of CustomTargetIndex in VS backendTheQwertiest1-1/+5
2019-04-29Added additional tests for linking with custom_target[i]TheQwertiest6-0/+269
2019-04-29Use parent `custom_target` for dependency handling (for consistency and ↵TheQwertiest1-1/+1
future-proofing)
2019-04-29Updated docs with information about `custom_target[i]`TheQwertiest1-2/+3
2019-04-29Added tests for custom_target[i]TheQwertiest1-0/+22
2019-04-29Added custom_target[i] support for link_with and link_wholeTheQwertiest3-9/+37
2019-04-29Fixed unnecessary .items()Daniel Mensinger6-14/+14
2019-04-29Address code reviewDaniel Mensinger2-2/+2
2019-04-29Fix unused variables warningsDaniel Mensinger10-17/+17
2019-04-29Fix flake8-bugbear warningsDaniel Mensinger9-29/+35
2019-04-29Fix builtin variable namesDaniel Mensinger14-52/+55
2019-04-29Fix blind exceptionsDaniel Mensinger9-10/+12
2019-04-28consistent invalid escape sequence behaviourJon Turney3-6/+23
* docs: document unrecognized escape sequence behaviour [skip ci] Document that unrecognized escape sequence behaviour is like python, not C. * Don't try to decode invalid hex escape sequences Don't try to decode escape sequences which should contain a sequence of hex digits, but don't, throwing a python exception. These will treated literally instead. * Extend test case to cover invalid escape sequences
2019-04-28Merge pull request #5309 from jon-turney/ninja-backend-refactoringJussi Pakkanen1-383/+380
Ninja backend refactoring
2019-04-28RPM Macros: Use `meson test` for %meson_testStephen Gallagher1-1/+11
Previously, this called out to the %ninja_test macro to run the tests, but that limits us to only the arguments that ninja can understand. In particular, it is not possible to add a test timeout multiplier (such as is sometimes needed when building for slow architectures such as armv7hl). With this patch, it will be possible to specify `%meson_test -t 5` in the RPM spec file without needing to patch the sources to extend the timeouts, making life easier for packagers. Related: https://github.com/mesonbuild/meson/issues/2037 Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
2019-04-28Merge pull request #5323 from scivision/pgiflangJussi Pakkanen6-26/+82
Windows compiler fixes: PGI, Intel
2019-04-28Merge pull request #5265 from dcbaker/more-annotationsJussi Pakkanen3-126/+150
Fully annotate the envconfig and mlog modules
2019-04-28cmake: Use CMAKE_ROOT instead of _INCLUDE_FILE (closes #5218)Daniel Mensinger1-10/+2
2019-04-27enable Windows Intel compilerMichael Hirsch, Ph.D1-5/+12
2019-04-27detect Intel ICL on windowsMichael Hirsch, Ph.D4-6/+33
ICL CPP working
2019-04-27better default order for fotran compiler searchMichael Hirsch, Ph.D5-13/+35
correct PGI windows detection doc cleanup PGI detect
2019-04-27cleanup C/CXX compiler names, adding Intel like for FortranMichael Hirsch, Ph.D1-4/+5
2019-04-27cleanup unused imports PEP8Michael Hirsch, Ph.D1-4/+2
2019-04-27order fortran compiler search order more sanely, remove unsupported compiler ↵Michael Hirsch, Ph.D1-3/+4
names
2019-04-27ninja: Suppress unused rules in outputJon Turney1-1/+14
Don't bother outputting any rules which aren't referenced by any build statement.
2019-04-27ninja: Expand comment on shell-unquoted ninja variablesJon Turney1-1/+4
2019-04-27ninja: Push concatenation of command down into NinjaRuleJon Turney1-79/+47
Pass the command line to NinjaRule() as a list of strings, not already concatenated as a string.
2019-04-27ninja: Remove unneeded outfile args (build statements)Jon Turney1-88/+88
After the previous commit, outfile is now passed down to lots of things which don't use it, as they only create built statements, rather than writing them out. Remove these unnecessary args.
2019-04-27ninja: Store build statementsJon Turney1-47/+59
Store the build statements and then write them all out, rather than writing them out as we go. Construct a NinjaBuildElement for the 'PHONY' target, rather than writing it literally to the build.ninja file.
2019-04-27ninja: Remove unneeded outfile args (rules)Jon Turney1-33/+32
After the previous commit, outfile is now passed down to lots of things which don't use it, as they only create rules, rather than writing them out. Remove these unnecessary args.
2019-04-27ninja: Store rulesJon Turney1-180/+181
Store the rules and then write them all out, rather than writing them out as we go. Store the rule broken down into parts which do and don't go into rspfile, so we can construct either a rsp or non-rsp version of the rule.
2019-04-25mesonlib: Reimplement version comparison for speedDylan Baker1-14/+25
2019-04-25mesonlib: Remove useless repetition of the same checkDylan Baker1-10/+1
due to refactoring this is now useless.
2019-04-25mesonlib: specialize the implementation of == and !=Dylan Baker1-1/+8
Instead of using the ___cmp__ method just straight up compare the two values, since we've already converted numbers to ints and split non-numeric seperators this is sufficient, and 4x faster
2019-04-25mesonlib: use ints instead of strings for numbersDylan Baker1-6/+7
makes version comparisons even faster
2019-04-25mesonlib: use zip() in VersionDylan Baker1-6/+6
Instead of range. This makes version comparison 25-50% faster depending on the operator and how different the values are.
2019-04-25run_unittets: extend version tests to cover other casesDylan Baker1-12/+10
Before this we only covered >, <, and ==, but we an apply some basic logic to know that a > b == !(a <= b), or that if a > b then a != b. This uncovered some bugs I wrote while working on this code.