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