aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
AgeCommit message (Collapse)AuthorFilesLines
2019-09-17configure_file(): Allow multiple inputs in command modeXavier Claessens1-0/+3
Closes: #5893
2019-09-09docs: Add a snippet about illumos and Solaris support improvementsDylan Baker1-0/+4
2019-08-14docs: add snippet for l_undef on appleDylan Baker1-0/+5
I didn't really mean to, but in splitting the linkers and compilers I got this all working.
2019-08-14docs: Add snippet for compiler linker splitDylan Baker1-0/+6
2019-08-05Add basic Webassembly support via Emscripten.Jussi Pakkanen1-0/+5
2019-08-04Make gettext targets no-ops if gettext is not installed. Closes: #821.Jussi Pakkanen1-0/+7
2019-08-04sourceset: add all_dependencies() methodMarc-André Lureau1-0/+4
'if_true' sources should be built with their dependencies, as illustrated by test case change. Ideally, I think we would want only the files with the dependencies to be built with the flags, but that would probably change the way sourceset are used.
2019-07-31Allow kconfig to read from configure_file()Marc-André Lureau1-0/+3
At configure time, kconfig can read from configure_file(). "test cases/kconfig/4 load_config builddir/meson.build" was already showing a workaround, now it actually can take configure_file input directly.
2019-07-23Create multiple different archive types with dist.Jussi Pakkanen1-0/+10
2019-07-19Add version check support to find_program()Xavier Claessens1-0/+9
Closes: #1609
2019-07-17Accept vs_module_defs for modulesMarc-André Lureau1-0/+4
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 Claessens1-0/+11
* 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 Claessens1-0/+12
2019-06-27`add_{global,project}_{,link_}arguments`: simply native flag behaviorJohn Ericson1-0/+16
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 Baker1-0/+5
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 Baker1-0/+14
* 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.D1-0/+10
name use
2019-06-16Update things for new release.0.51.0Jussi Pakkanen25-282/+0
2019-06-12modules/python: add a modules keyword argumentDylan Baker1-0/+9
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 Mensinger1-21/+17
2019-06-06cmake: Added docsDaniel Mensinger1-0/+34
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.