aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown
AgeCommit message (Collapse)AuthorFilesLines
2024-09-12add epiphanyspaette1-0/+1
2024-09-11Fix typosspaette7-8/+8
2024-09-06alias_target with both_libs builds bothCharles Brunet2-0/+13
2024-09-06auto select static or shared when linking both_libraries togetherCharles Brunet2-0/+10
2024-09-06add default_both_libraries core optionCharles Brunet2-0/+15
2024-09-04docs: Update descriptions of `host_machine.system()` about WindowsLIU Hao1-2/+2
There are two environments on Windows: * When invoked in a Cygwin or MSYS2 MSYS shell, `host_machine.system()` returns `cygwin`. * When invoked in a MSYS2 MINGW32/MINGW64/UCRT64/CLANG64/etc., `host_machine.system()` returns `windows`.
2024-09-03fix a typoyehor1-1/+1
2024-08-30Feature checks: fall back to reporting insufficiently portable featuresEli Schwartz1-0/+29
When projects do not specify a minimum meson version, we used to avoid giving them the benefit of the Feature checks framework. Instead: - warn for features that were added after the most recent semver bump, since they aren't portable to the range of versions people might use these days - warn for features that were deprecated before the upcoming semver bump, i.e. all deprecated features, since they aren't portable to upcoming semver-compatible versions people might be imminently upgrading to
2024-08-30Extend MESON_TESTTHREADS usageMarek Pikuła1-0/+4
Previously, setting `MESON_TESTTHREADS` to a number lower than 1 resulted in unexpected behavior. This commit introduces test for negative value (with fallback to 1), and fallback to core count in case it is set to 0. It improves experience in job-matrix type of CI workflows, where some jobs within the matrix require single job execution, whereas others can default to taking core count as the job count. Signed-off-by: Marek Pikuła <m.pikula@partner.samsung.com>
2024-08-27Allow external programs in test()'s 'args' parameterDavid Gibson1-0/+10
Although it's not especially common, there are certainly cases where it's useful to pass the path to an external program to a test program. Fixes: https://github.com/mesonbuild/meson/issues/3552 Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2024-08-12docs: fix a few grammar and formatting issuesDmitry V. Levin3-4/+4
2024-07-28add initial support for llvm-flangH. Vetinari3-3/+13
2024-07-22docs: make tutorial compatible with GLib versions older than 2.74LegStrong1-0/+4
2024-07-18Link include_directories to implicit_include_directoriesEnrico Zini1-1/+3
2024-07-15cmake: Only propagate interface link flags in depJonathon Anderson1-0/+8
CMake has two target properties, LINK_OPTIONS and INTERFACE_LINK_OPTIONS. The former is for link flags that apply only to the target (PRIVATE). The latter is used for link flags that propagate to dependents (PUBLIC or INTERFACE). Meson currently propagates all flags, PUBLIC and PRIVATE, as part of the generated dependency() which causes problems when some of the private flags are highly disruptive, e.g. `-Wl,--version-script`. Tease apart the two kinds of link flags and, for non-static libraries, only propagate the PUBLIC/INTERFACE flags and not the PRIVATE ones.
2024-07-12docs: mention cython_args in cython reference docsNathan Goldbaum2-0/+14
2024-07-10docs: explain not to use extern crate in Rust codeAlyssa Ross1-0/+18
2024-07-10Release 1.5.0 time.1.5.0Jussi Pakkanen20-187/+214
2024-07-05Revert "Clarify mutable objects usage"Eli Schwartz1-1/+1
This reverts commit 9f02d0a3e5a5ffc82256391c244b1af38e41ef78. It turns out that this does introduce a behavioral change in existing users of ConfigurationData, which it wasn't supposed to (it was supposed to preserve behavior there, and add a new *warning* for EnvironmentVariables). This breaks projects such as pulseaudio, libvirt, and probably more. Roll back the change and try again after 1.5.0 is released. Fixes: #13372
2024-06-26Update Users.md entry for fossil-libMichael Gene Brockus (Dreamer)1-1/+1
2024-06-23find_program: add a kwarg to specify custom version argumentDudemanguy1-0/+12
When trying to get the version of a program, meson was previously hardcoded to run the binary with `--version`. This does work with the vast majority of programs, but there are a few outliers (e.g. ffmpeg) which have an unusual argument for printing out the version. Support these programs by introducing a version_argument kwarg in find_program which allows users to override `--version` with whatever the custom argument for printing the version may be for the program.
2024-06-17Add meson test --max-linesDaan De Meyer2-0/+14
Let's allow users to configure how many lines are shown at most when a test fails.
2024-06-14cargo: Load Cargo.lockXavier Claessens2-0/+10
Cargo.lock is essentially identical to subprojects/*.wrap files. When a (sub)project has a Cargo.lock file this allows automatic fallback for its cargo dependencies.
2024-06-10Add note about meson-python and installation pathEmil Melnikov2-1/+11
New people that want to use Meson for building Python extensions most probably will read Python module docs first. Direct them to meson-python and suggest to set `python.install_env=auto`.
2024-05-31Explain how to add preprocessor defines in FAQ.mdEmil Melnikov1-0/+13
See https://github.com/mesonbuild/meson/issues/6269 for the discussion. Co-authored-by: Eli Schwartz <eschwartz93@gmail.com>
2024-05-26docs: Update GIMP meson adoptionBruno1-1/+1
The master branch isn't in experimental state anymore.
2024-05-22unify listing for FSCL to point to allMichael Gene Brockus1-12/+1
2024-05-15docs: fix description of cpp_eh=noneEli Schwartz1-5/+5
We changed the behavior in #6116 but did not change the docs as well. Fixes #8233
2024-05-15Merge pull request #11421 from mon/ti-armclangJussi Pakkanen1-0/+3
Basic support for TI Arm Clang toolchain
2024-05-09implement @PLAINNAME0@ and @BASENAME0@Stas Sergeev1-0/+11
@PLAINNAME@ and @BASENAME@ cannot be used in custom_target() with multiple inputs. For those, similar macros are needed with an index. Fixes #13164
2024-05-09In Builtin-options documentation, clarify warning_level=0.sammyj851-1/+1
warning_level=0 is not 'none' but 'compiler default'.
2024-05-08fix broken linkAxel Ricard1-1/+1
2024-05-08mtest: Set MESON_TEST_ITERATION to the current iteration of the testDaan De Meyer2-0/+8
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 Partin2-48/+64
This is new as of 14.1.
2024-05-01Add required kwarg to compiler.{compiles,links,run}Tristan Partin1-0/+21
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)1-103/+141
2024-04-29fix typos and grammars in Build-options.mdNhalrath1-4/+4
2024-04-28Add support for depending on ObjFWJonathan Schleifer2-5/+61
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ć1-0/+1
NumPy is built with Meson since version 1.26.
2024-04-25docs: fix bad link in snippetDylan Baker1-1/+1
2024-04-25find_library: improve the docs and FeatureNew to fully describe the changeEli Schwartz1-1/+3
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 Witteveen1-0/+15
2024-04-24Merge pull request #13112 from DaanDeMeyer/interactiveJussi Pakkanen2-0/+16
Add meson test --interactive
2024-04-23Add meson test --interactiveDaan De Meyer2-0/+16
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 Baker1-0/+3
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 Ericson1-4/+8
- 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, Zhenyu1-1/+1
Refer https://github.com/mesonbuild/meson/blob/master/docs/markdown/Machine-files.md?plain=1#L285
2024-04-15Add bztar support to meson distTristan Partin1-0/+4
Some projects, like Postgres, distribute code in this format.
2024-04-14Clarify mutable objects usageXavier Claessens1-1/+1
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 Chimento1-0/+21
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