Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,12 @@
# This target will be built if no target is specified when invoking ninja.
group("default") {
testonly = true

if (is_ios || is_mac) {
deps = [
"//sky/shell",
]
} else {
deps = [
"//sky",
"//services/sky",
]
deps = [
"//sky",
]
if (!is_ios) {
# Mojo shell does not exist on ios
deps += [ "//services/sky" ]
}
}

Expand Down
6 changes: 5 additions & 1 deletion services/sky/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ mojo_native_application("sky") {
"//mojo/common:tracing_impl",
"//mojo/converters/geometry",
"//mojo/converters/input_events",
"//mojo/icu",
"//mojo/public/cpp/bindings",
"//mojo/public/cpp/system",
"//mojo/public/cpp/utility",
Expand All @@ -58,4 +57,9 @@ mojo_native_application("sky") {
"//ui/events",
"//url",
]

if (!is_mac && !is_ios) {
# Mac and iOS need to use the system-provided ICU
deps += [ "//mojo/icu" ]
}
}
8 changes: 4 additions & 4 deletions sky/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ group("sky") {
testonly = true

deps = [
"//sky/engine/platform:platform_unittests",
"//sky/engine/wtf:unittests",
"//sky/engine/platform:platform_unittests($host_toolchain)",
"//sky/engine/wtf:unittests($host_toolchain)",
"//sky/sdk/example",
"//sky/tools/imagediff",
"//sky/tools/imagediff($host_toolchain)",
"//sky/tools/sky_snapshot($host_toolchain)",
":sky_dev",
]
Expand All @@ -31,7 +31,7 @@ group("sky_dev") {
deps += [ "//sky/services/activity" ]
}

if (is_linux) {
if (is_linux || is_ios) {
deps += [ "//sky/shell" ]
}
}
12 changes: 11 additions & 1 deletion sky/dist/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ copy("sky_shell") {
deps = [
"//sky/sdk/example/demo_launcher",
]
} else if (is_ios) {
sources = [
"$root_build_dir/Sky.app",
]

deps = [
"//sky/shell:shell_struct",
]
} else {
sources = [
"$root_build_dir/sky_shell",
Expand Down Expand Up @@ -102,9 +110,11 @@ if (is_android) {

group("dist") {
deps = [
":sky_shell",
":sky_viewer",
]
if (!is_ios) {
deps += [ ":sky_shell" ]
}

if (is_android) {
deps += [ ":sky_sdk" ]
Expand Down