summaryrefslogtreecommitdiffstats
path: root/skia/skia.gyp
diff options
context:
space:
mode:
authorrohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-31 15:52:03 +0000
committerrohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-31 15:52:03 +0000
commit25bd529a77d7de22376688ae49a7b24e64c7d91c (patch)
tree94586faeff18f9bb55cc2acb9925bf194793a0ec /skia/skia.gyp
parentc422a86428ae3ec62a964b1705183ef5275d39b1 (diff)
downloadchromium_src-25bd529a77d7de22376688ae49a7b24e64c7d91c.zip
chromium_src-25bd529a77d7de22376688ae49a7b24e64c7d91c.tar.gz
chromium_src-25bd529a77d7de22376688ae49a7b24e64c7d91c.tar.bz2
Modifications to get skia headers compiling on iOS.
This is a barebones implementation of the skia target in skia.gyp. iOS will not use a full skia implementation, but it will use an occasional header here and there. Those headers require an implementation of SkDebugf_FileLine(), so this CL adds a barebones skia target that simply compiles skia/ext/google_logging.cc. BUG=None TEST=None Review URL: https://chromiumcodereview.appspot.com/10832081 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149193 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/skia.gyp')
-rw-r--r--skia/skia.gyp24
1 files changed, 18 insertions, 6 deletions
diff --git a/skia/skia.gyp b/skia/skia.gyp
index 17c817a..824a748 100644
--- a/skia/skia.gyp
+++ b/skia/skia.gyp
@@ -1003,6 +1003,15 @@
}],
],
}],
+ [ 'OS == "ios"', {
+ 'sources/': [
+ # iOS does not require most of skia and only needs a single file.
+ # Rather than creating a separate top-level target, simply exclude
+ # all files except for the one that is needed.
+ ['exclude', '.*'],
+ ['include', '^ext/google_logging\\.cc$'],
+ ],
+ }],
[ 'OS == "mac"', {
'defines': [
'SK_BUILD_FOR_MAC',
@@ -1072,12 +1081,15 @@
],
},
}],
- ],
- 'dependencies': [
- 'skia_opts',
- '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
- '../third_party/sfntly/sfntly.gyp:sfntly',
- '../third_party/zlib/zlib.gyp:zlib',
+ ['OS != "ios"', {
+
+ 'dependencies': [
+ 'skia_opts',
+ '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
+ '../third_party/sfntly/sfntly.gyp:sfntly',
+ '../third_party/zlib/zlib.gyp:zlib',
+ ],
+ }],
],
'direct_dependent_settings': {
'include_dirs': [