|
|
@ -338,6 +338,9 @@ class Vs2010Backend(backends.Backend): |
|
|
|
relpath = h.rel_to_builddir(proj_to_src_root) |
|
|
|
relpath = h.rel_to_builddir(proj_to_src_root) |
|
|
|
ET.SubElement(inc_hdrs, 'CLInclude', Include=relpath) |
|
|
|
ET.SubElement(inc_hdrs, 'CLInclude', Include=relpath) |
|
|
|
for h in gen_hdrs: |
|
|
|
for h in gen_hdrs: |
|
|
|
|
|
|
|
if isinstance(h, str): |
|
|
|
|
|
|
|
relpath = h |
|
|
|
|
|
|
|
else: |
|
|
|
relpath = h.rel_to_builddir(proj_to_src_root) |
|
|
|
relpath = h.rel_to_builddir(proj_to_src_root) |
|
|
|
ET.SubElement(inc_hdrs, 'CLInclude', Include = relpath) |
|
|
|
ET.SubElement(inc_hdrs, 'CLInclude', Include = relpath) |
|
|
|
if len(sources) + len(gen_src) > 0: |
|
|
|
if len(sources) + len(gen_src) > 0: |
|
|
|