aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
AgeCommit message (Collapse)AuthorFilesLines
2020-09-07Bump minimum supported Python version to 3.6. Closes #6297.pythonbumpJussi Pakkanen1-0/+6
2020-09-04introspect: add test dependencies info to test/benchmark JSONPaolo Bonzini1-0/+5
Add the ids of any target that needs to be rebuilt before running the tests as computed by the backend, to the introspection data for tests and benchmarks. This also includes anything that appears on the test's command line. Without this information, IDEs must update the entire build before running any test. They can now instead selectively build the test executable itself and anything that is needed to run it. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-09-02docs: Add a snippet for python 3.5 deprecation [skip ci]Nirbheek Chauhan1-0/+15
2020-08-25Merge pull request #7581 from peterh/aixJussi Pakkanen1-0/+8
Add AIX support
2020-08-25qt module: add qresource support to compile_translationsEli Schwartz1-0/+19
A common pattern in Qt5 applications is to embed translations in the executable using the qresource system. In this case, the list of translation files is already available in the .qrc file and there's no good reason to duplicate this info in meson.build. Let compile_translations optionally take a qrc input, in which case it will go straight to generating the relevant translations and rcc-generated .cpp, and directly return the thing users actually care about -- the .cpp for linking.
2020-08-22Merge pull request #7447 from scivision/nvcJussi Pakkanen1-0/+3
Add support for NVidia HPC SDK compilers
2020-08-18Interpreter: Fix c_stdlib usageXavier Claessens1-0/+6
- Exceptions raised during subproject setup were ignored. - Allow c_stdlib in native file, was already half supported. - Eliminate usage of subproject variable name by overriding '<lang>_stdlib' dependency name.
2020-08-17docs: add AIX preliminary support snippetPeter Harris1-0/+8
2020-08-01Allow setting built-in options from cross/native filesDylan Baker1-1/+16
This is like the project options, but for meson builtin options. The only real differences here have to do with the differences between meson builtin options and project options. Some meson options can be set on a per-machine basis (build.pkg_config_path vs pkg_config_path) others can be set on a per-subproject basis, but should inherit the parent setting.
2020-07-30Allow setting project options from cross or native filesDylan Baker1-0/+37
This allows adding a `[project options]` section to a cross or native file that contains the options defined for a project in it's meson_option.txt file.
2020-07-22coredata: Make warning_level per subproject builtin optionXavier Claessens1-0/+4
2020-07-19Stabilize keyval moduleMarc-André Lureau1-0/+7
We have experimented with the module for about a year in a qemu branch (https://wiki.qemu.org/Features/Meson), and we would like to start moving the build system to meson. For that, keyval should have the stability guarantees. Cc: Paolo Bonzini <pbonzini@redhat.com>
2020-07-13docMichael Hirsch, Ph.D1-0/+3
2020-07-12Updated everything for release 0.55.0.0.55.0Jussi Pakkanen25-275/+0
2020-07-05doc: Improve documentation of [provide] section in wrap filesXavier Claessens1-1/+1
Explicitly document the behaviour of dependency('foo-1.0', required: false).
2020-07-01find_program: Fallback if a wrap file provide the program nameXavier Claessens1-0/+5
We don't need the legacy variable name system as for dependency() fallbacks because meson.override_find_program() is largely used already, so we can just rely on it.
2020-07-01wrap: Add 'provide' sectionXavier Claessens1-0/+7
2020-07-01Implicit dependency fallback when a subproject wrap or dir existsXavier Claessens1-0/+9
2020-07-01Merge pull request #7231 from mensinda/cmOverrideJussi Pakkanen1-0/+17
cmake: Add more advanced subproject configuration options
2020-06-30wrap: Apply patch even in VCS casesXavier Claessens1-0/+5
2020-06-29envconfig: Add [constants] section in machine filesXavier Claessens1-0/+20
Machine files already supports `+` operator as an implementation detail, since it's using eval(). Now make it an officially supported feature and add a way to define constants that are used while evaluating an entry value.
2020-06-29Added ability to specify target in `meson compile`TheQwertiest1-0/+19
2020-06-28Added ability to pass arguments to backend in `meson compile`TheQwertiest1-0/+26
2020-06-21wrap: Add patch_directory supportXavier Claessens1-0/+8
Copy a tree instead of extracting an archive. Closes: #7216
2020-06-17coverage: llvm-cov supportCary Converse1-0/+4
2020-06-16interpreter: add support for --force-fallback-forMathieu Duponchelle1-0/+10
This new command line option allows specifying dependencies for which to force fallback. See the documentation for more information Fixes: #7218
2020-06-16gnome: Add fatal_warnings kwarg to generate_gir()Xavier Claessens1-0/+5
Fixes: #7130
2020-06-05docs: add snippet about response file changeDan Kegel1-0/+7
2020-06-05cmake: added docsDaniel Mensinger1-0/+17
2020-05-27Merge pull request #6818 from mensinda/localPatchJussi Pakkanen1-0/+6
Wrap: add local files support via *_filename
2020-05-26opts: added docsDaniel Mensinger1-0/+14
2020-05-23ast: Add docs for --astDaniel Mensinger1-0/+4
2020-05-20compilers/d: Add b_ndebug supportDylan Baker1-0/+4
D lang compilers have an option -release (or similar) which turns off asserts, contracts, and other runtime type checking. This patch wires that up to the b_ndebug flag. Fixes #7082
2020-05-18pass exe_wrapper to test scripts through the environmentDylan Baker1-0/+9
This adds a new MESON_EXE_WRAPPER environment variable containing the string form of the exe_wrapper, if there is an exe_wrapper defined. Fixes #4427
2020-05-18Merge pull request #7103 from dankegel/bug4027-rpath-rememberJussi Pakkanen1-0/+7
Let .pc files and LDFLAGS provide rpaths.
2020-05-16docs: add snippet documenting rpath behavior changeDan Kegel1-0/+7
2020-05-14interpreter: Rename has_exe_wrapper -> can_run_host_binariesDylan Baker1-0/+5
The implementation of this function has changed enough that the name doesn't really reflect what it actually does. It basically returns true unless you're cross compiling, need and exe_wrapper, and don't have one. The original function remains but is marked as deprecated. This makes one small change the meson source language, which is that it defines that can_run_host_binaries will return true in build == host compilation, which was the behavior that already existed. Previously this was undefined in build == host compilation.
2020-05-11ConfigToolDependency: Don't fallback to system tool when cross compilingXavier Claessens1-0/+7
The system tool is always the wrong thing to use and cause hard to debug issues when trying to link system libraries with cross built binaries. The ExternalDependency base class already had a method to deal with this, used by PkgConfigDependency and QtBaseDependency, so it should make things more consistent.
2020-05-08rename unstable-kconfig to unstable-keyvalPaolo Bonzini1-0/+6
Discussions in #6524 have shown that there are various possible uses of the kconfig module and even disagreements in the exact file format between Python-based kconfiglib and the tools in Linux. Instead of trying to reconcile them, just rename the module to something less suggestive and leave any policy to meson.build files. In the future it may be possible to add some kind of parsing through keyword arguments such as bool_true, quoted_strings, etc. and possibly creation of key-value lists too. For now, configuration_data objects provide an easy way to access quoted strings. Note that Kconfig stores false as "absent" so it was already necessary to write "x.has_key('abc')" rather than the more compact "x['abc']". Therefore, having to use configuration_data does not make things much more verbose.
2020-05-06Merge pull request #7064 from dcbaker/gtest-protocolJussi Pakkanen1-0/+6
Add support for Gtest as a test protocol
2020-05-04Add native support for gtest testsDylan Baker1-0/+6
Gtest can output junit results with a command line switch. We can parse this to get more detailed results than the returncode, and put those in our own Junit output. We basically just throw away the top level 'testsuites' object, then fixup the names of the tests, and shove that into our junit.
2020-05-03Merge pull request #7060 from dcbaker/install-script-targetsJussi Pakkanen1-0/+24
Allow meson.add_*_script to take additional types
2020-04-30Docs: Update link_language docs to explain when it should be usedDylan Baker1-0/+8
2020-04-30docs: Update documentation for add_*_scriptDylan Baker1-0/+24
2020-04-28find_program: Fixes when the program has been overridden by executableXavier Claessens1-0/+20
- ExternalProgramHolder has path() method while CustomTargetHolder and BuildTargetHolder have full_path(). - The returned ExternalProgramHolder's path() method was broken, because build.Executable object has no get_path() method, it needs the backend. - find_program('overridden_prog', version : '>=1.0') was broken because it needs to execute the exe that is not yet built. Now assume the program has the (sub)project version. - If the version check fails, interpreter uses ExternalProgramHolder.get_name() for the error message but build.Executable does not implement get_name() method.
2020-04-25wrap: Updated docsDaniel Mensinger1-0/+6
2020-04-23mtest: Generate a JUnit xml result fileDylan Baker1-0/+4
JUnit is pretty ubiquitous, lots of services and results viewers understand it, in particular gitlab and jenkins know how to consume JUnit xml. This means projects using CI services can have their test results consumed automatically. Fixes: #6972
2020-04-13wrap: Add fallback urlsXavier Claessens1-0/+4
It can happen that a server is temporaly down, tarballs often have many mirrors available so we should be able to add at least one fallback mirror in wrap files.
2020-03-29dist: Add --no-tests optionXavier Claessens1-0/+5
It is not always needed to test generated tarballs, for example when they are generated by CI that already does its own testing.
2020-03-29Update everything for new release.0.54.0Jussi Pakkanen29-325/+0