File tree Expand file tree Collapse file tree 2 files changed +26
-13
lines changed Expand file tree Collapse file tree 2 files changed +26
-13
lines changed Original file line number Diff line number Diff line change @@ -20,38 +20,48 @@ config("impeller_public_config") {
2020
2121group (" impeller" ) {
2222 public_deps = [
23- " aiks" ,
2423 " archivist" ,
2524 " base" ,
26- " display_list" ,
27- " entity" ,
2825 " geometry" ,
29- " image" ,
30- " renderer" ,
3126 " tessellator" ,
32- " typographer" ,
3327 ]
28+
29+ if (impeller_supports_rendering ) {
30+ public_deps += [
31+ " aiks" ,
32+ " display_list" ,
33+ " entity" ,
34+ " image" ,
35+ " renderer" ,
36+ " typographer" ,
37+ ]
38+ }
3439}
3540
3641executable (" impeller_unittests" ) {
3742 testonly = true
3843
3944 deps = [
40- " aiks:aiks_unittests" ,
4145 " archivist:archivist_unittests" ,
4246 " base:base_unittests" ,
4347 " compiler:compiler_unittests" ,
44- " display_list:display_list_unittests" ,
45- " entity:entity_unittests" ,
4648 " fixtures" ,
4749 " geometry:geometry_unittests" ,
48- " image:image_unittests" ,
49- " playground" ,
50- " renderer:renderer_unittests" ,
51- " typographer:typographer_unittests" ,
5250
5351 # FML depends on the Dart VM for tracing and getting the current
5452 # timepoint.
5553 " //flutter/runtime:libdart" ,
5654 ]
55+
56+ if (impeller_supports_rendering ) {
57+ deps += [
58+ " aiks:aiks_unittests" ,
59+ " display_list:display_list_unittests" ,
60+ " entity:entity_unittests" ,
61+ " image:image_unittests" ,
62+ " playground" ,
63+ " renderer:renderer_unittests" ,
64+ " typographer:typographer_unittests" ,
65+ ]
66+ }
5767}
Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ declare_args() {
1212 # Whether Impeller is supported on the platform.
1313 impeller_supports_platform = true
1414
15+ # Whether Impeller supports rendering on the platform.
16+ impeller_supports_rendering = is_mac || is_ios
17+
1518 # Whether Impeller shaders are supported on the platform.
1619 impeller_shaders_supports_platform = is_mac || is_ios
1720}
You can’t perform that action at this time.
0 commit comments