Some vs2010 fixes.
This commit is contained in:
parent
b233720a08
commit
2ac6c9cbcc
|
@ -16,6 +16,7 @@ import os, sys
|
||||||
import backends, build
|
import backends, build
|
||||||
import xml.etree.ElementTree as ET
|
import xml.etree.ElementTree as ET
|
||||||
import xml.dom.minidom
|
import xml.dom.minidom
|
||||||
|
from coredata import MesonException
|
||||||
|
|
||||||
class Vs2010Backend(backends.Backend):
|
class Vs2010Backend(backends.Backend):
|
||||||
def __init__(self, build, interp):
|
def __init__(self, build, interp):
|
||||||
|
@ -221,6 +222,10 @@ class Vs2010Backend(backends.Backend):
|
||||||
opt = ET.SubElement(clconf, 'Optimization')
|
opt = ET.SubElement(clconf, 'Optimization')
|
||||||
opt.text = 'disabled'
|
opt.text = 'disabled'
|
||||||
inc_dirs = [proj_to_src_dir, self.get_target_private_dir(target)]
|
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 = []
|
extra_args = []
|
||||||
# SUCKS, VS can not handle per-language type flags, so just use
|
# SUCKS, VS can not handle per-language type flags, so just use
|
||||||
# them all.
|
# them all.
|
||||||
|
|
Loading…
Reference in New Issue