1# Copyright 2015 Google Inc.
2#
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5#Animated widgets are views which use animator.
6
7{
8  'targets': [
9    {
10      'target_name': 'views_animated',
11      'type': 'static_library',
12      'dependencies': [
13        'skia_lib.gyp:skia_lib',
14        'animator.gyp:*',
15        'views.gyp:*',
16        'xml.gyp:*',
17      ],
18      'include_dirs': [
19        '../include/views/animated',
20        '../include/views/unix',
21      ],
22      'sources': [
23        '../include/views/animated/SkBorderView.h',
24        '../include/views/animated/SkImageView.h',
25        '../include/views/animated/SkProgressBarView.h',
26        '../include/views/animated/SkScrollBarView.h',
27        '../include/views/animated/SkWidgetViews.h',
28
29        '../src/views/animated/SkBorderView.cpp',
30        '../src/views/animated/SkImageView.cpp',
31        '../src/views/animated/SkProgressBarView.cpp',
32        '../src/views/animated/SkScrollBarView.cpp',
33        '../src/views/animated/SkStaticTextView.cpp',
34        '../src/views/animated/SkWidgetViews.cpp',
35      ],
36      'conditions': [
37        [ 'skia_os == "mac"', {
38          'link_settings': {
39            'libraries': [
40              '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
41              '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
42            ],
43          },
44        }],
45        [ 'skia_os == "android"', {
46          # Android does not support animator so we need to remove all files
47          # that have references to it.
48          'include_dirs!': [
49            '../include/animator',
50          ],
51          'sources!': [
52            '../src/views/animated/SkBorderView.cpp',
53            '../src/views/animated/SkImageView.cpp',
54            '../src/views/animated/SkProgressBarView.cpp',
55            '../src/views/animated/SkScrollBarView.cpp',
56            '../src/views/animated/SkStaticTextView.cpp',
57            '../src/views/animated/SkWidgetViews.cpp',
58          ],
59        }],
60      ],
61      'direct_dependent_settings': {
62        'include_dirs': [
63          '../include/views/animated',
64        ],
65      },
66    },
67  ],
68}
69