Skip to content

Commit

Permalink
libdart_precompiled_runtime is gone; fix ios build (flutter#2613)
Browse files Browse the repository at this point in the history
  • Loading branch information
yjbanov committed Apr 22, 2016
1 parent 7a919c0 commit 6974f77
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
9 changes: 2 additions & 7 deletions sky/shell/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,12 @@ source_set("common") {
"$target_gen_dir/sky_embedder_diagnostic_server_resources.cc",
]

if (is_ios && !use_ios_simulator) {
dart_deps = [ "//dart/runtime:libdart_precompiled_runtime" ]
} else {
dart_deps = [ "//dart/runtime:libdart" ]
}

public_deps = dart_deps + [
public_deps = [
":generate_sky_embedder_diagnostic_server_resources_cc",
"//base",
"//base:i18n",
"//build/config/sanitizers:deps",
"//dart/runtime:libdart",
"//flow",
"//mojo/common",
"//mojo/data_pipe_utils",
Expand Down
25 changes: 16 additions & 9 deletions sky/tools/gn
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@ def to_gn_args(args):
gn_args['is_debug'] = args.debug
gn_args['is_clang'] = args.clang and args.target_os not in ['android', 'fnl']

if args.develop:
gn_args['dart_runtime_mode'] = 'develop'
elif args.debug:
gn_args['dart_runtime_mode'] = 'profile'
else:
gn_args['dart_runtime_mode'] = 'release'

ios_target_cpu = 'arm64'
if args.ios_force_armv7:
Expand All @@ -63,22 +57,27 @@ def to_gn_args(args):

if args.target_os == 'android':
gn_args['target_os'] = 'android'
aot = not args.develop
elif args.target_os == 'ios':
gn_args['target_os'] = 'ios'
gn_args['ios_deployment_target'] = '7.0'
gn_args['use_ios_simulator'] = args.simulator
if args.simulator:
gn_args['use_libjpeg_turbo'] = False
gn_args['use_libjpeg_turbo'] = False
aot = False
else:
# The iOS simulator snapshot is host targetted
gn_args['dart_target_arch'] = ios_target_cpu
aot = True
elif args.target_os == 'fnl':
gn_args['target_os'] = 'fnl'
gn_args['use_aura'] = False
gn_args['use_ozone'] = True
aot = False
else:
gn_args['use_aura'] = False
gn_args['use_system_harfbuzz'] = False
gn_args['use_aura'] = False
gn_args['use_system_harfbuzz'] = False
aot = False

if args.target_os in ['android', 'ios'] and not args.simulator:
if args.target_os == 'ios':
Expand All @@ -91,6 +90,14 @@ def to_gn_args(args):
else:
gn_args['target_cpu'] = 'x64'

if aot:
if args.debug:
gn_args['dart_runtime_mode'] = 'profile'
else:
gn_args['dart_runtime_mode'] = 'release'
else:
gn_args['dart_runtime_mode'] = 'develop'

if args.target_sysroot:
gn_args['target_sysroot'] = args.target_sysroot

Expand Down

0 comments on commit 6974f77

Please sign in to comment.