Merge pull request #1752 from chinmaygarde/precompile_pr

Switch to using precompiled snapshots on iOS
This commit is contained in:
Chinmay Garde
2015-10-22 17:32:09 -07:00
6 changed files with 16 additions and 5 deletions

2
DEPS
View File

@@ -25,7 +25,7 @@ vars = {
# Note: When updating the Dart revision, ensure that all entries that are
# dependencies of dart are also updated
'dart_revision': '6aab1cecb25f8e04087320f2082336073628afb4',
'dart_revision': '2da9b9ce0a786c9dc7742a1045ed5b326c73076d',
'dart_observatory_packages_revision': '5c199c5954146747f75ed127871207718dc87786',
'dart_root_certificates_revision': 'c3a41df63afacec62fcb8135196177e35fe72f71',

View File

@@ -67,7 +67,7 @@ declare_args() {
# depending on the application type, may be unnecessary. If the type of
# architecture is known beforehand, setting that as the active arch will
# greatly reduce build times and reduce binary sizes.
ios_active_arch = "armv7"
ios_active_arch = "arm64"
}
# default_include_dirs ---------------------------------------------------------

View File

@@ -10,7 +10,6 @@ group("sky") {
"//sky/engine/wtf:unittests($host_toolchain)",
"//examples",
"//sky/tools/imagediff($host_toolchain)",
"//sky/tools/sky_snapshot($host_toolchain)",
":sky_dev",
]

View File

@@ -27,7 +27,7 @@ copy("sky_shell") {
deps = [
"//sky/shell",
]
} else if (is_ios || is_mac) {
} else if (is_mac) {
sources = [
"$root_build_dir/SkyShell.app",
]
@@ -35,7 +35,7 @@ copy("sky_shell") {
deps = [
"//sky/shell:shell_struct",
]
} else {
} else if(!is_ios) {
sources = [
"$root_build_dir/sky_shell",
"$root_build_dir/icudtl.dat",
@@ -45,6 +45,9 @@ copy("sky_shell") {
"//sky/shell",
"//third_party/icu:icudata",
]
} else {
sources = []
deps = []
}
sky_snapshot_dir =

View File

@@ -48,6 +48,7 @@ def to_gn_args(args):
if args.simulator:
gn_args['use_libjpeg_turbo'] = False
gn_args['use_ios_simulator'] = args.simulator
gn_args['dart_target_arch'] = "arm64"
else:
gn_args['use_aura'] = False
gn_args['use_glib'] = False

View File

@@ -22,6 +22,9 @@ def main():
parser.add_argument('--output-file', type=str)
parser.add_argument('--package-root', type=str)
parser.add_argument('--snapshot', type=str)
parser.add_argument('--precompiled', dest='precompiled', action='store_true')
parser.set_defaults(precompiled=False)
args = parser.parse_args()
command = [
@@ -36,6 +39,11 @@ def main():
'--private-key', os.path.abspath(os.path.join(args.package_root, '..', 'privatekey.der')),
]
if args.precompiled:
command += [
'--precompiled'
]
if args.manifest:
command += ['--manifest', os.path.abspath(args.manifest)]