aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
AgeCommit message (Collapse)AuthorFilesLines
2021-09-01add release note formally allowing run_target in an aliasEli Schwartz1-0/+20
We've now fixed it so it works, and it provides useful functionality, e.g. creating a custom target that builds multiple gettext domains in one action.
2021-09-01msvc: Assume UTF8 source by defaultXavier Claessens1-0/+16
Currently every project that uses UTF8 for its source files must add '/utf-8' argument otherwise they don't work non-English locale MSVC. Since meson.build itself is assumed to be UTF8 by default, seems better to assume it for source files by default too. For example: - https://gitlab.freedesktop.org/gstreamer/gst-build/-/blob/master/meson.build#L62 - https://gitlab.gnome.org/GNOME/glib/-/blob/main/meson.build#L29
2021-08-31i18n module: provide targets as return value for gettext()Eli Schwartz1-0/+6
Users may wish to make use of these files for their own purposes. For example, the -pot and -update-po pseudo targets could be reused in an alias_target(), and at least one person wanted to reuse the built .mo files as custom_target input. Fixes #6227
2021-08-31interpreter: Make comparisons of different types a hard errorDaniel Mensinger1-0/+5
2021-08-23interpreter: Fix dependency(..., static: true) fallbackXavier Claessens1-0/+46
It should build the fallback subprject with default_library=static and override the dependency for both static=True and static kwarg not given. Fixes: #8050.
2021-08-22Add Java moduleTristan Partin1-0/+18
The Java module will serve as a source for easing Java development within Meson. Currently it only supports generating native header files.
2021-08-20Merge pull request #9012 from dcbaker/submit/qt-custom-targetsJussi Pakkanen1-0/+13
Qt module generated sources
2021-08-20external-project: Add support for WAF build systemXavier Claessens1-0/+5
Fixes: #7638
2021-08-18docs: add snippet for qt compile_ method generated inputsDylan Baker1-0/+13
2021-08-17Add install tagsXavier Claessens1-0/+6
Fixes: #7007.
2021-08-16interpreter/compiler: remove unittest_args methodDylan Baker1-0/+4
It's not documented, and it's been marked deprecated for who knows how long.
2021-08-16Add unset_variable()Tristan Partin1-0/+16
This should be useful for helping to control variable scope within Meson. CMake has something similar for controlling scope.
2021-08-15Revert "compilers/c++: Add MSVC option to make the __cplusplus define accurate"Jussi Pakkanen1-7/+0
This reverts commit 0b97d585480e973d8b149618901f7a4ddfa1a906.
2021-08-11compilers/c++: Add MSVC option to make the __cplusplus define accurateDylan Baker1-0/+7
Otherwise it always returns the value for c++98, starting with MSVC 2017 15.7 or later. Earlier versions are not affected by this mis-feature
2021-08-08Add support for finding Javascript source libraries with Emscripten.Jussi Pakkanen1-0/+13
2021-08-04destdir: Allow relative to build directoryXavier Claessens1-0/+6
Meson already works like that, except in do_copydir() that requires absolute destdir. Better explicitly support that instead of leaving it undefined and unconsistent.
2021-07-26coredata: throw a MesonException on unknown optionsFlorian Schmaus1-0/+5
Fixes #7288.
2021-07-25Added release snippetmiebka1-0/+3
2021-07-22Merge pull request #8992 from dcbaker/submit/modernize-python-module-dependencyJussi Pakkanen1-0/+3
Cleanup the python module
2021-07-18Set up the 0.59.0 release.0.59.0Jussi Pakkanen17-211/+0
2021-07-13modules/python: Add type annotationsDylan Baker1-0/+3
There's still a number of things that don't properly type check, that's expected though as the input is often unvalidated and assumed good.
2021-07-07windows: Support wrc resource compilerConnor Abbott1-0/+7
It has a similar interface to windres, but it produces ELF instead of COFF binaries. It uses its own preprocessor which doesn't support creating depfiles, but we can convince it to use the system preprocessor instead and pass those arguments using the --preprocessor option. Together with some hacks to override the shared library/executable suffix and some wine patches [1] this is enough to compile dxvk when ripping out the hand-rolled rc support. [1] https://www.winehq.org/pipermail/wine-devel/2021-July/190100.html https://www.winehq.org/pipermail/wine-devel/2021-July/190098.html https://www.winehq.org/pipermail/wine-devel/2021-July/190099.html https://www.winehq.org/pipermail/wine-devel/2021-July/190101.html
2021-06-30interpreter: add required and disabled to importDylan Baker1-0/+5
This is useful both from the perspective of optional functionality that requires a module, and also as I continue to progress with Meson++, which will probably not implement all of the modules that Meson itself does.
2021-06-29Merge pull request #8882 from xclaesse/msubprojects-parallelJussi Pakkanen1-0/+7
msubprojects: Run action on all subprojects in parallel
2021-06-29Add feed arg to custom_target()Simon Ser1-0/+4
2021-06-25msubprojects: Run action on all subprojects in parallelXavier Claessens1-0/+7
This moves all the code into a class and call its run() method in a thread. The class queues all logs to print them at the end to avoid mixing output of multiple actions.
2021-06-23gnome: add update_desktop_database to post_install()Xavier Claessens1-0/+8
2021-06-23gnome: Set GSETTINGS_SCHEMA_DIR in devenvXavier Claessens1-0/+5
2021-06-22Add Visual Studio 2012/2013 backends (#8803)fanc9991-0/+15
* backends: Add a Visual Studio 2013 backend This is more-or-less a quick port from the VS2015 backend, except that we update the Visual Studio version strings and toolset versions accordingly. Also correct the generator string for Visual Studio 2015 in mesonbuild/cmake/common.py. * backend: Add VS2012 backend Similar to what we did for Visual Studio 2013, add a Visual Studio 2012 backend. * vs2010backend.py: Implement `link_whole:` if needed We actually need Visual Studio 2015 Update 2 to use `/WHOLEARCHIVE:`, which is what we are currently using for `link_whole:` on Visual Studio. For Visual Studio versions before that, we need to expand from the static targets that were indicated by `link_whole:`, and any of the sub-dependent targets that were pulled in via the dependent target's `link_whole:`. This wil ensure `link_whole:` would actually work in such cases. * vs2010backend.py: Handle objects from generated sources Unforunately, we can't use backends.determine_ext_objs() reliably, as the Visual Studio backends handle this differently. * vs2010backend.py: Fix generating VS2010 projects Visual Studio 2010 (at least the Express Edition) does not set the envvar %VisualStudioVersion% in its command prompt, so fix generating VS2010 projects by taking account into this, so that we can determine the location of vcvarsall.bat correctly. * whole archive test: Disable on vs2012/2013 backends too The Visual Studio 2012/2013 IDE has problems handling the items that would be generated from this test case, so skip this test when using --backend=vs[2012|2013]. This test does work for the Ninja backend when VS2012 or VS2013 is used, though. Consolidate this error message with XCode along with the vs2010 backend. * docs: Add the new vs2012 and vs2013 backends Let people know that we have backends for vs2012 and 2013. Also let people know that generating Visual Studio 2010 projects have been fixed and the pre-vs2015 backends now handle the `link_whole:` project option.
2021-06-22Merge pull request #8898 from e820/interpreter-required-argumentsDylan Baker1-0/+6
interpreter: Add checked kwarg to compiler.get_supported_arguments
2021-06-21fix: Ensure that build targets have all methods from ExternalProgramDaniel Mensinger1-0/+16
As a side-effect from #8885 `find_program()` returns now `Executable` objects when `meson.override_find_program` is called with an executable target. To resolve this conflict the missing methods from `ExternalProgram` are added to `BuildTarget`.
2021-06-21interpreter: Move argument checks from add_*_arguments to ↵Laurin-Luis Lehning2-8/+6
compiler.get_supported_arguments
2021-06-21docs: Fix snippet heading for required project argumentsLaurin-Luis Lehning1-1/+1
2021-06-21interprter: Add required kwarg to add_(project|global)_argumentsLaurin-Luis Lehning1-0/+8
To avoid manual compiler support checks add_project_arguments and add_global_arguments receive a new keyword argument to perform them automatically.
2021-06-17intl custom dependencyEli Schwartz1-0/+35
Checking how to aquire the *gettext family of symbols portably is annoyingly complex, and may come from the libc, or standalone. builtin dependency: This detects if libintl is unneeded, because the *gettext family of symbols is available in the libc. system dependency: This detects if libintl is installed as separate software, linkable via -lintl; unfortunately, GNU gettext does not ship pkg-config files for it. Fixes #3929
2021-06-15docs: update qt module documentation with types and new filesDylan Baker2-7/+29
2021-06-15modules/qt: Deprecated the *sources variadic argument to preproccessDylan Baker1-0/+16
It's confusing, and it's a duplicate of the `sources` keyword argument, which has always existed.
2021-06-08docs: fix issues with the cython docsDylan Baker1-2/+2
2021-06-08document the enhancement to the Fs module permitting File argumentsEli Schwartz1-0/+6
Add a release notes snippet too!
2021-06-07docs: Add cython docsDylan Baker1-0/+18
2021-05-19interpreter: Automatically add 'c' to languages when 'vala' is usedDylan Baker1-0/+4
This is so dumb, we can just insert C for you without you having to know that you're using C under the hood. This is nicer because: 1) Meson doesn't make the user add a language they're not explicitly using 2) If there was ever an implementaiton of Vala that didn't use C as it's assembly language, this wouldn't make any sense.
2021-05-18pkgconfig: Do not escape custom variablesXavier Claessens1-0/+23
We need to escape space in variables that gets into cflags or libs because otherwise we cannot split compiler args when paths contains spaces. But custom variables are unlikely to be path that gets used in cflags/libs, and escaping them cause regression in GStreamer that use space as separator in a list variable.
2021-05-13Set up VS environment automatically when run.Jussi Pakkanen1-0/+8
2021-05-11Make objective C use C standard version. Closes #5495.Jussi Pakkanen1-0/+6
2021-05-02Release 0.58.0.0.58.0Jussi Pakkanen26-324/+0
2021-04-26Add snippet about Xcode. [skip ci]Jussi Pakkanen1-0/+4
2021-04-26Interpreter: Fallback when required is false but forcefallback is trueXavier Claessens1-0/+21
2021-04-26Add 'subprojects purge' commandTristan Partin1-0/+18
This will help facilitate cache busting in certain situations, and replaces hand-rolled solutions of writing a length command to remove various files/folders within the subprojects directory.
2021-04-19pkgconfig: Add support for CustomTarget objects in generatorXavier Claessens1-0/+5
Fixes: #8618.
2021-04-12dependency: Add JDK system dependencyTristan Partin1-0/+16
The JDK system dependency is important for detecting JDK include paths that may be useful when developing a JNI interface.