Make gen_snapshot compile on Windows (flutter/engine#3355)

This commit is contained in:
Michael Goderbauer
2017-01-23 14:12:26 -08:00
committed by GitHub
parent 023ebac36d
commit 42c2625950
4 changed files with 18 additions and 6 deletions

View File

@@ -15,6 +15,8 @@ group("platform") {
deps = [
"linux",
]
} else if (is_win) {
print("Shell currently not supported on Windows.")
} else {
assert(false, "Unknown/Unsupported platform.")
}

View File

@@ -57,7 +57,7 @@ def to_gn_args(args):
gn_args['is_debug'] = args.unoptimized
gn_args['android_full_debug'] = args.target_os == 'android' and args.unoptimized
gn_args['is_clang'] = True
gn_args['is_clang'] = not sys.platform.startswith(('cygwin', 'win'))
ios_target_cpu = 'arm64'
@@ -189,7 +189,7 @@ def main(argv):
if gn_call_result == 0:
# Generate/Replace the compile commands database in out.
compile_cmd_gen_cmd = [
'%s/buildtools/%s/ninja' % (SRC_ROOT, subdir),
'ninja',
'-C',
out_dir,
'-t',

View File

@@ -1887,6 +1887,7 @@ class RepositoryRootThirdPartyDirectory extends RepositoryGenericThirdPartyDirec
return entry.name != 'appurify-python' // only used by tests
&& entry.name != 'dart-sdk' // redundant with //engine/dart; https://github.com/flutter/flutter/issues/2618
&& entry.name != 'firebase' // only used by bots; https://github.com/flutter/flutter/issues/3722
&& entry.name != 'gyp' // build-time only
&& entry.name != 'jinja2' // build-time code generation
&& entry.name != 'junit' // only mentioned in build files, not used
&& entry.name != 'libxml' // dependency of the testing system that we don't actually use