aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
AgeCommit message (Collapse)AuthorFilesLines
2019-06-05Per machine do 'build.' and '' option prefixesJohn Ericson1-0/+15
See the docs/ changes for details.
2019-05-28interpreter: add fallback argument to subproject.get_variable()Mathieu Duponchelle1-0/+13
2019-05-27coredata: add cmake_prefix_path optionDylan Baker1-0/+16
2019-05-22new module "sourceset" to match source file lists against configuration dataPaolo Bonzini1-0/+8
In QEMU a single set of source files is built against many different configurations in order to generate many executable. Each executable includes a different but overlapping subset of the source files; some of the files are compiled separately for each output, others are compiled just once. Using Makefiles, this is achieved with a complicated mechanism involving a combination of non-recursive and recursive make; Meson can do better, but because there are hundreds of such conditional rules, it's important to keep meson.build files brief and easy to follow. Therefore, this commit adds a new module to satisfy this use case while preserving Meson's declarative nature. Configurations are mapped to a configuration_data object, and a new "source set" object is used to store all the rules, and then retrieve the desired set of sources together with their dependencies. The test case shows how extract_objects can be used to satisfy both cases, i.e. when the object files are shared across targets and when they have to be separate. In the real-world case, a project would use two source set objects for the two cases and then do "executable(..., sources: ... , objects: ...)". The next commit adds such an example.
2019-05-21Merge pull request #5372 from dcbaker/get_variableJussi Pakkanen1-0/+17
Dependency.get_variable method
2019-05-20Generators can have extra target dependencies. Closes #4131.Jussi Pakkanen1-0/+16
2019-05-20fixup! tests: Add test for Dependency.get_variableDylan Baker1-1/+1
2019-05-20docs: Add docs for Dependency.get_variableDylan Baker1-0/+17
2019-05-13docs/markdown: add snippet for intel-cl supportDylan Baker1-0/+13
2019-05-09add support for "target_type: 'shared_module'" in build_target()Daniel Eklöf1-0/+16
2019-05-02per-target manual specification of link_languageMichael Hirsch, Ph.D1-0/+10
2019-04-29Updated docs with information about `custom_target[i]`TheQwertiest1-2/+3
2019-04-22Add support for the Xtensa toolchainFernando Ramos1-0/+5
From (almost) all points of view, the Xtensa toolchain can be treated as a regular GCC toolchain. This patch adds very basic support so that, at least, meson does not fail when trying to use "xt-xcc" (which makes it possible to use it without problems).
2019-04-21Merge pull request #5289 from mesonbuild/fixxpassJussi Pakkanen1-0/+15
Report xpass results as failures.
2019-04-21Report xpass results as failures.Jussi Pakkanen1-0/+15
2019-04-15fix gpgme support by preferring pkg-config where possibleEli Schwartz1-1/+1
Since gpgme 1.13.0, pkg-config files are available and this is the preferred way to detect the dependency. Without this, projects that wish to generate pkg-config files that Requires.private on gpgme, now have their custom dependency() fallbacks overridden with an incorrect configtool dependency.
2019-04-10Update Built-in Option c_std for C17. Closes #4842.jrl641-0/+9
2019-04-08mintro: removed deprecated --target-files APIDaniel Mensinger1-0/+4
2019-04-08Merge pull request #5176 from ao2/add-subproject-foreach-commandJussi Pakkanen1-0/+7
Add 'meson subprojects foreach' command
2019-04-06Add gpgme-config supportJan Tojnar1-0/+3
GPGME does not support pkg-config so we need config-tool support if we do not want projects like Almanah and Seahorse to parse the values manually.
2019-04-02Merge pull request #5128 from Ericson2314/sanity-check-with-flagsJussi Pakkanen1-0/+17
Sanity check with external args
2019-04-01Add 'meson subprojects foreach' commandAntonio Ospite1-0/+7
Sometimes it is convenient to run an arbitrary command (e.g. 'git diff') on all subprojects. Add a 'meson subprojects foreach' command to take care of that. For this command the common argument 'subprojects' does not make sense, so only add '--sourcedir' and cover the case of a missing options.subprojects in run().
2019-04-01Merge pull request #5103 from mesonbuild/linkcustomJussi Pakkanen1-0/+16
Can link against custom targets
2019-03-28Add documentation.Jussi Pakkanen1-0/+16
2019-03-27release note snippet for user flags in sanity checks [skip ci]John Ericson1-0/+17
2019-03-27Add release note snippit for CPPFLAGS handing [skip ci]John Ericson1-0/+12
2019-03-26compilers: n_debug=if-release and buildtype=plain should not enable assertionsDylan Baker1-0/+4
It's a bit odd that it doesn't, and has resulted in bugs in distro packaging. Fixes #5141
2019-03-20Merge pull request #5031 from bonzini/kconfigJussi Pakkanen1-0/+5
Kconfig Module
2019-03-20mesonbuild: allow multiple --cross-file optionsRoss Burton1-0/+3
Just like --native-file, allow multiple --cross-file options. This is mostly unifying the logic between cross_files and config_files.
2019-03-15[modules] Add kconfig moduleMark Schulte1-0/+5
Add a kconfig module to allow meson to integrate with existing projects that use kconfig.
2019-03-14docsMichael Hirsch, Ph.D1-0/+12
2019-03-11Add static as keyword to find_libraryNiklas Claesson1-0/+6
2019-03-10Update everything for new release.0.50.0Jussi Pakkanen28-293/+0
2019-03-09docs: Add snippet for python module path method [skip ci]Dylan Baker1-0/+5
Which somehow wasn't included in the original pull request.
2019-03-04rewriter: Added docsDaniel Mensinger1-0/+18
2019-03-03mintro: Renamed --dependencies --> --scan-dependenciesDaniel Mensinger1-7/+4
2019-03-03Added docsDaniel Mensinger2-0/+49
2019-03-01mintro: Add subproject_dir to --projectinfoDaniel Schulte1-0/+4
2019-03-01mintro: Add name of subproject the target is contained in to --target outputDaniel Schulte1-0/+1
2019-02-28add NetCDFMichael Hirsch, Ph.D1-0/+3
2019-02-19Allow File arguments in extract_objects() argumentsMaarten ter Huurne1-0/+4
Passed strings are converted to Files, but passing a File directly wasn't supported yet.
2019-02-19Add warning level zerojml17951-0/+3
2019-02-18Fix console log from generator with multiple output nodesjml17951-0/+3
2019-02-13Fortran 2008/2018 Coarray supportMichael Hirsch, Ph.D1-0/+3
2019-02-12Merge pull request #4743 from dcbaker/native-file-extendedJussi Pakkanen1-0/+4
Extend native files to store install path information
2019-02-12Merge pull request #4826 from mensinda/confDefOptsJussi Pakkanen1-0/+6
mconf: Use introspection to print the project default options (fixes #2543)
2019-02-11allow paths to be set in the cross fileDylan Baker1-3/+3
Just like the previous patch, but for cross files Fixes #1433
2019-02-11allow setting directory locations in a native fileDylan Baker1-0/+4
This allows the person running configure (either a developer, user, or distro maintainer) to keep a configuration of where various kinds of files should end up.
2019-02-05Fortran 2008 submodule (#4874)Michael Hirsch, Ph.D1-0/+12
2019-02-01CMake: Added support for CMAKE_MODULE_PATH and extra CMake args (closes #4779)Daniel Mensinger1-0/+9