summaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
AgeCommit message (Collapse)Author
2019-07-23Create multiple different archive types with dist.Jussi Pakkanen
2019-07-19Add version check support to find_program()Xavier Claessens
Closes: #1609
2019-07-17Accept vs_module_defs for modulesMarc-André Lureau
Like shared libraries, modules may have vs_module_defs. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2019-07-16gtkdoc: Add 'check' kwarg (#5591)Xavier Claessens
* gtkdoc: Add 'check' kwarg This runs gtkdoc-check in meson tests. Also reorganize the gtkdoc test because we cannot reliably build multiple doc into the same directory. Not all files generated by gtk-doc are prefixed with the target name.
2019-07-10Add alias_target() functionXavier Claessens
2019-06-27`add_{global,project}_{,link_}arguments`: simply native flag behaviorJohn Ericson
This further simplifies behavior to match the "build vs host" decision we did with `c_args` vs `build_c_args`. The rules are now simply: - `native: true` affects `native: true` targets - `native: false` affects `native: false` targets - No native flag is the same as `native: false` I like this because you don't even have to know what "build" and "host" mean to understand how it works, and it doesn't depend on whether the overall build is cross or not. Fixes #4933
2019-06-26dependencies/base: Set PKG_CONFIG_SYSROOT_DIR from cross fileDylan Baker
In some cases it may be necessary to set PKG_CONFIG_SYSROOT_DIR, like when you've mounted a host architecture system in an arbitrary path. Meson will now check the cross files for a [properties]:sys_root variable and set the PKG_CONFIG_SYSROOT_DIR environment variable based on that variable. Fixes #3801 Fixes #4057
2019-06-25Split attribute visibilityDylan Baker
* c_function_attributes: remove 'protected' from 'visibility' This doesn't exist on macos with the apple compiler, which always causes failures. Fixes #5530 * compilers: Add split visibility checks to has_function_attribute These check for a single visibility at a time, rather than all four at once. This allows for finer grained searches, and should make using these checks safer across operating systems.
2019-06-23only --only option to run_project_tests, add type hints, improve variable ↵Michael Hirsch, Ph.D
name use
2019-06-16Update things for new release.Jussi Pakkanen
2019-06-12modules/python: add a modules keyword argumentDylan Baker
This mirrors the modules keyword argument that some dependencies (such as qt and llvm) take. This allows an easier method to determine if modules are installed.
2019-06-06cmake: updated docsDaniel Mensinger
2019-06-06cmake: Added docsDaniel Mensinger
2019-06-05Per machine do 'build.' and '' option prefixesJohn Ericson
See the docs/ changes for details.
2019-05-28interpreter: add fallback argument to subproject.get_variable()Mathieu Duponchelle
2019-05-27coredata: add cmake_prefix_path optionDylan Baker
2019-05-22new module "sourceset" to match source file lists against configuration dataPaolo Bonzini
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 Pakkanen
Dependency.get_variable method
2019-05-20Generators can have extra target dependencies. Closes #4131.Jussi Pakkanen
2019-05-20fixup! tests: Add test for Dependency.get_variableDylan Baker
2019-05-20docs: Add docs for Dependency.get_variableDylan Baker
2019-05-13docs/markdown: add snippet for intel-cl supportDylan Baker
2019-05-09add support for "target_type: 'shared_module'" in build_target()Daniel Eklöf
2019-05-02per-target manual specification of link_languageMichael Hirsch, Ph.D
2019-04-29Updated docs with information about `custom_target[i]`TheQwertiest
2019-04-22Add support for the Xtensa toolchainFernando Ramos
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 Pakkanen
Report xpass results as failures.
2019-04-21Report xpass results as failures.Jussi Pakkanen
2019-04-15fix gpgme support by preferring pkg-config where possibleEli Schwartz
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.jrl64
2019-04-08mintro: removed deprecated --target-files APIDaniel Mensinger
2019-04-08Merge pull request #5176 from ao2/add-subproject-foreach-commandJussi Pakkanen
Add 'meson subprojects foreach' command
2019-04-06Add gpgme-config supportJan Tojnar
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 Pakkanen
Sanity check with external args
2019-04-01Add 'meson subprojects foreach' commandAntonio Ospite
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 Pakkanen
Can link against custom targets
2019-03-28Add documentation.Jussi Pakkanen
2019-03-27release note snippet for user flags in sanity checks [skip ci]John Ericson
2019-03-27Add release note snippit for CPPFLAGS handing [skip ci]John Ericson
2019-03-26compilers: n_debug=if-release and buildtype=plain should not enable assertionsDylan Baker
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 Pakkanen
Kconfig Module
2019-03-20mesonbuild: allow multiple --cross-file optionsRoss Burton
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 Schulte
Add a kconfig module to allow meson to integrate with existing projects that use kconfig.
2019-03-14docsMichael Hirsch, Ph.D
2019-03-11Add static as keyword to find_libraryNiklas Claesson
2019-03-10Update everything for new release.Jussi Pakkanen
2019-03-09docs: Add snippet for python module path method [skip ci]Dylan Baker
Which somehow wasn't included in the original pull request.
2019-03-04rewriter: Added docsDaniel Mensinger
2019-03-03mintro: Renamed --dependencies --> --scan-dependenciesDaniel Mensinger
2019-03-03Added docsDaniel Mensinger