summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* fix typoed vs backend tokenEli Schwartz2021-11-011-1/+1
|
* coverage generator: obey the documentation and only generate supported outputsEli Schwartz2021-11-013-36/+44
| | | | | | | | | | | | | We say: > If version 4.2 or higher of the first is found, targets coverage-text, > coverage-xml, coverage-sonarqube and coverage-html are generated. But this is totally untrue. Make it true, by actually checking (and not generating broken coverage commands when older versions of gcovr are found). Fixes #9505
* modules/gnome: don't use dict.keys() to test membershipDylan Baker2021-11-011-2/+2
| | | | | This is slower than looking in the dictionary, as the dict lookup is O(log n), while keys() is O(n).
* modules/gnome: use textwrap.dedentDylan Baker2021-11-011-35/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Python is a whitespace significant language, changing indent level implies that scope is changing. So when a string like ```python def foo(): a = ''' somthing ''' return a ``` It's visually misleading. Couple that with folding editors like vim getting utterly confused by this, and it turns into a real pain. Using textwrap.dedent allows us to get rid of that: ```python def foo(): a = texwrap.dedent( ''' something ''') return a ``` But we still get the same result
* modules/gnome: use envconfig for VAPIGENDylan Baker2021-11-012-4/+2
| | | | | we have a mechanism for doing "this could be an environment variable" let's use that.
* mesonbuild/module/gnome: remove unused variableDylan Baker2021-11-011-1/+1
|
* modules/gnome: Use typed_pos_args for generate_vapiDylan Baker2021-11-011-7/+2
|
* modules/gnome: use typed_pos_args for genmarshalDylan Baker2021-11-011-4/+2
|
* modules/gnome: use typed_pos_Args for mkenums_simpleDylan Baker2021-11-011-3/+4
|
* modules/gnome: use typed_pos_args for mkenumsDylan Baker2021-11-011-3/+2
|
* modules/gnome: use typed_pos_args for gdbus_codegenDylan Baker2021-11-011-4/+3
|
* modules/gnome: use typed_pos_args for gtkdoc_html_dirDylan Baker2021-11-011-9/+5
|
* modules/gnome: use typed_pos_args for gtkdocDylan Baker2021-11-011-5/+2
|
* modules/gnome: use typed_pos_args for yelpDylan Baker2021-11-011-6/+3
|
* modules/gnome: use noPosargs for compile_schemasDylan Baker2021-11-011-3/+2
|
* modules/gnome: use typed_pos_args for generate_girDylan Baker2021-11-011-4/+4
|
* modules/gnome: use typed_pos_args for compile_resourcesDylan Baker2021-11-011-29/+24
|
* modules/gnome: add some type annotationsDylan Baker2021-11-011-113/+161
| | | | | This is not complete, but it's a start. The rest will have to get finished as we go
* modules/gnome: clean and sort dependenciesDylan Baker2021-11-011-11/+11
|
* build: Add type annotations to BuildTarget.get_all_link_depsDylan Baker2021-11-011-1/+1
|
* build: Add annotations to CustomTarget.extra_dependsDylan Baker2021-11-011-2/+2
|
* build: Add a get_command method to ExecutableDylan Baker2021-11-011-0/+7
| | | | | Since Executable can be used in places where ExternalProgram is, simply having a wrapper that gives them the same API is pretty useful.
* modules: use IncludeDirs.to_string_list instead of open codingDylan Baker2021-11-011-12/+3
| | | | This both allows more cod re-use, and simplifies the code.
* build: IncludeDirs extend `to_string_list` method to handle builddirDylan Baker2021-11-011-2/+10
|
* build: Add type annotations for BuildTarget.include_dirsDylan Baker2021-11-011-4/+4
| | | | | The gnome module uses these, so to be able to fully type that we need this.
* interpreter/modules: ModuleReturnValue can hold ExecutableSerialisationDylan Baker2021-11-012-3/+4
| | | | | The code for this exists and works, but the type annotations don't allow it. This fixes the annotations
* modules: remove harmful forwarding init methodsDylan Baker2021-11-011-10/+5
| | | | | | There is no reason for these inititializers to exist, all they do is defer to the parent initializer. Worse, since they are not type annotated thy prevent the parent type annotations from being used
* interpreter: add type annotations for program_from_overridesDylan Baker2021-11-011-1/+2
|
* Add 64-bit paths to check for unsupported Watcom cl.exe clones.William D. Jones2021-10-311-1/+4
|
* migrate python 3.5 compatible superclass variable annotations to 3.6Eli Schwartz2021-11-012-8/+4
| | | | | As we now require python 3.6, we can declare their types without initializing them.
* Revert "known Python 3.5 on windows workaround for subprocess(cwd=str(Path))"Eli Schwartz2021-11-011-2/+1
| | | | | | This reverts commit c89aa2094170b2ffd7151187c1c092db2a178f44. We no longer support 3.5 so this can go.
* Fix cygwin test failure due to shortpath usageNirbheek Chauhan2021-10-313-8/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Two tests are failing on Cygwin because the argument is passed as a long-path and the Path is ending up as a short-path: AllPlatformTests.test_run_target_files_path Traceback (most recent call last): File "/cygdrive/d/a/meson/meson/test cases/common/51 run target/check-env.py", line 22, in <module> assert build_root == env_build_root AssertionError SubprojectsCommandTests.test_purge > self.assertEqual(deleting(out), sorted([ str(self.subprojects_dir / 'redirect.wrap'), str(self.subprojects_dir / 'sub_file'), str(self.subprojects_dir / 'sub_git'), ])) E AssertionError: Lists differ: ['/cygdrive/c/Users/runneradmin/AppData/Local/Temp/tmpeaa2a49[205 chars]git'] != ['/cygdrive/c/Users/RUNNER~1/AppData/Local/Temp/tmpeaa2a49z/s[196 chars]git'] [...] ['/cygdrive/c/Users/runneradmin/AppData/Local/Temp/tmpeaa2a49z/src/subprojects/redirect.wrap', ^^^^^^^^^^^ ['/cygdrive/c/Users/RUNNER~1/AppData/Local/Temp/tmpeaa2a49z/src/subprojects/redirect.wrap', ^^^^^^^^ The fix is to not use the tempdir for all tests, but only for tests that check the mode.
* delete PLATFORM env only if setavitex2021-10-301-2/+3
| | | | fixes #8721
* Added warning if run_command is called without the check kwargVolker Weißmann2021-10-3030-59/+83
|
* Typo fixes (CustomTaget -> CustomTarget)rusty-snake2021-10-301-2/+2
|
* Typo fixes (CustomTaget -> CustomTarget)rusty-snake2021-10-301-1/+1
|
* Typo fixes (CustomTaget -> CustomTarget)rusty-snake2021-10-301-1/+1
|
* Fix version requirement on Ninja feature.Jussi Pakkanen2021-10-291-1/+1
|
* Make environment objects hash deterministically.Jussi Pakkanen2021-10-292-3/+16
|
* Merge pull request #9375 from dcbaker/submit/windows-module-typingJussi Pakkanen2021-10-296-58/+125
|\ | | | | Typing for the Windows module
| * modules/windows: allow CustomTargets with more than one output for ↵Dylan Baker2021-10-093-20/+57
| | | | | | | | compile_resources
| * build: Add missing type annotationDylan Baker2021-10-091-1/+1
| |
| * modules/windows: allow CustomTargetIndex for compile_resourcesDylan Baker2021-10-091-3/+5
| | | | | | | | In the positional arguments
| * modules/windows: use typed_kwargsDylan Baker2021-10-093-22/+47
| |
| * modules/windows: use typed_pos_argsDylan Baker2021-10-081-11/+7
| |
| * modules/windows: add some easy type annotationsDylan Baker2021-10-081-11/+18
| | | | | | | | This isn't complete, it's just the easy stuff
* | Remove duplicated CEXE_MAPPING tableXavier Claessens2021-10-292-8/+4
| |
* | Add note in release notes that thin archives has been revertedXavier Claessens2021-10-291-0/+4
| |
* | Fix "meson compile" not activating vsenvXavier Claessens2021-10-291-2/+3
| | | | | | | | | | setup_vsenv() was not propagating the return value, so build.need_vsenv was always False.
* | configure_file: upgrade deprecation message to FeatureDeprecatedEli Schwartz2021-10-281-2/+2
| | | | | | | | | | | | | | | | install: false was only available since 0.50, so we should not warn people who support older versions to use something they cannot. Fortunately, we can do FeatureDeprecated for this -- and then it even gets summarized. Unfortunately, it's not well used, and certainly isn't here.