Skip to content

Commit

Permalink
Move rendering TUs behind own flag (flutter#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnfield committed Apr 27, 2022
1 parent 3bc1f33 commit 43a7508
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 13 deletions.
36 changes: 23 additions & 13 deletions impeller/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) {
public_deps += [
"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 impeller/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

0 comments on commit 43a7508

Please sign in to comment.