BUILD.gn 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. # Copyright 2014 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. component("geometry") {
  5. sources = [
  6. "../gfx_export.h",
  7. "angle_conversions.h",
  8. "axis_transform2d.cc",
  9. "axis_transform2d.h",
  10. "box_f.cc",
  11. "box_f.h",
  12. "cubic_bezier.cc",
  13. "cubic_bezier.h",
  14. "dip_util.cc",
  15. "dip_util.h",
  16. "geometry_export.h",
  17. "insets.cc",
  18. "insets.h",
  19. "insets_conversions.cc",
  20. "insets_conversions.h",
  21. "insets_f.cc",
  22. "insets_f.h",
  23. "insets_outsets_base.h",
  24. "insets_outsets_f_base.h",
  25. "matrix3_f.cc",
  26. "matrix3_f.h",
  27. "outsets.h",
  28. "outsets_f.h",
  29. "point.cc",
  30. "point.h",
  31. "point3_f.cc",
  32. "point3_f.h",
  33. "point_conversions.cc",
  34. "point_conversions.h",
  35. "point_f.cc",
  36. "point_f.h",
  37. "quad_f.cc",
  38. "quad_f.h",
  39. "quaternion.cc",
  40. "quaternion.h",
  41. "rect.cc",
  42. "rect.h",
  43. "rect_conversions.cc",
  44. "rect_conversions.h",
  45. "rect_f.cc",
  46. "rect_f.h",
  47. "resize_utils.cc",
  48. "resize_utils.h",
  49. "rounded_corners_f.cc",
  50. "rounded_corners_f.h",
  51. "size.cc",
  52. "size.h",
  53. "size_conversions.cc",
  54. "size_conversions.h",
  55. "size_f.cc",
  56. "size_f.h",
  57. "triangle_f.cc",
  58. "triangle_f.h",
  59. "vector2d.cc",
  60. "vector2d.h",
  61. "vector2d_conversions.cc",
  62. "vector2d_conversions.h",
  63. "vector2d_f.cc",
  64. "vector2d_f.h",
  65. "vector3d_f.cc",
  66. "vector3d_f.h",
  67. ]
  68. defines = [ "GEOMETRY_IMPLEMENTATION" ]
  69. deps = [ "//base" ]
  70. if (!is_debug) {
  71. configs -= [ "//build/config/compiler:default_optimization" ]
  72. configs += [ "//build/config/compiler:optimize_max" ]
  73. }
  74. }
  75. component("geometry_skia") {
  76. sources = [
  77. "geometry_skia_export.h",
  78. "linear_gradient.cc",
  79. "linear_gradient.h",
  80. "mask_filter_info.cc",
  81. "mask_filter_info.h",
  82. "matrix44.cc",
  83. "matrix44.h",
  84. "rrect_f.cc",
  85. "rrect_f.h",
  86. "rrect_f_builder.cc",
  87. "rrect_f_builder.h",
  88. "skia_conversions.cc",
  89. "skia_conversions.h",
  90. "transform.cc",
  91. "transform.h",
  92. "transform_operation.cc",
  93. "transform_operation.h",
  94. "transform_operations.cc",
  95. "transform_operations.h",
  96. "transform_util.cc",
  97. "transform_util.h",
  98. ]
  99. configs += [ "//build/config/compiler:wexit_time_destructors" ]
  100. public_deps = [
  101. ":geometry",
  102. "//base",
  103. "//skia",
  104. ]
  105. defines = [ "GEOMETRY_SKIA_IMPLEMENTATION" ]
  106. }