aboutsummaryrefslogtreecommitdiff
path: root/docs
AgeCommit message (Collapse)AuthorFilesLines
2020-05-23ast: Add docs for --astDaniel Mensinger2-18/+73
2020-05-20compilers/d: Add b_ndebug supportDylan Baker1-0/+4
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 Baker2-0/+16
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 Pakkanen1-0/+7
Let .pc files and LDFLAGS provide rpaths.
2020-05-16docs: add snippet documenting rpath behavior changeDan Kegel1-0/+7
2020-05-14Docs: Make the suggested use for the not-found dependency better [skip ci]Dylan Baker1-4/+6
2020-05-14interpreter: Rename has_exe_wrapper -> can_run_host_binariesDylan Baker3-9/+15
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 Baker1-0/+23
2020-05-13Merge pull request #6620 from jon-turney/test-output-checkDylan Baker1-3/+24
Add a mechanism for validating meson output in tests
2020-05-11ConfigToolDependency: Don't fallback to system tool when cross compilingXavier Claessens2-0/+10
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 Pakkanen1-0/+1
2020-05-08rename unstable-kconfig to unstable-keyvalPaolo Bonzini4-14/+23
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 He1-1/+1
a give target -> a given target Proposed by #7081 .
2020-05-06Merge pull request #7064 from dcbaker/gtest-protocolJussi Pakkanen3-46/+123
Add support for Gtest as a test protocol
2020-05-04docs/unit-tests: Add information about output filesDylan Baker1-0/+25
2020-05-04docs: Reformat unit-tests to be ~80 characters per lineDylan Baker1-41/+84
2020-05-04Add native support for gtest testsDylan Baker2-5/+14
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 Pakkanen2-0/+31
Allow meson.add_*_script to take additional types
2020-05-02Merge pull request #6838 from dcbaker/link-language-in-librariesJussi Pakkanen2-2/+14
Link language in libraries
2020-05-01docs/Users: add Vala Language ServerPrinceton Ferro1-0/+1
See https://github.com/benwaffle/vala-language-server
2020-05-01Document formal Meson grammar [skip ci]Flow-It1-0/+70
* 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 Turney1-3/+3
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 Turney1-0/+21
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 Baker2-2/+14
2020-04-30docs: Update documentation for add_*_scriptDylan Baker2-0/+31
2020-04-29Merge pull request #6911 from mensinda/ciBionicJussi Pakkanen1-5/+15
ci: Add Ubuntu Bionic image
2020-04-28Meson Cmake Wrapper unmaintained [skip ci]Brendan Simon1-1/+1
The Meson CMake Wrapper project is currently unmaintained.
2020-04-28tests: Add support for specifying tool requirementsDaniel Mensinger1-0/+10
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 Mensinger1-5/+5
2020-04-28find_program: Fixes when the program has been overridden by executableXavier Claessens2-1/+29
- 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.
2020-04-25wrap: Updated docsDaniel Mensinger2-6/+18
2020-04-23mtest: Generate a JUnit xml result fileDylan Baker1-0/+4
JUnit is pretty ubiquitous, lots of services and results viewers understand it, in particular gitlab and jenkins know how to consume JUnit xml. This means projects using CI services can have their test results consumed automatically. Fixes: #6972
2020-04-21Merge pull request #6816 from dcbaker/framework-matrixJussi Pakkanen1-2/+10
project test junit schema + a few more uses
2020-04-21docs/cross-compilation: Note appropriate values for cpu_family [skip ci]Dylan Baker1-8/+12
Also note that meson doesn't use `el` on the end of the cpu_family to mark endianness, that the endian field needs to be set appropriately.
2020-04-20add introspect --buildsystem-files info [skip ci]Michael1-0/+15
2020-04-17Add a json schema for the test.json used in testsDylan Baker1-2/+10
This does a couple of nice things, one is that editors like vscode can be configured to use this schema to provide auto completion and error highlighting if invalid values are added or required values are missing. It also allows us test that the format of the test matrix work in a unit test, which I've added. It does require that the python jsonschema package is installed.
2020-04-17docs/users: Update freedesktop users to point at gitlab [skip ci]Dylan Baker1-5/+5
Rather than the legacy cgit
2020-04-17docs: The X Test Suite uses meson [skip ci]Dylan Baker1-0/+1
2020-04-14Corrected prefix path [skip ci]Jonas Møller1-1/+1
Using meson version `0.53.2` prefix defaulted to `/usr/local`, not `/usr/local/` (not the trailing slash)
2020-04-13wrap: Add fallback urlsXavier Claessens2-0/+6
It can happen that a server is temporaly down, tarballs often have many mirrors available so we should be able to add at least one fallback mirror in wrap files.
2020-04-13Remove alignment syntax not supported by hotdoc. Closes: #6954. [skip ci]Jussi Pakkanen1-5/+5
2020-04-12Merge pull request #6958 from jon-turney/fix-name-prefix-explicit-defaultJussi Pakkanen1-4/+4
Fix library(name_prefix: [])
2020-04-11docs: fix the docs for install_subdir's strip_directory [skip ci]Peter Hutterer1-1/+1
When set to **true** only the last component is used. And throw in two minor grammatical fixes while we're there.
2020-04-11Refine documentation of default name_prefixJon Turney1-4/+4
Refine documentation of the default name_prefix, so people don't get the impression they can write logic which uses 'lib' as the default, when they should be defaulting to '[]', to let us take care of the complexities.
2020-04-11References-tables.md: repair broken tableVanadiae1-1/+1
At https://mesonbuild.com/Reference-tables.html#compiler-and-linker-selection-variables, the table is broken and it seems that the only difference with other well-working tables on this page is the semi-column ":" that are present under Language.
2020-04-08docs: Update Using-with-Visual StudioNirbheek Chauhan1-10/+11
Very out of date instructions. We install `meson.exe` now and you don't need to have `py` in PATH or use `/path/to/meson.py`.
2020-04-07docs: Mention library command as well [skip ci]Vedran Miletić1-4/+4
2020-04-04docs: add LLVM tool section to dependencies [skip ci]Gerion Entrup1-0/+11
2020-04-01docs: Described library command in Build targets section [skip ci]Vedran Miletić1-12/+24
2020-03-31docs: Fix typo in pkgconfig descriptionMichael Kuhn1-1/+1