aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules
AgeCommit message (Collapse)AuthorFilesLines
2018-11-06gnome: Require GObject-Introspection 1.58.1 for static librariesOlivier Crête1-2/+10
Introspecting non-libtool static libraries requires a gir-scanner fix which is only in 1.58.1 or later.
2018-11-05gnome: Use full path for static librariesOlivier Crête1-1/+6
Makes it a bit safer.
2018-11-05gnome: GIR works fine for static librariesOlivier Crête1-3/+5
g-ir-scanner works as well with static libraries as with dynamic
2018-11-04Use 'rc' resource compiler with clang-cl toolchainJon Turney1-1/+1
The LLVM toolchain doesn't come with a Windows resource compiler at the moment. Use 'rc' from the Windows SDK.
2018-10-29Fix merge file using an array. Closes #4424.Jussi Pakkanen1-0/+4
2018-10-24Fix flake8 whitespace reportsJon Turney1-1/+1
$ flake8 | grep -E '(E128|E203|E221|E226|E303|W291|W293)' ./mesonbuild/backend/backends.py:32:1: E303 too many blank lines (3) ./mesonbuild/modules/i18n.py:90:56: E128 continuation line under-indented for visual indent
2018-10-24module-qt: add rcc_extra_arguments to pass extra arguments to rcc (#4406)xiannox1-5/+6
2018-10-23Add 'disabler' argument to functions returning not-found objectsXavier Claessens1-1/+3
When dependency(), find_library(), find_program(), or python.find_installation() return a not-found object and disabler is true, they return a Disabler object instead.
2018-10-10gnome.compile_resources: Put dependency directories before current source dirTingPing1-2/+2
This avoids the problem of generated files with the same name as something in source existing and using the wrong file.
2018-10-08gnome: Quote arguments passed to gtkdoc-scangobjTing-Wei Lan1-4/+5
It is possible for compiler flags to include special characters, such as double quotes which are needed to define macros with -D options. Since gtkdoc-scangobj uses shlex.split to split arguments passed to --cc, --ld, --cflags, --ldflags into lists, we can safely use shlex.quote to properly quote arguments for these options.
2018-10-07Print warning when using deprecated 'python3' moduleXavier Claessens1-1/+2
2018-10-06i18n: replace path separator with @Marty E. Plummer1-1/+1
using state.subdir will cause / or \ to be inserted into the target name. Replace them with @ to future-proof it. Signed-off-by: Marty E. Plummer <hanetzer@startmail.com>
2018-10-05Fix handling generated .desktop files. Closes #4304.Jussi Pakkanen1-10/+12
2018-10-03Merge pull request #4307 from jon-turney/probe-win-rc-typeJussi Pakkanen1-19/+45
Determine the type of the Windows resource compiler by looking at its output, not its name
2018-10-02Probe Windows resource compiler typeJon Turney1-4/+22
Determine the type of the Windows resource compiler by looking at its output, not its name. Also log the name and version of the resource compiler we are using.
2018-10-01Factor out windows resource compiler determinationJon Turney1-17/+25
Factor out determination of the windows resource compiler as _find_resource_compiler(). Cache the result, so the work is only done once.
2018-09-28gnome.gtkdoc: Fix static library ldflagsIñigo Martínez1-8/+9
When passing static libraries to gtkdoc, they are also appended as shared libraries to ldflags, which makes the process to fail. This has been changed to only append shared libraries to ldflags. Fixes #3935
2018-09-28 Add support for uic_extra_arguments to qt5 (#4178)Salamandar1-4/+6
2018-09-28gnome: use target c_args/c_link_args for g-ir-scanner when cross-compilingRoss Burton1-2/+10
When cross-compiling we shouldn't be passing the native c_args/c_link_args to g-ir-scanner.
2018-09-28gnome: add missing cflags/ldflags to gtk-doc when cross-compilingRoss Burton1-0/+2
When cross-compiling the gtk-doc calls were missing the configured c_args and c_link_args.
2018-09-25Merge pull request #4214 from 3v1n0/gtk-docs-improvementsJussi Pakkanen1-3/+12
Gtk docs improvements
2018-09-25gnome: use project compiler flags in gtkdocMarco Trevisan (Treviño)1-1/+5
If add_project_arguments is used, gtkdoc will ignore it, so make sure we pick these flags for the compiler too. Fixes #2901
2018-09-23hotdoc: Add support for {Build,Custom}Target as sourcesThibault Saunier1-3/+7
2018-09-21gnome: add support for `module_version`Marco Trevisan (Treviño)1-2/+7
gtk-doc for autotools has the concept of module version, that is used to define the module install path and the devhelp2 basename. Add a `module_version` parameter to gnome.gtkdoc to replicate the same behavior. Updated the test checking that the install_dir is properly computed (if not passed), and that the .devhelp2 file has proper name. https://gitlab.gnome.org/GNOME/gtk-doc/blob/GTK_DOC_1_29/buildsystems/autotools/gtk-doc.make#L269
2018-09-18python module: Only run command once to get all infoXavier Claessens1-43/+33
2018-09-17gnome.gtkdoc: Add new c_args parameterIñigo Martínez1-1/+5
gtkdoc-scangobj also accepts compiler arguments. In the same way that include_directories includes directories, the new c_args parameter also appends compiler arguments.
2018-09-17gnome.gtkdoc: Fix dependencies compile_args in gtkdocIñigo Martínez1-0/+1
One of the gtkdoc's steps calls to gtkdoc-scangobj that also accepts compiler arguments by using the cflags option. Compiler arguments from dependencies are also appended now.
2018-09-17Fix version check when passing feature option to find_installation()Xavier Claessens1-1/+2
2018-09-16i18n: allow custom target names for merge_fileMarty E. Plummer1-1/+1
As it currently stands, if for whatever reason you have two files you want to merge with the same output name, it will fail due to multiple targets with the same name due to the target name being autogenerated from the output kwarg. Signed-off-by: Marty E. Plummer <hanetzer@startmail.com>
2018-09-16find_installation: Add support for feature option in required kwargXavier Claessens1-4/+5
Closes: #4165.
2018-09-10Improve windows resource compiler executable selectionJon Turney1-21/+35
Always honour any windres setting in cross-file (we can't be compiling with msvc, but this should apply when cross-compiling using gcc or clang) Always honour WINDRES environment variable Otherwise look for the resource compiler which is part of the same toolset as the C or C++ compiler. Add some commentary on why the conventions for compiled resource file extensions differ between RC and windres Also don't try to report non-existent path when we couldn't find the resource compiler.
2018-09-10hotdoc: Make project_version mandatory as it should always have beenThibault Saunier1-0/+1
2018-09-10hotdoc: Handle IncludeDirs to specify directoriesThibault Saunier1-2/+12
2018-09-03i18n: respect variable substitution for the target name when merging ↵Corentin Noël1-1/+13
translations Previously it wasn't possible to use twice @BASENAME@ as the targets would then be named @BASENAME@_merge
2018-09-03Qt: Allow passing dependency objects to preprocess method (#3470, #3875)Alexey Rochev1-6/+19
2018-08-31gnome: fix generate_gir when linking with libasanMathieu Duponchelle1-1/+1
The regression was introduced in my recent refactoring of that method (8377ea4). This commit simply restores the ordering of the generated scan_command, ensuring `-lasan` and other internal linker flags come before `--library` or `--program`
2018-08-29Merge pull request #4016 from thiblahute/hotdocJussi Pakkanen1-0/+386
modules: Add an 'hotdoc' module
2018-08-28docs: Use meson to build documentationThibault Saunier1-5/+1
Let's eat our own dogfood.
2018-08-28modules: Add an 'hotdoc' moduleThibault Saunier1-0/+390
hotdoc: http://github.com/hotdoc/hotdoc/
2018-08-27Remove some spurious calls to the format() functionJon Turney1-3/+3
Remove some spurious calls to the format() function, left by mistake after c2f37853
2018-08-21Merge pull request #4036 from jon-turney/fix_issue_3999Jussi Pakkanen1-12/+15
Fix compiling multiple Windows resources using pathnames with non-unique basenames
2018-08-16Use unique output for windows.compile_resources()Jon Turney1-12/+15
Use a unique output filename for windows.compile_resources() even when input basename is not unique.
2018-08-15gnome: Filter LDFLAGS passed to g-ir-scannerNirbheek Chauhan1-14/+35
g-ir-scanner is very picky about the flags that it can accept, so the build fails on macOS if you have Framework external dependencies, which add -F and -framework arguments. Also fix incorrect de-duping of -framework arguments for gtkdoc.
2018-08-15gnome: Filter CFLAGS that are passed to g-ir-scannerNirbheek Chauhan1-3/+9
g-ir-scanner barfs on any flags other than -D -I and -U
2018-08-09gnome.generate_gir: support generating gir for multiple librariesMathieu Duponchelle1-47/+72
Fixes #3688
2018-08-09gnome.generate_gir: refactoringMathieu Duponchelle1-137/+231
The method was getting too long and difficult to make sense of, this should make maintaining and updating it a bit easier.
2018-08-09Make python module more robustDavid Seifert1-15/+40
* Lookup is now performed according to the following order: 1. use `pkg-config` with `PKG_CONFIG_LIBDIR=LIBPC` from python 2. use plain `PKG_CONFIG_{LIBDIR,PATH}` from the environment 3. try to extract the information from SYSCONFIG The second step is necessary for relocated python installations and cross compilation scenarios, where the value of `LIBPC` might be wrong.
2018-07-31Merge pull request #3799 from rossburton/gtkdocJussi Pakkanen1-6/+13
scripts/gtkdochelper: add support for --run
2018-07-29gnome: Fix building gir with asan againTingPing1-1/+1
asan must be first in ldflags and this order was lost in cb36add970d448f8b4ace7e4dc6028e5441bccd7 So this is the most simple solution of just putting it first in internal_ldflags See https://github.com/mesonbuild/meson/issues/2117#issuecomment-408560838
2018-07-27python.find_installation: only try to find python with the py launcher if it ↵Christoph Reiter1-2/+5
isn't in PATH Meson tries to find the interpreter path through the "py" launcher on Windows in all cases which breaks if meson is run under MSYS2 and an official CPython is installed as well. MSYS2 Python doesn't install a py launcher which results in meson finding the system one instead even though python2/python3 is in PATH. Always check if the interpreter name is in PATH before falling back to checking the py launcher.