diff --git a/docs/extensions/refman_links.py b/docs/extensions/refman_links.py index 3aec36847..5c22a0a0b 100644 --- a/docs/extensions/refman_links.py +++ b/docs/extensions/refman_links.py @@ -97,7 +97,7 @@ class RefmanLinksExtension(Extension): raw = Path(self._data_file).read_text(encoding='utf-8') self._data = loads(raw) - # Register formater + # Register formatter for ext in self.project.extensions.values(): ext = T.cast(Extension, ext) ext.formatter.formatting_page_signal.connect(self._formatting_page_cb) diff --git a/docs/markdown/Creating-OSX-packages.md b/docs/markdown/Creating-OSX-packages.md index 5a30b97d5..7e0d05bf4 100644 --- a/docs/markdown/Creating-OSX-packages.md +++ b/docs/markdown/Creating-OSX-packages.md @@ -132,7 +132,7 @@ ready for distribution. #### Qt Qt offers a [deployment tool](https://doc.qt.io/qt-5/macos-deployment.html#macdeploy), -called `macdeployqt`, that automatizes bundling Qt's libraries in your application folder and +called `macdeployqt`, that automates bundling Qt's libraries in your application folder and optionally create the final `.dmg` installer ```console @@ -140,7 +140,7 @@ optionally create the final `.dmg` installer macdeployqt myapp.app -executable=myapp.app/Contents/MacOS/myapp ``` -This copies the needed Qt libaries to the correct subfolders within `myapp.app`. +This copies the needed Qt libraries to the correct subfolders within `myapp.app`. The `-executable=myapp.app/Contents/MacOS/myapp` argument is to automatically alter the search path of the executable `myapp.app/Contents/MacOS/myapp` for the Qt libraries. One can also pass the `-dmg` diff --git a/docs/markdown/Dependencies.md b/docs/markdown/Dependencies.md index 0938e0692..6eab6ab16 100644 --- a/docs/markdown/Dependencies.md +++ b/docs/markdown/Dependencies.md @@ -570,7 +570,7 @@ versions would statically link, due to a quirk in `llvm-config`. ### Modules, a.k.a. Components -Meson wraps LLVM's concept of components in it's own modules concept. +Meson wraps LLVM's concept of components in its own modules concept. When you need specific components you add them as modules as Meson will do the right thing: @@ -756,7 +756,7 @@ See [threads](Threads.md). ## Valgrind Meson will find valgrind using `pkg-config`, but only uses the -compilation flags and avoids trying to link with it's non-PIC static +compilation flags and avoids trying to link with its non-PIC static libs. ## Vulkan diff --git a/docs/markdown/Generating-sources.md b/docs/markdown/Generating-sources.md index 3cdfbc459..b954a415f 100644 --- a/docs/markdown/Generating-sources.md +++ b/docs/markdown/Generating-sources.md @@ -75,7 +75,7 @@ executable('myexe', ['main.c', foo_h], link_with : libfoo) ``` Each target that depends on a generated header should add that header -to it's sources, as seen above with `libfoo` and `myexe`. This is +to its sources, as seen above with `libfoo` and `myexe`. This is because there is no way for Meson or the backend to know that `myexe` depends on `foo.h` just because `libfoo` does, it could be a private header. diff --git a/docs/markdown/GuiTutorial.md b/docs/markdown/GuiTutorial.md index 6990eef86..85930d7dc 100644 --- a/docs/markdown/GuiTutorial.md +++ b/docs/markdown/GuiTutorial.md @@ -181,7 +181,7 @@ the system downloads and configures SDL2: ![Running the sample application](images/sdltutorial_05.png) -A bit later the compilation exits succesfully. +A bit later the compilation exits successfully. ![Running the sample application](images/sdltutorial_06.png) diff --git a/docs/markdown/Release-notes-for-0.57.0.md b/docs/markdown/Release-notes-for-0.57.0.md index 4ac003c4d..f16cf2404 100644 --- a/docs/markdown/Release-notes-for-0.57.0.md +++ b/docs/markdown/Release-notes-for-0.57.0.md @@ -337,7 +337,7 @@ Likewise, `add_test_setup(..., timeout_multiplier: 0)`, or Both the gnu linker and lld support using threads for speeding up LTO, meson now provides a knob for this: `-Db_lto_threads`. Currently this is only supported for clang and gcc. Any positive integer is supported, `0` means -`auto`. If the compiler or linker implements it's on `auto` we use that, +`auto`. If the compiler or linker implements its own `auto` we use that, otherwise the number of threads on the machine is used. ## `summary()` now uses left alignment for both keys and values diff --git a/docs/markdown/Release-notes-for-0.62.0.md b/docs/markdown/Release-notes-for-0.62.0.md index f5382df8e..cc32ac688 100644 --- a/docs/markdown/Release-notes-for-0.62.0.md +++ b/docs/markdown/Release-notes-for-0.62.0.md @@ -176,7 +176,7 @@ Meson has a new command `env2mfile` that can be used to convert "environment variable based" cross and native compilation environments to Meson machine files. This is especially convenient for e.g. distro packagers so they can easily generate unambiguous configuration files -for packge building. +for package building. As an example here's how you would generate a cross file that takes its settings from the `CC`, `CXX`, `CFLAGS` etc environment variables. diff --git a/docs/markdown/Release-notes-for-0.63.0.md b/docs/markdown/Release-notes-for-0.63.0.md index f64c2a3a2..9f8da3e1f 100644 --- a/docs/markdown/Release-notes-for-0.63.0.md +++ b/docs/markdown/Release-notes-for-0.63.0.md @@ -247,7 +247,7 @@ set explicitly (in which case that will take precedence). ## Added support for multiline fstrings Added support for multiline f-strings which use the same syntax as f-strings -for string substition. +for string substitution. ```meson x = 'hello' diff --git a/docs/markdown/Unit-tests.md b/docs/markdown/Unit-tests.md index 421270e51..664f99e3e 100644 --- a/docs/markdown/Unit-tests.md +++ b/docs/markdown/Unit-tests.md @@ -279,7 +279,7 @@ When tests use the `tap` protocol each test will be recorded as a testsuite container, with each case named by the number of the result. When tests use the `gtest` protocol Meson will inject arguments to the -test to generate it's own JUnit XML, which Meson will include as part +test to generate its own JUnit XML, which Meson will include as part of this XML file. *New in 0.55.0* diff --git a/docs/markdown/Yaml-RefMan.md b/docs/markdown/Yaml-RefMan.md index 0e59bf51c..1bb800f8d 100644 --- a/docs/markdown/Yaml-RefMan.md +++ b/docs/markdown/Yaml-RefMan.md @@ -115,7 +115,7 @@ warnings: - Warnings are also optional. -# To avoid duplicating documentation / code, argument inheritence is supported with +# To avoid duplicating documentation / code, argument inheritance is supported with # the following optional keys: posargs_inherit: _build_target_base # Use the posargs definition of `_build_target_base` here diff --git a/docs/markdown/_include_qt_base.md b/docs/markdown/_include_qt_base.md index e624c1737..0ecd63a0b 100644 --- a/docs/markdown/_include_qt_base.md +++ b/docs/markdown/_include_qt_base.md @@ -7,7 +7,7 @@ Compiles Qt's resources collection files (.qrc) into c++ files for compilation. It takes no positional arguments, and the following keyword arguments: - `name` (string | empty): if provided a single .cpp file will be generated, and the output of all qrc files will be combined in this file, otherwise - each qrc file be written to it's own cpp file. + each qrc file be written to its own cpp file. - `sources` (File | string | custom_target | custom_target index | generator_output)[]: A list of sources to be transpiled. Required, must have at least one source *New in 0.60.0*: support for custom_target, custom_target_index, and generator_output. diff --git a/docs/markdown/snippets/conf_pager.md b/docs/markdown/snippets/conf_pager.md index 8924adc47..3d936ad05 100644 --- a/docs/markdown/snippets/conf_pager.md +++ b/docs/markdown/snippets/conf_pager.md @@ -2,5 +2,5 @@ The output of `meson configure`, printing all options, is now more readable by automatically using a pager (`less` by default) and colors. The pager used can -be controled by setting `PAGER` environment variable, or `--no-pager` command +be controlled by setting `PAGER` environment variable, or `--no-pager` command line option. diff --git a/docs/refman/generatormd.py b/docs/refman/generatormd.py index 8fd0ef965..97230340e 100644 --- a/docs/refman/generatormd.py +++ b/docs/refman/generatormd.py @@ -119,7 +119,7 @@ class GeneratorMD(GeneratorBase): raise RuntimeError(f'Invalid argument {obj}') def _write_file(self, data: str, file_id: str) -> None:# - ''' Write the data to disk ans store the id for the generated data ''' + ''' Write the data to disk and store the id for the generated data ''' self.generated_files[file_id] = self._gen_filename(file_id) out_file = self.out_dir / self.generated_files[file_id] diff --git a/docs/refman/jsonschema.py b/docs/refman/jsonschema.py index 1b948569c..00c0b5e11 100644 --- a/docs/refman/jsonschema.py +++ b/docs/refman/jsonschema.py @@ -30,10 +30,10 @@ class Type(T.TypedDict): class Argument(BaseObject): ''' - Object that represents any type of a single function or method argumet. + Object that represents any type of a single function or method argument. ''' type: T.List[Type] # A non-empty list of types that are supported. - type_str: str # Formated version of `type`. Is guranteed to not contain any whitespaces. + type_str: str # Formatted version of `type`. Is guaranteed to not contain any whitespaces. required: bool default: T.Optional[str] min_varargs: T.Optional[int] # Only relevant for varargs, must be `null` for all other types of arguments diff --git a/docs/refman/loaderbase.py b/docs/refman/loaderbase.py index 1db92e26a..3011126bc 100644 --- a/docs/refman/loaderbase.py +++ b/docs/refman/loaderbase.py @@ -151,7 +151,7 @@ class _Resolver: self.type_map[obj.name] = obj for m in obj.methods: mid = f'{obj.name}.{m.name}' - assert mid not in self.type_map, f'Duplicate metod {mid}' + assert mid not in self.type_map, f'Duplicate method {mid}' self.func_map[mid] = m # Build func map for functions @@ -169,7 +169,7 @@ class _Resolver: mlog.log(' -- validating', mlog.bold(obj.name)) self._validate_named_object(obj) self._validate_feature_check(obj) - # Resolve and validate inheritence + # Resolve and validate inheritance if obj.extends: assert obj.extends in self.type_map, f'Unknown extends object {obj.extends} in {obj.name}' obj.extends_obj = self.type_map[obj.extends] diff --git a/docs/refman/templates/args.mustache b/docs/refman/templates/args.mustache index 802bcd610..f3ee84bc9 100644 --- a/docs/refman/templates/args.mustache +++ b/docs/refman/templates/args.mustache @@ -16,7 +16,7 @@
{{name}}