aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules
AgeCommit message (Collapse)AuthorFilesLines
2018-06-18generate_gir: Add all the files provided by the CustomTargetCorentin Noël1-3/+4
2018-06-18Make depends: of windows.compile_resources() include-ableJon Turney1-0/+4
Add the output directories for any custom target in depends: to the resource compiler include path
2018-06-18Add a depends: keyword to windows.compile_resources()Jon Turney1-4/+6
Expose depends: from the custom_target this creates.
2018-06-17Merge pull request #3715 from jon-turney/duplicate-rsrc-script-nameJussi Pakkanen1-2/+4
Use a unique name for windows resource compilation custom target
2018-06-17gtkdoc: Run gtkdoc-scangobj command from build directoryXavier Claessens1-0/+2
All paths in CFLAGS are relative to build_root, so current directory must be there we invoking gtkdoc-scangobj. Closes: #3379
2018-06-08gdbus_codegen: Support --c-generate-autocleanupRobert Ancell1-2/+7
2018-06-07Use a unique name for windows resource compilation custom targetJon Turney1-2/+4
2018-06-07gdbus_codegen: Support arbitrary extra argumentsRobert Ancell1-1/+4
2018-06-06Fix issues found by flake8Xavier Claessens2-3/+0
2018-06-06Move <lang>_args to coredata.compiler_optionsXavier Claessens1-4/+4
2018-06-05FeatureNew: add two features that were just mergedNirbheek Chauhan1-1/+2
2018-06-03Have the windows.resource_compiler() preprocesor write a depfileJon Turney1-0/+5
When using binutils's windres, we can instruct it to invoke the preprocessor in such a way that it writes a depfile, so that dependencies on #included files are automatically tracked. Not implemented for MSVC tools, so skip testing it in that case.
2018-06-01Add a depend_files: keyword to windows.compile_resources()Jon Turney1-1/+3
Expose depend_files: from the custom_target this creates. This is the change suggested in #2815, with tests and documentation added. Fixes #2789 (duplicate #2830)
2018-06-01Add 0.46.0 featuresSalamandar3-2/+7
2018-06-01Add 0.45.0 featuresSalamandar1-0/+2
2018-06-01Add 0.44.0 featuresSalamandar1-0/+1
2018-06-01Add 0.42.0 featuresSalamandar3-0/+5
2018-06-01Add 0.41.0 featuresSalamandar1-1/+4
2018-06-01Add 0.40.0 featuresSalamandar2-1/+5
2018-06-01Add 0.37.0 featuresSalamandar2-2/+6
2018-05-23gnome/mkenums: allow passing generated files as templatesMathieu Duponchelle1-2/+6
2018-05-21Windows: Fix exception when windres is not foundXavier Claessens1-1/+1
If rescomp is not found its command is None and that make meson print backtrace instead of displaying the error message.
2018-05-09gdbus_codegen: Guess the output list for docbook generationNirbheek Chauhan1-1/+5
We were setting it to a file list that would always be wrong, and always out of date since it would never exist. However, the output list is not predictable. It usually has a 1-1 relationship with the input XML files, but it may not. This must be fixed later with API for users to provide the output names. See: https://github.com/mesonbuild/meson/pull/3539
2018-05-09gtkdoc: Fix typo that made xml_files an array of arraysNirbheek Chauhan1-1/+1
2018-05-06gnome.gtkdoc: Allow passing file objects as xml_filesNirbheek Chauhan1-4/+6
If we pass a source files() object, we will look for it in the build directory, which is wrong. If we pass a build files() object (from configure_file()), we will find it in the build directory, and then try to copy it on top of itself in gtkdochelper.py getting a SameFileError. Add a test for it, and also properly iterate custom target outputs when adding to content files.
2018-05-05gnome: Use the header basename for #include in mkenums_simpleNirbheek Chauhan1-1/+1
Otherwise, when you use a File target, the value will be the full path to the header from the build root, which is not what anyone wants.
2018-05-05gnome: Update minimum glib version for gdbus-codegenNirbheek Chauhan1-3/+2
The fix has landed upstream, and will be in the next glib stable release. I have verified that it fixes the problem described in #3488 and that the 'frameworks/7 gnome' test passes now.
2018-05-04gnome: Disable usage of new --body and --header argsNirbheek Chauhan1-4/+6
The new --body and --header args are broken because they do not allow the use of --output-directory to set the correct `#include "foo.h"` line in `foo.c`. The changes in the gdbus test case show this. Disabled till this can be fixed in glib. Closes https://github.com/mesonbuild/meson/issues/3488
2018-05-04Interpreter: don't flatten the arguments of various methodsMathieu Duponchelle2-1/+6
this fixes eg set_variable('foo', ['bar', 'baz']), which was previously erroring out complaining about the number of arguments. Closes #1481
2018-05-03python module: make it work with pypyMathieu Duponchelle1-4/+47
pypy installations don't usuallyy ship with pkg-config files, we thus need to replicate what their version of distutils does. In addition, we also try our best to build against other pythons that do not have pkg-config files.
2018-05-02pkgconfig: Don't expose internal libraries in .pc filesNirbheek Chauhan1-2/+2
Libraries that have been linked with link_whole: are internal implementation details and should never be exposed to the outside world in either Libs: or Libs.private: Closes https://github.com/mesonbuild/meson/issues/3509
2018-05-02Keep separator spaces in pkg-config declarations. Closes #3479.Jussi Pakkanen1-2/+4
2018-04-28Install generated gdbus header with old glib version too.Jussi Pakkanen1-1/+5
2018-04-21modules/python: add some more options around path and config_varsHavard Graff1-13/+39
What is actually defined here varies wildly on different python-versions for different platforms. On my python2.7 on Windows len(sysconfig.get_config_vars()) returns 17, whereas in my Ubuntu that number is 517! Hence it is useful to be able to check which keys are available, as well as allowing specifying a default option.
2018-04-21gnome: If pkg-config is not found, assume glib is 2.54 (#3443)Nirbheek Chauhan1-2/+7
* gnome: If pkg-config is not found, assume glib is 2.0 Checking the pkg-config file to confirm tool versions is a hack, and should eventually be replaced with checking the actual versions of the tools. * gnome: Actually assume glib version is 2.54 if not found It is actually not possible to build most projects with the GNOME module if your glib is older, particularly genmarshal and gdbus-codegen generate unusable output without newer arguments that were added for Meson.
2018-04-20gnome: gdbus-codegen add a `sources:` kwargNirbheek Chauhan1-8/+10
It accepts multiple XML files, not just one. For example, glib uses it that way.
2018-04-20regression: pkgconfig module: Fix Fix regression in Requires.private generation.Martin Hostettler1-1/+1
The fix for Requires generation in #3406 missed a second code path with the same problem. Passing a pkgconfig dependency to requires would produce Q, t, 5, C, o,r, e' instead of 'Qt5Core'. This was introduced in 8efd940.
2018-04-18gdbus_codegen: Fix install_dir parameterIñigo Martínez1-1/+1
The `install` parameter that is present in the `permittedKwargs` annotation is wrong. The correct parameter name, which is also consistent with the rest of functions in the `gnome` module, is `install_dir`.
2018-04-18Made Python module match the new init interface.Jussi Pakkanen1-4/+4
2018-04-17Merge pull request #3240 from MathieuDuponchelle/python_moduleJussi Pakkanen1-0/+433
Implement a generic python module
2018-04-16Merge pull request #3218 from mesonbuild/findoverriderJussi Pakkanen12-63/+52
Make it possible to override find_program [skip ci]
2018-04-15Merge pull request #3115 from makise-homura/e2k-lcc-supportJussi Pakkanen1-0/+7
Support lcc compiler for e2k (Elbrus) architecture
2018-04-15find_program: Don't spam when called from a moduleNirbheek Chauhan2-14/+14
The user doesn't need to know whether or not the program was found, especially not when it's spammed for every gnome.foo() function
2018-04-15Updated all modules to work with the new API.Jussi Pakkanen10-28/+28
2018-04-15Convert Gnome module to use find_program from interpreter.Jussi Pakkanen3-32/+21
2018-04-14Improve generation of pkg-config files for static only libraries.Martin Hostettler1-2/+6
Previously pkg-config files generated by the pkgconfig modules for static libraries with dependencies could only be used in a dependencies with `static: true`. This was caused by the dependencies only appearing in Libs.private even if they are needed in the default linking mode. But a user of a dependency should not have to know if the default linking mode is static or dynamic; A dependency('somelib') call should always pull in all needed pieces into the build. Now for meson build static libraries passed via `libraries` to the generate method automatically promote dependencies to public.
2018-04-14Merge pull request #2930 from inigomartinez/gdbus-targetsJussi Pakkanen1-17/+69
gnome: Split header and code targets in gdbus_codegen()
2018-04-14pkgconfig module: Fix regression that Requires.private is generated as 'Q, ↵textshell1-1/+1
t, 5, C, o, r, e' instead of Qt5Core. (#3406)
2018-04-12gdbus_codegen: Fix new generated objectsIñigo Martínez1-1/+4
The `ct` variable used in the ModuleReturnValue is created only for versions earlier than 2.55.2. However, in newer versions that variable does not exist.
2018-04-12gdbus_codegen: Fix custom target nameIñigo Martínez1-3/+4
The namebase which is used as the target name, also holds part of the file names. This used in combination generates files with wrong names.