skia2/gyp/views_animated.gyp
commit-bot@chromium.org 16348bb421 Remove dependency of views on angle
Just like with http://code.google.com/p/skia/source/detail?r=13618,
listing angle.gyp as a dependency when in the Android tree (i.e.
w/o third_party/externals) causes gyp_to_android.py to fail.

(See http://108.170.220.27:10115/builders/Housekeeper-PerCommit-AndroidRoll/builds/229/steps/Merge/logs/stdio
for example failure.)

Fortunately, views (and views_animated) has no need to depend directly
on angle.

R=bungeman@google.com, bsalomon@google.com, robertphillips@google.com
TBR=bsalomon@google.com

BUG=skia:2447

Author: scroggo@google.com

Review URL: https://codereview.chromium.org/253773004

git-svn-id: http://skia.googlecode.com/svn/trunk@14426 2bbb7eff-a529-9590-31e7-b0007b416f81
2014-04-29 00:38:39 +00:00

65 lines
2.0 KiB
Python

#Animated widgets are views which use animator.
{
'targets': [
{
'target_name': 'views_animated',
'type': 'static_library',
'dependencies': [
'skia_lib.gyp:skia_lib',
'animator.gyp:*',
'views.gyp:*',
'xml.gyp:*',
],
'include_dirs': [
'../include/views/animated',
'../include/views/unix',
],
'sources': [
'../include/views/animated/SkBorderView.h',
'../include/views/animated/SkImageView.h',
'../include/views/animated/SkProgressBarView.h',
'../include/views/animated/SkScrollBarView.h',
'../include/views/animated/SkWidgetViews.h',
'../src/views/animated/SkBorderView.cpp',
'../src/views/animated/SkImageView.cpp',
'../src/views/animated/SkProgressBarView.cpp',
'../src/views/animated/SkScrollBarView.cpp',
'../src/views/animated/SkStaticTextView.cpp',
'../src/views/animated/SkWidgetViews.cpp',
],
'conditions': [
[ 'skia_os == "mac"', {
'link_settings': {
'libraries': [
'$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
'$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
],
},
}],
[ 'skia_os == "android"', {
# Android does not support animator so we need to remove all files
# that have references to it.
'include_dirs!': [
'../include/animator',
],
'sources!': [
'../src/views/animated/SkBorderView.cpp',
'../src/views/animated/SkImageView.cpp',
'../src/views/animated/SkProgressBarView.cpp',
'../src/views/animated/SkScrollBarView.cpp',
'../src/views/animated/SkStaticTextView.cpp',
'../src/views/animated/SkWidgetViews.cpp',
],
}],
],
'direct_dependent_settings': {
'include_dirs': [
'../include/views/animated',
],
},
},
],
}