aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
AgeCommit message (Collapse)AuthorFilesLines
2021-05-13Set up VS environment automatically when run.Jussi Pakkanen1-0/+8
2021-05-11Make objective C use C standard version. Closes #5495.Jussi Pakkanen1-0/+6
2021-05-02Release 0.58.0.0.58.0Jussi Pakkanen26-324/+0
2021-04-26Add snippet about Xcode. [skip ci]Jussi Pakkanen1-0/+4
2021-04-26Interpreter: Fallback when required is false but forcefallback is trueXavier Claessens1-0/+21
2021-04-26Add 'subprojects purge' commandTristan Partin1-0/+18
This will help facilitate cache busting in certain situations, and replaces hand-rolled solutions of writing a length command to remove various files/folders within the subprojects directory.
2021-04-19pkgconfig: Add support for CustomTarget objects in generatorXavier Claessens1-0/+5
Fixes: #8618.
2021-04-12dependency: Add JDK system dependencyTristan Partin1-0/+16
The JDK system dependency is important for detecting JDK include paths that may be useful when developing a JNI interface.
2021-04-09Add global_source/build_root()Xavier Claessens1-0/+10
2021-03-29Do not add custom target dir automatically when implicit false.Jussi Pakkanen1-0/+17
2021-03-28msubprojects: wrap-file should be re-extracted with --resetXavier Claessens1-0/+8
When using --reset we should guarantee that next reconfigure will pick the latest code. For wrap-file we have no way to know if the revision changed, so we have to delete the source tree and extract again. It is unlikely that user has local changes in non-git subprojects, and --reset is known to be dangerous.
2021-03-24Merge pull request #8568 from dcbaker/submit/qt-dependency-factoryJussi Pakkanen1-0/+6
QT: use a proper dependency factory
2021-03-23Refactor Qt Dependency into proper split classes with factoriesDylan Baker1-0/+6
Currently the Qt Dependencies still use the old "combined" method for dependencies with multiple ways to be found. This is problematic as it means that `get_variable()` and friends don't work, as the dependency can't implement any of those methods. The correct solution is to make use of multiple Dependency instances, and a factory to tie them together. This does that. To handle QMake, I've leveraged the existing config-tool mechanism, which allows us to save a good deal of code, and use well tested code instead of rolling more of our own code. The one thing this doesn't do, but we probably should, is expose the macOS ExtraFrameworks directly, instead of forcing them to be found through QMake. That is a problem for another series, and someone who cares more about macOS than I do.
2021-03-23devenv: Set GI_TYPELIB_PATH and LD_LIBRARY_PATH (#8548)Xavier Claessens1-1/+7
2021-03-23environment(): Allow stacking append() and prepend() (#8547)Xavier Claessens1-0/+16
* environment(): Allow stacking append() and prepend() * Update docs/markdown/Reference-manual.md Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com> Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
2021-03-23Remove -pipe from default list of args. Closes #8508.Jussi Pakkanen1-0/+10
2021-03-18Allow add_dist_script() in subprojectsXavier Claessens1-0/+14
Fixes: #8440.
2021-03-18interpreter: Add varname as positional arg in dep.get_variable()Xavier Claessens1-0/+8
2021-03-16clangformat: Add clang-format-check targetXavier Claessens1-2/+2
2021-03-16clangformat: Add include and ignore filesXavier Claessens1-0/+43
2021-03-16Add range() functionXavier Claessens1-0/+28
Fixes: #5026.
2021-03-16Add `meson devenv` command and meson.add_devenv()Xavier Claessens1-0/+29
2021-03-10Some documentation language adjustments & improved error messagesLaurin-Luis Lehning1-1/+1
2021-03-10Fix release snippet still using the old fstring syntaxLaurin-Luis Lehning1-1/+1
2021-03-10Add failing test cases & release snippetLaurin-Luis Lehning1-0/+7
2021-03-09Add address sanitizer support for Visual Studio.Jussi Pakkanen1-0/+6
2021-03-09Add str.replace() methodTristan Partin1-0/+10
2021-02-27install_man locale supportJason Woodward1-0/+9
Rather than having to manually build the locale aware man paths with `install_data('foo.fr.1', install_dir: join_paths(get_option('mandir'), 'fr', 'man1'), rename: 'foo.1')` Support doing `install_man('foo.fr.1', locale: 'fr')`
2021-02-26Allow printing UserOptions in the summaryStephen Gregoratto1-0/+3
2021-02-26meson: add .has_external_property() methodsTim-Philipp Müller1-0/+7
Useful in case of boolean values to distinguish between a boolean value having been set in the native/cross file and not having been provided, which can't be achieved by passing a fallback parameter to .get_external_property().
2021-02-25deprecated `meson.get_cross_property`Dylan Baker1-0/+5
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 Claessens1-0/+4
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-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-14Set up release 0.57.0.57.0Jussi Pakkanen31-315/+0
2021-02-07Add Qt6 moduleLuca Weiss1-0/+8
2021-02-07Merge pull request #8162 from dcbaker/wip/2021-01/rust-module-bindgenJussi Pakkanen1-1/+2
Add a wrapper to the rust module for bindgen
2021-02-07Merge pull request #8305 from xclaesse/run-target-envJussi Pakkanen1-1/+1
run_target: Add env kwarg
2021-02-06rust: Add a module wrapper for bindgenDylan Baker1-1/+2
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-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 Claessens1-1/+1
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 Claessens1-0/+9
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 Drummond1-0/+40
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-02Add support for LLVM's thinLTODylan Baker1-0/+5
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 Baker1-0/+7
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-01-31Capitalize "Meson" consistently as it is a proper name. [skip ci]Jussi Pakkanen1-1/+1
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 Claessens1-0/+11
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).