aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
AgeCommit message (Collapse)AuthorFilesLines
2020-07-21summary: Wrap lines when printing listsXavier Claessens1-5/+29
When a list_sep is provided (e.g. ', ') all items are printed on the same line, which gets ugly on very long lists (e.g. list of plugins enabled).
2020-07-20string: add substring methodStéphane Cerveau1-0/+14
This method aims to offer a simple way to 'substring' an existing string with start and end values.
2020-07-20Do not add rpaths for static libs. Closes #5191.Jussi Pakkanen1-1/+2
2020-07-19Print a warning when importing a stabilized moduleMarc-André Lureau1-7/+17
2020-07-19Stabilize keyval moduleMarc-André Lureau1-0/+0
We have experimented with the module for about a year in a qemu branch (https://wiki.qemu.org/Features/Meson), and we would like to start moving the build system to meson. For that, keyval should have the stability guarantees. Cc: Paolo Bonzini <pbonzini@redhat.com>
2020-07-19coredata: add missing EnvironmentException importJames Hilliard1-2/+3
Fixes: NameError: name 'EnvironmentException' is not defined Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
2020-07-19fix msvc not recognising b_ndebugElliot Haisley1-1/+1
fixes #7404
2020-07-19Fix a comment about cross compilation with clang-cl [skip ci]Martin Storsjö1-1/+1
This comment was added in 0fbd09609f4, where the case of a forward slash was added for the case when cross compiling.
2020-07-16mdata: remove setuptools and use mesondata insteadDaniel Mensinger2-7/+4
2020-07-16mdata: Generate mesondata.py from */data foldersDaniel Mensinger1-0/+374
2020-07-16deps: Do not deepcopy internal libraries (fixes #7457)Daniel Mensinger1-0/+10
2020-07-14wrap: Raise MesonException when git command failsXavier Claessens1-1/+4
This avoid printing long backtrace by default, the user already has the output of the git command printed for debugging purpose since we don't redirect stdout/stderr.
2020-07-14Merge pull request #7422 from alanc/solaris-fixesJussi Pakkanen3-5/+19
Solaris fixes revisited
2020-07-13qt module: rcc supports depfiles now, given a recent enough version of Qt5Eli Schwartz3-7/+10
Add depfile support to generated targets for Qt >= 5.14. Move warning into the module init itself, to check if the version is too old before issuing. Also tweak the wording itself, to advise upgrading to a suitable version of Qt5 instead of advising to wait for a Qt bug to be fixed.
2020-07-13Enable target override_options for llvm-irNirbheek Chauhan1-2/+2
This was missed somehow when the feature was added a few years ago.
2020-07-13Fix native builds on Windows ARM64 machinesNirbheek Chauhan5-24/+10
I made the mistake of always selecting the debug CRT for compiler checks on Windows 4 years ago: https://github.com/mesonbuild/meson/pull/543 https://github.com/mesonbuild/meson/pull/614 The idea was to always build the tests with debugging enabled so that the compiler doesn't optimize the tests away. But we stopped doing that a while ago, and also the debug CRT has no relation to that. We should select the CRT in the same way that we do for building targets: based on the options. On Windows ARM64, the debug CRT for ARM64 isn't always available, and the release CRT is available only after installing the runtime package. Without this, we will always try to pick the debug CRT even when --buildtype=debugoptimized or release.
2020-07-13add Nvidia HPC SDK compilersMichael Hirsch, Ph.D6-8/+74
2020-07-12Bump version number for new development. [skip ci]Jussi Pakkanen1-1/+1
2020-07-12Updated everything for release 0.55.0.0.55.0Jussi Pakkanen1-1/+1
2020-07-07SolarisDynamicLinker: report ld's version instead of gcc'sAlan Coopersmith1-1/+7
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2020-07-07SolarisDynamicLinker: Check if linker supports -z type=pieAlan Coopersmith1-1/+7
As suggested by dcbaker in https://github.com/mesonbuild/meson/pull/7370#discussion_r445145889 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2020-07-07symbolextractor: use try/finally in solaris_syms when wrapping gnu_symsAlan Coopersmith1-3/+5
As suggested by dcbaker in https://github.com/mesonbuild/meson/pull/7370#pullrequestreview-436872661 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2020-07-05Update version number for rc 2.0.55.0.rc2Jussi Pakkanen1-1/+1
2020-07-05Don't make unactionable warnings fatalNirbheek Chauhan5-7/+7
Some warnings are out of the user's control, such as the RCC QT bug, or the GNU windres bug, or our informational warning about auto-disabling of options when -Db_bitcode is enabled. Such warnings should not be fatal when --fatal-meson-warnings is passed because there's no action that the user can take to fix it. The only purpose it serves is to prevent people who use those features from using --fatal-meson-warnings.
2020-07-04wrap: Add back filename member in PackageDefinitionXavier Claessens1-0/+1
It is still used by msubprojects.py and cause issues when updating wrapdb.
2020-07-04find_program: Do not use fallback when before parsing project()Xavier Claessens2-1/+2
Mesa is doing `project(... find_program() ...)` so environment.wrap_resolver is not defined yet.
2020-07-04qt: Fix has_tools() when required=FalseXavier Claessens3-50/+36
Improve logs by making it clear when the program is found but has wrong version.
2020-07-04give user control of option skip_sanity_checkAlexander Neumann1-4/+4
2020-07-02Bump version number for RC1.0.55.0.rc1Jussi Pakkanen1-1/+1
2020-07-02environment: Correctly detect arm64 as aarch64Marvin Scholz1-0/+2
On some systems aarch64 is reported as arm64. Due to mesons mangling of everything that starts with arm, it would end up being detected as arm (which implies 32 bit) which is incorrect.
2020-07-01interpreter: Don't abort if dep isn't required and sub didn't overrideXavier Claessens1-2/+6
2020-07-01interpreter: Already configured fallback should be used for optional depXavier Claessens1-3/+5
2020-07-01wrap: Abort if multiple wraps provide the same dep or programXavier Claessens1-11/+23
2020-07-01wrap: Refactor to split wraps dictionary into 3 separate dictsXavier Claessens3-52/+59
It makes the code cleaner to have 3 separate dictionaries for packagename, dependency and programs.
2020-07-01Fix typo: coma->commaXavier Claessens1-2/+2
2020-07-01find_program: Fallback if a wrap file provide the program nameXavier Claessens2-25/+72
We don't need the legacy variable name system as for dependency() fallbacks because meson.override_find_program() is largely used already, so we can just rely on it.
2020-07-01wrap: Do not fallback implicitly on optional dependencyXavier Claessens1-2/+5
This fix the following common pattern, we don't want to implicitly fallback on the first line: foo_dep = dependency('foo', required: false) if not foo_dep.found() foo_dep = cc.find_library('foo', required : false) if not foo_dep.found() foo_dep = dependency('foo', fallback: 'foo') endif endif
2020-07-01wrap: Add special 'dependency_names' key in [provide] sectionXavier Claessens1-1/+13
The value for that key must be a coma separated list of dependecy names provided by that subproject, when no variable name is needed because the subproject uses override_dependency().
2020-07-01wrap: Add 'provide' sectionXavier Claessens2-12/+54
2020-07-01Implicit dependency fallback when a subproject wrap or dir existsXavier Claessens1-0/+8
2020-07-01Merge pull request #7231 from mensinda/cmOverrideJussi Pakkanen5-20/+223
cmake: Add more advanced subproject configuration options
2020-06-30Move mesonbuild/cmake/data/run_ctgt.py to ↔georgev933-101/+103
mesonbuild/scripts/cmake_run_ctgt.py, as well as enclose everything in a run() function so it can be called by `meson --internal cmake_run_ctgt ...`. Also, include mesonbuild/cmake/data/ in the msi package.
2020-06-30wrap: Apply patch even in VCS casesXavier Claessens1-1/+1
2020-06-29envconfig: Add [constants] section in machine filesXavier Claessens3-42/+68
Machine files already supports `+` operator as an implementation detail, since it's using eval(). Now make it an officially supported feature and add a way to define constants that are used while evaluating an entry value.
2020-06-29Added ability to specify target in `meson compile`TheQwertiest1-30/+179
2020-06-28Added ability to pass arguments to backend in `meson compile`TheQwertiest1-10/+25
2020-06-26wrap: add user agent when downloading filesEli Schwartz1-1/+3
This lets servers know when they're being used by meson. It also avoids issues where the Independent JPEG Group decided to ban the "Python-urllib" default user agent. Fixes https://github.com/mesonbuild/libjpeg/issues/9
2020-06-24pkgconfig: Add missing cflags in uninstalled filesXavier Claessens1-16/+11
Fixes: #7365
2020-06-22SolarisDynamicLinker: add get_asneeded_args() & get_pie_args()Alan Coopersmith1-0/+7
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2020-06-22symbolextractor: Add support for SolarisAlan Coopersmith1-0/+9
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>