scroggo | 3e56227 | 2015-03-25 10:22:41 -0700 | [diff] [blame] | 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. |
bungeman@google.com | 5e41b37 | 2012-03-23 14:11:43 +0000 | [diff] [blame] | 5 | #Animated widgets are views which use animator. |
| 6 | |
| 7 | { |
| 8 | 'targets': [ |
| 9 | { |
| 10 | 'target_name': 'views_animated', |
| 11 | 'type': 'static_library', |
bungeman@google.com | b8f3655 | 2013-07-22 14:39:45 +0000 | [diff] [blame] | 12 | 'dependencies': [ |
| 13 | 'skia_lib.gyp:skia_lib', |
bungeman@google.com | b8f3655 | 2013-07-22 14:39:45 +0000 | [diff] [blame] | 14 | 'animator.gyp:*', |
| 15 | 'views.gyp:*', |
| 16 | 'xml.gyp:*', |
| 17 | ], |
bungeman@google.com | 5e41b37 | 2012-03-23 14:11:43 +0000 | [diff] [blame] | 18 | 'include_dirs': [ |
bungeman@google.com | 5e41b37 | 2012-03-23 14:11:43 +0000 | [diff] [blame] | 19 | '../include/views/animated', |
scroggo@google.com | f8d7d27 | 2013-02-22 21:38:35 +0000 | [diff] [blame] | 20 | '../include/views/unix', |
bungeman@google.com | 5e41b37 | 2012-03-23 14:11:43 +0000 | [diff] [blame] | 21 | ], |
| 22 | 'sources': [ |
bungeman@google.com | 37946b5 | 2012-07-10 21:54:31 +0000 | [diff] [blame] | 23 | '../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.com | 5e41b37 | 2012-03-23 14:11:43 +0000 | [diff] [blame] | 27 | '../include/views/animated/SkWidgetViews.h', |
| 28 | |
| 29 | '../src/views/animated/SkBorderView.cpp', |
| 30 | '../src/views/animated/SkImageView.cpp', |
bungeman@google.com | 5e41b37 | 2012-03-23 14:11:43 +0000 | [diff] [blame] | 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 | ], |
bungeman@google.com | 5e41b37 | 2012-03-23 14:11:43 +0000 | [diff] [blame] | 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', |
bungeman@google.com | 5e41b37 | 2012-03-23 14:11:43 +0000 | [diff] [blame] | 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 | } |