Some vs2010 fixes.

This commit is contained in:
Jussi Pakkanen 2015-04-22 16:57:52 +03:00
parent b233720a08
commit 2ac6c9cbcc
1 changed files with 5 additions and 0 deletions

View File

@ -16,6 +16,7 @@ import os, sys
import backends, build
import xml.etree.ElementTree as ET
import xml.dom.minidom
from coredata import MesonException
class Vs2010Backend(backends.Backend):
def __init__(self, build, interp):
@ -221,6 +222,10 @@ class Vs2010Backend(backends.Backend):
opt = ET.SubElement(clconf, 'Optimization')
opt.text = 'disabled'
inc_dirs = [proj_to_src_dir, self.get_target_private_dir(target)]
cur_dir = target.subdir
if cur_dir == '':
cur_dir= '.'
inc_dirs.append(cur_dir)
extra_args = []
# SUCKS, VS can not handle per-language type flags, so just use
# them all.