blob: f31e0c62c2eb2c3cc12f897459f6762e6a9258e6 [file] [log] [blame]
scroggo3e562272015-03-25 10:22:41 -07001# 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.
bungeman@google.com5e41b372012-03-23 14:11:43 +00005#Animated widgets are views which use animator.
6
7{
8 'targets': [
9 {
10 'target_name': 'views_animated',
11 'type': 'static_library',
bungeman@google.comb8f36552013-07-22 14:39:45 +000012 'dependencies': [
13 'skia_lib.gyp:skia_lib',
bungeman@google.comb8f36552013-07-22 14:39:45 +000014 'animator.gyp:*',
15 'views.gyp:*',
16 'xml.gyp:*',
17 ],
bungeman@google.com5e41b372012-03-23 14:11:43 +000018 'include_dirs': [
bungeman@google.com5e41b372012-03-23 14:11:43 +000019 '../include/views/animated',
scroggo@google.comf8d7d272013-02-22 21:38:35 +000020 '../include/views/unix',
bungeman@google.com5e41b372012-03-23 14:11:43 +000021 ],
22 'sources': [
bungeman@google.com37946b52012-07-10 21:54:31 +000023 '../include/views/animated/SkBorderView.h',
24 '../include/views/animated/SkImageView.h',
25 '../include/views/animated/SkProgressBarView.h',
26 '../include/views/animated/SkScrollBarView.h',
bungeman@google.com5e41b372012-03-23 14:11:43 +000027 '../include/views/animated/SkWidgetViews.h',
28
29 '../src/views/animated/SkBorderView.cpp',
30 '../src/views/animated/SkImageView.cpp',
bungeman@google.com5e41b372012-03-23 14:11:43 +000031 '../src/views/animated/SkProgressBarView.cpp',
32 '../src/views/animated/SkScrollBarView.cpp',
33 '../src/views/animated/SkStaticTextView.cpp',
34 '../src/views/animated/SkWidgetViews.cpp',
35 ],
bungeman@google.com5e41b372012-03-23 14:11:43 +000036 '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',
bungeman@google.com5e41b372012-03-23 14:11:43 +000054 '../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}