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', |
bungeman@google.com | 8c6a4f2 | 2013-04-23 18:06:23 +0000 | [diff] [blame] | 22 | '../include/images', |
commit-bot@chromium.org | 064779a | 2013-07-01 17:50:29 +0000 | [diff] [blame] | 23 | '../include/pathops', |
junov@chromium.org | 77eec24 | 2012-07-18 17:54:45 +0000 | [diff] [blame] | 24 | '../include/pipe', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 25 | '../include/utils', |
epoger@google.com | 0a030cd | 2011-06-02 19:52:14 +0000 | [diff] [blame] | 26 | '../include/utils/mac', |
senorblanco@chromium.org | 907afca | 2011-06-01 20:55:45 +0000 | [diff] [blame] | 27 | '../include/utils/unix', |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 28 | '../include/utils/win', |
junov@chromium.org | baa0220 | 2013-01-24 14:38:23 +0000 | [diff] [blame] | 29 | '../src/core', |
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', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 33 | ], |
| 34 | 'sources': [ |
egdaniel | ea902d9 | 2014-06-04 10:37:06 -0700 | [diff] [blame] | 35 | '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] | 36 | ], |
| 37 | 'sources!': [ |
bungeman@google.com | 63aab2f | 2011-06-01 16:15:43 +0000 | [diff] [blame] | 38 | '../src/utils/SDL/SkOSWindow_SDL.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 39 | ], |
| 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 | }, |
bungeman@google.com | 5548752 | 2012-05-14 14:09:24 +0000 | [diff] [blame] | 54 | 'sources!': [ |
| 55 | '../src/utils/SkThreadUtils_pthread_other.cpp', |
| 56 | ], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 57 | },{ #else if 'skia_os != "mac"' |
senorblanco@chromium.org | 907afca | 2011-06-01 20:55:45 +0000 | [diff] [blame] | 58 | 'include_dirs!': [ |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 59 | '../include/utils/mac', |
| 60 | ], |
| 61 | 'sources!': [ |
| 62 | '../include/utils/mac/SkCGUtils.h', |
| 63 | '../src/utils/mac/SkCreateCGImageRef.cpp', |
bungeman@google.com | 5548752 | 2012-05-14 14:09:24 +0000 | [diff] [blame] | 64 | '../src/utils/SkThreadUtils_pthread_mach.cpp', |
senorblanco@chromium.org | 907afca | 2011-06-01 20:55:45 +0000 | [diff] [blame] | 65 | ], |
bungeman@google.com | 63aab2f | 2011-06-01 16:15:43 +0000 | [diff] [blame] | 66 | }], |
borenet@google.com | 05d550e | 2013-06-11 15:52:19 +0000 | [diff] [blame] | 67 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { |
bungeman@google.com | 5548752 | 2012-05-14 14:09:24 +0000 | [diff] [blame] | 68 | 'sources!': [ |
| 69 | '../src/utils/SkThreadUtils_pthread_other.cpp', |
| 70 | ], |
borenet@google.com | 05d550e | 2013-06-11 15:52:19 +0000 | [diff] [blame] | 71 | },{ #else if 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]' |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 72 | 'include_dirs!': [ |
| 73 | '../include/utils/unix', |
| 74 | ], |
bungeman@google.com | 5548752 | 2012-05-14 14:09:24 +0000 | [diff] [blame] | 75 | 'sources!': [ |
| 76 | '../src/utils/SkThreadUtils_pthread_linux.cpp', |
| 77 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 78 | }], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 79 | [ 'skia_os == "win"', { |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 80 | 'direct_dependent_settings': { |
| 81 | 'include_dirs': [ |
| 82 | '../include/utils/win', |
| 83 | ], |
| 84 | }, |
bungeman@google.com | 5548752 | 2012-05-14 14:09:24 +0000 | [diff] [blame] | 85 | 'sources!': [ |
| 86 | '../src/utils/SkThreadUtils_pthread.cpp', |
| 87 | '../src/utils/SkThreadUtils_pthread.h', |
| 88 | '../src/utils/SkThreadUtils_pthread_other.cpp', |
| 89 | ], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 90 | },{ #else if 'skia_os != "win"' |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 91 | 'include_dirs!': [ |
| 92 | '../include/utils/win', |
| 93 | ], |
bsalomon@google.com | bd7c641 | 2011-12-01 16:34:28 +0000 | [diff] [blame] | 94 | 'sources/': [ ['exclude', '_win.(h|cpp)$'],], |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 95 | 'sources!': [ |
| 96 | '../include/utils/win/SkAutoCoInitialize.h', |
bungeman@google.com | b29c883 | 2011-10-10 13:19:10 +0000 | [diff] [blame] | 97 | '../include/utils/win/SkHRESULT.h', |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 98 | '../include/utils/win/SkIStream.h', |
| 99 | '../include/utils/win/SkTScopedComPtr.h', |
| 100 | '../src/utils/win/SkAutoCoInitialize.cpp', |
bungeman@google.com | 72cf4fc | 2014-03-21 22:48:32 +0000 | [diff] [blame] | 101 | '../src/utils/win/SkDWrite.h', |
| 102 | '../src/utils/win/SkDWrite.cpp', |
bungeman@google.com | e8f0592 | 2012-08-16 16:13:40 +0000 | [diff] [blame] | 103 | '../src/utils/win/SkDWriteFontFileStream.cpp', |
| 104 | '../src/utils/win/SkDWriteFontFileStream.h', |
| 105 | '../src/utils/win/SkDWriteGeometrySink.cpp', |
| 106 | '../src/utils/win/SkDWriteGeometrySink.h', |
bungeman@google.com | b29c883 | 2011-10-10 13:19:10 +0000 | [diff] [blame] | 107 | '../src/utils/win/SkHRESULT.cpp', |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 108 | '../src/utils/win/SkIStream.cpp', |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 109 | ], |
bungeman@google.com | 3b0a8da | 2011-06-02 15:38:06 +0000 | [diff] [blame] | 110 | }], |
commit-bot@chromium.org | 23a9121 | 2013-11-12 17:44:28 +0000 | [diff] [blame] | 111 | ['skia_run_pdfviewer_in_gm', { |
| 112 | 'defines': [ |
| 113 | 'SK_BUILD_NATIVE_PDF_RENDERER', |
| 114 | ], |
| 115 | }], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 116 | ], |
| 117 | 'direct_dependent_settings': { |
| 118 | 'include_dirs': [ |
| 119 | '../include/utils', |
commit-bot@chromium.org | ef57b7e | 2014-02-28 20:31:31 +0000 | [diff] [blame] | 120 | '../src/utils', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 121 | ], |
| 122 | }, |
| 123 | }, |
tomhudson | f7edcde | 2015-03-23 12:51:20 -0700 | [diff] [blame] | 124 | { |
| 125 | 'target_name': 'android_utils', |
| 126 | 'product_name': 'skia_android_utils', |
| 127 | 'type': 'static_library', |
| 128 | 'standalone_static_library': 1, |
| 129 | 'dependencies': [ |
| 130 | 'core.gyp:*', |
| 131 | ], |
| 132 | 'sources': [ |
| 133 | '../src/utils/android/SkAndroidSDKCanvas.h', |
| 134 | '../src/utils/android/SkAndroidSDKCanvas.cpp', |
tomhudson | 573ae01 | 2015-03-27 12:22:01 -0700 | [diff] [blame] | 135 | '../src/utils/android/SkHwuiRenderer.h', |
| 136 | '../src/utils/android/SkHwuiRenderer.cpp', |
tomhudson | f7edcde | 2015-03-23 12:51:20 -0700 | [diff] [blame] | 137 | ], |
| 138 | 'direct_dependent_settings': { |
| 139 | 'include_dirs': [ |
| 140 | '../src/utils/android', |
| 141 | ], |
| 142 | }, |
| 143 | }, |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 144 | ], |
| 145 | } |