summaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
Commit message (Collapse)AuthorAgeFilesLines
...
* doc: Improve documentation of [provide] section in wrap filesXavier Claessens2020-07-051-1/+1
| | | | | Explicitly document the behaviour of dependency('foo-1.0', required: false).
* find_program: Fallback if a wrap file provide the program nameXavier Claessens2020-07-011-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.
* wrap: Add 'provide' sectionXavier Claessens2020-07-011-0/+7
|
* Implicit dependency fallback when a subproject wrap or dir existsXavier Claessens2020-07-011-0/+9
|
* Merge pull request #7231 from mensinda/cmOverrideJussi Pakkanen2020-07-011-0/+17
|\ | | | | cmake: Add more advanced subproject configuration options
| * cmake: added docsDaniel Mensinger2020-06-051-0/+17
| |
* | wrap: Apply patch even in VCS casesXavier Claessens2020-06-301-0/+5
| |
* | envconfig: Add [constants] section in machine filesXavier Claessens2020-06-291-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.
* | Added ability to specify target in `meson compile`TheQwertiest2020-06-291-0/+19
| |
* | Added ability to pass arguments to backend in `meson compile`TheQwertiest2020-06-281-0/+26
| |
* | wrap: Add patch_directory supportXavier Claessens2020-06-211-0/+8
| | | | | | | | | | | | Copy a tree instead of extracting an archive. Closes: #7216
* | coverage: llvm-cov supportCary Converse2020-06-171-0/+4
| |
* | interpreter: add support for --force-fallback-forMathieu Duponchelle2020-06-161-0/+10
| | | | | | | | | | | | | | | | | | This new command line option allows specifying dependencies for which to force fallback. See the documentation for more information Fixes: #7218
* | gnome: Add fatal_warnings kwarg to generate_gir()Xavier Claessens2020-06-161-0/+5
| | | | | | | | Fixes: #7130
* | docs: add snippet about response file changeDan Kegel2020-06-051-0/+7
|/
* Merge pull request #6818 from mensinda/localPatchJussi Pakkanen2020-05-271-0/+6
|\ | | | | Wrap: add local files support via *_filename
| * wrap: Updated docsDaniel Mensinger2020-04-251-0/+6
| |
* | opts: added docsDaniel Mensinger2020-05-261-0/+14
| |
* | ast: Add docs for --astDaniel Mensinger2020-05-231-0/+4
| |
* | compilers/d: Add b_ndebug supportDylan Baker2020-05-201-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
* | pass exe_wrapper to test scripts through the environmentDylan Baker2020-05-181-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
* | Merge pull request #7103 from dankegel/bug4027-rpath-rememberJussi Pakkanen2020-05-181-0/+7
|\ \ | | | | | | Let .pc files and LDFLAGS provide rpaths.
| * | docs: add snippet documenting rpath behavior changeDan Kegel2020-05-161-0/+7
| | |
* | | interpreter: Rename has_exe_wrapper -> can_run_host_binariesDylan Baker2020-05-141-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.
* | | ConfigToolDependency: Don't fallback to system tool when cross compilingXavier Claessens2020-05-111-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.
* | rename unstable-kconfig to unstable-keyvalPaolo Bonzini2020-05-081-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.
* | Merge pull request #7064 from dcbaker/gtest-protocolJussi Pakkanen2020-05-061-0/+6
|\ \ | | | | | | Add support for Gtest as a test protocol
| * | Add native support for gtest testsDylan Baker2020-05-041-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.
* | | Merge pull request #7060 from dcbaker/install-script-targetsJussi Pakkanen2020-05-031-0/+24
|\ \ \ | | | | | | | | Allow meson.add_*_script to take additional types
| * | | docs: Update documentation for add_*_scriptDylan Baker2020-04-301-0/+24
| |/ /
* | | Docs: Update link_language docs to explain when it should be usedDylan Baker2020-04-301-0/+8
|/ /
* | find_program: Fixes when the program has been overridden by executableXavier Claessens2020-04-281-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.
* | mtest: Generate a JUnit xml result fileDylan Baker2020-04-231-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
* wrap: Add fallback urlsXavier Claessens2020-04-131-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.
* dist: Add --no-tests optionXavier Claessens2020-03-291-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.
* Update everything for new release.0.54.0Jussi Pakkanen2020-03-2929-325/+0
|
* Make werror per subproject optionXavier Claessens2020-03-241-4/+5
|
* Revert "Naturally use env vars a bit more to match Autoconf"Jussi Pakkanen2020-03-231-5/+5
| | | | This reverts commit 097dfc085e6a1bb3c670880134a52dcfca504be7.
* Naturally use env vars a bit more to match AutoconfJohn Ericson2020-03-231-5/+5
| | | | | | | | | | | | | | | | | | | | | | PR #6363 made it so our interpretation of env vars no longer clashed with Autoconf's: if both Meson and Autoconf would read and env var, both would do the same things with the value they read. However, there were still cases that autoconf would read an env var when meson wouldn't: - Autoconf would use `CC` in cross builds too - Autoconf would use `CC_FOR_BUILD` in native builds too. There's no reason Meson can't also do this--if native cross files overwrite rather than replace env vars, cross files can also overwrite rather than replace env vars. Because variables like `CC` are so ubiquitous, and because ignoring them in cross builds just makes those builds liable to break (and things more complicated in general), we bring Meson's behavior in line with Autoconf's.
* Fix legacy env var support with crossJohn Ericson2020-03-231-0/+12
| | | | Fix #3969
* Add property to disable compiler sanity checks during cross compilation.Jussi Pakkanen2020-03-221-0/+9
|
* -Add xc16 and c2000 C,Cpp toolchain supportalanNz2020-03-211-0/+8
|
* mtest: terminate a test via SIGTERM first then (if needed) via SIGKILLCamilo Celis Guzman2020-03-191-0/+6
|
* cmake: Add find_package COMPONETS supportDaniel Mensinger2020-03-191-0/+4
|
* envconfig: Make compiler and linker environment variables matchDylan Baker2020-03-171-0/+7
|
* docs: Update documentation for GDC linker overridingDylan Baker2020-03-121-4/+6
|
* docs: Document that ldc now supports linker overriding [skip ci]Dylan Baker2020-03-121-0/+5
|
* Merge pull request #6532 from jon-turney/languages-native-kwargJussi Pakkanen2020-03-091-0/+20
|\ | | | | Add add_languages(native:)
| * Refine behaviour of add_languages() when native: is missingJon Turney2020-02-121-2/+17
| | | | | | | | | | | | | | | | | | This improves the common case of a simple meson.build which doesn't contain any 'native: true' targets to not require a native compiler when cross-compiling, without needing any changes in the meson.build. v2: Do it the right way around!
| * Add add_languages(native:)Jon Turney2020-02-091-0/+5
| | | | | | | | | | | | v2: Retain not using logical-and, to avoid short-circuiting side-effects of add_languages()