aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
AgeCommit message (Collapse)AuthorFilesLines
2018-10-04Fixed the lack of stdout being displayed when not in capture mode for ↵dx-mon1-0/+2
meson_exe (meson --internal exe)
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-03Add custom libgcrypt dependency using libgcrypt-configPatrick Griffis2-1/+33
Fixes #3563
2018-10-03Verify library directories as either 32-bit or 64-bitBruce Richardson1-4/+47
In get_library_dirs() we are trusting the compiler to return a correct list of directories to search for libraries, based on whether or not we are compiling 64-bit or 32-bit. Unfortunately, this is often not the case, as 64-bit libraries often are returned when compiling with -m32 on a 64-bit OS. Since system directories do not contain a mix of libraries, the solution here is to check each directory, by picking a .so file in the directory and checking whether its 64-bit or 32-bit. If we can't determine if we want 32-bit or 64-bit, just skip the checks and assume the directory is good.
2018-10-02Merge pull request #4296 from nacho4d/feature/fix-xcode-configure-fileJussi Pakkanen1-8/+22
Xcode does not include configured files in its header search path
2018-10-02Merge pull request #4283 from dcbaker/macos-llvm-configJussi Pakkanen1-12/+69
dependencies/llvm: Make llvm-config handling more robust
2018-10-02Merge pull request #4051 from GoaLitiuM/d-debugJussi Pakkanen2-4/+52
D: Add conditional debug compilation flags
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-01dependencies/LLVM: rework shared link detection to be more robustDylan Baker1-14/+69
Instead of trying to hardcode which versions of which OSes are misconfiguring llvm-config, lets try to use a generic mechanism that catches most of the broken cases. If a dynamic lib is built but the tools are linked staticly (LLVM_BUILD_LLVM_DYLIB=true and LLVM_LINK_LLVM_DYLIB=false) and you don't enabled shared libs (LLVM_BUILD_SHARED_LIBS=false, which should be false), then llvm-config will mistakenly return a each static library with .(so|dll|dylib) appended, instead of -lLLVM-x.y.z. if LLVM_LINK_LLVM_DYlIB is true this works fine. There's been a bug opened in upstream since 2014 about this with no responses[1]. So, this patches looks at --shared-mode (which tells us whether llvm-config was linked staticly or dynamicly), then if the shared-mode is static it will check and see what it gets. If it gets valid results then it will go with those, if it doesn't then it will try to build a set of valid link arguments to link with libLLVM.(so|dll|dylib). [1] https://bugs.llvm.org/show_bug.cgi?id=19937
2018-10-01dependencies/llvm: Fix shared linking on osxDylan Baker1-5/+7
The versions of LLVM provided by brew have the same configuration problem that dragonflyBSD and FreeBSD do, which means that they produce wrong results for shared linking.
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-10-01msvc: Don't use /O3 with MSVCMartin Storsjö1-1/+1
MSVC doesn't support that option, and warns about ignoring an unknown option.
2018-10-01compilers/c: don't return -pthread for MacOS with any compilerDylan Baker1-12/+2
With GCC, Clang, or ICC, and for C++ Fixes #2628
2018-10-01Fix Xcode backend: Add build dir to SYSTEM_HEADER_SEARCH_PATHS so generated ↵Guillermo Ignacio Enriquez Gutierrez1-8/+22
headers can be included/imported in sources
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-28backend: Make sure to normalize paths before checking if it is a system dirThibault Saunier1-0/+1
Otherwise if we for some reason get '/usr/lib/../lib' in there we end up saying it is not a system path. And for some reason here I got: ``` $ pkg-config --libs libffi  148  ST 117   hotdoc -L/usr/lib/../lib -lffi ```
2018-09-28Merge pull request #4261 from rossburton/crossJussi Pakkanen2-3/+13
WIP RFC gnome.py cross improvements
2018-09-28dist: Warn if there are uncommitted changes in the repositoryNirbheek Chauhan1-2/+18
Closes https://github.com/mesonbuild/meson/issues/1977
2018-09-28dist: Make usage of period in messages consistentNirbheek Chauhan1-10/+10
Having a period at the end of sentences in messages is confusing when a file or path is being outputted, and is inconsistent when not. This is part of an ongoing effort to fix this inconsistency across the message outputs everywhere in Meson.
2018-09-28compilers: Do not use -pthread with clang for darwinMarvin Scholz1-0/+10
Using the -pthread argument is not needed with clang when compiling for darwin, and it results in the warning: warning: argument unused during compilation: '-pthread'
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-28gtkdochelper: show full command if it failsRoss Burton1-1/+1
Instead of showing just the command invoked, it's useful when debugging to also show all of the arguments.
2018-09-27Add conditional debug identifiers for D compilers, and enable for debug buildsGoaLitiuM2-4/+52
Also includes parsing the highest integer level for debug and version.
2018-09-25Merge pull request #4214 from 3v1n0/gtk-docs-improvementsJussi Pakkanen2-6/+26
Gtk docs improvements
2018-09-25environment: Use os.path.basename() when checking mesonlib.meson_commandMasanori Kakura1-1/+1
Without this, when one of Meson's parent directories contains "python", unexpected option "-u" will be passed to Meson.
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-24Merge pull request #4243 from nacho4d/feature/xcode-fix2Jussi Pakkanen1-38/+65
fixings for xcode backend
2018-09-25Don't add rpath linker flags when building for MinGWMartin Storsjö1-0/+2
GNU binutils ld silently ignores -rpath flags when targeting windows (and it is already commented within ninjabackend.py that rpath as concept doesn't exist on windows), and build_rpath_args in VisualStudioCCompiler also returns an empty array. Therefore skip this flag altogether. This fixes linking with lld in MinGW mode, which doesn't support the rpath flag.
2018-09-25environment: validate endian value from cross fileRoss Burton1-0/+3
When reading the endian from a cross file, validate that the value is either 'big' or 'little'.
2018-09-25Fix Xcode backend: support for precompiled headers. Only one header per ↵Guillermo Ignacio Enriquez Gutierrez1-6/+11
target is supported
2018-09-24Return code 0 when builddir is already configuredXavier Claessens1-1/+1
This is a regression in Meson 0.48.0, commit 674ae46, Meson used to exit(0) when running setup command in a builddir already configured. Changing to exit(1) breaks some build tools that does "meson builddir && ninja -C builddir". Closes #4247.
2018-09-24Partially fix targets that use precompiled header with --backend=xcode. ↵Guillermo Ignacio Enriquez Gutierrez1-0/+15
Various compiled headers are not working yet [skip ci]
2018-09-24Sort some objects before writing as Xcode expects [skip ci]Guillermo Ignacio Enriquez Gutierrez1-38/+45
2018-09-23hotdoc: Add support for {Build,Custom}Target as sourcesThibault Saunier1-3/+7
2018-09-23linker flags --as-needed and --no-undefined aren't meaningful for PEJon Turney1-2/+4
--as-needed controls ELF-specific functionality (the emission of DT_NEEDED tags) --no-undefined is effectively always on for PE/COFF, as the linkage model always requires symbols to be defined binutils ld silently ignores these flags for PE targets, but lld warns that it's ignoring them, so just don't bother emitting them for PE targets.
2018-09-23mesonbuild: Recognise ARC architectureAlexey Brodkin1-0/+1
-------------------------->8----------------------- root@nsimhs:~# python Python 2.7.15 (default, Sep 20 2018, 21:44:15) [GCC 8.2.0] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> >>> import platform >>> print platform.machine() arc -------------------------->8----------------------- Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2018-09-22Updated version number for new development.Jussi Pakkanen1-1/+1
2018-09-22Bump version number for release.Jussi Pakkanen1-1/+1
2018-09-22dependencies/llvm: Add LLVM 7Dylan Baker1-2/+3
It appears that debian has changed their naming scheme. This might require revisiting in the future to add llvm-config-7.0 if debian decides to do that.
2018-09-21Updating compilers.py to add functions - get_optimization_args, ↵Mohammed Amer Khalidi1-0/+28
get_debug_args in ARMCC and ARMCLANG classes.
2018-09-21gnome: add support for `module_version`Marco Trevisan (Treviño)2-5/+21
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-20D: Fix incorrect arch handling in D linkersGoaLitiuM2-8/+7
2018-09-20mesonlib: use collections.abc for abc typesDylan Baker1-1/+1
The use of ABC classes (like MutableSet) is deprecated currently, in python 3.8 the aliases in collections will be dropped and only the ones in collections.abc will remain. collections.abc has existed since python 3.3, so there is no backwards compatibility risk.
2018-09-19Fix setting `-Doptimization` breaking buildDavid Seifert1-2/+19
Closes #4206
2018-09-19Fix `build --backend=xcode` (#4220)Guillermo Ignacio Enriquez Gutierrez1-23/+33
* Fix exception when running * Fix xcode project typos, indentation and other minor aesthetics diffs * Use tab code \t instead of real tab
2018-09-18Drop unnecessary periods from help stringsZbigniew Jędrzejewski-Szmek1-25/+25
The ones for "Compiler options" have no dots, so this was inconsistent. Also dropping the dots makes the text fit better on narrow terminals.
2018-09-18python module: Only run command once to get all infoXavier Claessens1-43/+33
2018-09-17ICC does not support `-Og`David Seifert1-1/+1