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', |
junov@chromium.org | 77eec24 | 2012-07-18 17:54:45 +0000 | [diff] [blame] | 25 | '../include/pipe', |
mtklein | cd1f2da | 2015-07-28 08:55:14 -0700 | [diff] [blame] | 26 | '../include/private', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 27 | '../include/utils', |
epoger@google.com | 0a030cd | 2011-06-02 19:52:14 +0000 | [diff] [blame] | 28 | '../include/utils/mac', |
senorblanco@chromium.org | 907afca | 2011-06-01 20:55:45 +0000 | [diff] [blame] | 29 | '../include/utils/unix', |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 30 | '../include/utils/win', |
junov@chromium.org | baa0220 | 2013-01-24 14:38:23 +0000 | [diff] [blame] | 31 | '../src/core', |
bsalomon | f276ac5 | 2015-10-09 13:36:42 -0700 | [diff] [blame] | 32 | '../src/gpu', |
bsalomon | 5581236 | 2015-06-10 08:49:28 -0700 | [diff] [blame] | 33 | '../src/image', |
krajcevski | 630598c | 2014-07-14 12:00:04 -0700 | [diff] [blame] | 34 | '../src/opts', |
bungeman@google.com | e8f0592 | 2012-08-16 16:13:40 +0000 | [diff] [blame] | 35 | '../src/utils', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 36 | ], |
| 37 | 'sources': [ |
egdaniel | ea902d9 | 2014-06-04 10:37:06 -0700 | [diff] [blame] | 38 | '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] | 39 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 40 | 'conditions': [ |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 41 | [ 'skia_os == "mac"', { |
epoger@google.com | c39f175 | 2011-06-03 17:52:12 +0000 | [diff] [blame] | 42 | 'link_settings': { |
| 43 | 'libraries': [ |
| 44 | '$(SDKROOT)/System/Library/Frameworks/AGL.framework', |
| 45 | ], |
| 46 | }, |
caryclark@google.com | 5c83dcc | 2012-09-26 13:02:37 +0000 | [diff] [blame] | 47 | }], |
| 48 | [ 'skia_os in ["mac", "ios"]', { |
bungeman@google.com | fe5afe5 | 2011-06-24 13:58:17 +0000 | [diff] [blame] | 49 | 'direct_dependent_settings': { |
| 50 | 'include_dirs': [ |
| 51 | '../include/utils/mac', |
| 52 | ], |
| 53 | }, |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 54 | },{ #else if 'skia_os != "mac"' |
senorblanco@chromium.org | 907afca | 2011-06-01 20:55:45 +0000 | [diff] [blame] | 55 | 'include_dirs!': [ |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 56 | '../include/utils/mac', |
| 57 | ], |
| 58 | 'sources!': [ |
| 59 | '../include/utils/mac/SkCGUtils.h', |
| 60 | '../src/utils/mac/SkCreateCGImageRef.cpp', |
senorblanco@chromium.org | 907afca | 2011-06-01 20:55:45 +0000 | [diff] [blame] | 61 | ], |
bungeman@google.com | 63aab2f | 2011-06-01 16:15:43 +0000 | [diff] [blame] | 62 | }], |
borenet@google.com | 05d550e | 2013-06-11 15:52:19 +0000 | [diff] [blame] | 63 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { |
borenet@google.com | 05d550e | 2013-06-11 15:52:19 +0000 | [diff] [blame] | 64 | },{ #else if 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]' |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 65 | 'include_dirs!': [ |
| 66 | '../include/utils/unix', |
| 67 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 68 | }], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 69 | [ 'skia_os == "win"', { |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 70 | 'direct_dependent_settings': { |
| 71 | 'include_dirs': [ |
| 72 | '../include/utils/win', |
| 73 | ], |
| 74 | }, |
bungeman@google.com | 5548752 | 2012-05-14 14:09:24 +0000 | [diff] [blame] | 75 | 'sources!': [ |
| 76 | '../src/utils/SkThreadUtils_pthread.cpp', |
| 77 | '../src/utils/SkThreadUtils_pthread.h', |
bungeman@google.com | 5548752 | 2012-05-14 14:09:24 +0000 | [diff] [blame] | 78 | ], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 79 | },{ #else if 'skia_os != "win"' |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 80 | 'include_dirs!': [ |
| 81 | '../include/utils/win', |
| 82 | ], |
bsalomon@google.com | bd7c641 | 2011-12-01 16:34:28 +0000 | [diff] [blame] | 83 | 'sources/': [ ['exclude', '_win.(h|cpp)$'],], |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 84 | 'sources!': [ |
| 85 | '../include/utils/win/SkAutoCoInitialize.h', |
bungeman@google.com | b29c883 | 2011-10-10 13:19:10 +0000 | [diff] [blame] | 86 | '../include/utils/win/SkHRESULT.h', |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 87 | '../include/utils/win/SkIStream.h', |
| 88 | '../include/utils/win/SkTScopedComPtr.h', |
| 89 | '../src/utils/win/SkAutoCoInitialize.cpp', |
bungeman@google.com | 72cf4fc | 2014-03-21 22:48:32 +0000 | [diff] [blame] | 90 | '../src/utils/win/SkDWrite.h', |
| 91 | '../src/utils/win/SkDWrite.cpp', |
bungeman@google.com | e8f0592 | 2012-08-16 16:13:40 +0000 | [diff] [blame] | 92 | '../src/utils/win/SkDWriteFontFileStream.cpp', |
| 93 | '../src/utils/win/SkDWriteFontFileStream.h', |
| 94 | '../src/utils/win/SkDWriteGeometrySink.cpp', |
| 95 | '../src/utils/win/SkDWriteGeometrySink.h', |
bungeman@google.com | b29c883 | 2011-10-10 13:19:10 +0000 | [diff] [blame] | 96 | '../src/utils/win/SkHRESULT.cpp', |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 97 | '../src/utils/win/SkIStream.cpp', |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 98 | ], |
bungeman@google.com | 3b0a8da | 2011-06-02 15:38:06 +0000 | [diff] [blame] | 99 | }], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 100 | ], |
| 101 | 'direct_dependent_settings': { |
| 102 | 'include_dirs': [ |
| 103 | '../include/utils', |
commit-bot@chromium.org | ef57b7e | 2014-02-28 20:31:31 +0000 | [diff] [blame] | 104 | '../src/utils', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 105 | ], |
| 106 | }, |
| 107 | }, |
tomhudson | f7edcde | 2015-03-23 12:51:20 -0700 | [diff] [blame] | 108 | { |
| 109 | 'target_name': 'android_utils', |
| 110 | 'product_name': 'skia_android_utils', |
| 111 | 'type': 'static_library', |
| 112 | 'standalone_static_library': 1, |
| 113 | 'dependencies': [ |
| 114 | 'core.gyp:*', |
| 115 | ], |
| 116 | 'sources': [ |
| 117 | '../src/utils/android/SkAndroidSDKCanvas.h', |
| 118 | '../src/utils/android/SkAndroidSDKCanvas.cpp', |
| 119 | ], |
| 120 | 'direct_dependent_settings': { |
| 121 | 'include_dirs': [ |
| 122 | '../src/utils/android', |
| 123 | ], |
| 124 | }, |
| 125 | }, |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 126 | ], |
| 127 | } |