aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
AgeCommit message (Collapse)AuthorFilesLines
2018-12-02Add 'meson subprojects download' commandXavier Claessens1-1/+19
2018-12-02Add 'meson subprojects checkout' commandXavier Claessens1-32/+61
2018-12-02Add 'meson subprojects update' commandXavier Claessens5-8/+199
This is inspired by gst-build's git-update script.
2018-11-28Merge pull request #3061 from jon-turney/introspect-custom-target-filesJussi Pakkanen1-1/+7
Fix 'meson introspect --target-files' for a custom target
2018-11-28Use /O1 instead of /Os for MSVC as the latter is deprecated.Jussi Pakkanen1-2/+3
2018-11-27Merge pull request #4191 from trilader/feature/projectinfo-from-sourceJussi Pakkanen3-32/+141
mintro: Allow introspect --projectinfo without build directory
2018-11-27Remove linkerlike args from compile checks. Closes #4542.Jussi Pakkanen2-1/+10
2018-11-27Fixed unit test (see #4549)Daniel Mensinger1-16/+19
2018-11-26Remove name property from introspect --projectinfo as it is not usedDaniel Schulte1-3/+2
2018-11-26mintro: Allow introspect --projectinfo without build directory.Daniel Schulte1-2/+68
This variant was added to allow introspection before configuring a build directory. This is useful for IDE integration to allow displaying and/or setting options for the initial configuration of the build directory. It also allows showing basic information about the project even if it's not yet configured or configuring failed. The project 'name' field in --projectinfo is used inconsistently: For the top level project it always shows the name configured in the top level meson.build file. For subprojects it's referring to the name of the directory the subproject's meson.build is contained in. To have a consistent output and preserve the existing behavior this adds the 'descriptive_name' field which always shows the name set in the project. To be consistent the 'descriptive_name' field was also added to the --projectfiles variant that uses an already configured build. It also extends the information shown with the list of buildsystem-files. This is currently only implemented in the variant for unconfigured projects.
2018-11-26AstInterpreter: Stub out more functionsDaniel Schulte1-2/+25
This commit disables more functions inherited from InterpreterBase that we don't need for AST evaluation.
2018-11-26mintro: Split list_buildsystem_files into generation and command functionDaniel Schulte1-2/+6
2018-11-26Split AstInterpreter into base class and RewriterInterpreterDaniel Schulte2-27/+44
2018-11-26Fixed unbound cmvers variable (#4549)Daniel Mensinger1-0/+1
2018-11-24Sorted arrays alphabeticallyDaniel Mensinger2-22/+22
2018-11-24Added 'section' key to buildoptions introspectionDaniel Mensinger1-6/+31
2018-11-22Use first 7 letters of sha256 for subdirectory part of target idAleksey Filippov1-8/+28
Fixed-size hash makes paths shorter and prevents doubling of path length because of subdir usage in target id: "subdir/id" would generate "subdir/{subdir-without-slashes}@@id" target otherwise. Export construct_id_from_path() to aid tests. Add a separate unit test for this function to make sure it is not broken unexpectedly. Closes #4226.
2018-11-22dependencies/ui: Fix qt compiler detection when bindir is setDylan Baker1-1/+3
Fixes: #4527
2018-11-22Fix subproject initialization without git installed.Elliott Sales de Andrade1-2/+5
2018-11-22Remove MinimalRebuild as it is deprecated. Closes #4539.Jussi Pakkanen1-1/+0
2018-11-22CMake find_package dependency backend (#4444)Daniel Mensinger4-11/+728
2018-11-21pkgconfig: add support for pkgconfig generation for c#Marcel Hollerbach1-5/+12
this adds support for generating pkgconfig files for c#. The difference to c and cpp is that the -I flag is not known to the c# compiler, but rather the -r flag which is used to link a .dll file into the compiled library. However this opens the question of validating which pkgconfig files can be generated (depending on the language). This implements 4409.
2018-11-20minstall: Do not delete dst files when installing a directoryXavier Claessens1-3/+1
do_copyfile() already takes the decision to delete or preserve them. Also do not append a confusing '.' in log messages that finish by a file path.
2018-11-19Fix flake8 whitespace reportsJon Turney1-1/+1
$ flake8 ./mesonbuild/mtest.py:524:9: E122 continuation line missing indentation or outdented per PEP8, this line requires more indentation to distinguish it from the following line
2018-11-19Fix flake8 'imported but unused' reportsJon Turney2-2/+0
$ flake8 | grep F401 ./run_unittests.py:43:1: F401 'mesonbuild.mesonlib.is_linux' imported but unused ./mesonbuild/compilers/c.py:32:1: F401 '.compilers.CompilerType' imported but unused ./mesonbuild/compilers/cpp.py:23:1: F401 '.compilers.CompilerType' imported but unused
2018-11-19lgtm: Instantiating an exception, but not raising itJon Turney1-1/+1
Instantiating an exception, but not raising it, has no effect This alert was introduced in 92487ea 10 months ago
2018-11-19lgtm: Too few arguments for string format.Jon Turney1-1/+1
Too few arguments for string format. Format "{0} sources specified and couldn't find {1}, please check your qt{2} installation" requires at least 3, but 2 are provided. This alert was introduced in f7f439c a year ago
2018-11-19gnome.gtkdoc: Fix missing permitted `c_args` argumentIñigo Martínez1-1/+2
Although `gtkdoc` function has support for `c_args` argument[0], it produces warning messages due to missing string in the permitted arguments list. [0] https://github.com/mesonbuild/meson/pull/4192
2018-11-17Merge pull request #4359 from dcbaker/icc-fixesDylan Baker5-43/+88
ICC fixes for Linux and MacOS
2018-11-17Guard against broken lib paths returned by gcc.Jussi Pakkanen1-3/+6
2018-11-15compilers: quiet ICC messages about pchDylan Baker1-1/+1
These are useful for debugging, but not interesting for end users, where it just adds lines between ninja jobs without adding value.
2018-11-15compilers/fortran: pass -module ${path} instead of -module${path}Dylan Baker1-1/+1
ifort doesn't like the latter, and gfortran seems happy with the former. I don't have any of the other supported fortran compilers to test with.
2018-11-15ifort: ifort needs to have -lifcore like gfotran needs -lgfortranDylan Baker1-0/+3
2018-11-15compilers: Move get_allow_undefined_link_args to CompilerDylan Baker3-29/+20
This allows each implementation (gnu-like) and msvc to be implemented in their respective classes rather than through an if tree in the CCompiler class. This is cleaner abstraction and allows us to clean up the Fortran compiler, which was calling CCompiler bound methods without an instance.
2018-11-15compilers: ICC should error when an unknown __attribute__ is testedDylan Baker1-0/+1
2018-11-15compilers: Set the correct values for undefined modules on apple with iccDylan Baker1-1/+5
2018-11-15compilers: Add ICC setting for get_allow_undefined_link_argsDylan Baker1-0/+2
2018-11-15compilers: Enable PGO for ICCDylan Baker1-5/+24
ICC doesn't use the same -fprofile-generate/-fprofile-use that GCC and Clang use, instead it has -prof-gen and -prof-use. I've gone ahead and added the threadsafe option to -prof-gen, as meson currently doesn't have a way to specify that level of granularity and GCC and Clang's profiles are threadsafe.
2018-11-15fortran: ifort doesn't have -pipeDylan Baker1-0/+6
2018-11-15compilers: fix compiler.compile for Intel CompilersDylan Baker2-8/+19
has_arguments is the wrong thing to fix, since all checks that require compiler options are based on compiles, it's the right thing to modify.
2018-11-15compilers/c_function_attributes: fix for ICCDylan Baker1-4/+4
ICC doesn't like the extra set of parens, GCC 8.2.1 and Clang 6.0.1 don't have a problem with this.
2018-11-15compilers: Fix the set of features that ICC exposesDylan Baker1-1/+8
2018-11-15dependencies/misc: Add openmp 5.0 preliminary supportDylan Baker1-0/+1
ICC 19 has openmp support, but it's 5.0 preliminary (rev 1, while rev 7 is current). It passes our tests though, so lets add it. Fixes: #4491
2018-11-15hotdoc: Fix has_extensions when several extensions are passed inThibault Saunier1-1/+1
2018-11-15Merge pull request #4216 from dcbaker/wip/config-fileJussi Pakkanen12-51/+209
native file support
2018-11-15Store unexpanded library directory paths. Closes #4392.Jussi Pakkanen1-3/+16
2018-11-15Fix ProjectGuid values in VS projects.John Preston1-5/+5
2018-11-15Add 'meson.build' to VS project files.John Preston1-1/+4
2018-11-14environment: detect compilers from native filesDylan Baker1-6/+20
2018-11-14dependencies/ui: Allow qt compilers and qmake to be specified in native fileDylan Baker5-31/+62