aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2016-07-01 15:19:47 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2016-07-01 20:50:47 +0530
commit253536475171d845b5911e003ec7179893c5bf9b (patch)
tree15e3389be189d46d2b207ba241fc03d58035b740
parent4516e8a49ffff2c8781cce2de9680ed0ce2aab7d (diff)
downloadmeson-253536475171d845b5911e003ec7179893c5bf9b.zip
meson-253536475171d845b5911e003ec7179893c5bf9b.tar.gz
meson-253536475171d845b5911e003ec7179893c5bf9b.tar.bz2
vs: Explain path-conversion variables
It's not easy to understand what these variables mean and what they're used for without some comments
-rw-r--r--mesonbuild/backend/vs2010backend.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/backend/vs2010backend.py b/mesonbuild/backend/vs2010backend.py
index ed07671..c347f4c 100644
--- a/mesonbuild/backend/vs2010backend.py
+++ b/mesonbuild/backend/vs2010backend.py
@@ -480,8 +480,11 @@ class Vs2010Backend(backends.Backend):
return self.gen_run_target_vcxproj(target, ofname, guid)
else:
raise MesonException('Unknown target type for %s' % target.get_basename())
+ # Prefix to use to access the build root from the vcxproj dir
down = self.target_to_build_root(target)
+ # Prefix to use to access the source tree's root from the vcxproj dir
proj_to_src_root = os.path.join(down, self.build_to_src)
+ # Prefix to use to access the source tree's subdir from the vcxproj dir
proj_to_src_dir = os.path.join(proj_to_src_root, target.subdir)
(sources, headers, objects, languages) = self.split_sources(target.sources)
buildtype_args = compiler.get_buildtype_args(self.buildtype)