aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
AgeCommit message (Collapse)AuthorFilesLines
2021-05-15Add gnuXX stds to Objective C.gnuobjcJussi Pakkanen1-1/+1
2021-05-13Set up VS environment automatically when run.Jussi Pakkanen1-1/+69
2021-05-13interpreter: flatten environment() initial valuesXavier Claessens1-1/+3
Turns out listify() flattens by default, but stringlistify() cannot flatten... How do I realize this only now? Fixes: #8727
2021-05-12gnome: Fix gtkdoc generationXavier Claessens5-42/+39
install_scripts used to replace @BUILD_ROOT@ and @SOURCE_ROOT@ but it was not documented and got removed in Meson 0.58.0. gnome.gtkdoc() was relying on that behaviour, but it has always been broken in the case the source or build directory contains spaces. Fix this by changing get_include_args() to substitue paths directly which will then get escaped correctly. Add a unit test that builds GObject documentation which is where this issue has been spotted. Fixes: #8744
2021-05-11Make objective C use C standard version. Closes #5495.Jussi Pakkanen2-2/+39
2021-05-10deactivate intrinsic functions if no optimizations are requestedAlexander Neumann1-1/+1
2021-05-08modules/fs: support FileOrString argumentsFlorian Fischer1-26/+46
With this change File objects created with the builtin files() function can be used with the fs submodule like normal strings. All methods that seem reasonable support FileOrSting arguments. For example fs.exists() still only takes str arguments because meson already ensures that File objects do exist when creating them with files(). Each user facing function of the fs module has an additional FeatureNew check when used with File objects. The test cases for fs are extended appropriately with tests for File objects.
2021-05-08interpreter: Skip not_found_message and include_type in cache idXavier Claessens2-1/+8
2021-05-08interpreter: 'embed' kwarg is only valid in python moduleXavier Claessens2-2/+1
2021-05-08gnome: improve dependency lookup of G-IRoss Burton1-4/+4
Cross-compiling and generating gobject-introspection isn't trivial, but with wrapper scripts that call qemu-user it's perfectly doable[1]. Currently looking up the gobject-introspection pkgconfig is done as a native dependency, which means in cross-compilation environments this is not the right paths (wrong library path, for example). Solve this by generalisiing _get_native_dep() to _get_dep(native) and asking for the host gobject-introspection instead. [1] https://git.yoctoproject.org/cgit.cgi/poky/tree/meta/recipes-gnome/gobject-introspection/
2021-05-08ninjabackend: Add pch includes as early as possible not to be overriddenMarco Trevisan (Treviño)1-4/+18
When pch are used for a target meson will make the compiler to include the pre-compiled header. While this is useful, this needs to happen before any other header has been included, otherwise: 1) we won't take advantage of pch for anything else previously included 2) gcc will just fail as it won't even try to look for a pre-compiled header in this case [1] This case can happen quite a easily when a dependency provides an included header in its cflags. As per this, split _generate_single_compile() in two phases, one is responsible of initializing the compiler data, while the other is defining commands for the context. In this way, when pch can be used, we can insert the pch inclusion earlier than any other provided by the target. [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100462
2021-05-08Fix python exception thrown for invalid resource pathNellie Zhang1-1/+1
If an invalid resource path is specified, then an uncaught python exception occurs, and a backtrace is shown. Throw a MesonException instead to produce a cleaner error message.
2021-05-03Clarify incorrect configuration format messageNellie Zhang1-3/+3
Print the path and line where the problem occurred to make it more clear what the error message means.
2021-05-02Clean up unused importsRalf Gommers2-4/+2
2021-05-02Use sanity_check_impl for objc/objppRalf Gommers3-48/+5
This gets rid of compile warnings, and simplifies the code. Note that `work_dir` in sanity_check_impl was incorrect, it was used both to prepend to file names and as cwd=work_dir argument to Popen. This is fixed here. Closes gh-7344
2021-05-02Bump version number for new development.Jussi Pakkanen1-1/+1
2021-05-02Release 0.58.0.0.58.0Jussi Pakkanen1-1/+1
2021-05-01Do not accidentally format files when only checking if they are formatted.Jussi Pakkanen1-1/+6
2021-04-29Xcode: fix project cleaning.Jussi Pakkanen1-2/+2
2021-04-26Bump version number for rc1.0.58.0.rc1Jussi Pakkanen1-1/+1
2021-04-26Update CUDA Toolkit driver version table.Olexa Bilaniuk1-0/+2
2021-04-26Merge pull request #8680 from dcbaker/submit/wrap-mconf-outputJussi Pakkanen1-8/+55
Wrap mconf output
2021-04-26Fix issue where multiple dist files were not being produced for comma ↵Tristan Partin1-2/+3
separated formats value
2021-04-26introspection: export all sources for custom targetsJason Francis1-0/+2
Also adds some test cases for source files in target_sources.
2021-04-26Add subprojects purge wrap-git coverageTristan Partin1-6/+8
2021-04-26store the list of initializes subprojects in the coredata structureDylan Baker2-3/+10
We need to konw on rconfigure which options have already bee set not just for the super project, but also for the subproject. However, using first_invocation is not sufficient, as a reconfigure could add a new subpproject that wasn't present before, and we need to initialize that project's builtins.
2021-04-26Interpreter: Fallback when required is false but forcefallback is trueXavier Claessens1-8/+8
2021-04-26Add 'subprojects purge' commandTristan Partin1-1/+63
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-25Xcode: make Swift projects work.Jussi Pakkanen3-7/+14
2021-04-25Xcode: add objective C++ flags to plain C++ because Xcode requires it.Jussi Pakkanen1-1/+3
2021-04-25Xcode: add objective C flags to plain C because Xcode requires it.Jussi Pakkanen1-2/+9
2021-04-24Xcode: fix linking to customtargetindex objects.Jussi Pakkanen1-7/+28
2021-04-23Xcode: do not reuse objs in both_libraries because Xcode fails on targets ↵Jussi Pakkanen1-1/+12
with no sources.
2021-04-23Xcode: even more command line argument expansion.Jussi Pakkanen1-1/+6
2021-04-23Xcode: Quote McQuoteface.Jussi Pakkanen1-2/+2
2021-04-23Xcode: handle CustomTargetIndexes.Jussi Pakkanen1-6/+20
2021-04-23Xcode: ever more quoting.Jussi Pakkanen1-1/+4
2021-04-23Xcode: only add source and build dirs if implicit_include_directories is set.Jussi Pakkanen1-2/+3
2021-04-22Add trailing -- parameter to git checkouts.Dan1-3/+3
2021-04-22Xcode: do not link shared modules against executables.Jussi Pakkanen1-0/+2
2021-04-22Xcode: add missing quote character.Jussi Pakkanen1-1/+1
2021-04-22Xcode: fix shell quotings.Jussi Pakkanen1-2/+2
2021-04-22Xcode: skip link language override test.Jussi Pakkanen1-1/+1
2021-04-21Xcode: put all include dirs via a property rather than a cmd line arg.Jussi Pakkanen2-8/+15
2021-04-21Xcode: add target private dir to include path.Jussi Pakkanen1-0/+1
2021-04-21Xcode: quote some entries as needed.Jussi Pakkanen1-2/+8
2021-04-20mconf: line wrap columns nicelyDylan Baker1-6/+48
I've picked 160 characters as a default because anything less than that looks terrible and has awful wrapping going on. However, this respects the $COLUNNS environment variable if set, and otherwise will query the terminal to determine the size. This is all achieved through an application of shtuil.get_terminal_size, textwrap, print formatters, and iteration. Fixes #6965
2021-04-20mconf: print core options for subprojectsDylan Baker1-2/+4
Looking in the right dictionary is pretty useful, actually.
2021-04-20mconf: cleanup up and sort importsDylan Baker1-2/+7
2021-04-20mconf: print core options for subprojectsDylan Baker1-2/+4
Looking in the right dictionary is pretty useful, actually.