Commit Graph

6904 Commits

Author SHA1 Message Date
Jussi Pakkanen 6c76ac8017 Handle strings in cross file args. Closes #4671. 2019-01-02 22:28:22 +02:00
guruDanny67 ee555e37c9 Avoid exception looking for python on windows if the launcher (py.exe) is not installed 2019-01-02 22:18:11 +02:00
Nicolas Schneider f1b32aa4bb vs: respect 'b_pch' option
Fixes #4681.
2019-01-02 22:17:36 +02:00
Nicolas Schneider 211a60dc99 print 'Nothing to install.' if nothing was installed
Fixes #882.
2019-01-01 22:37:44 +02:00
Nicolas Schneider 31e1a31030 fail configuration if PCH files do not exist
Previously, the configuration worked fine, but the compiler raised an
error. Now, we explicitly check for the existence of files and print a
useful error message if they do not exist.
2019-01-01 19:36:37 +02:00
Jussi Pakkanen 8c9fcb1fea
Merge pull request #4564 from mensinda/introBuildOpts
mintro: Introspect --buildoptions without a build directory
2019-01-01 19:27:41 +02:00
Daniel Mensinger 98115bb261
Updated doc [skip ci] 2019-01-01 18:23:40 +01:00
Nicolas Schneider 739341ec04 compile pch .h file as c++-header when building a c++ target
Fixes #3641.
2019-01-01 18:57:43 +02:00
TingPing d25146ffc0
docs: Note --warnlevel instead of --warning_level 2018-12-31 21:46:58 -05:00
TingPing 4aeba8214f
docs: Change warnlevel option to warning_level 2018-12-31 21:34:26 -05:00
Daniel Mensinger e5099357c2
Tests and docs 2018-12-29 23:56:21 +01:00
Daniel Mensinger 64372d5cfc
Do not require build dir for introspection 2018-12-29 23:55:45 +01:00
Daniel Mensinger c033af914a
Disable mlog and don't require build directory for environment 2018-12-29 23:55:45 +01:00
Daniel Mensinger 10ce5deb71
Introspection refactoring 2018-12-29 23:55:45 +01:00
Jussi Pakkanen 8a6c0aa13d Better error message for rpath test. 2018-12-30 00:51:40 +02:00
Jussi Pakkanen da5da5977a Default libdir is "lib" when cross compiling. Closes #2535. 2018-12-30 00:51:19 +02:00
Jussi Pakkanen ab3aeeffe9 Print warning if using "default_options" without a "fallback". 2018-12-30 00:50:45 +02:00
Jussi Pakkanen 1fca654055 Add a clang-format target. 2018-12-30 00:50:00 +02:00
Jussi Pakkanen 3b495c397e
Merge pull request #4672 from xclaesse/find-library-headers
find_library: Add 'has_headers' kwarg
2018-12-29 18:57:21 +02:00
Jussi Pakkanen 3d7c32a34e
Merge pull request #4451 from jon-turney/simplify-x86-msvc-test
Simplify x86 msvc test
2018-12-29 18:43:13 +02:00
Xavier Claessens b6cede2928 find_library: Add 'has_headers' kwarg
A library without its headers is often useless, so it is common to check
them together.
2018-12-27 23:06:28 -05:00
Nirbheek Chauhan c4a6b193d4
release notes: document how to pass native files [skip ci] 2018-12-27 01:04:05 +05:30
Xavier Claessens ff2aa5a9ef Add 'required' kwarg in header check functions
Closes: #3940
2018-12-24 11:12:11 -05:00
Jussi Pakkanen 4df9006ca4 Can specify a string to print when dep not found. Closes #2407. 2018-12-22 19:00:40 +02:00
Jussi Pakkanen 7d5660dcbe Reformat long lines. 2018-12-22 19:00:40 +02:00
lzutao 39483d29c4 docs: Fix href in Pkgconfig module [skip ci] 2018-12-22 13:55:14 +02:00
Jussi Pakkanen c220816350
Merge pull request #4573 from jon-turney/msys2-clang
More clang for Windows support
2018-12-21 00:01:31 +02:00
Daniel Mensinger 6864ed60dd mintro: Bug fix for determine_installed_path for multiple target outputs 2018-12-20 23:03:55 +02:00
John Ericson 9b13fb3672 Factor out more option iterating 2018-12-20 23:01:36 +02:00
Dylan Baker f9a35e08ac msetup: Fix callig meson --wipe inside a build directory
This seems to be related to deleting the current working directory.
Simply deleting all of the trees inside the build directory instead
seems to fix it. This only appears with some combination of generated
targets, running the test case against say "1 trivial" doesn't show the
bug.

See this mesa bug: https://bugs.freedesktop.org/show_bug.cgi?id=109071
2018-12-20 13:30:30 -05:00
lzutao 7838f9afc3 README: Remove deprecated Appveyor badge [skip ci] 2018-12-20 09:16:53 -08:00
Daniel Mensinger b321c32952 Added unit test 2018-12-19 18:04:49 -05:00
Daniel Mensinger 9958262cb2 Fixed subprojects build info 2018-12-19 18:04:49 -05:00
Alistair Thomas d54daf6e59 docs: make clearer difference between using and building libraries in Vala [skip ci] 2018-12-19 23:16:59 +02:00
Dylan Baker c1e416ff61 dependencies/ui: Fix qmake detection when not using cross or native file
Fixes #4641
2018-12-19 23:15:10 +02:00
Dylan Baker d3e638fcbd dependencies/ui: Fix Qt pkg-config detection on MacOS
Since 0.46.1 pkg-config detection has been broken using the qt from homebrew,
due to a bug in homebrew (I think). Tested with qt 5.12.0 on Mojave.
2018-12-19 23:15:10 +02:00
Dylan Baker bd630fbe55 msetup: Give a nice error message if cmd_line.txt cannot be read
As would happen if someone tried to manually call meson --wipe on a
directory configured with a version < 0.49.0
2018-12-19 13:33:16 -05:00
Xavier Claessens 47b9c1a564 Allow fallback in nodownload mode
It is possible that the subproject has been downloaded already, in that
case there is no reason to not use it. If the subproject has not been
downlaoded already it will fail do_subproject().
2018-12-19 10:21:31 +02:00
Dylan Baker f126f43c4f dependencies/ui: Don't require lrelease for qt
We previously didn't require it so we shouldn't silently start doing so.

Fixes #4654
2018-12-19 10:15:17 +02:00
Dylan Baker 05fc81ac35 docs: Add warning about not using join_paths() with build targets [skip ci]
This comes up now and again when people try do do something like:

meson.build:
```meson
my_sources = ['foo.c']
subdir('subdir')
executable('foo', my_sources)
```
subdir/meson.build:
```meson
my_sources += ['bar.c']
```
2018-12-19 01:25:17 +02:00
John Ericson 4ffd009fe9 Factor out iterator over options dictionaries
Otherwise it's easy to forget one. In fact we did forget one:
`backend_options` in `validate_option_value`.
2018-12-18 20:40:24 +02:00
Konstantin Kharlamov f7d2e7c5d5 [skip ci] Options as `b_ndebug` can also be set in meson.build 2018-12-18 10:27:52 -08:00
Nirbheek Chauhan d42a3ae05f Document dependency().name() added in 0.48 [skip ci]
Closes https://github.com/mesonbuild/meson/issues/3351
2018-12-17 21:03:57 +05:30
Thibault Saunier b4347ca4a9 gi: Handle new --source-top-dirs argument
This allows coherent relative paths in the gir "source-position"
2018-12-16 21:03:58 +02:00
William A. Kennington III 61d462706a coverage: Also remove source_root prefixes
The code our projects care about verifying coverage for mostly lives in
the source_root with the exception of the generated source files in
build_root. This change cleans up the output so we don't have prefixed
paths on our source files anymore.
2018-12-16 20:24:05 +02:00
Jussi Pakkanen cb45e9e836
Merge pull request #4616 from dcbaker/python-module-path
add path() method to python module
2018-12-16 20:23:28 +02:00
Luca Weiss 41bca1ede9 Fix typo in Native-environments.md [skip ci] 2018-12-16 16:44:35 +02:00
Lzu Tao 0c33c7ca8a Add note for install_man in Reference-manual [skip ci] 2018-12-16 16:42:50 +02:00
Dylan Baker b335ca2818 compilers/icc: Add even more diag-errors to actually error on
This is a classy compiler.
2018-12-16 16:42:25 +02:00
lzutao c208e81e1a Format Compiler and linker flag table [skip ci] 2018-12-13 11:22:02 -05:00