aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/ninjabackend.py
diff options
context:
space:
mode:
authorJeff Moguillansky <jmoguillansky@gopro.com>2021-02-04 10:07:12 -0800
committerDylan Baker <dylan@pnwbakers.com>2021-02-04 13:05:17 -0800
commit9226a92fe0111bf84bdad0964e0381c31e5a2379 (patch)
tree1d56255a86ffa6eeb3ae34de844253abdd7841f7 /mesonbuild/backend/ninjabackend.py
parent7fd69cb4c4452b0dcaad7c2bb96f1e69188865e8 (diff)
downloadmeson-9226a92fe0111bf84bdad0964e0381c31e5a2379.zip
meson-9226a92fe0111bf84bdad0964e0381c31e5a2379.tar.gz
meson-9226a92fe0111bf84bdad0964e0381c31e5a2379.tar.bz2
xcode-backend: add implicit includes
Move helper functions get_source_dir_include_args and get_build_dir_include_args to backend base class
Diffstat (limited to 'mesonbuild/backend/ninjabackend.py')
-rw-r--r--mesonbuild/backend/ninjabackend.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py
index 36f1fd2..4bf195e 100644
--- a/mesonbuild/backend/ninjabackend.py
+++ b/mesonbuild/backend/ninjabackend.py
@@ -2334,17 +2334,6 @@ https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47485'''))
self.add_build(element)
return (rel_obj, rel_src)
- def get_source_dir_include_args(self, target, compiler):
- curdir = target.get_subdir()
- tmppath = os.path.normpath(os.path.join(self.build_to_src, curdir))
- return compiler.get_include_args(tmppath, False)
-
- def get_build_dir_include_args(self, target, compiler):
- curdir = target.get_subdir()
- if curdir == '':
- curdir = '.'
- return compiler.get_include_args(curdir, False)
-
@lru_cache(maxsize=None)
def get_normpath_target(self, source) -> str:
return os.path.normpath(source)