aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2018-10-07Substitute output file then check for conflict.Christoph Behle7-5/+31
Fixes Issue #4323. The check to see if a call to configure_file() overwrites the output of a preceding call should perform the substitution for the output file before doing the check. Added tests to ensure the proper behaviour.
2018-10-06Fix a comment in "test cases/frameworks/6 gettext"Masanori Kakura1-1/+1
File "data/data3/meson.build" makes Meson create a target that contains a path separator.
2018-10-06i18n: replace path separator with @Marty E. Plummer5-1/+19
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 Pakkanen5-10/+51
2018-10-05Centralize description of build, host, and target, machinesJohn Ericson2-68/+98
Instead of just putting these together in the interpreter, put them together in `environment.py` so Meson's implementation can also better take advantage of them.
2018-10-04backends: allow running host arch binaries on compatible build machinesDylan Baker1-4/+6
Meson 0.48.0 some validation for using compiled binaries in custom targets and generators, which is nice. It didn't take into account though that as long as the OS is the same, some architectures support running a related architecture natively (x86_64 can run x86 natively, for example). Fortunately we already have a method for covering this case available through the Environment class. Fixes #4254
2018-10-04Merge pull request #4293 from marcelhollerbach/masterJussi Pakkanen2-56/+69
Performance optimize the install part generation
2018-10-04Make custom dist scripts accept arguments.Jan Tojnar5-17/+25
meson.add_dist_script, introduced in #3906, did not accept any arguments other than script name. Since all other meson.add_*_script methods do accept args, this makes the dist script accept them as well.
2018-10-04Merge pull request #4204 from xclaesse/unify-cmd-lineJussi Pakkanen12-382/+369
Use a single ArgumentParser for all subcommands
2018-10-04Document the compiler.cmd_array() methodMike Gilbert1-0/+3
2018-10-04Hide 'rewrite' and 'runpython' commands from helpXavier Claessens1-6/+22
2018-10-04Use a single ArgumentParser for all subcommandsXavier Claessens11-134/+116
This has the adventage that "meson --help" shows a list of all commands, making them discoverable. This also reduce the manual parsing of arguments to the strict minimum needed for backward compatibility.
2018-10-04Simplify run_script_command()Xavier Claessens1-64/+24
2018-10-04Move setup command handling to its own msetup.py fileXavier Claessens2-228/+255
2018-10-04Move set_meson_command() to mesonlibXavier Claessens2-16/+18
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-03Document when console: kwarg was added [skip ci]Nirbheek Chauhan1-2/+2
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 Griffis7-4/+80
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 Pakkanen2-35/+38
Xcode does not include configured files in its header search path
2018-10-02Merge pull request #4283 from dcbaker/macos-llvm-configJussi Pakkanen2-14/+72
dependencies/llvm: Make llvm-config handling more robust
2018-10-02Merge pull request #4051 from GoaLitiuM/d-debugJussi Pakkanen6-8/+147
D: Add conditional debug compilation flags
2018-10-02docs: Add note to cpu_family table about endianess [skip ci]Dylan Baker1-0/+5
Autotools will add endianess to the name of the architecture in some cases (such as ppc64le vs ppc64) meson doesn't do this. It's worth noting this in the documentation.
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-01build: generate the mappings in the TargetsMarcel Hollerbach2-28/+35
Before, the mappings has been created over all the links, while it actaully only used the Shared or Static Targets. This structure now is tree like structured and cached, thus the results can be computed a lot faster. The generator step generate_install is now for EFL from 6 sec. down to 0.3s. Which improves the overall build time from ~20 sec. to ~14 sec.
2018-10-01build: move default_install_dir to the Target classesMarcel Hollerbach2-29/+35
there is a huge amount of isinstance calls, this reduces the amount of these calls while splitting up a rather big function. It also assosiates every target type with theire default install directory.
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-01travis: install llvm on osxDylan Baker1-2/+3
It turns out we have bugs.
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 Baker2-20/+15
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-30Docs: fix 'Wrap-dependency-system-manual' to be more consistent [skip ci]Kostiantyn Ponomarenko1-11/+11
2018-09-30Fix indentation (make it uniform) in test file "14 configure file/meson.build"Guillermo Ignacio Enriquez Gutierrez1-27/+16
2018-09-28docs/Builtin-options: Clarify -Dc_args for cross compilation (#4289) [skip ci]Dylan Baker1-1/+5
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)Salamandar2-5/+8
2018-09-28Add LGTM.com code quality badgesXavier RENE-CORAIL1-0/+2
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-27docs: Document conditional debug compilation flags [skip ci]Ari Vuollet2-3/+10
2018-09-27Additional tests for D version and debug featuresGoaLitiuM2-1/+85