summaryrefslogtreecommitdiff
path: root/docs/markdown
AgeCommit message (Collapse)Author
2020-06-16gnome: Add fatal_warnings kwarg to generate_gir()Xavier Claessens
Fixes: #7130
2020-06-15Documentation, FAQ.md, generated_headers [skip ci]laolux
2020-06-15Added docs for all meson commands + corresponding unit test (#7217)TheQwertiest
2020-06-13Tweak gnome.gtkdoc() documentation for clarity and grammarJon Turney
2020-06-12[skip ci] docs: Bring up to date on options per machineJohn Ericson
I tried to fix the docs when the stuff was added, but it turns out I missed things, as noted in https://github.com/mesonbuild/meson/issues/7284#issuecomment-641641177
2020-06-12docs: remove duplicated entry for gnome.generate_gir() documentation [skip ci]坂本 貴史
The documentation of gnome.generate_gir() has duplicated entry for dependencies parameter. As a fix, this patch removes the entry added recently. Fixes: 893d101fff01 ("gnome: Add header kwarg to generate_gir()") Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2020-06-11Correct argument typo in partial_dependnecy (#7300) [skip ci]Phillip Johnston
Should be "sources" not "source" ``` ../meson.build:162: WARNING: Passed invalid keyword argument "source". WARNING: This will become a hard error in the future. Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/mesonbuild/mesonmain.py", line 131, in run return options.run_func(options) File "/usr/local/lib/python3.7/site-packages/mesonbuild/msetup.py", line 245, in run app.generate() File "/usr/local/lib/python3.7/site-packages/mesonbuild/msetup.py", line 159, in generate self._generate(env) File "/usr/local/lib/python3.7/site-packages/mesonbuild/msetup.py", line 192, in _generate intr.run() File "/usr/local/lib/python3.7/site-packages/mesonbuild/interpreter.py", line 4359, in run super().run() File "/usr/local/lib/python3.7/site-packages/mesonbuild/interpreterbase.py", line 465, in run self.evaluate_codeblock(self.ast, start=1) File "/usr/local/lib/python3.7/site-packages/mesonbuild/interpreterbase.py", line 490, in evaluate_codeblock raise e File "/usr/local/lib/python3.7/site-packages/mesonbuild/interpreterbase.py", line 483, in evaluate_codeblock self.evaluate_statement(cur) File "/usr/local/lib/python3.7/site-packages/mesonbuild/interpreterbase.py", line 498, in evaluate_statement self.assignment(cur) File "/usr/local/lib/python3.7/site-packages/mesonbuild/interpreterbase.py", line 1151, in assignment value = self.evaluate_statement(node.value) File "/usr/local/lib/python3.7/site-packages/mesonbuild/interpreterbase.py", line 500, in evaluate_statement return self.method_call(cur) File "/usr/local/lib/python3.7/site-packages/mesonbuild/interpreterbase.py", line 895, in method_call return obj.method_call(method_name, args, self.kwargs_string_keys(kwargs)) File "/usr/local/lib/python3.7/site-packages/mesonbuild/interpreterbase.py", line 39, in method_call return method(args, kwargs) File "/usr/local/lib/python3.7/site-packages/mesonbuild/interpreterbase.py", line 285, in wrapped return f(*wrapped_args, **wrapped_kwargs) File "/usr/local/lib/python3.7/site-packages/mesonbuild/interpreterbase.py", line 151, in wrapped return f(*wrapped_args, **wrapped_kwargs) File "/usr/local/lib/python3.7/site-packages/mesonbuild/interpreterbase.py", line 213, in wrapped return f(*wrapped_args, **wrapped_kwargs) File "/usr/local/lib/python3.7/site-packages/mesonbuild/interpreter.py", line 484, in partial_dependency_method pdep = self.held_object.get_partial_dependency(**kwargs) TypeError: get_partial_dependency() got an unexpected keyword argument 'source' FAILED: build.ninja ```
2020-06-08docs/users: Add Le Machine Learning library [skip ci]Kyrylo Polezhaiev
2020-06-08Merge pull request #7245 from dankegel/response-files-when-needed-tidiedJussi Pakkanen
Make ninja backend only use response files when needed, on linux too
2020-06-05docs: add snippet about response file changeDan Kegel
2020-06-04Add libeconf to users.mdRichard Brown
libeconf is now using meson as its primary/default build system, so we'd like to see ourselves on the meson users list .
2020-06-04Add android to os list informally. Closes #6233. [skip ci]Jussi Pakkanen
2020-06-03[skip ci] mesonwrap docs: fix a broken linkLisa White
2020-06-02docs/unit-tests: Show a test can have multiple suites [skip ci]Ebrahim Byagowi
2020-06-02[skip ci] mesonwrap docsLisa White
- Add ambiguous naming documentation. - Update branch request documentation. - Add mesonwrap token documentation. - Update review guidelines.
2020-06-02[skip ci] mesonwrap docs: limit line length and remove trailing spacesLisa White
2020-05-27Merge pull request #6818 from mensinda/localPatchJussi Pakkanen
Wrap: add local files support via *_filename
2020-05-27docs: Fix typo in Release notes [skip ci]Soapux
2020-05-26opts: added docsDaniel Mensinger
2020-05-24fixed typop01arst0rm
2020-05-23ast: Add docs for --astDaniel Mensinger
2020-05-20compilers/d: Add b_ndebug supportDylan Baker
D lang compilers have an option -release (or similar) which turns off asserts, contracts, and other runtime type checking. This patch wires that up to the b_ndebug flag. Fixes #7082
2020-05-18pass exe_wrapper to test scripts through the environmentDylan Baker
This adds a new MESON_EXE_WRAPPER environment variable containing the string form of the exe_wrapper, if there is an exe_wrapper defined. Fixes #4427
2020-05-18Merge pull request #7103 from dankegel/bug4027-rpath-rememberJussi Pakkanen
Let .pc files and LDFLAGS provide rpaths.
2020-05-16docs: add snippet documenting rpath behavior changeDan Kegel
2020-05-14Docs: Make the suggested use for the not-found dependency better [skip ci]Dylan Baker
2020-05-14interpreter: Rename has_exe_wrapper -> can_run_host_binariesDylan Baker
The implementation of this function has changed enough that the name doesn't really reflect what it actually does. It basically returns true unless you're cross compiling, need and exe_wrapper, and don't have one. The original function remains but is marked as deprecated. This makes one small change the meson source language, which is that it defines that can_run_host_binaries will return true in build == host compilation, which was the behavior that already existed. Previously this was undefined in build == host compilation.
2020-05-14docs: Add a Howto about the null dependency [skip ci]Dylan Baker
2020-05-13Merge pull request #6620 from jon-turney/test-output-checkDylan Baker
Add a mechanism for validating meson output in tests
2020-05-11ConfigToolDependency: Don't fallback to system tool when cross compilingXavier Claessens
The system tool is always the wrong thing to use and cause hard to debug issues when trying to link system libraries with cross built binaries. The ExternalDependency base class already had a method to deal with this, used by PkgConfigDependency and QtBaseDependency, so it should make things more consistent.
2020-05-11Add AVR to cpu families. Closes #7085.Jussi Pakkanen
2020-05-08rename unstable-kconfig to unstable-keyvalPaolo Bonzini
Discussions in #6524 have shown that there are various possible uses of the kconfig module and even disagreements in the exact file format between Python-based kconfiglib and the tools in Linux. Instead of trying to reconcile them, just rename the module to something less suggestive and leave any policy to meson.build files. In the future it may be possible to add some kind of parsing through keyword arguments such as bool_true, quoted_strings, etc. and possibly creation of key-value lists too. For now, configuration_data objects provide an easy way to access quoted strings. Note that Kconfig stores false as "absent" so it was already necessary to write "x.has_key('abc')" rather than the more compact "x['abc']". Therefore, having to use configuration_data does not make things much more verbose.
2020-05-07docs/Precompiled-headers: minor spell check. [skip ci]Wenjian He
a give target -> a given target Proposed by #7081 .
2020-05-06Merge pull request #7064 from dcbaker/gtest-protocolJussi Pakkanen
Add support for Gtest as a test protocol
2020-05-04docs/unit-tests: Add information about output filesDylan Baker
2020-05-04docs: Reformat unit-tests to be ~80 characters per lineDylan Baker
2020-05-04Add native support for gtest testsDylan Baker
Gtest can output junit results with a command line switch. We can parse this to get more detailed results than the returncode, and put those in our own Junit output. We basically just throw away the top level 'testsuites' object, then fixup the names of the tests, and shove that into our junit.
2020-05-03Merge pull request #7060 from dcbaker/install-script-targetsJussi Pakkanen
Allow meson.add_*_script to take additional types
2020-05-02Merge pull request #6838 from dcbaker/link-language-in-librariesJussi Pakkanen
Link language in libraries
2020-05-01docs/Users: add Vala Language ServerPrinceton Ferro
See https://github.com/benwaffle/vala-language-server
2020-05-01Document formal Meson grammar [skip ci]Flow-It
* WIP: Document formal Meson grammar * Various little fixes [skip ci] 1) Add missing logical_not_expr 2) 'in' and 'not in' are valid relational operators at least for dicts 3) dictionary keys can be expressions, but kwarg names cannot 4) typo logical_end_expression -> logical_and_expression 5) Make jump statements only allowed inside an iteration statement * Rework EBNF style [skip ci] As there is no good order for the productions, just go alphabetically. The EBNF style was changed to match the one the Python lark project uses, that is colons for productions and terminals enclosed in double quotes. * Add missing production for unary operators [skip ci] * Add production for multiline strings [skip ci] * Properly define terminal symbols [skip ci] Depending on the EBNF flavor, regex can be used to describe the terminal symbols. Lark allows this, and as it was mentioned as a possible user of this grammar, let's follow its flavor here. Most regexes used are easily human-readable, and we can always add comments to more complicated ones. * Small changes to which expressions can be used where [skip ci] Let the grammar be very general. The type system then has to check, that the used expression really evaluates to the correct type. Even if we know today that assignment expressions always evaluate to None (and can therefore only be used as a toplevel expression in an expression statement), this needn't be the case forever. So this way, the grammar stays stable even if such changes were made. * Rework function argument list production [skip ci] * Be more verbose for production names [skip ci] Rename expr -> expression, stmt -> statement, op -> operator, program -> build_definition. Also adjust some list productions. * Add paragraph about syntax stability promises [skip ci]
2020-04-30Update test.json schema to add stdoutJon Turney
Update the test.json schema, adding the 'stdout' property. Also amend the test.json schema so the presence of an unexpected property on the root object causes a validation error. v2: Also add 'tools' property to json schema. Amend the documentation not to use the word 'list' to describe a dict.
2020-04-30Add a mechanism for validating meson output in testsJon Turney
Expected stdout lines must match lines from the actual stdout, in the same order. Lines with match type 're' are regex matched. v2: Ignore comment lines in expected_stdout v3: Automatically adjust path separators for location in expected output v4: Put expected stdout in test.json, rather than a separate file
2020-04-30Docs: Update link_language docs to explain when it should be usedDylan Baker
2020-04-30docs: Update documentation for add_*_scriptDylan Baker
2020-04-29Merge pull request #6911 from mensinda/ciBionicJussi Pakkanen
ci: Add Ubuntu Bionic image
2020-04-28Meson Cmake Wrapper unmaintained [skip ci]Brendan Simon
The Meson CMake Wrapper project is currently unmaintained.
2020-04-28tests: Add support for specifying tool requirementsDaniel Mensinger
Adds the `tools` section to `tests.json` to specify requirements for the tools in the environment. All tests that fail at least one tool requirements check are skipped.
2020-04-28docs: Fix Contributing.mdDaniel Mensinger
2020-04-28find_program: Fixes when the program has been overridden by executableXavier Claessens
- ExternalProgramHolder has path() method while CustomTargetHolder and BuildTargetHolder have full_path(). - The returned ExternalProgramHolder's path() method was broken, because build.Executable object has no get_path() method, it needs the backend. - find_program('overridden_prog', version : '>=1.0') was broken because it needs to execute the exe that is not yet built. Now assume the program has the (sub)project version. - If the version check fails, interpreter uses ExternalProgramHolder.get_name() for the error message but build.Executable does not implement get_name() method.