Add Windows includes so the rtemstoolkit builds.

Closes #3128.
This commit is contained in:
Chris Johns
2017-09-11 07:11:19 +10:00
parent f9a4b2c4c1
commit cb0677b05c

View File

@@ -49,11 +49,6 @@ out = 'build'
def init(ctx):
pass
rtl_includes = ['../../rtemstoolkit',
'../../rtemstoolkit/elftoolchain/common',
'../../rtemstoolkit/elftoolchain/libelf',
'../../rtemstoolkit/libiberty']
def options(opt):
opt.load('compiler_cxx')
@@ -66,6 +61,14 @@ def configure(conf):
conf.env.STLIB_RLD = ['rld','iberty','elf']
def build(bld):
rtemstoolkit = '../../rtemstoolkit'
rtl_includes = [rtemstoolkit,
rtemstoolkit + '/elftoolchain/libelf',
rtemstoolkit + '/elftoolchain/common',
rtemstoolkit + '/libiberty']
if bld.env.DEST_OS == 'win32':
rtl_includes += [rtemstoolkit + '/win32']
bld.stlib(target = 'ccovoar',
source = ['app_common.cc',
'CoverageFactory.cc',