summaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
AgeCommit message (Collapse)Author
2020-05-04Add native support for gtest testsDylan Baker
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 Pakkanen
Allow meson.add_*_script to take additional types
2020-04-30Docs: Update link_language docs to explain when it should be usedDylan Baker
2020-04-30docs: Update documentation for add_*_scriptDylan Baker
2020-04-28find_program: Fixes when the program has been overridden by executableXavier Claessens
- 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 Mensinger
2020-04-23mtest: Generate a JUnit xml result fileDylan Baker
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 Claessens
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 Claessens
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.Jussi Pakkanen
2020-03-24Make werror per subproject optionXavier Claessens
2020-03-23Revert "Naturally use env vars a bit more to match Autoconf"Jussi Pakkanen
This reverts commit 097dfc085e6a1bb3c670880134a52dcfca504be7.
2020-03-23Naturally use env vars a bit more to match AutoconfJohn Ericson
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.
2020-03-23Fix legacy env var support with crossJohn Ericson
Fix #3969
2020-03-22Add property to disable compiler sanity checks during cross compilation.Jussi Pakkanen
2020-03-21-Add xc16 and c2000 C,Cpp toolchain supportalanNz
2020-03-19mtest: terminate a test via SIGTERM first then (if needed) via SIGKILLCamilo Celis Guzman
2020-03-19cmake: Add find_package COMPONETS supportDaniel Mensinger
2020-03-17envconfig: Make compiler and linker environment variables matchDylan Baker
2020-03-12docs: Update documentation for GDC linker overridingDylan Baker
2020-03-12docs: Document that ldc now supports linker overriding [skip ci]Dylan Baker
2020-03-09Merge pull request #6532 from jon-turney/languages-native-kwargJussi Pakkanen
Add add_languages(native:)
2020-03-08Merge pull request #6688 from dcbaker/emcc-linker-bugsJussi Pakkanen
Emcc linker bugs and improvments
2020-03-08qt5: Add has_tools() methodXavier Claessens
2020-03-06Simplify dependency() fallbackXavier Claessens
Now that subprojects can override the dependency name, there is no need to provide a variable name for the fallback any more.
2020-03-06Add meson.override_dependency()Xavier Claessens
Similar to meson.override_find_program() but overrides the result of the dependency() function. Also ensure that dependency() always returns the same result when looking for the same dependency, this fixes cases where parts of the project could be using a system library and other parts use the library provided by a subproject.
2020-03-04mesonbuild: Add mcompile commandDylan Baker
This is tested working with both msbuild and ninja/samu. Since our xcode support is pretty much broken I didn't bother. Fixes #6670
2020-03-04interpreter: add 'name' method to BuildTargetHolderStéphane Cerveau
As any child of BuildTargetHolder might need the name of the object, provides a method to get object name. This is useful in gst-build to display the plugin name and not the filename.
2020-03-02add -C to meson initMichael
2020-03-01Merge pull request #6692 from xclaesse/summary-warningsJussi Pakkanen
Summary improvements
2020-02-28Add release note snippetJon Turney
2020-02-27compilers/linkers: Add a representation for wasm-ldDylan Baker
Emscripten does have a stand alone linker, wasm-ld. This patch adds the linker, adds detection for the linker, and removes the IsLinkerMixin for emscripten. This is a little more correct, and makes the code a lot cleaner and more robust.
2020-02-27compilers/mixins/emscripten: Implement thread supportDylan Baker
Emscripten has pthread support (as well as C++ threads), but we don't currently implement them. This fixes that by adding the necessary code. The one thing I'm not sure about is setting the pool size. The docs suggest that you really want to do this to ensure that your code works correctly, but the number should really be configurable, not sure how to set that. Fixes #6684
2020-02-26summary: Add more info in Subprojects sectionXavier Claessens
This adds a warnings counter for subprojects that passed. This is to encourage developpers to check warnings in the logs and hopefully fix them. Otherwise they could be hidden in hundreds lines of logs. This also print the error message for subprojects that did not pass. The error message is often enough to fix the issue (e.g. missing dependency) and it's easier than searching in the logs why a subproject failed.
2020-02-26summary: Add list_sep keyword argumentXavier Claessens
This allows having lists on a single line instead of having each value aligned on a new line.
2020-02-25Typo fix. [skip ci]Jussi Pakkanen
2020-02-25Document the project policy on mixing build systems. [skip ci]Jussi Pakkanen
2020-02-23Merge pull request #6637 from ↵Jussi Pakkanen
mesonbuild/nirbheek/implement-symbolextractor-windows Implement symbolextractor on windows + some cleanups/fixes
2020-02-22ninjabackend: List PDBs in output list for targetsNirbheek Chauhan
This is more correct, and forces the target(s) to be rebuilt if the PDB files are missing. Increases the minimum required Ninja to 1.7, which is available in Ubuntu 16.04 under backports. We can't do the same for import libraries, because it is impossible for us to know at configure time whether or not an import library will be generated for a given DLL.
2020-02-20Introduce dataonly for the pkgconfig moduleRohan Garg
This allows users to disable writing out the inbuilt variables to the pkg-config file as they might actualy not be required. One reason to have this is for architecture-independent pkg-config files in projects which also have architecture-dependent outputs. For example : https://gitlab.freedesktop.org/wayland/weston/issues/269 Fixes #4011
2020-02-17minstall: Add a new option --quietNirbheek Chauhan
This is a significant speed-up on Windows because terminals are slow to print things out. Speed-up in gst-build on Windows: ``` meson install: before: 5.1 seconds after: 4.0 seconds ```
2020-02-12Add unity block size option.Jussi Pakkanen
2020-02-12Refine behaviour of add_languages() when native: is missingJon Turney
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!
2020-02-09Add add_languages(native:)Jon Turney
v2: Retain not using logical-and, to avoid short-circuiting side-effects of add_languages()
2020-02-07Merge pull request #6421 from dcbaker/zlib-system-depJussi Pakkanen
Add a "system" dependency for zlib
2020-02-06Make 'default_library' per-subproject builtin optionXavier Claessens
Currently it's just like if all builtin/base/compiler options are yielding. This patch makes possible to have non-yielding builtin options. The value in is overriden in this order: - Value from parent project - Value from subproject's default_options if set - Value from subproject() default_options if set - Value from command line if set
2020-02-05docMichael Hirsch, Ph.D
2020-02-05add get_external_property to replace get_cross_propertyMichael Hirsch, Ph.D
2020-02-05add meson.get_native_property for native filesMichael Hirsch, Ph.D
This allows Meson native-file [properties] to be used. This avoids the need to call meson from a script file or have a long command line invocation of `meson setup` The method meson.get_native_property('prop', 'fallback') is added. The native file can contain properties like ``` [properties] myprop1 = 'foo' mydir2 = 'lib/custom' ``` Then from within `meson.build` ```meson x1 = meson.get_native_property('myprop1') thedir = meson.get_native_property('mydir2', 'libs') ``` fallback values are optional
2020-02-05Merge pull request #6573 from michaelbadcrumble/add_sample_templatesJussi Pakkanen
Add new Meson sample templates