aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/windows.py
AgeCommit message (Collapse)AuthorFilesLines
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-07Use a unique name for windows resource compilation custom targetJon Turney1-2/+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-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-04-15Updated all modules to work with the new API.Jussi Pakkanen1-2/+2
2018-01-12windows.compile_resources: fix compiling multiple resources within one projectAndrei Alexeyev1-7/+33
2018-01-12[windows] make compile_resources use custom targets instead of generatorsAndrei Alexeyev1-5/+10
2017-09-21flake8: Clean up complained-about unused importsLuke Shumaker1-1/+1
This also adds a "# noqa: F401" comment on an unused "import lzma", which we are using it in a try/except block that is being used to check if the lzma module is importable; of course it is unused. v2: This turned out to be a little tricky. mesonbuild/modules/__init__.py had the "unused" import: from ..interpreterbase import permittedKwargs, noKwargs However, that meant that the various modules could do things like: from . import noKwargs # "." is "mesonbuild.modules" Which breaks when you remove __init__.py's "unused" import. I could have tagged that import with "# noqa: F401", but instead I chose to have each of the module import directly from "..interpreterbase" instead of ".".
2017-09-18Gnome, pkgconfig, Qt4, Qt5 and windows modules slightly refactored.Alexis Jeandet1-4/+2
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
2017-06-26Fixed issues raised in review.Jussi Pakkanen1-1/+1
2017-06-26Fixed the remaining modules.Jussi Pakkanen1-0/+2
2017-04-08Allow specifying windres binary in cross filesDylan Baker1-3/+11
When cross compiling with mingw it's problematic to assume that there is a binary called windres, and having to set it via an environment variable seems wrong when there is a handy cross-file for just such a situation. This patch allows setting windres in the [binaries] section of the cross file. If the build is a cross build, then the windows module will check for windres being set in the cross file before checking the WINDRES environment variable or looking for a windres binary.
2017-03-28modules: Start using @SOURCE_ROOT@ and @BUILD_ROOT@Nirbheek Chauhan1-1/+7
First step in fixing https://github.com/mesonbuild/meson/issues/1419 Also works around an issue in the MinGW windres.exe that causes it to fail if any of the arguments passed to it contain a space. There seems to be no way to quote or escape the spaces in the path to make windres parse the path correctly, so we just warn about it instead. https://sourceware.org/bugzilla/show_bug.cgi?id=4933 https://github.com/mesonbuild/meson/pull/1346
2017-01-09There are two different kinds of extensions: modules that create newJussi Pakkanen1-3/+4
objects directly and snippets that just call into interpreter methods.
2017-01-09Fix Gnome module.Jussi Pakkanen1-1/+3
2016-12-31Fix space before :.Jussi Pakkanen1-1/+1
2016-12-28Add include_directories to windows.compile_resources.Elliott Sales de Andrade1-0/+10
2016-12-22Add Generator.process_files to reduce code duplication.Elliott Sales de Andrade1-3/+1
2016-12-13Use dict for self.build.compilers instead of listNirbheek Chauhan1-3/+3
Everywhere we use this object, we end up iterating over it and comparing compiler.get_language() with something. Using a dict is the obvious choice and simplifies a lot of code.
2016-07-28A few error message fixes.Jussi Pakkanen1-0/+2
2016-07-18Also read WINDRES envvar to find windres (#645)Nirbheek Chauhan1-1/+4
This is, of course, only used when building with MinGW
2016-04-01Move MesonException from coredata to mesonlib.Hemmo Nieminen1-1/+1
2016-01-16Renamed meson package to mesonbuild so that we can have a script named meson ↵Jussi Pakkanen1-0/+47
in the same toplevel dir.