Only depend on FML for tracing when building executables. (flutter/engine#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.
This commit is contained in:
Chinmay Garde
2022-03-10 16:26:52 -08:00
committed by Dan Field
parent 0cef8082c3
commit ecdb8e869b
9 changed files with 16 additions and 45 deletions

View File

@@ -37,5 +37,9 @@ executable("impeller_unittests") {
"playground",
"renderer:renderer_unittests",
"typographer:typographer_unittests",
# FML depends on the Dart VM for tracing and getting the current
# timepoint.
"//flutter/runtime:libdart",
]
}

View File

@@ -28,13 +28,7 @@ impeller_component("aiks") {
"../geometry",
]
deps = [
"//flutter/fml",
# FML depends on the Dart VM for tracing and getting the current
# timepoint.
"//flutter/runtime:libdart",
]
deps = [ "//flutter/fml" ]
}
impeller_component("aiks_unittests") {

View File

@@ -33,10 +33,6 @@ impeller_component("archivist") {
deps = [
"//flutter/fml",
# FML depends on the Dart VM for tracing and getting the current
# timepoint.
"//flutter/runtime:libdart",
"//third_party/sqlite",
]
}

View File

@@ -21,13 +21,7 @@ impeller_component("base") {
"validation.h",
]
deps = [
"//flutter/fml",
# FML depends on the Dart VM for tracing and getting the current
# timepoint.
"//flutter/runtime:libdart",
]
deps = [ "//flutter/fml" ]
}
impeller_component("base_unittests") {

View File

@@ -23,7 +23,6 @@ impeller_component("compiler_lib") {
"../base",
"../geometry",
"//flutter/fml",
"//flutter/runtime:libdart",
"//third_party/inja",
"//third_party/shaderc_flutter",
"//third_party/spirv_cross_flutter",
@@ -35,7 +34,13 @@ impeller_component("impellerc") {
sources = [ "impellerc_main.cc" ]
deps = [ ":compiler_lib" ]
deps = [
":compiler_lib",
# FML depends on the Dart VM for tracing and getting the current
# timepoint.
"//flutter/runtime:libdart",
]
}
group("compiler") {

View File

@@ -57,13 +57,7 @@ impeller_component("entity") {
"../typographer",
]
deps = [
"//flutter/fml",
# FML depends on the Dart VM for tracing and getting the current
# timepoint.
"//flutter/runtime:libdart",
]
deps = [ "//flutter/fml" ]
}
impeller_component("entity_unittests") {

View File

@@ -24,10 +24,6 @@ impeller_component("image") {
deps = [
"//flutter/fml",
# FML depends on the Dart VM for tracing and getting the current
# timepoint.
"//flutter/runtime:libdart",
"//third_party/skia",
]
}

View File

@@ -108,13 +108,7 @@ impeller_component("renderer") {
"../tessellator",
]
deps = [
"//flutter/fml",
# FML depends on the Dart VM for tracing and getting the current
# timepoint.
"//flutter/runtime:libdart",
]
deps = [ "//flutter/fml" ]
frameworks = [ "Metal.framework" ]
}

View File

@@ -37,13 +37,7 @@ impeller_component("typographer") {
"//third_party/skia",
]
deps = [
"//flutter/fml",
# FML depends on the Dart VM for tracing and getting the current
# timepoint.
"//flutter/runtime:libdart",
]
deps = [ "//flutter/fml" ]
}
impeller_component("typographer_unittests") {