30 with open(os.path.join(sdk_root, path), encoding=
'utf-8')
as file:
32 m = INCLUDE_DIRECTIVE_RE.match(line)
34 header = os.path.join(
'runtime', m.group(1))
35 if os.path.isfile(os.path.join(sdk_root, header)):
39 for include
in includes:
40 if PLATFORM_LAYER_RE.match(path):
41 if VM_LAYER_RE.match(include):
43 'LAYERING ERROR: %s must not include %s' % (path, include))
44 elif BIN_LAYER_RE.match(include):
46 'LAYERING ERROR: %s must not include %s' % (path, include))
47 elif VM_LAYER_RE.match(path):
48 if BIN_LAYER_RE.match(include):
50 'LAYERING ERROR: %s must not include %s' % (path, include))
51 elif BIN_LAYER_RE.match(path):
52 if VM_LAYER_RE.match(include):
54 'LAYERING ERROR: %s must not include %s' % (path, include))