Chromium Code Reviews| Index: cc/animation/BUILD.gn |
| diff --git a/cc/animation/BUILD.gn b/cc/animation/BUILD.gn |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..858c4e19df3e19c936759c4393cc1cb8be6191f2 |
| --- /dev/null |
| +++ b/cc/animation/BUILD.gn |
| @@ -0,0 +1,55 @@ |
| +# Copyright 2016 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +component("animation") { |
| + output_name = "cc_animation" |
| + sources = [ |
| + "animation.cc", |
| + "animation.h", |
| + "animation_curve.cc", |
| + "animation_curve.h", |
| + "animation_delegate.h", |
| + "animation_events.cc", |
| + "animation_events.h", |
| + "animation_export.h", |
| + "animation_host.cc", |
| + "animation_host.h", |
| + "animation_id_provider.cc", |
| + "animation_id_provider.h", |
| + "animation_player.cc", |
| + "animation_player.h", |
| + "animation_timeline.cc", |
| + "animation_timeline.h", |
| + "element_animations.cc", |
| + "element_animations.h", |
| + "keyframed_animation_curve.cc", |
| + "keyframed_animation_curve.h", |
| + "scroll_offset_animation_curve.cc", |
| + "scroll_offset_animation_curve.h", |
| + "scroll_offset_animations.cc", |
| + "scroll_offset_animations.h", |
| + "scroll_offset_animations_impl.cc", |
| + "scroll_offset_animations_impl.h", |
| + "timing_function.cc", |
| + "timing_function.h", |
| + "transform_operation.cc", |
| + "transform_operation.h", |
| + "transform_operations.cc", |
| + "transform_operations.h", |
| + ] |
| + |
| + defines = [ "CC_ANIMATION_IMPLEMENTATION=1" ] |
| + |
| + deps = [ |
| + "//base", |
| + "//cc", |
| + "//ui/gfx", |
| + "//ui/gfx/geometry", |
| + ] |
| + |
| + if (!is_debug && (is_win || is_android)) { |
|
aelias_OOO_until_Jul13
2016/11/17 20:08:22
Please move these lines of duplicate logic into a
loyso (OOO)
2016/11/17 23:45:09
cc/surfaces logic is slightly different. it's max
aelias_OOO_until_Jul13
2016/11/18 00:13:33
I think it's almost certainly not intentional and
loyso (OOO)
2016/11/18 02:36:53
Done. We could use template("cc_component") approa
|
| + configs -= [ "//build/config/compiler:default_optimization" ] |
| + configs += [ "//build/config/compiler:optimize_max" ] |
| + } |
| +} |