| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 component("geometry") { | 5 component("geometry") { |
| 6 sources = [ | 6 sources = [ |
| 7 "../gfx_export.h", | 7 "../gfx_export.h", |
| 8 "box_f.cc", | 8 "box_f.cc", |
| 9 "box_f.h", | 9 "box_f.h", |
| 10 "cubic_bezier.cc", | 10 "cubic_bezier.cc", |
| 11 "cubic_bezier.h", | 11 "cubic_bezier.h", |
| 12 "dip_util.cc", | |
| 13 "dip_util.h", | |
| 14 "insets.cc", | |
| 15 "insets.h", | |
| 16 "insets_f.cc", | |
| 17 "insets_f.h", | |
| 18 "matrix3_f.cc", | 12 "matrix3_f.cc", |
| 19 "matrix3_f.h", | 13 "matrix3_f.h", |
| 20 "point.cc", | 14 "point.cc", |
| 21 "point.h", | 15 "point.h", |
| 22 "point3_f.cc", | 16 "point3_f.cc", |
| 23 "point3_f.h", | 17 "point3_f.h", |
| 24 "point_conversions.cc", | 18 "point_conversions.cc", |
| 25 "point_conversions.h", | 19 "point_conversions.h", |
| 26 "point_f.cc", | 20 "point_f.cc", |
| 27 "point_f.h", | 21 "point_f.h", |
| 28 "quad_f.cc", | 22 "quad_f.cc", |
| 29 "quad_f.h", | 23 "quad_f.h", |
| 30 "rect.cc", | 24 "rect.cc", |
| 31 "rect.h", | 25 "rect.h", |
| 32 "rect_conversions.cc", | |
| 33 "rect_conversions.h", | |
| 34 "rect_f.cc", | 26 "rect_f.cc", |
| 35 "rect_f.h", | 27 "rect_f.h", |
| 36 "safe_integer_conversions.h", | |
| 37 "scroll_offset.cc", | 28 "scroll_offset.cc", |
| 38 "scroll_offset.h", | 29 "scroll_offset.h", |
| 39 "size.cc", | 30 "size.cc", |
| 40 "size.h", | 31 "size.h", |
| 41 "size_conversions.cc", | 32 "size_conversions.cc", |
| 42 "size_conversions.h", | 33 "size_conversions.h", |
| 43 "size_f.cc", | 34 "size_f.cc", |
| 44 "size_f.h", | 35 "size_f.h", |
| 45 "vector2d.cc", | 36 "vector2d.cc", |
| 46 "vector2d.h", | 37 "vector2d.h", |
| 47 "vector2d_conversions.cc", | |
| 48 "vector2d_conversions.h", | |
| 49 "vector2d_f.cc", | 38 "vector2d_f.cc", |
| 50 "vector2d_f.h", | 39 "vector2d_f.h", |
| 51 "vector3d_f.cc", | 40 "vector3d_f.cc", |
| 52 "vector3d_f.h", | 41 "vector3d_f.h", |
| 53 ] | 42 ] |
| 54 | 43 |
| 44 if (!is_ios) { |
| 45 sources += [ |
| 46 "dip_util.cc", |
| 47 "dip_util.h", |
| 48 "insets.cc", |
| 49 "insets.h", |
| 50 "insets_f.cc", |
| 51 "insets_f.h", |
| 52 "rect_conversions.cc", |
| 53 "rect_conversions.h", |
| 54 "safe_integer_conversions.h", |
| 55 "vector2d_conversions.cc", |
| 56 "vector2d_conversions.h", |
| 57 ] |
| 58 } |
| 55 defines = [ "GFX_IMPLEMENTATION" ] | 59 defines = [ "GFX_IMPLEMENTATION" ] |
| 56 | 60 |
| 57 deps = [ | 61 deps = [ |
| 58 "//base", | 62 "//base", |
| 59 "//ui/gfx:gfx_export", | 63 "//ui/gfx:gfx_export", |
| 60 ] | 64 ] |
| 61 | 65 |
| 62 if (is_android && !is_debug) { | 66 if (is_android && !is_debug) { |
| 63 configs -= [ "//build/config/compiler:default_optimization" ] | 67 configs -= [ "//build/config/compiler:default_optimization" ] |
| 64 configs += [ "//build/config/compiler:optimize_max" ] | 68 configs += [ "//build/config/compiler:optimize_max" ] |
| 65 } | 69 } |
| 66 } | 70 } |
| OLD | NEW |