| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |\ \
| | |
| | | |
Accept -D for meson level options durring initial configuration
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
Since we want to make the options passed to `meson` and `meson
configure` equivalent, we need to allows pass -D<lang>_args and
-D<lang>_link_args to `meson`. This path assumes that if one is set then
the other must be, which isn't true.
|
| |\ \ \
| | | |
| | | | |
Add has_link_argument() and friends
|
| | | | |
| | | |
| | | |
| | | | |
Closes: #3335.
|
| | |/ / |
|
| |\ \ \
| |/ /
|/| | |
Implement a generic python module
|
| | | |
| | |
| | |
| | | |
With contributions from HÃ¥vard Graff
|
| | | |
| | |
| | |
| | |
| | | |
The user doesn't need to know whether or not the program was found,
especially not when it's spammed for every gnome.foo() function
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Otherwise we can't do the following workflow:
if not find_program('foo', required : false).found()
subproject('provides-foo')
endif
Where 'provides-foo' has a meson.override_find_program() on
a configure_file() or similar.
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | |
| | |
| | | |
Closes https://github.com/mesonbuild/meson/issues/2005
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
The added format argument for configure_file allows to specify the kind of
file that is treated. It defaults to 'meson', but can also have the 'cmake'
or 'cmake@' value to treat config.h.in files in the cmake format with #cmakedefine
statements.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Copy the algorithm used by autoconf.
It computes the upper and lower limits by starting at [-1,1] and
multiply by 2 at each iteration. This is even faster for small numbers
(the common case), for example it finds value 0 in just 2 compilations
where old algorithm would check for 1024, 512, ..., 0.
|
| |\ \ \
| | | |
| | | | |
new wrap-mode: forcefallback
|
| | |/ /
| | |
| | |
| | |
| | |
| | |
| | | |
This can be useful to make sure that a project builds when
its fallbacks are used on systems where external dependencies
satisfy the version requirements, or to easily hack on the sources
of a dependency for which a fallback exists.
|
| |/ /
| |
| |
| | |
The entry 'subdir_done' is now at its right place.
|
| | |
| |
| |
| |
| |
| |
| | |
Also support default_library='both' to make library() build both shared
and static libraries.
Closes #484
|
| | |
| |
| |
| |
| |
| | |
It is weird and inconsistent to have different pc file depending on
default_library value when using library() or build_target(). We should
skip dependencies only when user explicitly want shared library only.
|
| | | |
|
| | | |
|
| | | |
|
| |/
|
|
|
|
| |
A dependency declared in a subproject should be able to behave as
a pkgconfig dependency, thus it should process the wanted version
as a list.
|
| | |
|
| |\
| |
| | |
Add install_data() rename parameter
|
| | | |
|
| |/
|
|
|
| |
This is used in a number of places, and in some places it is incomplete.
Use a helper to ensure it's used properly.
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
This can help future generations avoid mistakes like this:
https://github.com/xkbcommon/libxkbcommon/commit/edb1c662394578a54b7bbed231d918925e5d8150
To avoid breaking builds, this is currently just an error. After
sufficient time has passed this can hopefully become a hard error,
similarly to the already-existing `permittedKwargs` warnings.
|
| |\ \
| | |
| | | |
Fix bug 3185, "Setting -Dc_args=... option and some others during initial run fails silently'
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Move call to print_nested_info down into do_subproject()
So we don't print info about possible subproject promotion unless subproject
failure is due to directory non-existence
And we do do that for subproject('foo'), as well as for dependency(fallback:
['foo', ...])
|
| |/ / |
|
| |\ \
| | |
| | | |
Add declare_dependency() link_whole parameter
|
| | | | |
|
| |/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Sometimes it is needed to run the current compiler with specific options
not to compile a file but rather to obtain additional info. For example,
GCC has several -print-* options to query it about the paths to
different libraries and development files. One use case is to get the
location of development files for GCC plugins, which is not easily
obtainable by other means:
gcc -print-file-name=plugin
For this purpose, it would be convenient if the compiler object returned
by meson.get_compiler(lang) could be used in run_command() directly.
This commit implements it.
Signed-off-by: Evgenii Shatokhin <eshatokhin@virtuozzo.com>
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
$ flake8 | grep -E '(E203|E221|E226|E303|W291|W293)'
./run_unittests.py:1503:5: E303 too many blank lines (2)
./mesonbuild/interpreter.py:2342:64: E226 missing whitespace around arithmetic operator
./mesonbuild/minit.py:110:17: E221 multiple spaces before operator
./mesonbuild/minit.py:131:1: W293 blank line contains whitespace
./mesonbuild/minit.py:135:19: E221 multiple spaces before operator
./mesonbuild/minit.py:155:1: W293 blank line contains whitespace
./mesonbuild/minit.py:181:1: W293 blank line contains whitespace
./mesonbuild/minit.py:183:1: W293 blank line contains whitespace
./mesonbuild/minit.py:294:47: W291 trailing whitespace
./mesonbuild/minit.py:331:47: W291 trailing whitespace
./mesonbuild/modules/unstable_icestorm.py:49:1: W293 blank line contains whitespace
./mesonbuild/modules/unstable_icestorm.py:76:31: E203 whitespace before ':'
./mesonbuild/modules/unstable_icestorm.py:82:22: E203 whitespace before ':'
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| | |
Use $project_name:$test_setup namespace scheme for test setups. This
allows one to choose from which (sub)project a test setup is taken from
should there be several sharing the same name. Defaults to the main
project. E.g. "meson test --setup subproj:valgrind".
|
| | |
| |
| |
| | |
Mention all the sought programs in the error message.
|
| |/
|
|
|
|
| |
Change the code to store D properties as plain data. Only convert them
to compiler flags in the backend. This also means we can fully parse D
arguments without needing to know the compiler being used.
|
| |\
| |
| | |
Verify that failing tests are failing with an error, not a python exception
|
| | | |
|
| | | |
|
| |\ \
| |/
|/| |
Don't fail loading subprojects if subprojects_dir is in a subdirectory
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Starting with VS 2017 if the output of any command run by VS contains
the word Error it will interpret that as a fatal error, even if the exit
error code is zero.
This messes up the unit tests on VS 2017, because we sometimes want to
deliberately ignore error messages.
Change "Error" to "Problem" to mitigate this issue until a more
permanent solution is found.
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| | |
Previously, Meson was showing a subproject being downloaded after later
claiming it doesn't exist.
This patch shows the actual error to clarify why the given subproject
can not be used.
|