summaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #2856 from jon-turney/warning-locationJussi Pakkanen2018-01-031-3/+3
|\ | | | | Consolidate warning location formatting
| * Wire up locations in a couple more warningsJon Turney2018-01-011-2/+2
| | | | | | | | | | These are the remaining warnings in the parser, where we have the location to hand.
| * Consolidate warning location formatting in mlog.warning()Jon Turney2018-01-011-1/+1
| | | | | | | | | | Also use .format() rather than % Also use build.environment rather than hardcoding 'meson.build'
* | Merge pull request #2838 from ↵Jussi Pakkanen2018-01-021-41/+60
|\ \ | |/ |/| | | | | mesonbuild/nirbheek/consolidate-subproject-dep-checking intrp: Consolidate subproject dep checking and logging
| * intrp: Consolidate subproject dep checking and loggingnirbheek/consolidate-subproject-dep-checkingNirbheek Chauhan2018-01-011-41/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a dep is not found on the system and a fallback is specified, we have two cases: 1. Look for the dependency in a pre-initialized subproject 2. Initialize the subproject and look for the dependency Both these require version comparing, ensuring the fetched variable is a dependency, and printing a success message, erroring out, etc. Now we share the relevant code instead of duplicating it. It already diverged, so this is a good thing. As a side-effect, we now log fallback dependencies in the same format as system dependencies: Dependency libva found: YES Dependency libva found: YES (cached) Dependency glib-2.0 from subproject subprojects/glib found: YES Dependency glib-2.0 from subproject subprojects/glib found: YES (cached)
* | Append warning location to warning output by warning()Jon Turney2017-12-301-1/+1
|/
* Add missing spaceKarol Szuster2017-12-271-1/+1
|
* Merge pull request #2334 from mesonbuild/promotedepJussi Pakkanen2017-12-261-0/+23
|\ | | | | Add functionality to promote nested dependencies to top level.
| * Print instructions on how to promote subsubprojects.Jussi Pakkanen2017-12-171-0/+23
| |
* | Merge pull request #2817 from jon-turney/masterJussi Pakkanen2017-12-261-1/+10
|\ \ | | | | | | Update prefix-dependent defaults when project(default_options:) changes prefix
| * | Update prefix-dependent defaults when project(default_options:) changes prefixJon Turney2017-12-211-1/+10
| | | | | | | | | | | | Fixes #2811
* | | Print 'cached' if dependency is found in cacheNiklas Claesson2017-12-221-0/+5
| | |
* | | subproject handling: add fixNiklas Claesson2017-12-221-6/+16
|/ /
* | Merge pull request #2791 from behlec/compiler-versionJussi Pakkanen2017-12-201-1/+5
|\ \ | |/ |/| Add more version information to compiler
| * Fix flake8 issues.Christoph Behle2017-12-161-4/+4
| |
| * More version information for compilers.Christoph Behle2017-12-161-1/+5
| | | | | | | | | | | | | | | | See issue #2762 Adds full_version to class Compiler. If set full_version will be printed additionally. Added support for CCompiler and CPPCompiler Added support for gcc/g++, clang/clang++, icc.
* | Print UTF-8 warning only when actually encountering non-ascii filenames.Jussi Pakkanen2017-12-141-0/+2
|/
* Merge pull request #2731 from mesonbuild/disablerJussi Pakkanen2017-12-051-1/+7
|\ | | | | Created disabler object type
| * Created a new disabler type.Jussi Pakkanen2017-12-041-1/+7
| |
* | Document and improve not-found dependency objectsJon Turney2017-12-051-0/+6
| | | | | | | | | | Document dependency('', required:false) usage. Avoid emitting 'Dependency found: NO'.
* | Merge pull request #2663 from inigomartinez/pkg-config-define-variableJussi Pakkanen2017-12-031-1/+1
|\ \ | | | | | | dependencies: Allow pkg-config to define variables
| * | dependencies: Allow pkg-config to define variablesIñigo Martínez2017-11-201-1/+1
| | | | | | | | | | | | | | | | | | pkg-config enables to define variables by using the define-variable option. This allows some packages to redefine relative paths, so files can be installed in the same relative paths but under prefix.
* | | Fix string format recursive replaceJoergen Ibsen2017-12-031-3/+10
| |/ |/| | | | | Also error on placeholder index out of range.
* | Don't warn for optional_modulesDylan Baker2017-11-281-1/+1
| | | | | | | | | | LLVM can have optional modules, modules that will make the code faster but are not required.
* | Merge pull request #2512 from dcbaker/wip/config-tool-variablesJussi Pakkanen2017-11-281-0/+10
|\ \ | | | | | | Add method to get values from config tool based dependency
| * | Add a configtool_variable method to dependencyDylan Baker2017-11-231-0/+10
| |/ | | | | | | | | This mirrors the get_pkgconfig_variable but for config tool based dependencies.
* | Add if_found kwarg to subdir().Jussi Pakkanen2017-11-271-1/+7
|/
* Check keyword arguments for dependencyChristoph Behle2017-11-191-0/+2
| | | | | | Check if the keyword arguments given to dependency are permitted, as is done with other functions already. The list of permitted keyword arguments is taken from the documentation.
* Merge pull request #2000 from t-chaik/tchaik/wip/get-unquotedJussi Pakkanen2017-11-131-0/+15
|\ | | | | config data: add .get_unquoted() convenience method to get quoted string unquoted
| * get-unquoted: Fix indentation and remove useless arithmeticMartin Blanchard2017-09-151-1/+1
| |
| * get-unquoted: Implement a get_unquoted() method for ConfigurationDataMartin Blanchard2017-09-151-0/+15
| |
* | Interpreter: ensure build_def_files defined before parse_project()Dylan Baker2017-11-101-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mesa has 4 build systems currently, set our version in a file called VERSION, and read that in to each build system to simplify the release process. For meson this is accomplished by using run_command within the project() function declaration itself, and with meson <= 0.43.0 this works fine. Commit 1b0048a7022a89f461cf4d01e7cdbf995bab70f5 makes scripts that are run through run_command a rebuild dependency, but the attribute used to store that information is set after the project() command is processed. This breaks mesa. The solution is to set that list before calling parse_project. Fixes #2597
* | fix include_directories handling in subprojects for compiler tests.Philipp Ittershagen2017-11-081-1/+2
| |
* | interpreter: Add warning functionPaulo Antonio Alvarez2017-10-311-2/+12
| |
* | Merge pull request #2551 from mesonbuild/fix2481Jussi Pakkanen2017-10-311-6/+15
|\ \ | | | | | | Evaluate subproject directory name correctly
| * | Evaluate subproject path correctly. Closes #2481.Jussi Pakkanen2017-10-291-6/+15
| | |
* | | namespace run_targets by subprojectMartin Kelly2017-10-311-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, run_target does not get namespaced for each subproject, unlike executable and others. This means that two subprojects sharing the same run_target name cause meson to crash. Fix this by moving the subproject namespacing logic from the BuildTarget class to the Target class.
* | | run_command: add command and files as build dependenciesScott D Phillips2017-10-291-0/+11
|/ /
* | Check that link_with arguments in declare_dependency are not external ↵Jussi Pakkanen2017-10-291-0/+4
| | | | | | | | dependencies.
* | Because people are very creative in working around limitations based on good ↵Jussi Pakkanen2017-10-241-1/+6
| | | | | | | | faith.
* | Do not allow escaping the subprojects directory.Narendra Vardi2017-10-191-0/+2
| | | | | | | | Fixes #2306
* | fix all subproject using wrap-file brokenliugang2017-10-141-2/+4
| | | | | | | | | | | | | | | | | | | | | | subproject using wrap-file is broken since commit (68bd64c Prevent projects from directly grabbing files from other subprojects. ) subproject with wrap-file usually have version number after name - **sproj_name** is `zlib-1.2.8` according to `directory = zlib-1.2.8` of zlib.wrap - but **self.subproject** `zlib`
* | Prevent projects from directly grabbing files from other subprojects.Jussi Pakkanen2017-10-081-0/+35
| |
* | Use listify and extract_as_list everywhereNirbheek Chauhan2017-10-011-32/+17
| | | | | | | | | | | | They now flatten by default and unhold objects if required Includes unit tests.
* | interpreter: Add a new ObjectHolder classNirbheek Chauhan2017-10-011-63/+72
| | | | | | | | Sets the held_object property and also implements a readable repr()
* | Prevent projects from grabbing other projects' options.Jussi Pakkanen2017-10-011-0/+3
| |
* | Implement capture for generatorsNiklas Claesson2017-09-291-1/+1
| |
* | Allow CustomTarget's to be indexedDylan Baker2017-09-271-1/+15
| | | | | | | | | | | | | | | | | | | | | | This allows a CustomTarget to be indexed, and the resulting indexed value (a CustomTargetIndex type), to be used as a source in other targets. This will confer a dependency on the original target, but only inserts the source file returning by index the original target's outputs. This can allow a CustomTarget that creates both a header and a code file to have it's outputs split, for example. Fixes #1470
* | Merge pull request #2348 from centricular/configure-file-infinite-loopJussi Pakkanen2017-09-261-12/+16
|\ \ | | | | | | configure_file: Fix infinite loop in some cases
| * | configure_file: Fix infinite loop in some casesNirbheek Chauhan2017-09-261-12/+16
| | | | | | | | | | | | | | | | | | | | | | | | We were adding built files to the list of source files to check for regen. We were also not adding sources files to regen when `command:` was used. Fixes #1865