aboutsummaryrefslogtreecommitdiff
path: root/docs
AgeCommit message (Collapse)AuthorFilesLines
2021-02-25deprecated `meson.get_cross_property`Dylan Baker3-4/+9
It's a pure subset of `get_external_property`, and has odd behavior in host == build configurations. `get_external_property` is clear, and uses the standard `native : bool` syntax to control host vs build properties
2021-02-25Support multiple args in error()Xavier Claessens2-0/+7
Seems it got forgotten when that was added to warnings() and message(). Fixes: #8414.
2021-02-25Allow custom target output to be processed by generatorsMatthias Klumpp1-0/+4
2021-02-25Clarify that wrap requests are for user submission. [skip ci]Jussi Pakkanen1-2/+9
2021-02-23Add note about using Ninja on old Meson versions. [skip ci]Jussi Pakkanen1-1/+3
2021-02-22minstall: Add --skip-subprojects optionXavier Claessens1-0/+10
By default all subprojects are installed. If --skip-subprojects is given with no value only the main project is installed. If --skip-subprojects is given with a value, it should be a coma separated list of subprojects to skip and all others will be installed. Fixes: #2550.
2021-02-21docs/users: Add DOSBox StagingPatryk Obara1-0/+1
2021-02-17Substitute @CURRENT_SOURCE_DIR@ in run_target() and custom_target()Xavier Claessens1-0/+17
run_target() does some variable substitutions since 0.57.0. This is a new behavior, and undocumented, caused by sharing more code with custom_target(). More consistency is better, so document it now. custom_target() was doing variable substitution in the past, because it shared some code with generator(), but that was undocumented. Some refactoring in 0.57.0 caused it to not replace @CURRENT_SOURCE_DIR@, @SOURCE_DIR@, and @BUILD_DIR@ anymore. This patch adds back @CURRENT_SOURCE_DIR@ and document it. It does not add back @SOURCE_DIR@ because it is duplicate with @SOURCE_ROOT@ that has a better name. Also do not add back @BUILD_DIR@ which is duplicate of @PRIVATE_DIR@, and not @BUILD_ROOT@ surprisingly, adding to the confusion.
2021-02-16Add optional -Dcuda_ccbindir= option and -ccbin flag to CUDA compiler.Olexa Bilaniuk1-0/+1
Closes #8110.
2021-02-16Add missing apostrophes. [skip ci]Jussi Pakkanen1-2/+2
2021-02-14docs: Fix typo in release notes [skip ci]Sam Thursfield1-1/+1
Mismatched \` symbol was messing up the formatting.
2021-02-14Add a release note entry for C++ modules which was missing. [skip ci]Jussi Pakkanen1-1/+8
2021-02-14Set up release 0.57.0.57.0Jussi Pakkanen33-315/+354
2021-02-07Add Qt6 moduleLuca Weiss1-0/+8
2021-02-07Merge pull request #8162 from dcbaker/wip/2021-01/rust-module-bindgenJussi Pakkanen2-2/+51
Add a wrapper to the rust module for bindgen
2021-02-07Make installing non-existing subdirs a supported featurePeter Hutterer1-0/+10
install_subdir() with a non-existing subdir creates the directory in the target directory. This seems like an implementation detail but is quite useful to create new directories for e.g. configuration or plugins in the installed locations. git bisect says this started with 8fe816101467e66792251b4f57e0ddddb537764a. Let's add a test for it and document it to make this behavior official. Limitation: it can only create at the install_dir location, trying to create nested subdirectories does not work and indeed creates the wrong directory structure. That is a bug that should be fixed separately: install_subdir('blah', install_dir: get_option('prefix')) install_subdir('sub/foobar', install_dir: get_option('prefix')) install_subdir('foo/baz', install_dir: get_option('prefix')) $ tree ../_inst ../_inst ├── baz ├── blah └── foobar Fixes #2904
2021-02-07Merge pull request #8288 from bonzini/test-setup-exclude-suitesJussi Pakkanen1-0/+3
introduce add_test_setup(exclude suites: ...) keyword argument
2021-02-07Merge pull request #8305 from xclaesse/run-target-envJussi Pakkanen2-1/+5
run_target: Add env kwarg
2021-02-06rust: Add a module wrapper for bindgenDylan Baker2-2/+51
This has a couple of advantages over rolling it by hand: 1. it correctly handles include_directories objects, which is always handy 2. it correctly generates a depfile for you, which makes it more reliable 3. it requires less typing
2021-02-06add loongarch supportXiaotian Wu1-0/+1
2021-02-05vala: Disable unity buildsDylan Baker1-0/+7
Our approach to unity builds with vala is broken, you cannot unify the generated C files, as they contain duplicate symbols. We would need to instead combine the files while they are still in their vala form, then convert that to C and compile the unified C file. This does not fix the linked issue, as this removed the ability to do vala unity builds, but it does allow running vala with `--unity=on`. Related: #5280
2021-02-05run_target: Add env kwargXavier Claessens2-1/+5
Re-implement it in backend using the same code path as for custom_target(). This for example handle setting PATH on Windows when command is an executable.
2021-02-05gnome: Add post_install() methodXavier Claessens2-0/+26
Various GNOME projects have scripts that does similar task, better do it directly in meson. This ensures it's done correctly regarding usage of subprojects and pkg-config. See for example this gtk bug: https://gitlab.gnome.org/GNOME/gtk/-/issues/3626. Fixes: #8268
2021-02-04Introduce `fs.read` to read a file as a stringLuke Drummond3-0/+68
Following #7890, this patch introduces the ability to read the contents of a file to the fs module. This patch introduces the ability to read files at configure time, but has some restrictions: - binary files are not supported (I don't think this will prove a problem, and if people are wanting to do something with binary files, they should probably be shelling out to their own script). - Only files outside the build directory allowed. This limitation should prevent build loops. Given that reading an arbitrary file at configure time can affect the configuration in almost arbitrary ways, meson should force a reconfigure when the given file changes. This is non-configurable, but this can easily be changed with a future keyword argument.
2021-02-04minstall: Add --dry-run optionXavier Claessens1-0/+4
Closes: #1281
2021-02-03Fix some typos in the release notes snippetsLuca Weiss3-4/+4
2021-02-02Merge pull request #8087 from dcbaker/submit/lto-extensionsJussi Pakkanen3-20/+38
Add option for thinLTO
2021-02-02doc: fix typosEli Schwartz1-2/+2
2021-02-02Add support for LLVM's thinLTODylan Baker2-0/+8
This uses a separate option, b_lto_mode. It works in conjunction with b_lto_threads. Fixes #7493
2021-02-02compilers: Add support for using multiple threads with ltoDylan Baker2-20/+30
Both Clang and GCC support using multiple threads for preforming link time optimizaions, and they can now be configured using the `-Db_lto_threads` option. Fixes #7820
2021-02-02interpreter, mtest: introduce add_test_setup(exclude_suites: ...)Paolo Bonzini1-0/+3
This new keyword argument makes it possible to run specific test setups only on a subset of the tests. For example, to mark some tests as slow and avoid running them by default: add_test_setup('quick', exclude_suites: ['slow'], is_default: true) add_test_setup('slow') It will then be possible to run the slow tests with either `meson test --setup slow` or `meson test --suite slow`.
2021-01-31Capitalize "Meson" consistently as it is a proper name. [skip ci]Jussi Pakkanen51-174/+174
2021-01-31copy editing for 0.57 release notes [skip ci]Paolo Bonzini15-43/+46
2021-01-30add_install_script: add skip_if_destdir kwargXavier Claessens2-0/+15
It is common, at least in GNOME projects, to have scripts that must be run only in the final destination, to update system icon cache, etc. Skipping them from Meson ensures we can properly log that they have not been run instead of relying on such scripts to to it (they don't always).
2021-01-30Rewrap long text lines in docs. [skip ci]Jussi Pakkanen100-2649/+3566
2021-01-30Merge pull request #8264 from xclaesse/ep-miscJussi Pakkanen2-3/+20
external_project: misc improvements
2021-01-30Merge pull request #8200 from bonzini/mtest-asyncio-logsJussi Pakkanen1-0/+29
mtest: improvements to logging
2021-01-29external_project: Add release snippetXavier Claessens1-0/+11
2021-01-29Can read project version from a file.Jussi Pakkanen2-1/+15
2021-01-29external_project: Add default configure optionsXavier Claessens1-3/+9
2021-01-27intepreter: Allow using file objects for the script_name of add_*_scriptDylan Baker2-2/+29
It's a bit silly and conveluted to have to call find_program on the output of configure_file, so let's just allow passing files as the script name.
2021-01-27custom_target: Add env kwargXavier Claessens2-0/+15
2021-01-27test: Make timeout <= 0 infinite duractionXavier Claessens2-2/+14
2021-01-26dist: Allow packaging subproject in same git repo as main projectXavier Claessens2-0/+34
2021-01-26docs: Fix sentence in Machine-files.md [skip ci]Florian Schmaus1-1/+1
Fixes: 1ca17dc853ec ("docs/machine-files: Add a section on data types")
2021-01-23docs: Fix typo in Syntax.md [skip ci]Evgeny Ermakov1-1/+1
2021-01-22docs: add documentation snippet for meson test console output changesPaolo Bonzini1-0/+29
2021-01-21interpreter: accept external programs and dependencies for summaryPaolo Bonzini2-1/+9
2021-01-20MSVC and Clang-Cl Compiler Argument CleanupMarios Staikopoulos1-0/+16
This commit performs some cleanup for the msvc and clang-cl arguments. * "Disable Debug" (`/Od`) is no longer manually specified for optimization levels {`0`,`g`} (it is already the default for MSVC). * "Run Time Checking" (`/RTC1`) removed from `debug` buildtype by default * Clang-CL `debug` buildtype arguments now match MSVC arguments * There is now no difference between `buildtype` flags and `debug` + `optimization` flags
2021-01-20Added "How do I use a library before declaring it?" in the FAQ.Volker Weißmann1-0/+17