summaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
* | | Merge pull request #2187 from centricular/fix-pcap-dependencyJussi Pakkanen2017-09-221-1/+1
|\ \ \ | | | | | | | | Fix pcap dependency, str.strip() now takes an argument, add cc.get_return_value()
| * | | Add a new compiler method: get_return_value()Nirbheek Chauhan2017-09-201-1/+1
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | This method accepts a single function that takes no arguments and returns a single value which can be a value that can be cast to a 64-bit signed integer, or a string, and returns that value. Mostly useful for running foolib_version() functions that return the currently-available version of libraries.
* | | Merge pull request #2357 from LukeShu/flake8Jussi Pakkanen2017-09-221-39/+40
|\ \ \ | | | | | | | | Bring into compliance with flake8
| * | | flake8: Perform suggested whitespace/formatting changesLuke Shumaker2017-09-211-39/+40
| | | | | | | | | | | | | | | | | | | | This only touches newlines, spaces, and (occaisionally) commas. Anything else is left for another commit.
* | | | Merge pull request #2326 from dcbaker/use-link-compilersJussi Pakkanen2017-09-211-1/+1
|\ \ \ \ | |/ / / |/| | | Consider compilers used in static_library parents
| * | | Fix error message for find_program if program cannot be foundDylan Baker2017-09-201-1/+1
| | |/ | |/| | | | | | | Currently this raises an exception because exename is undefined.
* | | Add cs_args as known args for csharpThibault Saunier2017-09-201-1/+1
|/ /
* | Last round with listify function refactoring.Alexis Jeandet2017-09-181-50/+20
| | | | | | | | Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
* | Merge pull request #2310 from hvenev/reconfigure-get_optionJussi Pakkanen2017-09-181-2/+7
|\ \ | | | | | | Fix get_option() for base options on reconfigure.
| * | Fix get_option() for base options on reconfigure.Hristo Venev2017-09-151-2/+7
| |/
* | d: Make feature names less verboseMatthias Klumpp2017-09-171-3/+3
| |
* | Drop feature_args call in favor of letting pkgconfig do this directlyMatthias Klumpp2017-09-121-7/+0
| |
* | d: Implement specific properties for D featuresMatthias Klumpp2017-09-121-2/+6
| |
* | d: Add easy way to use D-specific featuresMatthias Klumpp2017-09-121-4/+13
|/ | | | | | | | | Of course D compilers have different flags to set some important D-specific settings. This adds a simple method to change these flags in a compiler-agnostic way in Meson. This replaces the previous `unittest_args` method with a more generic variant.
* Fix regression in test definitionsNirbheek Chauhan2017-09-101-1/+2
| | | | Caused by #2236. Also add a test for this.
* Merge pull request #2236 from trhd/envJussi Pakkanen2017-09-061-2/+3
|\ | | | | Fix a stack trace caused by environment variables in test setups.
| * Fix a stack trace caused by environment variables in test setups.Hemmo Nieminen2017-09-011-2/+3
| | | | | | | | | | | | | | | | | | | | | | An example trace: [snip] > File "/usr/lib/python3.6/concurrent/futures/thread.py", line 55, in run > result = self.fn(*self.args, **self.kwargs) > File "/home/trhd/Projects/meson/mesonbuild/mtest.py", line 221, in run_single_test > child_env.update(self.options.global_env.get_env(child_env)) > AttributeError: 'dict' object has no attribute 'get_env'
* | Permit overriding find_program from the cross file.Jussi Pakkanen2017-09-041-9/+37
| |
* | Add Compiler.get_supported_arguments()Daniel Stone2017-08-311-0/+17
|/ | | | | | | | | | | | | Add a helper for the common pattern of: args_to_use = [] foreach arg : candidate_args if cc.has_argument(arg) args_to_use += arg endif endforeach Replaced with: args_to_use = cc.get_supported_arguments(candidate_args)
* interpreter: Make cs_args a known argumentThibault Saunier2017-08-241-0/+1
| | | | Avoiding warning about it when it is a well known one.
* Fix warning when executable(implib:) is usedJon Turney2017-08-181-3/+1
| | | | | | PR #1955 added implib to known_exe_kwargs, but since PR #2001 it needs to be in exe_kwargs as well, to avoid 'WARNING: Passed invalid keyword argument "implib"' when it is used.
* Make all functionality invokable via the main Meson binary,Jussi Pakkanen2017-08-181-15/+21
| | | | which can be a Windows .exe file.
* Merge pull request #2191 from centricular/fix-ninja-clean-target-dirJussi Pakkanen2017-08-151-2/+5
|\ | | | | Fix ninja clean in some edge cases + a bonus windows fix
| * ninja: Fix cleaning in various edge casesNirbheek Chauhan2017-08-151-2/+5
| | | | | | | | | | | | | | | | | | We need to use target aliases for reserved target names and run targets to workaround a ninja bug: https://github.com/ninja-build/ninja/issues/828 Closes https://github.com/mesonbuild/meson/issues/1644
* | Printing unknown kwarg error message no longer crashes the parser.Jussi Pakkanen2017-08-141-3/+5
|/
* Allow excluding files from `install_subdir`Elliott Sales de Andrade2017-08-061-3/+30
| | | | | | The install_subdir command now accepts a new `exclude` keyword argument that allows specified files to be excluded from the installed subdirectory.
* Add option to disable implicit include directories. Closes #2139.Jussi Pakkanen2017-08-051-0/+1
|