summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* tests: replace python2 framework with metalDylan Baker2021-11-181-3/+3
| | | | | The bundled python is deprecated, metal is unlikely to be deprecated any time soon, so let's use that.
* tests: remove extraframework test for pythonDylan Baker2021-11-181-3/+0
| | | | | | | This tries to link the system provided python, which is deprecated and will result in an ambiguous error like "your binary is not an allowed client of .../Library/Frameworks/python.framework/python.tbd for architecture x86_64".
* hdf5 dependency: check for alternative config-tool namesEli Schwartz2021-11-171-3/+3
| | | | | | | | | | | | | Depending on whether hdf5 is compiled with parallel support, the same config-tool program may be installed with a mysterious "p" in the name. In this case, dependency lookup will totally fail, unless of course you use the superior pkg-config interface in which case you get a predictable name. Work around this insanity by checking for both types of config-tool name. Fixes #9555
* i18n: Fix backtrace when missing input kwargXavier Claessens2021-11-161-21/+1
| | | | | | | When input kwarg is missing in i18n.merge_file() it was crashing with a backtrace because of kwargs['input'][0]. That code was useless anyway because CustomTarget now uses first output as default name which is what we need here.
* Add vala templateAlberto Fanjul2021-11-164-5/+134
|
* MSI generator fixesJussi Pakkanen2021-11-171-7/+13
|
* Support ancient (<3.4.0) gcc versionsWilliam Toohey2021-11-161-1/+4
|
* mtest: add an ASCII-only version of the spinnerPaolo Bonzini2021-11-161-4/+7
| | | | | | | | | While the horizontal line and the other pictograms in mtest have an ASCII-only version, the spinner does not. This causes mtest to fail with a UnicodeEncodeError exception on non-Unicode locales. Fixes: #9538 Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
* modules/gnome: fix warning message that will always fireDylan Baker2021-11-161-3/+2
| | | | `typed_pos_args` ensures that the length of args is always true.
* modules/gnome: Add back deprecation messageDylan Baker2021-11-161-0/+2
| | | | This looks like it was probably removed in a bad rebase
* Fix to find Python files for Windows virtualenvsMatthew Brett2021-11-151-2/+6
| | | | | | | | | Virtualenvs do not have their Python DLLs etc in the `sys.prefix` directory, but in the `sys.base_prefix` directory. This directory is the same as `sys.prefix` if not in a virtualenv, so is safe for either case: https://docs.python.org/3/library/sys.html#sys.base_prefix
* Merge pull request #9520 from dcbaker/submit/gnome-first-typed-kwargsJussi Pakkanen2021-11-154-373/+401
|\ | | | | Add typed_kwargs to some of the gnome module functions
| * modules/gnome: use typed_kwargs for gdbus_codegenDylan Baker2021-11-081-51/+70
| |
| * modules/gnome: use typed_kwargs for gtkdoc methodDylan Baker2021-11-081-113/+121
| |
| * modules/gnome: use typed_kwargs for generate_girDylan Baker2021-11-081-142/+95
| | | | | | | | | | | | | | | | This removes the `packages` keyword argument, which was added in 80d665e8decd644d737930d450f0bc66d6b5b02c, but beyond not warning about unknown arguments has never done anything, and has never been documented. The only users I could find were in our own test suite. If someone is using this we can add it back with a deprecation warning.
| * modules/gnome: use typed_kwargs for compile_resourcesDylan Baker2021-11-082-35/+74
| |
| * modules/gnome: use typed_kwargs for yelpDylan Baker2021-11-081-25/+26
| |
| * modules/gnome: use typed_kwargs for compile_schemasDylan Baker2021-11-081-9/+19
| |
| * tests/vala: remove useless keyword argumentDylan Baker2021-11-082-2/+0
| | | | | | | | | | The `packages` argument to `gnome.generate_gir` was allowed, but never did anything, so stop passing it.
* | only pass clang LTO arguments when they are neededEli Schwartz2021-11-151-2/+4
| | | | | | | | | | | | | | | | | | | | | | If the LTO threads == 0 clang will default to the same argument we manually pass, which meant we dropped support for admittedly ancient versions of clang that didn't yet add that option. Drop the extraneous argument, and add a specific error condition when too old versions of clang are detected. Fixes #9569
* | Merge pull request #9565 from bonzini/invalid-run-targetJussi Pakkanen2021-11-158-6/+47
|\ \ | | | | | | reject run_target in test or install script arguments
| * | interpreter: disallow RunTarget in meson.add_install_scriptPaolo Bonzini2021-11-154-5/+28
| | | | | | | | | | | | | | | | | | Without this patch, the name of the RunTarget is passed to the install script; for the enclosed test, meson setup (incorrectly) succeeds, but installation fails.
| * | interpreter: disallow RunTarget in testPaolo Bonzini2021-11-154-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes the following error in the testcase: File "/usr/lib/python3.10/site-packages/mesonbuild/backend/ninjabackend.py", line 548, in generate self.generate_tests() File "/usr/lib/python3.10/site-packages/mesonbuild/backend/ninjabackend.py", line 1093, in generate_tests self.serialize_tests() File "/usr/lib/python3.10/site-packages/mesonbuild/backend/backends.py", line 567, in serialize_tests self.write_test_file(datafile) File "/usr/lib/python3.10/site-packages/mesonbuild/backend/backends.py", line 943, in write_test_file self.write_test_serialisation(self.build.get_tests(), datafile) File "/usr/lib/python3.10/site-packages/mesonbuild/backend/backends.py", line 1017, in write_test_serialisation pickle.dump(self.create_test_serialisation(tests), datafile) File "/usr/lib/python3.10/site-packages/mesonbuild/backend/backends.py", line 1002, in create_test_serialisation cmd_args.append(self.construct_target_rel_path(a, t.workdir)) File "/usr/lib/python3.10/site-packages/mesonbuild/backend/backends.py", line 1021, in construct_target_rel_path return self.get_target_filename(a) File "/usr/lib/python3.10/site-packages/mesonbuild/backend/backends.py", line 253, in get_target_filename assert(isinstance(t, build.BuildTarget))
* | | dependencies/zlib: Add system zlib method for androidDudemanguy2021-11-153-5/+5
| | | | | | | | | | | | | | | The same method that the BSDs use should also work for android. Also update the tests and docs where appropriate.
* | | valac dependencies: use the canonical list of vala source namesEli Schwartz2021-11-151-1/+1
| | | | | | | | | | | | | | | | | | | | | Don't hardcode one of the three possible source types, thus ignoring the needed vapis for dependencies using .gs or .vapi sources. Fixes #9544
* | | Users.md: add mpvDudemanguy2021-11-141-0/+1
| | |
* | | interpreter: Fix a typoYasushi SHOJI2021-11-141-1/+1
| | | | | | | | | | | | | | | | | | This is a trivial typo. Fix projeccts to projects. Signed-off-by: Yasushi SHOJI <yashi@spacecubics.com>
* | | Share common code between clang tidy and formatXavier Claessens2021-11-143-89/+84
| | |
* | | Remove incorrect arguments for C2000 C++ compiler. Add correct form for ↵Nathanael Gray2021-11-141-12/+13
|/ / | | | | | | output and include args.
* | qt module: add depfile support to moc as wellEli Schwartz2021-11-131-1/+11
| | | | | | | | | | | | | | | | | | We currently enable this only for rcc (where this really really matters) but it can often matter for moc as well, and is just generally more correct. Really, this should have been added in #7451 too, but I neglected it since the module warned about inaccurate dependencies only for rcc...
* | docs: fix refman 2.0 regression in correctly describing ↵Eli Schwartz2021-11-091-2/+37
| | | | | | | | | | | | | | | | | | | | | | find_library(has_headers) All kwargs inherited from has_header need to be prefixed `header_` so we cannot just do straight inheritance. And the part of the description that highlighted the way kwargs are derived and evolved, went entirely missing. Fixes #9551
* | docs: fix some spelling typosEli Schwartz2021-11-091-1/+1
| |
* | Delete ghwt.py as it is no longer needed or even works.Jussi Pakkanen2021-11-091-132/+0
| |
* | Merge pull request #9396 from keszybz/drop-unused-and-unnecessary-printing-codeJussi Pakkanen2021-11-092-40/+41
|\ \ | | | | | | depfixer: drop unused and unnecessary printing code
| * | depfixer: always print the file name in messagesZbigniew Jędrzejewski-Szmek2021-11-091-6/+6
| | | | | | | | | | | | The messages are not useful unless we know what file they are about.
| * | depfixer: convert unused printing code to debugging functionsZbigniew Jędrzejewski-Szmek2021-11-092-31/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When installing with 'meson install --quiet' I'd get the following output: This file does not have an rpath. This file does not have a runpath. (It turns out that of the couple hundred of binaries that are installed, this message was generated for /usr/lib/systemd/boot/efi/linuxx64.elf.stub.) There doesn't seem to be any good reason for this output by default. But those functions can still be used for debugging. Under a debugger, returning the string is just as useful as printing it, but more flexible. So let's suppress printing of anything by default, but keep the extractor functions. The code was somewhat inconsistent wrt. to when .decode() was done. But it seems that we'll get can expect a decodable text string in all cases, so just call .decode() everywhere, because it's nicer to print decoded strings.
| * | depfixer: f-stringsZbigniew Jędrzejewski-Szmek2021-11-091-3/+3
| | |
* | | python: Better detect when install path is not in sys.pathXavier Claessens2021-11-091-9/+12
|/ / | | | | | | | | Using pathlib ensure propre platform specific path handling, such as case sensitivity.
* | compilers/java: Add no_warn_args and debug_args methodsDylan Baker2021-11-081-0/+8
|/
* Fix markdown formating in find_program.yamlrusty-snake2021-11-051-2/+2
| | | fixes #9528
* fix regression that broke string.format with list objectsEli Schwartz2021-11-042-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | String formatting should validly assume that printing a list means printing the list itself. Instead, something like this broke: 'one is: @0@ and two is: @1@'.format(['foo', 'bar'], ['baz']) which would evaluate as: 'one is: foo and two is: bar' or: 'the value of array option foobar is: @0@'.format(get_option('foobar')) which should evaluate with '-Dfoobar=[]' as 'the value of array option foobar is: []' But instead produced: meson.build:7:0: ERROR: Format placeholder @0@ out of range. Fixes #9530
* fix custom_target with install: true and no install_dir, crashingEli Schwartz2021-11-021-1/+1
| | | | | | | | | It's supposed to emit an error message, but instead it did a traceback. It used to be, if no install_dir was specified then it was simply not in kwargs, but due to typed_kwargs it will now be there, but not have viable contents, so the dict membership check got skipped. Fixes #9522
* wrap: Fix concurrent os.mkdir()Xavier Claessens2021-11-021-2/+1
| | | | | | Since 0.59.0 Meson downloads multiple wraps in parallel, so the packagecache directory could be created by one then the 2nd would hit error when calling os.mkdir() because it already exists.
* Add tutorial for building an SDL app from scratch.Jussi Pakkanen2021-11-029-0/+197
|
* python.dependency(): Do not stop when first candidate is not foundXavier Claessens2021-11-023-3/+12
| | | | | It has to lookup the dependency with required=False otherwise it raises an exception when the first candidate (pkg-config) failed.
* FAQ: Add entry about `add_project_link_arguments` and multiple languagesDylan Baker2021-11-021-0/+44
| | | | This seems to come up fairly often, so having an FAQ entry seems useful.
* Move language standard in separate method within vsbackendMoroz Oleg2021-11-023-9/+24
|
* Fixes .vcxproj for vs2017 vs2019Олег Мороз2021-11-021-0/+9
| | | | | | fixes #6314 in case of backend is vs2017 or vs2019 place LanguageStandard tag with stdcpp version and LanguageStandard_C tag with stdc version in .vcxproj file
* various manual conversion of percent-formatted strings to f-stringsEli Schwartz2021-11-0114-90/+80
|
* fix broken error message that printed formatter codesEli Schwartz2021-11-011-1/+1
| | | | | This was probably supposed to be percent-formatted but got typoed to a comma instead. Rewrite as an f-string.