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. |
scroggo@google.com | f1754ec | 2013-06-28 21:32:00 +0000 | [diff] [blame] | 5 | # Gyp for utils. |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 6 | { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 7 | 'targets': [ |
| 8 | { |
| 9 | 'target_name': 'utils', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 10 | 'product_name': 'skia_utils', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 11 | 'type': 'static_library', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 12 | 'standalone_static_library': 1, |
bungeman@google.com | b8f3655 | 2013-07-22 14:39:45 +0000 | [diff] [blame] | 13 | 'dependencies': [ |
| 14 | 'core.gyp:*', |
krajcevski | e90c900 | 2014-08-05 07:37:26 -0700 | [diff] [blame] | 15 | 'etc1.gyp:libetc1', |
bungeman@google.com | b8f3655 | 2013-07-22 14:39:45 +0000 | [diff] [blame] | 16 | ], |
egdaniel | ea902d9 | 2014-06-04 10:37:06 -0700 | [diff] [blame] | 17 | 'includes': [ |
| 18 | 'utils.gypi', |
| 19 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 20 | 'include_dirs': [ |
junov@chromium.org | 77eec24 | 2012-07-18 17:54:45 +0000 | [diff] [blame] | 21 | '../include/effects', |
reed | 499abab | 2015-08-20 12:30:20 -0700 | [diff] [blame] | 22 | '../include/gpu', |
bungeman@google.com | 8c6a4f2 | 2013-04-23 18:06:23 +0000 | [diff] [blame] | 23 | '../include/images', |
commit-bot@chromium.org | 064779a | 2013-07-01 17:50:29 +0000 | [diff] [blame] | 24 | '../include/pathops', |
mtklein | cd1f2da | 2015-07-28 08:55:14 -0700 | [diff] [blame] | 25 | '../include/private', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 26 | '../include/utils', |
epoger@google.com | 0a030cd | 2011-06-02 19:52:14 +0000 | [diff] [blame] | 27 | '../include/utils/mac', |
junov@chromium.org | baa0220 | 2013-01-24 14:38:23 +0000 | [diff] [blame] | 28 | '../src/core', |
bsalomon | f276ac5 | 2015-10-09 13:36:42 -0700 | [diff] [blame] | 29 | '../src/gpu', |
bsalomon | 5581236 | 2015-06-10 08:49:28 -0700 | [diff] [blame] | 30 | '../src/image', |
krajcevski | 630598c | 2014-07-14 12:00:04 -0700 | [diff] [blame] | 31 | '../src/opts', |
bungeman@google.com | e8f0592 | 2012-08-16 16:13:40 +0000 | [diff] [blame] | 32 | '../src/utils', |
bungeman | 2853f00 | 2016-06-16 15:31:42 -0700 | [diff] [blame] | 33 | '../src/utils/win', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 34 | ], |
| 35 | 'sources': [ |
egdaniel | ea902d9 | 2014-06-04 10:37:06 -0700 | [diff] [blame] | 36 | 'utils.gypi', # Makes the gypi appear in IDEs (but does not modify the build). |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 37 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 38 | 'conditions': [ |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 39 | [ 'skia_os == "mac"', { |
epoger@google.com | c39f175 | 2011-06-03 17:52:12 +0000 | [diff] [blame] | 40 | 'link_settings': { |
| 41 | 'libraries': [ |
| 42 | '$(SDKROOT)/System/Library/Frameworks/AGL.framework', |
| 43 | ], |
| 44 | }, |
caryclark@google.com | 5c83dcc | 2012-09-26 13:02:37 +0000 | [diff] [blame] | 45 | }], |
| 46 | [ 'skia_os in ["mac", "ios"]', { |
bungeman@google.com | fe5afe5 | 2011-06-24 13:58:17 +0000 | [diff] [blame] | 47 | 'direct_dependent_settings': { |
| 48 | 'include_dirs': [ |
| 49 | '../include/utils/mac', |
| 50 | ], |
| 51 | }, |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 52 | },{ #else if 'skia_os != "mac"' |
senorblanco@chromium.org | 907afca | 2011-06-01 20:55:45 +0000 | [diff] [blame] | 53 | 'include_dirs!': [ |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 54 | '../include/utils/mac', |
| 55 | ], |
| 56 | 'sources!': [ |
| 57 | '../include/utils/mac/SkCGUtils.h', |
| 58 | '../src/utils/mac/SkCreateCGImageRef.cpp', |
senorblanco@chromium.org | 907afca | 2011-06-01 20:55:45 +0000 | [diff] [blame] | 59 | ], |
bungeman@google.com | 63aab2f | 2011-06-01 16:15:43 +0000 | [diff] [blame] | 60 | }], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 61 | [ 'skia_os == "win"', { |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 62 | 'direct_dependent_settings': { |
| 63 | 'include_dirs': [ |
bungeman | 2853f00 | 2016-06-16 15:31:42 -0700 | [diff] [blame] | 64 | '../src/utils/win', |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 65 | ], |
| 66 | }, |
bungeman@google.com | 5548752 | 2012-05-14 14:09:24 +0000 | [diff] [blame] | 67 | 'sources!': [ |
| 68 | '../src/utils/SkThreadUtils_pthread.cpp', |
| 69 | '../src/utils/SkThreadUtils_pthread.h', |
bungeman@google.com | 5548752 | 2012-05-14 14:09:24 +0000 | [diff] [blame] | 70 | ], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 71 | },{ #else if 'skia_os != "win"' |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 72 | 'include_dirs!': [ |
bungeman | 2853f00 | 2016-06-16 15:31:42 -0700 | [diff] [blame] | 73 | '../src/utils/win', |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 74 | ], |
bsalomon@google.com | bd7c641 | 2011-12-01 16:34:28 +0000 | [diff] [blame] | 75 | 'sources/': [ ['exclude', '_win.(h|cpp)$'],], |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 76 | 'sources!': [ |
bungeman | 2853f00 | 2016-06-16 15:31:42 -0700 | [diff] [blame] | 77 | '../src/utils/win/SkAutoCoInitialize.h', |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 78 | '../src/utils/win/SkAutoCoInitialize.cpp', |
bungeman@google.com | 72cf4fc | 2014-03-21 22:48:32 +0000 | [diff] [blame] | 79 | '../src/utils/win/SkDWrite.h', |
| 80 | '../src/utils/win/SkDWrite.cpp', |
bungeman@google.com | e8f0592 | 2012-08-16 16:13:40 +0000 | [diff] [blame] | 81 | '../src/utils/win/SkDWriteFontFileStream.cpp', |
| 82 | '../src/utils/win/SkDWriteFontFileStream.h', |
| 83 | '../src/utils/win/SkDWriteGeometrySink.cpp', |
| 84 | '../src/utils/win/SkDWriteGeometrySink.h', |
bungeman | 2853f00 | 2016-06-16 15:31:42 -0700 | [diff] [blame] | 85 | '../src/utils/win/SkHRESULT.h', |
bungeman@google.com | b29c883 | 2011-10-10 13:19:10 +0000 | [diff] [blame] | 86 | '../src/utils/win/SkHRESULT.cpp', |
bungeman | 2853f00 | 2016-06-16 15:31:42 -0700 | [diff] [blame] | 87 | '../src/utils/win/SkIStream.h', |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 88 | '../src/utils/win/SkIStream.cpp', |
bungeman | 2853f00 | 2016-06-16 15:31:42 -0700 | [diff] [blame] | 89 | '../src/utils/win/SkTScopedComPtr.h', |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 90 | ], |
bungeman@google.com | 3b0a8da | 2011-06-02 15:38:06 +0000 | [diff] [blame] | 91 | }], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 92 | ], |
| 93 | 'direct_dependent_settings': { |
| 94 | 'include_dirs': [ |
| 95 | '../include/utils', |
commit-bot@chromium.org | ef57b7e | 2014-02-28 20:31:31 +0000 | [diff] [blame] | 96 | '../src/utils', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 97 | ], |
| 98 | }, |
| 99 | }, |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 100 | ], |
| 101 | } |