summaryrefslogtreecommitdiff
path: root/docs/markdown
AgeCommit message (Collapse)Author
2024-05-08mtest: Set MESON_TEST_ITERATION to the current iteration of the testDaan De Meyer
When running our integration tests in systemd we depend on each test having a unique name. This is always the case unless --repeat is used, in which case multiple tests with the same name run concurrently which causes issues when allocating resources that use the test name as the identifier. Let's set MESON_TEST_ITERATION to the current iteration of the test so we can use $TEST_NAME-$TEST_ITERATION as our test identifiers which will avoid these issues.
2024-05-07Add support for GCC's null_terminated_string_arg function attributeTristan Partin
This is new as of 14.1.
2024-05-01Add required kwarg to compiler.{compiles,links,run}Tristan Partin
This is a similar commit to the one that added required to all the compiler.has* functions.
2024-05-01Updating Continuous-Integration.md (#13161)Michael Gene Brockus (Dreamer)
2024-04-29fix typos and grammars in Build-options.mdNhalrath
2024-04-28Add support for depending on ObjFWJonathan Schleifer
This uses objfw-config to get to the flags, however, there's still several todos that can only be addressed once dependencies can have per-language flags.
2024-04-27Added NumPy to usersDr. Vedran Miletić
NumPy is built with Meson since version 1.26.
2024-04-25docs: fix bad link in snippetDylan Baker
2024-04-25find_library: improve the docs and FeatureNew to fully describe the changeEli Schwartz
The docs didn't really explain what the issue was with using it. And it's not actually a "crash" either way. The FeatureNew mentions that "name" is new, but it is standard for these warnings to tell you both the type of object you're operating on and the name of the method that is an issue. This omitted the former, and was very confusing.
2024-04-24docs: Add CMake build type release note snippetJouke Witteveen
2024-04-24Merge pull request #13112 from DaanDeMeyer/interactiveJussi Pakkanen
Add meson test --interactive
2024-04-23Add meson test --interactiveDaan De Meyer
This is very similar to --gdb, except it doesn't spawn GDB, but connects stdin/stdout/stderr directly to the test itself. This allows interacting with integration tests that spawn a shell in a container or virtual machine when the test fails. In systemd we're migrating our integration tests to run using the meson test runner. We want to allow interactive debugging of failed tests directly in the virtual machine or container that is spawned to run the test. To make this possible, we need meson test to connect stdin/stdout/stderr of the test directly to the user's terminal, just like is done with the --gdb option.
2024-04-23interpreter: implement the `name()` method for `ExternalLibraryHolder`Dylan Baker
This allows `cc.find_library().name()` to work, just like `dependency().name()`. Fixes: #13053
2024-04-23Add a few more notes to the style guideJohn Ericson
- Mention 2 space indent seems to be the most idiomatic - Mention trailing commas are good - Update example to use trailing commas
2024-04-22docs: fix a typo of pathWu, Zhenyu
Refer https://github.com/mesonbuild/meson/blob/master/docs/markdown/Machine-files.md?plain=1#L285
2024-04-15Add bztar support to meson distTristan Partin
Some projects, like Postgres, distribute code in this format.
2024-04-14Clarify mutable objects usageXavier Claessens
Only Environment and ConfigurationData are mutable. However, only ConfigurationData becomes immutable after first use which is inconsistent. This deprecates modification after first use of Environment object and clarify documentation.
2024-04-12docs: Howto exclude file from unity buildPhilip Chimento
Adds a howto section describing how to put files in a separate build target and override the unity build setting, and why you might want to do this. Closes: #13031
2024-04-08meson format commandCharles Brunet
2024-04-08Update Users.mdMichael Gene Brockus (Dreamer)
2024-04-05depends keyword argument: accept CustomTargetIndexGerion Entrup
That holds for all of these meson function: run_target, generator and custom_target and additionally to the Windows and Gnome module.
2024-03-29Update Pip install documentation.Jussi Pakkanen
2024-03-18mconf: Reload the options files if they have changedDylan Baker
This fixes issues where a new option is added, an option is removed, the constraints of an option are changed, an option file is added where one didn't previously exist, an option file is deleted, or it is renamed between meson_options.txt and meson.options There is one case that is known to not work, but it's probably a less common case, which is setting options for an unconfigured subproject. We could probably make that work in some cases, but I don't think it makes sense to download a wrap during meson configure.
2024-03-17tests: rename skip_on_jobname to expect_skip_on_jobname and skip_on_os to ↵Christoph Reiter
expect_skip_on_os The test.json format currently has three keys related to skipping tests: * `skip_on_jobname` * `skip_on_os` * `skip_on_env` While `skip_on_env` marks the test itself as skipped, i.e. they don't get run when the conditions are met, the other two skip options are just marking the test as "expected to be skipped" if the conditions apply, i.e. they want to see `MESON_SKIP_TEST` in the output and things will fail if that doesn't happen. They don't actually skip the tests as the names imply. To make this clearer rename the keys: * `skip_on_jobname` -> `expect_skip_on_jobname` * `skip_on_os` -> `expect_skip_on_os` `skip_on_env` stays the same, since that actually skips. The docs were also confused about this, so adjust that too.
2024-03-15compilers: Every compiler can run codeXavier Claessens
Compiling and linking code is part of the Compiler base class, there is no reason it cannot also run executables.
2024-03-15wayland: Stable protocols can have a versionXavier Claessens
Fixes: #12968
2024-03-15cargo: Add API version into dependency nameXavier Claessens
2024-03-13Generate relnotes for 1.4.0.Jussi Pakkanen
2024-03-13Basic support for TI ARM-CLANG toolchainWilliam Toohey
2024-03-12Added support for Texas Instruments C6000 compiler.Petr Machacek
2024-03-04doc/Users: Add asteria and mcfgthreadLIU Hao
2024-03-02Merge pull request #12804 from joukewitteveen/dist-rewriterJussi Pakkanen
Support `meson dist` when getting project versions from VCS
2024-02-26docs: fix typo in snippet: "hueristic" -> "heuristic"Dylan Baker
2024-02-26cargo: Call into meson subdir if it existsXavier Claessens
This allows projects to manually add extra rust args and deps. This is intended to replace build.rs logic.
2024-02-26cargo: Abort if features are missingXavier Claessens
2024-02-26cargo: Expose features as Meson boolean optionsXavier Claessens
2024-02-25docs: fix some release notes snippet typosEli Schwartz
commit 6a8330af598753d5982a37933beeac2d6b565386: hpp was clearly meant and used several times, just not in the release notes themelves. commit a75ced6d50a3d479eda6dcdc9c3482493f2161f0: C/C++ "what"? We mention the std in the commit, but not in the text of the release notes.
2024-02-25Avoid use of deprecated command form on the cross compilation doc pageRalf Gommers
2024-02-24Add support for BuildTargetTypes to various fs module functionsTristan Partin
The new support was added to fs.name, fs.parent, fs.replace_suffix, and fs.stem.
2024-02-24meson/rust: wrap `bindgen`s `wrap-static-fns` functionalityKarol Herbst
This way the `rust.bindgen` can generate a second output being a C file, which contains wrapper functions for static inline ones. This output file can then be compiled via C targets.
2024-02-24Allow using CustomTarget as test executableCharles Brunet
Fixes #6567
2024-02-23mtest: set MSAN_OPTIONS to abort by defaultSam James
Followup to 7b7d2e060b447de9c2642848847370a58711ac1c which handles ASAN and UBSAN. It turns out that MSAN needs the same treatment. I've checked other sanitizers like HWASAN and TSAN - it looks like they may both need it too, but Meson doesn't currently suppose those anyway (see https://github.com/mesonbuild/meson/pull/12648). Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
2024-02-23env.unset methodCharles Brunet
2024-02-23modules/rust: allow setting a version constraint on bindgenDylan Baker
This allows us to ensure that the bindgen we're using is suitable for our purpose.
2024-02-23modules/rust: inject a C/C++ standard for bindgenDylan Baker
Especially for C++ this is very important.
2024-02-23modules/rust: Allow explicitly setting the language to bindDylan Baker
This may be of particular use when a header is .h but should be treated as a C++ header instead of a C header.
2024-02-23rust/bindgen: Use Meson rules for C++ headersDylan Baker
Bindgen natively only considers .hpp to be C++ headers, but Meson considers some additional extensions including .hh and .hxx to be C++.
2024-02-14docs: Remove outdated HDF5 dependency pkg-config statementJouke Witteveen
A config-tool method has been supported since c02593f and it says so just a few lines below the outdated statement.
2024-02-12qt: add preserve_paths keyword to functionsCharles Brunet
This allow to generate ui and moc under subdirectories, as this is allowed with generic generators.
2024-02-12Add MESONREWRITE to `meson dist` scriptsJouke Witteveen
Fixes #688