vs2010: support private include dirs

pull/483/head
Nicolas Schneider 9 years ago
parent 37d7473615
commit 9c17f0cd93
  1. 4
      mesonbuild/backend/vs2010backend.py

@ -469,6 +469,10 @@ class Vs2010Backend(backends.Backend):
curdir = os.path.join(d.curdir, i) curdir = os.path.join(d.curdir, i)
inc_dirs.append(self.relpath(curdir, target.subdir)) # build dir inc_dirs.append(self.relpath(curdir, target.subdir)) # build dir
inc_dirs.append(os.path.join(proj_to_src_root, curdir)) # src dir inc_dirs.append(os.path.join(proj_to_src_root, curdir)) # src dir
for i in d.get_extra_build_dirs():
curdir = os.path.join(d.curdir, i)
inc_dirs.append(self.relpath(curdir, target.subdir)) # build dir
inc_dirs.append('%(AdditionalIncludeDirectories)') inc_dirs.append('%(AdditionalIncludeDirectories)')
ET.SubElement(clconf, 'AdditionalIncludeDirectories').text = ';'.join(inc_dirs) ET.SubElement(clconf, 'AdditionalIncludeDirectories').text = ';'.join(inc_dirs)
preproc = ET.SubElement(clconf, 'PreprocessorDefinitions') preproc = ET.SubElement(clconf, 'PreprocessorDefinitions')

Loading…
Cancel
Save