John Ericson
2b22576fb6
Remove cross_info; cross file is parsed up front and discarded
6 years ago
John Ericson
dbf080afe9
Get rid of `need_cross_compiler`
...
Building a cross compiler (`build == host != target`) is not cross
compiling. As such, it doesn't make sense to handle it under
`is_cross_build`.
(N.B. Building a standard library for a cross compiler would require
cross compiling, but Meson has support to do such a thing as part of a
compiler build currently.)
6 years ago
Jussi Pakkanen
3a6e2aeed9
Can use plain strings for include_directories.
6 years ago
Jussi Pakkanen
6c76ac8017
Handle strings in cross file args. Closes #4671 .
6 years ago
guruDanny67
ee555e37c9
Avoid exception looking for python on windows if the launcher (py.exe) is not installed
6 years ago
Nicolas Schneider
f1b32aa4bb
vs: respect 'b_pch' option
...
Fixes #4681 .
6 years ago
Nicolas Schneider
211a60dc99
print 'Nothing to install.' if nothing was installed
...
Fixes #882 .
6 years ago
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.
6 years ago
Jussi Pakkanen
8c9fcb1fea
Merge pull request #4564 from mensinda/introBuildOpts
...
mintro: Introspect --buildoptions without a build directory
6 years ago
Daniel Mensinger
98115bb261
Updated doc [skip ci]
6 years ago
Nicolas Schneider
739341ec04
compile pch .h file as c++-header when building a c++ target
...
Fixes #3641 .
6 years ago
TingPing
d25146ffc0
docs: Note --warnlevel instead of --warning_level
6 years ago
TingPing
4aeba8214f
docs: Change warnlevel option to warning_level
6 years ago
Daniel Mensinger
e5099357c2
Tests and docs
6 years ago
Daniel Mensinger
64372d5cfc
Do not require build dir for introspection
6 years ago
Daniel Mensinger
c033af914a
Disable mlog and don't require build directory for environment
6 years ago
Daniel Mensinger
10ce5deb71
Introspection refactoring
6 years ago
Jussi Pakkanen
8a6c0aa13d
Better error message for rpath test.
6 years ago
Jussi Pakkanen
da5da5977a
Default libdir is "lib" when cross compiling. Closes #2535 .
6 years ago
Jussi Pakkanen
ab3aeeffe9
Print warning if using "default_options" without a "fallback".
6 years ago
Jussi Pakkanen
1fca654055
Add a clang-format target.
6 years ago
Jussi Pakkanen
3b495c397e
Merge pull request #4672 from xclaesse/find-library-headers
...
find_library: Add 'has_headers' kwarg
6 years ago
Jussi Pakkanen
3d7c32a34e
Merge pull request #4451 from jon-turney/simplify-x86-msvc-test
...
Simplify x86 msvc test
6 years ago
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.
6 years ago
Nirbheek Chauhan
c4a6b193d4
release notes: document how to pass native files [skip ci]
6 years ago
Xavier Claessens
ff2aa5a9ef
Add 'required' kwarg in header check functions
...
Closes : #3940
6 years ago
Jussi Pakkanen
4df9006ca4
Can specify a string to print when dep not found. Closes #2407 .
6 years ago
Jussi Pakkanen
7d5660dcbe
Reformat long lines.
6 years ago
lzutao
39483d29c4
docs: Fix href in Pkgconfig module [skip ci]
6 years ago
Jussi Pakkanen
c220816350
Merge pull request #4573 from jon-turney/msys2-clang
...
More clang for Windows support
6 years ago
Daniel Mensinger
6864ed60dd
mintro: Bug fix for determine_installed_path for multiple target outputs
6 years ago
John Ericson
9b13fb3672
Factor out more option iterating
6 years ago
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
6 years ago
lzutao
7838f9afc3
README: Remove deprecated Appveyor badge [skip ci]
6 years ago
Daniel Mensinger
b321c32952
Added unit test
6 years ago
Daniel Mensinger
9958262cb2
Fixed subprojects build info
6 years ago
Alistair Thomas
d54daf6e59
docs: make clearer difference between using and building libraries in Vala [skip ci]
6 years ago
Dylan Baker
c1e416ff61
dependencies/ui: Fix qmake detection when not using cross or native file
...
Fixes #4641
6 years ago
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.
6 years ago
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
6 years ago
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().
6 years ago
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
6 years ago
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']
```
6 years ago
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`.
6 years ago
Konstantin Kharlamov
f7d2e7c5d5
[skip ci] Options as `b_ndebug` can also be set in meson.build
6 years ago
Nirbheek Chauhan
d42a3ae05f
Document dependency().name() added in 0.48 [skip ci]
...
Closes https://github.com/mesonbuild/meson/issues/3351
6 years ago
Thibault Saunier
b4347ca4a9
gi: Handle new --source-top-dirs argument
...
This allows coherent relative paths in the gir "source-position"
6 years ago
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.
6 years ago
Jussi Pakkanen
cb45e9e836
Merge pull request #4616 from dcbaker/python-module-path
...
add path() method to python module
6 years ago
Luca Weiss
41bca1ede9
Fix typo in Native-environments.md [skip ci]
6 years ago