aboutsummaryrefslogtreecommitdiff
path: root/run_tests.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2017-06-05 03:29:40 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2017-06-09 20:21:01 +0530
commit0c83f8352d288134ede8f4b8854e455007ce02b7 (patch)
tree61044ab368b3e57540f2b43fba1418f4d2652a78 /run_tests.py
parent22cfd44221ada3219d9096e15dc8b00d32e0f9f6 (diff)
downloadmeson-0c83f8352d288134ede8f4b8854e455007ce02b7.zip
meson-0c83f8352d288134ede8f4b8854e455007ce02b7.tar.gz
meson-0c83f8352d288134ede8f4b8854e455007ce02b7.tar.bz2
dependencies: Add a new class ExternalDependency
This class now consolidates a lot of the logic that each external dependency was duplicating in its class definition. All external dependencies now set: * self.version * self.compile_args and self.link_args * self.is_found (if found) * self.sources * etc And the abstract ExternalDependency class defines the methods that will fetch those properties. Some classes still override that for various reasons, but those should also be migrated to properties as far as possible. Next step is to consolidate and standardize the way in which we call 'configuration binaries' such as sdl2-config, llvm-config, pkg-config, etc. Currently each class has to duplicate code involved with that even though the format is very similar. Currently only pkg-config supports multiple version requirements, and some classes don't even properly check the version requirement. That will also become easier now.
Diffstat (limited to 'run_tests.py')
-rwxr-xr-xrun_tests.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/run_tests.py b/run_tests.py
index 00c2595..1e70784 100755
--- a/run_tests.py
+++ b/run_tests.py
@@ -121,6 +121,8 @@ def should_run_linux_cross_tests():
class FakeEnvironment(object):
def __init__(self):
self.cross_info = None
+ self.coredata = lambda: None
+ self.coredata.compilers = {}
def is_cross_build(self):
return False