From 8cecf20404143eebf752379d97f7488afe2fd2a6 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sat, 25 Apr 2015 18:23:46 +0300 Subject: Create file objects in gtest and gmock. --- mesonlib.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mesonlib.py') diff --git a/mesonlib.py b/mesonlib.py index 313ffd68c..cae54274a 100644 --- a/mesonlib.py +++ b/mesonlib.py @@ -35,7 +35,11 @@ class File: @staticmethod def from_built_file(subdir, fname): return File(True, subdir, fname) - + + @staticmethod + def from_absolute_file(fname): + return File(False, '', fname) + def rel_to_builddir(self, build_to_src): if self.is_built: return os.path.join(self.subdir, self.fname) -- cgit v1.2.3