File tree 2 files changed +26
-13
lines changed
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") {
20
20
21
21
group (" impeller" ) {
22
22
public_deps = [
23
- " aiks" ,
24
23
" archivist" ,
25
24
" base" ,
26
- " display_list" ,
27
- " entity" ,
28
25
" geometry" ,
29
- " image" ,
30
- " renderer" ,
31
26
" tessellator" ,
32
- " typographer" ,
33
27
]
28
+
29
+ if (impeller_supports_rendering ) {
30
+ public_deps += [
31
+ " aiks" ,
32
+ " display_list" ,
33
+ " entity" ,
34
+ " image" ,
35
+ " renderer" ,
36
+ " typographer" ,
37
+ ]
38
+ }
34
39
}
35
40
36
41
executable (" impeller_unittests" ) {
37
42
testonly = true
38
43
39
44
deps = [
40
- " aiks:aiks_unittests" ,
41
45
" archivist:archivist_unittests" ,
42
46
" base:base_unittests" ,
43
47
" compiler:compiler_unittests" ,
44
- " display_list:display_list_unittests" ,
45
- " entity:entity_unittests" ,
46
48
" fixtures" ,
47
49
" geometry:geometry_unittests" ,
48
- " image:image_unittests" ,
49
- " playground" ,
50
- " renderer:renderer_unittests" ,
51
- " typographer:typographer_unittests" ,
52
50
53
51
# FML depends on the Dart VM for tracing and getting the current
54
52
# timepoint.
55
53
" //flutter/runtime:libdart" ,
56
54
]
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
+ }
57
67
}
Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ declare_args() {
12
12
# Whether Impeller is supported on the platform.
13
13
impeller_supports_platform = true
14
14
15
+ # Whether Impeller supports rendering on the platform.
16
+ impeller_supports_rendering = is_mac || is_ios
17
+
15
18
# Whether Impeller shaders are supported on the platform.
16
19
impeller_shaders_supports_platform = is_mac || is_ios
17
20
}
You can’t perform that action at this time.
0 commit comments