# Copyright 2014 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
component("geometry") {
sources = [
"../gfx_export.h",
"axis_transform2d.cc",
"axis_transform2d.h",
"box_f.cc",
"box_f.h",
"clamp_float_geometry.h",
"cubic_bezier.cc",
"cubic_bezier.h",
"decomposed_transform.cc",
"decomposed_transform.h",
"dip_util.cc",
"dip_util.h",
"double4.h",
"geometry_export.h",
"insets.cc",
"insets.h",
"insets_conversions.cc",
"insets_conversions.h",
"insets_f.cc",
"insets_f.h",
"insets_outsets_base.h",
"insets_outsets_f_base.h",
"matrix3_f.cc",
"matrix3_f.h",
"outsets.h",
"outsets_f.h",
"point.cc",
"point.h",
"point3_f.cc",
"point3_f.h",
"point_conversions.cc",
"point_conversions.h",
"point_f.cc",
"point_f.h",
"quad_f.cc",
"quad_f.h",
"quaternion.cc",
"quaternion.h",
"rect.cc",
"rect.h",
"rect_conversions.cc",
"rect_conversions.h",
"rect_f.cc",
"rect_f.h",
"resize_utils.cc",
"resize_utils.h",
"rounded_corners_f.cc",
"rounded_corners_f.h",
"sin_cos_degrees.h",
"size.cc",
"size.h",
"size_conversions.cc",
"size_conversions.h",
"size_f.cc",
"size_f.h",
"three_point_cubic_bezier.cc",
"three_point_cubic_bezier.h",
"triangle_f.cc",
"triangle_f.h",
"vector2d.cc",
"vector2d.h",
"vector2d_conversions.cc",
"vector2d_conversions.h",
"vector2d_f.cc",
"vector2d_f.h",
"vector3d_f.cc",
"vector3d_f.h",
]
defines = [ "GEOMETRY_IMPLEMENTATION" ]
deps = [ "//base" ]
if (!is_debug) {
configs -= [ "//build/config/compiler:default_optimization" ]
configs += [ "//build/config/compiler:optimize_max" ]
}
}
component("geometry_skia") {
sources = [
"geometry_skia_export.h",
"linear_gradient.cc",
"linear_gradient.h",
"mask_filter_info.cc",
"mask_filter_info.h",
"matrix44.cc",
"matrix44.h",
"rrect_f.cc",
"rrect_f.h",
"rrect_f_builder.cc",
"rrect_f_builder.h",
"skia_conversions.cc",
"skia_conversions.h",
"transform.cc",
"transform.h",
"transform_operation.cc",
"transform_operation.h",
"transform_operations.cc",
"transform_operations.h",
"transform_util.cc",
"transform_util.h",
]
configs += [ "//build/config/compiler:wexit_time_destructors" ]
public_deps = [
":geometry",
"//base",
"//skia",
]
defines = [ "GEOMETRY_SKIA_IMPLEMENTATION" ]
}