blob: ffebf521f75d4df916b5d31f3e9d34d527a98e42 [file] [log] [blame] [edit]
# 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("geometry") {
sources = [
"arc.cc",
"arc.h",
"color.cc",
"color.h",
"constants.cc",
"constants.h",
"dashed_line_path_source.cc",
"dashed_line_path_source.h",
"gradient.cc",
"gradient.h",
"half.h",
"matrix.cc",
"matrix.h",
"matrix_decomposition.cc",
"matrix_decomposition.h",
"path_source.cc",
"path_source.h",
"point.cc",
"point.h",
"quaternion.cc",
"quaternion.h",
"rational.cc",
"rational.h",
"rect.cc",
"rect.h",
"round_rect.cc",
"round_rect.h",
"round_superellipse.cc",
"round_superellipse.h",
"round_superellipse_param.cc",
"round_superellipse_param.h",
"rounding_radii.cc",
"rounding_radii.h",
"rstransform.cc",
"rstransform.h",
"saturated_math.h",
"scalar.h",
"separated_vector.cc",
"separated_vector.h",
"shear.cc",
"shear.h",
"sigma.cc",
"sigma.h",
"size.cc",
"size.h",
"trig.cc",
"trig.h",
"type_traits.cc",
"type_traits.h",
"vector.cc",
"vector.h",
"wangs_formula.cc",
"wangs_formula.h",
]
deps = [
"../base",
"//flutter/fml",
]
}
impeller_component("geometry_asserts") {
testonly = true
sources = [ "geometry_asserts.h" ]
deps = [
":geometry",
"//flutter/testing:testing_lib",
]
}
impeller_component("geometry_unittests") {
testonly = true
sources = [
"arc_unittests.cc",
"geometry_unittests.cc",
"matrix_unittests.cc",
"path_source_unittests.cc",
"point_unittests.cc",
"rational_unittests.cc",
"rect_unittests.cc",
"round_rect_unittests.cc",
"round_superellipse_unittests.cc",
"rounding_radii_unittests.cc",
"rstransform_unittests.cc",
"saturated_math_unittests.cc",
"size_unittests.cc",
"trig_unittests.cc",
"wangs_formula_unittests.cc",
]
deps = [
":geometry",
":geometry_asserts",
"//flutter/display_list/testing:display_list_testing",
"//flutter/testing:testing_lib",
]
}
executable("geometry_benchmarks") {
testonly = true
sources = [ "geometry_benchmarks.cc" ]
deps = [
":geometry",
"../entity",
"../tessellator:tessellator_libtess",
"//flutter/benchmarking",
]
}