24 result.append(
"*** BEGIN %s ***" % k)
26 result.append(
"*** END %s ***" % k)
29DOUBLE_STAR_RE = re.compile(
r'/\*\*/')
30STAR_RE = re.compile(
r'\*')
31DOUBLE_STAR_PLACEHOLDER =
"xxxdoublestarxxx"
32STAR_PLACEHOLDER =
"xxxstarxxx"
36 if pattern.find(
'**') < 0:
39 return glob.glob(pattern)
42 pattern2 = DOUBLE_STAR_RE.sub(DOUBLE_STAR_PLACEHOLDER, pattern)
43 pattern3 = STAR_RE.sub(STAR_PLACEHOLDER, pattern2)
45 pattern4 = re.escape(pattern3)
47 pattern5 = pattern4.replace(STAR_PLACEHOLDER,
'[^/]*')
48 pattern6 = pattern5.replace(DOUBLE_STAR_PLACEHOLDER,
'.*/')
50 pattern7 =
"^" + pattern6 +
"$"
51 pattern_re = re.compile(pattern7)
53 for root, _, files
in os.walk(
'.'):
56 path = os.path.join(root, fname)[2:]
57 if pattern_re.match(path):
64 for pattern
in include:
66 for pattern
in exclude:
68 return list(sorted(files))
76 'exports_files': noop,
78 'select': select_simulator,
80 'BASE_EXTERNAL_DEPS_ANDROID': [],
81 'BASE_EXTERNAL_DEPS_IOS': [],
82 'BASE_EXTERNAL_DEPS_UNIX': [],
83 'CONDITION_ANDROID':
'CONDITION_ANDROID',
84 'CONDITION_IOS':
'CONDITION_IOS',
85 'DM_EXTERNAL_DEPS': [],
86 'EXTERNAL_DEPS_ALL': [],
87 'EXTERNAL_INCLUDES': [],
90execfile(
'BUILD.public', global_names, local_names)
92with open(
'tools/BUILD.public.expected',
'w')
as out:
93 print >>out,
"This file is auto-generated by tools/BUILD_simulator.py."
94 print >>out,
"It expands BUILD.public to make it easy to see changes."
95 for name, value
in sorted(local_names.items()):
96 print >>out, name,
'= ',
97 pprint.pprint(value, out)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not set