fix unittests that depend on DL when Impeller 3D is enabled (flutter/engine#40258)
fix unittests that depend on DisplayList when Impeller 3D is enabled
This commit is contained in:
@@ -7,6 +7,14 @@ import("//flutter/common/config.gni")
|
||||
import("//flutter/impeller/tools/impeller.gni")
|
||||
import("//flutter/testing/testing.gni")
|
||||
|
||||
config("display_list_config") {
|
||||
defines = []
|
||||
|
||||
if (impeller_enable_3d) {
|
||||
defines += [ "IMPELLER_ENABLE_3D" ]
|
||||
}
|
||||
}
|
||||
|
||||
source_set("display_list") {
|
||||
sources = [
|
||||
"display_list.cc",
|
||||
@@ -65,6 +73,8 @@ source_set("display_list") {
|
||||
"types.h",
|
||||
]
|
||||
|
||||
public_configs = [ ":display_list_config" ]
|
||||
|
||||
public_deps = [
|
||||
"//flutter/fml",
|
||||
"//flutter/impeller/runtime_stage",
|
||||
@@ -74,10 +84,6 @@ source_set("display_list") {
|
||||
if (!defined(defines)) {
|
||||
defines = []
|
||||
}
|
||||
if (impeller_enable_3d) {
|
||||
defines += [ "IMPELLER_ENABLE_3D" ]
|
||||
public_deps += [ "//flutter/impeller/scene" ]
|
||||
}
|
||||
}
|
||||
|
||||
if (enable_unittests) {
|
||||
|
||||
Reference in New Issue
Block a user