aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-07-01interpreter: Don't abort if dep isn't required and sub didn't overrideXavier Claessens3-3/+14
2020-07-01interpreter: Already configured fallback should be used for optional depXavier Claessens4-3/+16
2020-07-01wrap: Update doc to give dependency_names example firstXavier Claessens1-8/+8
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 Claessens2-3/+3
2020-07-01find_program: Fallback if a wrap file provide the program nameXavier Claessens7-25/+102
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 Claessens4-8/+34
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 Claessens9-16/+116
2020-07-01Implicit dependency fallback when a subproject wrap or dir existsXavier Claessens7-3/+35
2020-07-01Merge pull request #7231 from mensinda/cmOverrideJussi Pakkanen16-23/+470
cmake: Add more advanced subproject configuration options
2020-06-30Made Commands.md dynamically generated (#7346)TheQwertiest6-748/+548
2020-06-30Replaced `ninja` with `meson` [skip ci]TheQwertiest6-9/+9
2020-06-30Cleaned up Reference docs [skip ci]TheQwertiest1-486/+470
2020-06-30Move mesonbuild/cmake/data/run_ctgt.py to ↵georgev934-101/+105
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 Claessens7-6/+43
2020-06-29test: fix enum generation for GNOMEMike Gorse1-0/+8
Fixes: #7252
2020-06-29envconfig: Add [constants] section in machine filesXavier Claessens6-44/+193
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`TheQwertiest4-44/+291
2020-06-28Added ability to pass arguments to backend in `meson compile`TheQwertiest4-11/+96
2020-06-28syntax.md: document version_compare ambiguities [skip ci]Michael Hirsch, Ph.D1-0/+8
2020-06-28syntax.md: correct markdown heading syntax [skip ci]Michael Hirsch, Ph.D1-46/+33
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-25ci: Workaround MSYS2 update breakageNirbheek Chauhan1-1/+7
Also kill all MSYS2 processes after the first update, and constantly print update status.
2020-06-25ci: Bump the cygwin timeout to 120 minutesNirbheek Chauhan1-0/+1
The default timeout is 60 min and we're timing out, but the maximum we can have is 6 hours. Bump it to 120 min for now.
2020-06-24pkgconfig: Add missing cflags in uninstalled filesXavier Claessens4-19/+20
Fixes: #7365
2020-06-24Merge pull request #7370 from alanc/solaris-fixesJussi Pakkanen7-4/+47
Solaris fixes
2020-06-24docs: Add initial docs for the Meson CI [skip ci]Daniel Mensinger2-0/+54
2020-06-24docs: Document string path building with examplesNirbheek Chauhan1-3/+22
Also document that line continuation didn't work before 0.50. 90c9b868b20b11bb089fc5e0c634d5ed76fea0cb fixed it.
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-22Fix "test cases/common/125 object only target" on SolarisAlan Coopersmith1-0/+2
If object is not built pic, trying to link it into libshr.so fails: [6/8] Linking target libshr.so. FAILED: libshr.so gcc -o libshr.so 'shr@sha/source2.o' -Wl,--no-undefined -Wl,--as-needed -shared -fPIC -Wl,--start-group -Wl,-soname,libshr.so -Wl,--end-group Text relocation remains referenced against symbol offset in file .text (section) 0x20 shr@sha/source2.o ld: fatal: relocations remain against allocatable but non-writable sections collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2020-06-22unittests: Fix 51 ldflagdedup on SolarisAlan Coopersmith1-0/+5
If the linker doesn't support --export-dynamic, skip test to deduplicate it, since it always fails finding 0 copies instead of 1.
2020-06-22unittests: Fix test_identity_cross on SolarisAlan Coopersmith2-4/+16
Since mesonbuild/environment.py doesn't recognize Studio compilers, force use of gcc on Solaris for now. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2020-06-22test: Fix linuxlike/3 linker script on Solaris 11.4Alan Coopersmith1-0/+6
Solaris linker added support for GNU-style --version-script in Solaris 11.4, but requires adding the -z gnu-version-script-compat flag to enable it. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2020-06-22unittests: Fix test_compiler_detection on SolarisAlan Coopersmith1-0/+2
Accept Solaris linker in addition to GNU linker. Previously using the system provided gcc (which calls the Solaris linker) caused it to fail with: ====================================================================== FAIL: test_compiler_detection (__main__.AllPlatformTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "run_unittests.py", line 2525, in test_compiler_detection self.assertIsInstance(cc.linker, mesonbuild.linkers.GnuLikeDynamicLinkerMixin) AssertionError: <SolarisDynamicLinker: v9.2.0 `gcc`> is not an instance of <class 'mesonbuild.linkers.GnuLikeDynamicLinkerMixin'> 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>
2020-06-22arglist: Fix remaining mypy errors and warningsDylan Baker2-6/+5
So we can lint it with mypy
2020-06-22arglist: Split the C/C++ specifics parts into a subclass for CLikeDylan Baker2-78/+71
This means that we don't need work arounds for D-like compilers, as the special c-like hanlding wont be used for D compilers.
2020-06-22compilers: Return CompilerArgs from compiler instanceDylan Baker9-56/+63
Since the CompileArgs class already needs to know about the compiler, and we really need at least per-lanaguage if not per-compiler CompilerArgs classes, let's get the CompilerArgs instance from the compiler using a method.
2020-06-22compilers: Split CompilerArgs into a separate moduleDylan Baker9-384/+416
I've also moved this out of the compilers pacakge because we're soon going to need it in linkers, and that creates some serious spagetti
2020-06-22compilers: Add missing annotations to CompilerArgs classDylan Baker1-16/+14
2020-06-22compilers: Use enum for for deupdlication returns in CompilerArgsDylan Baker1-27/+36
2020-06-21mcompile: Add --verbose modeIgor Raits4-1/+18
Closes: https://github.com/mesonbuild/meson/issues/7352 Signed-off-by: Igor Raits <i.gnatenko.brain@gmail.com>
2020-06-21wrap: Add patch_directory supportXavier Claessens6-12/+44
Copy a tree instead of extracting an archive. Closes: #7216
2020-06-21compiler: add 'force_align_arg_pointer' function attributeTim-Philipp Müller2-43/+48
2020-06-21Merge pull request #7359 from dcbaker/submit/2020-06/sh4Jussi Pakkanen2-5/+7
Add SuperH SH-4 support
2020-06-21Update Style-guide.md [skip ci]Michael Brockus1-0/+6
2020-06-21Update Creating-releases.md [skip ci]Michael Brockus1-17/+38
2020-06-21update meson init info message. [skip ci]Michael Brockus1-2/+2