Commit Graph

4782 Commits

Author SHA1 Message Date
Jussi Pakkanen 8eaa0a2732 Use -MD instead of -MMD for reliability. 2017-12-18 21:19:18 +02:00
Jussi Pakkanen b1c25ccde0 Use deterministic builddir so CCache works across invocations. 2017-12-18 19:44:01 +02:00
Hemmo Nieminen d232a80e90 Allow value 'if-release' for b_ndebug project option. (#1896)
When set, NDEBUG will be automatically defined for for release builds but
not for other build types.
2017-12-17 21:06:06 +02:00
Shawn Landden 202b2fedf3 make clickable 2017-12-17 13:27:21 +02:00
snsmac 2b12d3b20f Exclude llvm/clang lib headers from test coverage
Excludes the /usr/lib/llvm-*/include/ directory from coverage.
This directory is used on Ubuntu for the libclang-dev packages
2017-12-17 13:26:40 +02:00
Dylan Baker 0bbc9df74a dependencies: Also strip git version from llvm version
If LLVM is built from a git mirror instead of from SVN it will have
"git-<very short sha>" at the end of the version. We need to remove that
so that version comparison will work correctly.

Fixes: #2786
2017-12-16 14:42:30 +02:00
Jussi Pakkanen 83fb76c9ae
Merge pull request #2781 from dcbaker/submit/config-tool-correct-name
Small cosmetic cleanups for ConfigTool dependencies and LLVM
2017-12-16 12:54:22 +02:00
Shawn Landden 44415ab61e Update Users.md
now only build system of systemd
2017-12-16 12:51:27 +02:00
Xavier Claessens 63d2f0bf07 Do not extract object for header sources
Closes #2716
2017-12-16 12:51:08 +02:00
Dylan Baker 11b62c3c51 dependencies: use mlog.bold with llvm module/component names. 2017-12-15 14:20:16 -08:00
Dylan Baker 7cd41ee8fb Use consistent mlog formatting with the ConfigTool dependency helpers
This just adds more consistent use of mlog.bold and mlog.red/green for
ConfigTool based dependencies.
2017-12-15 14:20:16 -08:00
Dylan Baker 2b2ee68f90 dependencies: Print LLVM for LLVM dependency
Instead of config-tool
2017-12-15 13:46:24 -08:00
Dylan Baker 54d0faa3dd vim: Add warning function to list of builtins 2017-12-14 23:49:45 +02:00
Jussi Pakkanen 88756bfe95 Print UTF-8 warning only when actually encountering non-ascii filenames. 2017-12-14 23:49:12 +02:00
Michael James Gratton 93c988b453 Enable re-compilation of GNOME gschema files if they have changed.
* mesonbuild/modules/gnome.py (GnomeModule.compile_schemas): Allow the
  depend_files kwarg.

* docs/markdown/Gnome-module.md: Add docs for new kwarg (and the only
  other one that is permitted).
2017-12-13 21:31:32 +02:00
Ismael González d946b03496 Use LC_ALL=C in CCompiler.get_library_dirs
Use LC_ALL=C in CCompiler.get_library_dirs to fix wrong results with non
English locales.
2017-12-13 21:30:22 +02:00
Michael James Gratton 1a50fe45e8 Add Geary to the list of users - will use meson for the next release. 2017-12-13 21:29:39 +02:00
Iñigo Martínez cc952b055a docs: Change variable in pkg-config example
The example provided for the `get_pkgconfig_variable` when using using the `define_variable` parameter is not the best example, because it is using `prefix` for both. This changes the retrieved variable for `libdir` so the efect of the variable redefinition is more noticeable.
2017-12-12 18:33:04 +00:00
Iñigo Martínez 514d21e6a4 docs: Add documentation to dependency variables
Meson is able to redefine variables when retrieving them from
 `pkg-config` dependencies. However, the documentation is missing.

This patch adds documentation for this feature.
2017-12-12 18:33:04 +00:00
Jussi Pakkanen 04d5d017c5 Fix documentation on disabler behaviour with short circuiting. 2017-12-11 22:21:39 +02:00
Ernestas Kulik 448710ba96 Fix Vala thread flag breakage (#2756) 2017-12-11 20:28:42 +02:00
Jussi Pakkanen 19cd60205d Bump version number for new development. 2017-12-10 18:50:43 +02:00
Jussi Pakkanen e674434389 Updated version number for new release. 2017-12-10 17:56:27 +02:00
Jussi Pakkanen cbefb57ffe
Merge pull request #2745 from dcbaker/submit/haiku
small fixes for haiku
2017-12-10 14:42:53 +02:00
Jussi Pakkanen 5ff9e05c8b
Merge pull request #2697 from mesonbuild/custom-target-depends-serialize
custom target: Consider all build depends while serializing
2017-12-10 14:23:31 +02:00
Nirbheek Chauhan 664771bb53 appveyor.yml: Use MSYS2-MinGW Python for tests
Fix MemoryError in python3 module:
https://ci.appveyor.com/project/jpakkane/meson/build/4334/job/aowc3iiq8yfs02bi

It's probably caused by improper mixing of MT and non-MT libraries,
but this is indicative of how people use Meson in MSYS2 anyway.
2017-12-10 13:24:47 +05:30
Nirbheek Chauhan 2c4e7ebb9b dependencies: Don't use NotImplementedError for invalid methods
Using NotImplementedError throws an ugly traceback to the user which
does not print the line number and other information making it
impossible to figure out what's causing it.

Also override it for internal dependencies because self.name is "null"
for them.
2017-12-09 22:05:05 +02:00
Nirbheek Chauhan 533e666901 dependencies: Fix detection of link args on MSYS2
The sysconfig config variables are different on MSYS2 and the paths
are also different. We now also use the full path to the import or
static library instead of using -Lfoo -lpython35 etc.

Also obey the value of the 'static' keyword argument.
2017-12-10 01:29:35 +05:30
Nirbheek Chauhan 6f42f83867 dependencies: Fix detection of Python arch on MSYS
sysconfig.get_platform() returns 'mingw' with MSYS2, so we need to
use some other method; in this case I chose to use the CC that
Python was compiled with, which is a relatively reliably indicator
unless people start using Python on Windows compiled with Clang or
something.
2017-12-10 01:29:33 +05:30
Nirbheek Chauhan 5a1d294b5e dependencies: Handle /usr/bin/env shebangs on Haiku
/usr/bin/env does not exist on Haiku since there's no /usr. The actual
location is /bin/env. Detect that case and directly use the
interpreter being passed to `env` in the shebang.

Also reorganize the Windows special cases which does the same thing.
2017-12-09 21:10:11 +05:30
Ernestas Kulik 7ae5716f67 Touch up install_dir() documentation
It no longer removes the target tree before copying files.
2017-12-09 01:52:33 +02:00
behlec 4217a9ca7e Check for more errors when executing subprocess. (#2746) 2017-12-09 01:52:13 +02:00
Jon Turney 8d795a8403 Fix typo in release note snippet for get_unquoted
Grammar is still a bit fractured, but I'm not entirely sure what it's trying to say.
2017-12-09 01:51:29 +02:00
Eric Engestrom 3d63f21b60 Fix `array` type name
c9351ce30c introduced the type as `array`,
so mintro should expose it under the same name.

(while at it, rename test 169 to be coherent)
2017-12-07 21:31:50 +02:00
behlec 5992ab1c72 Improve error handling when failing to execute program. (#2743) 2017-12-07 21:31:24 +02:00
Dylan Baker 75bc95bd66 docs: Add haiku to reference table 2017-12-07 09:35:12 -08:00
Dylan Baker b56450f9b2 tests: Add haiku to get define test 2017-12-07 09:35:12 -08:00
Dylan Baker fc547ad05e haiku: do not add pthread arguments
Haiku has pthreads, but they are part of the standard C library, and do
not need either special compiler or linker flags.
2017-12-07 09:35:12 -08:00
Jussi Pakkanen 4ae0cadb7f Renamed UserStringArrayOption to UserArrayOption for short. 2017-12-07 00:00:34 +02:00
Jussi Pakkanen c2d23dd678 Add C++17 flags to GCC and Clang. 2017-12-06 23:59:56 +02:00
Jussi Pakkanen de99b9d5b9 Silence git stdout messages. 2017-12-06 16:14:51 +02:00
Xavier Claessens e2afaf40c0 Fix duplicated test case 168 2017-12-06 14:17:49 +02:00
Jussi Pakkanen bc83c58d37
Merge pull request #2731 from mesonbuild/disabler
Created disabler object type
2017-12-05 01:10:50 +02:00
Jussi Pakkanen d3dcef7efc Added documentation for disabler objects. 2017-12-05 01:09:15 +02:00
Jon Turney 87e6201214 Document and improve not-found dependency objects
Document dependency('', required:false) usage.
Avoid emitting 'Dependency  found: NO'.
2017-12-05 01:04:57 +02:00
Jussi Pakkanen 678daad6cc Created a new disabler type. 2017-12-04 23:53:23 +02:00
Jussi Pakkanen 6d03111638 Minor fixes. 2017-12-03 23:32:48 +02:00
Joergen Ibsen 521933357d Fix path for str arguments to depend_files
Fixes #2633
2017-12-03 23:24:30 +02:00
Niklas Claesson 9884508535 Boost: Pick correct version
If many binary packages are installed, pick the one built with the correct
toolset. Fixes #2532
2017-12-03 23:21:33 +02:00
Jussi Pakkanen 112e6c1927
Merge pull request #2638 from jibsen/use-value-regex
Use regex to substitute template strings
2017-12-03 23:03:13 +02:00