Move rendering TUs behind own flag (flutter/engine#134)

This commit is contained in:
Dan Field
2022-04-13 15:12:53 -07:00
committed by Dan Field
parent 3ca787ddae
commit 7a8c2a90e7
2 changed files with 26 additions and 13 deletions

View File

@@ -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",
]
}
}

View File

@@ -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
}