Skip to content

Commit e46345d

Browse files
chinmaygardednfield
authored andcommitted
Only depend on FML for tracing when building executables. (flutter#72)
Otherwise, depending on Impeller will cause an explicit dependency on whatever VM variant :libdart picks. And, some other unit-test in the engine explicitly link in the JIT variant which leads to duplicate symbol errors in profile and release modes.
1 parent 597c10e commit e46345d

File tree

9 files changed

+16
-45
lines changed

9 files changed

+16
-45
lines changed

impeller/BUILD.gn

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,9 @@ executable("impeller_unittests") {
3737
"playground",
3838
"renderer:renderer_unittests",
3939
"typographer:typographer_unittests",
40+
41+
# FML depends on the Dart VM for tracing and getting the current
42+
# timepoint.
43+
"//flutter/runtime:libdart",
4044
]
4145
}

impeller/aiks/BUILD.gn

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,7 @@ impeller_component("aiks") {
2828
"../geometry",
2929
]
3030

31-
deps = [
32-
"//flutter/fml",
33-
34-
# FML depends on the Dart VM for tracing and getting the current
35-
# timepoint.
36-
"//flutter/runtime:libdart",
37-
]
31+
deps = [ "//flutter/fml" ]
3832
}
3933

4034
impeller_component("aiks_unittests") {

impeller/archivist/BUILD.gn

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ impeller_component("archivist") {
3333

3434
deps = [
3535
"//flutter/fml",
36-
37-
# FML depends on the Dart VM for tracing and getting the current
38-
# timepoint.
39-
"//flutter/runtime:libdart",
4036
"//third_party/sqlite",
4137
]
4238
}

impeller/base/BUILD.gn

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,7 @@ impeller_component("base") {
2121
"validation.h",
2222
]
2323

24-
deps = [
25-
"//flutter/fml",
26-
27-
# FML depends on the Dart VM for tracing and getting the current
28-
# timepoint.
29-
"//flutter/runtime:libdart",
30-
]
24+
deps = [ "//flutter/fml" ]
3125
}
3226

3327
impeller_component("base_unittests") {

impeller/compiler/BUILD.gn

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ impeller_component("compiler_lib") {
2323
"../base",
2424
"../geometry",
2525
"//flutter/fml",
26-
"//flutter/runtime:libdart",
2726
"//third_party/inja",
2827
"//third_party/shaderc_flutter",
2928
"//third_party/spirv_cross_flutter",
@@ -35,7 +34,13 @@ impeller_component("impellerc") {
3534

3635
sources = [ "impellerc_main.cc" ]
3736

38-
deps = [ ":compiler_lib" ]
37+
deps = [
38+
":compiler_lib",
39+
40+
# FML depends on the Dart VM for tracing and getting the current
41+
# timepoint.
42+
"//flutter/runtime:libdart",
43+
]
3944
}
4045

4146
group("compiler") {

impeller/entity/BUILD.gn

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,7 @@ impeller_component("entity") {
5757
"../typographer",
5858
]
5959

60-
deps = [
61-
"//flutter/fml",
62-
63-
# FML depends on the Dart VM for tracing and getting the current
64-
# timepoint.
65-
"//flutter/runtime:libdart",
66-
]
60+
deps = [ "//flutter/fml" ]
6761
}
6862

6963
impeller_component("entity_unittests") {

impeller/image/BUILD.gn

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ impeller_component("image") {
2424

2525
deps = [
2626
"//flutter/fml",
27-
28-
# FML depends on the Dart VM for tracing and getting the current
29-
# timepoint.
30-
"//flutter/runtime:libdart",
3127
"//third_party/skia",
3228
]
3329
}

impeller/renderer/BUILD.gn

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,7 @@ impeller_component("renderer") {
108108
"../tessellator",
109109
]
110110

111-
deps = [
112-
"//flutter/fml",
113-
114-
# FML depends on the Dart VM for tracing and getting the current
115-
# timepoint.
116-
"//flutter/runtime:libdart",
117-
]
111+
deps = [ "//flutter/fml" ]
118112

119113
frameworks = [ "Metal.framework" ]
120114
}

impeller/typographer/BUILD.gn

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,7 @@ impeller_component("typographer") {
3737
"//third_party/skia",
3838
]
3939

40-
deps = [
41-
"//flutter/fml",
42-
43-
# FML depends on the Dart VM for tracing and getting the current
44-
# timepoint.
45-
"//flutter/runtime:libdart",
46-
]
40+
deps = [ "//flutter/fml" ]
4741
}
4842

4943
impeller_component("typographer_unittests") {

0 commit comments

Comments
 (0)