@@ -0,0 +1,1231 @@
+#!/usr/bin/env python%0A# Copyright 2013 The Flutter Authors. All rights reserved.%0A# Use of this source code is governed by a BSD-style license that can be%0A# found in the LICENSE file.%0A%0Aimport argparse%0Aimport shutil%0Aimport sys%0Aimport os%0A%0A%0Adef main():%0A  parser = argparse.ArgumentParser(description='Copies architecture-dependent gen_snapshot binaries to output dir')%0A%0A  parser.add_argument('--dst', type=str, required=True)%0A  parser.add_argument('--arm64-out-dir', type=str, required=True)%0A  parser.add_argument('--armv7-out-dir', type=str, required=True)%0A%0A  args = parser.parse_args()%0A%0A  arm64_gen_snapshot = os.path.join(args.arm64_out_dir, 'clang_x64', 'gen_snapshot')%0A  armv7_gen_snapshot = os.path.join(args.armv7_out_dir, 'clang_x64', 'gen_snapshot')%0A%0A  if not os.path.isfile(arm64_gen_snapshot):%0A    print 'Cannot find x86_64 (arm64) gen_snapshot at', arm64_gen_snapshot%0A    return 1%0A%0A  if not os.path.isfile(armv7_gen_snapshot):%0A    print 'Cannot find i386 (armv7) gen_snapshot at', armv7_gen_snapshot%0A    return 1%0A%0A  shutil.copy(armv7_gen_snapshot, os.path.join(args.dst, 'gen_snapshot_armv7'))%0A  shutil.copy(arm64_gen_snapshot, os.path.join(args.dst, 'gen_snapshot_arm64'))%0A%0A%0Aif __name__ == '__main__':%0A  sys.exit(main())%0A%0A

Add copy_gen_snapshots.py tool (#10430)