Skip to content
This repository was archived by the owner on Apr 29, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
36 changes: 23 additions & 13 deletions BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -20,38 +20,48 @@ config("impeller_public_config") {

group("impeller") {
public_deps = [
"aiks",
"archivist",
"base",
"display_list",
"entity",
"geometry",
"image",
"renderer",
"tessellator",
"typographer",
]

if (impeller_supports_rendering) {
deps += [

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be public_deps?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

"aiks",
"display_list",
"entity",
"image",
"renderer",
"typographer",
]
}
}

executable("impeller_unittests") {
testonly = true

deps = [
"aiks:aiks_unittests",
"archivist:archivist_unittests",
"base:base_unittests",
"compiler:compiler_unittests",
"display_list:display_list_unittests",
"entity:entity_unittests",
"fixtures",
"geometry:geometry_unittests",
"image:image_unittests",
"playground",
"renderer:renderer_unittests",
"typographer:typographer_unittests",

# FML depends on the Dart VM for tracing and getting the current
# timepoint.
"//flutter/runtime:libdart",
]

if (impeller_supports_rendering) {
deps += [
"aiks:aiks_unittests",
"display_list:display_list_unittests",
"entity:entity_unittests",
"image:image_unittests",
"playground",
"renderer:renderer_unittests",
"typographer:typographer_unittests",
]
}
}
3 changes: 3 additions & 0 deletions tools/impeller.gni
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ declare_args() {
# Whether Impeller is supported on the platform.
impeller_supports_platform = true

# Whether Impeller supports rendering on the platform.
impeller_supports_rendering = is_mac || is_ios

# Whether Impeller shaders are supported on the platform.
impeller_shaders_supports_platform = is_mac || is_ios
}
Expand Down