diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2015-04-25 18:23:46 +0300 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2015-04-25 18:23:46 +0300 |
| commit | 8cecf20404143eebf752379d97f7488afe2fd2a6 (patch) | |
| tree | 465a6b374615a449b7e5eb8b7bfe5330da49b19d /mesonlib.py | |
| parent | 1f602ff1551c78229e005861bfb8571da61db02a (diff) | |
| download | meson-8cecf20404143eebf752379d97f7488afe2fd2a6.tar.gz | |
Create file objects in gtest and gmock.
Diffstat (limited to 'mesonlib.py')
| -rw-r--r-- | mesonlib.py | 6 |
1 files changed, 5 insertions, 1 deletions
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) |
