blob: 92e73fc05a8ca20c112a1eb8664d97b1949ffcf4 [file] [log] [blame]
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//flutter/impeller/tools/impeller.gni")
impeller_component("tessellator") {
sources = [
"path_tessellator.cc",
"path_tessellator.h",
"tessellator.cc",
"tessellator.h",
]
public_deps = [ "../geometry" ]
deps = [
"../core",
"//flutter/fml",
]
}
impeller_component("tessellator_libtess") {
sources = [
"tessellator_libtess.cc",
"tessellator_libtess.h",
]
public_deps = [ "../geometry" ]
deps = [
":tessellator",
"../core",
"//flutter/fml",
"//third_party/libtess2",
]
}
impeller_component("tessellator_shared") {
target_type = "shared_library"
if (is_win) {
output_name = "libtessellator"
} else {
output_name = "tessellator"
}
sources = [
"c/tessellator.cc",
"c/tessellator.h",
]
deps = [
":tessellator_libtess",
"../core",
"../geometry",
"//flutter/display_list",
"//flutter/fml",
"//third_party/libtess2",
]
metadata = {
entitlement_file_path = [ "libtessellator.dylib" ]
}
}
impeller_component("tessellator_unittests") {
testonly = true
sources = [
"path_tessellator_unittests.cc",
"tessellator_playground_unittests.cc",
"tessellator_unittests.cc",
]
deps = [
":tessellator_libtess",
"../geometry:geometry_asserts",
"../playground:playground_test",
"//flutter/testing",
]
}