aboutsummaryrefslogtreecommitdiff
path: root/docs
AgeCommit message (Collapse)AuthorFilesLines
2024-03-29Update Pip install documentation.quickfixJussi Pakkanen1-9/+10
2024-03-18mconf: Reload the options files if they have changedDylan Baker1-0/+12
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 Reiter1-10/+12
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 Claessens1-0/+4
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 Claessens1-0/+13
Fixes: #12968
2024-03-15cargo: Add API version into dependency nameXavier Claessens2-14/+46
2024-03-13Generate relnotes for 1.4.0.Jussi Pakkanen16-88/+112
2024-03-12Added support for Texas Instruments C6000 compiler.Petr Machacek2-0/+7
2024-03-04doc/Users: Add asteria and mcfgthreadLIU Hao1-0/+2
2024-03-02Merge pull request #12804 from joukewitteveen/dist-rewriterJussi Pakkanen3-0/+39
Support `meson dist` when getting project versions from VCS
2024-02-26docs: fix typo in snippet: "hueristic" -> "heuristic"Dylan Baker1-1/+1
2024-02-26cargo: Call into meson subdir if it existsXavier Claessens1-0/+8
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 Claessens1-1/+2
2024-02-26cargo: Expose features as Meson boolean optionsXavier Claessens1-0/+20
2024-02-25docs: fix some release notes snippet typosEli Schwartz2-2/+2
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-25docs: clarify environment variables take only ExternalProgram.full_path()L. E. Segovia1-2/+4
Fixes #10901
2024-02-25Avoid use of deprecated command form on the cross compilation doc pageRalf Gommers1-1/+1
2024-02-24Add support for BuildTargetTypes to various fs module functionsTristan Partin1-0/+9
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 Herbst1-0/+3
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 Brunet2-2/+7
Fixes #6567
2024-02-23mtest: set MSAN_OPTIONS to abort by defaultSam James3-7/+14
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 Brunet2-0/+11
2024-02-23modules/rust: allow setting a version constraint on bindgenDylan Baker1-0/+1
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 Baker1-0/+3
Especially for C++ this is very important.
2024-02-23modules/rust: Allow explicitly setting the language to bindDylan Baker2-1/+7
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 Baker1-0/+6
Bindgen natively only considers .hpp to be C++ headers, but Meson considers some additional extensions including .hh and .hxx to be C++.
2024-02-23doc: fix compiler.preprocess varargs documentationCharles Brunet1-1/+11
This was inherited from documentation of build target, but some sentences do not make sense in the context of the preprocessor.
2024-02-18doc: fix descriptions of dependency and find_programEisuke Kawashima1-2/+2
They accept list as documented
2024-02-14docs: Remove outdated HDF5 dependency pkg-config statementJouke Witteveen1-3/+2
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 Brunet3-1/+41
This allow to generate ui and moc under subdirectories, as this is allowed with generic generators.
2024-02-12Add MESONREWRITE to `meson dist` scriptsJouke Witteveen3-0/+39
Fixes #688
2024-02-12doc: benchmark: correct usage on unixtaz-0071-3/+3
2024-02-09Document that alias_target accepts run_tgts since 0.60.0Tristan Partin1-2/+2
This was implemented in dc51740e2cdee171ac6ebc7ed261e5c08730c9a9, but was not added to the documentation or marked as a new feature.
2024-02-06Add a numpy dependency with pkg-config and configtool methodsRalf Gommers2-0/+17
These are being added for NumPy 2.0 The implementation closely follows the one for the pybind11 dependency.
2024-01-25docs: Use common conventions for shared libsSune Vuorela1-1/+1
Use common conventions for documentation of shared library version and soversion. In general, the numeric version part is expected to be first component of version, so suggest this in the example code.
2024-01-24docs: add a technically unneeded "setup" verb to some invocationsEli Schwartz1-2/+2
`meson <options> -Dxxx=yyy` is technically accurate, but does cause confusion at least some of the time.
2024-01-24docs: Add NetPanzer to User.mdandy59951-0/+1
2024-01-20docs: fix another regression in having functional docsEli Schwartz2-2/+2
In commit 83a973ca04cf53dd98ff487b4273155b82cf554a a bunch of strange changes were made, that were not even tested. Make sure people get the correct command for running coverage targets.
2024-01-17compiler.preprocess: add depends kwargStas Sergeev2-0/+12
This patch adds 'depends' keyword to compiler.preprocess(). It allows to execute other targets before doing the preprocessing. Test-case is added to demonstrate that functionality: it generates the header before preprocessing the C source that uses that generated header. Thanks to @bruchar1 for getting this patch to work.
2024-01-15compilers: add c23 and gnu23 c_stdsSimon Ser2-2/+2
Closes: https://github.com/mesonbuild/meson/issues/12702
2024-01-15Add a note for Windows users to GuiTutorial.mdizimuth1-0/+14
When compiling on Windows using MSVC, you also need to link the SDL2main.lib file. I've added a note to the GuiTutorial.md file to mention this.
2024-01-09compilers: cpp: wire up debugstl for ClangSam James1-0/+4
For Clang, we now pass -D_GLIBCXX_DEBUG=1 if debugstl is enabled, and we also pass -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_DEBUG. Per https://discourse.llvm.org/t/building-a-program-with-d-libcpp-debug-1-against-a-libc-that-is-not-itself-built-with-that-define/59176/3, we can't use _LIBCPP_DEBUG for older Clang versions as it's unreliable unless libc++ was built with it. We choose MODE_DEBUG for stldebug while building with assertions will do MODE_EXTENSIVE. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
2024-01-09compilers: cpp: wire up stdlib assertionsSam James1-0/+10
None of the options set here affect ABI and are intended for detecting constraint violations. For GCC, we simply need to set -D_GLIBCXX_ASSERTIONS. For Clang, the situation is far more complicated: * LLVM 18 uses a 'hardened mode' (https://libcxx.llvm.org/Hardening.html). There are several levels of severity available here. I've chosen _LIBCPP_HARDENING_MODE_EXTENSIVE as the strongest-but-one. The strongest one (_DEBUG) doesn't affect ABI still but is reserved for stldebug. * LLVM 15 uses a similar approach to libstdc++ called '_LIBCPP_ENABLE_ASSERTIONS' Note that LLVM 17 while in development had fully deprecated _LIBCPP_ENABLE_ASSERTIONS in favour of hardened, but changed its mind last-minute: https://discourse.llvm.org/t/rfc-hardening-in-libc/73925/4. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
2024-01-01envconfig: read CYTHON from the environment and use it if setErik Bråthen Solem1-0/+1
Add support for specifying Cython compiler using the CYTHON environment variable. If not set, proceed with the names hard coded for Cython.
2024-01-01docs: Document Qt tools updates in 0.63Chris Mayo1-1/+7
Especially relevant for users of Ubuntu 22.04 which has packages for Qt 6.2 and Meson 0.61. a606ce22e ("Add support for Qt 6.1+", 2022-01-08) d68a0651e ("qt module: also prefer the changed name scheme for the tools", 2022-02-09)
2024-01-01docs: Fix since for compile_translations in _include_qt_baseChris Mayo1-1/+3
2024-01-01docs: Rename Qt4 & Qt5 in Dependencies to QtChris Mayo3-3/+3
2024-01-01docs: Use Qt instead of qtChris Mayo2-7/+7
2023-12-28docs: fix regression that broke intended meaning of compiler variables noteEli Schwartz1-1/+1
In commit 58c2aeb5e433ae7652488d53021c40db1712dea5, an asterisk used to indicate "see note at bottom" was doubled up into an "italicize this paragraph", which didn't contextually make any sense. See: https://github.com/mesonbuild/meson/pull/12674#issue-2057666653
2023-12-27Add CLion to the list of IDE integrationsMarina.Kalashina1-4/+5
CLion was not mentioned in the list of IDE integrations. This commit adds it, also adds a “3rd party" prefix to the Meson Syntax Highlighter plugin to indicate that it doesn't come from JetBrains, and sorts the list alphabetically.