vs: Explain path-conversion variables

It's not easy to understand what these variables mean and what they're
used for without some comments
pull/417/head
Nirbheek Chauhan 9 years ago
parent 4516e8a49f
commit 2535364751
  1. 3
      mesonbuild/backend/vs2010backend.py

@ -480,8 +480,11 @@ class Vs2010Backend(backends.Backend):
return self.gen_run_target_vcxproj(target, ofname, guid) return self.gen_run_target_vcxproj(target, ofname, guid)
else: else:
raise MesonException('Unknown target type for %s' % target.get_basename()) 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) 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) 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) proj_to_src_dir = os.path.join(proj_to_src_root, target.subdir)
(sources, headers, objects, languages) = self.split_sources(target.sources) (sources, headers, objects, languages) = self.split_sources(target.sources)
buildtype_args = compiler.get_buildtype_args(self.buildtype) buildtype_args = compiler.get_buildtype_args(self.buildtype)

Loading…
Cancel
Save