scroggo@google.com | f1754ec | 2013-06-28 21:32:00 +0000 | [diff] [blame] | 1 | # Gyp for utils. |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 2 | { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 3 | 'targets': [ |
| 4 | { |
| 5 | 'target_name': 'utils', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 6 | 'product_name': 'skia_utils', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 7 | 'type': 'static_library', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 8 | 'standalone_static_library': 1, |
bungeman@google.com | b8f3655 | 2013-07-22 14:39:45 +0000 | [diff] [blame] | 9 | 'dependencies': [ |
| 10 | 'core.gyp:*', |
krajcevski | e90c900 | 2014-08-05 07:37:26 -0700 | [diff] [blame] | 11 | 'etc1.gyp:libetc1', |
bungeman@google.com | b8f3655 | 2013-07-22 14:39:45 +0000 | [diff] [blame] | 12 | ], |
egdaniel | ea902d9 | 2014-06-04 10:37:06 -0700 | [diff] [blame] | 13 | 'includes': [ |
| 14 | 'utils.gypi', |
| 15 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 16 | 'include_dirs': [ |
junov@chromium.org | 77eec24 | 2012-07-18 17:54:45 +0000 | [diff] [blame] | 17 | '../include/effects', |
bungeman@google.com | 8c6a4f2 | 2013-04-23 18:06:23 +0000 | [diff] [blame] | 18 | '../include/images', |
commit-bot@chromium.org | 064779a | 2013-07-01 17:50:29 +0000 | [diff] [blame] | 19 | '../include/pathops', |
junov@chromium.org | 77eec24 | 2012-07-18 17:54:45 +0000 | [diff] [blame] | 20 | '../include/pipe', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 21 | '../include/utils', |
epoger@google.com | 0a030cd | 2011-06-02 19:52:14 +0000 | [diff] [blame] | 22 | '../include/utils/mac', |
senorblanco@chromium.org | 907afca | 2011-06-01 20:55:45 +0000 | [diff] [blame] | 23 | '../include/utils/unix', |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 24 | '../include/utils/win', |
junov@chromium.org | baa0220 | 2013-01-24 14:38:23 +0000 | [diff] [blame] | 25 | '../src/core', |
krajcevski | 630598c | 2014-07-14 12:00:04 -0700 | [diff] [blame] | 26 | '../src/opts', |
bungeman@google.com | e8f0592 | 2012-08-16 16:13:40 +0000 | [diff] [blame] | 27 | '../src/utils', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 28 | ], |
| 29 | 'sources': [ |
egdaniel | ea902d9 | 2014-06-04 10:37:06 -0700 | [diff] [blame] | 30 | '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] | 31 | ], |
| 32 | 'sources!': [ |
bungeman@google.com | 63aab2f | 2011-06-01 16:15:43 +0000 | [diff] [blame] | 33 | '../src/utils/SDL/SkOSWindow_SDL.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 34 | ], |
| 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 | }, |
bungeman@google.com | 5548752 | 2012-05-14 14:09:24 +0000 | [diff] [blame] | 49 | 'sources!': [ |
| 50 | '../src/utils/SkThreadUtils_pthread_other.cpp', |
| 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', |
bungeman@google.com | 5548752 | 2012-05-14 14:09:24 +0000 | [diff] [blame] | 59 | '../src/utils/SkThreadUtils_pthread_mach.cpp', |
senorblanco@chromium.org | 907afca | 2011-06-01 20:55:45 +0000 | [diff] [blame] | 60 | ], |
bungeman@google.com | 63aab2f | 2011-06-01 16:15:43 +0000 | [diff] [blame] | 61 | }], |
borenet@google.com | 05d550e | 2013-06-11 15:52:19 +0000 | [diff] [blame] | 62 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { |
bungeman@google.com | 5548752 | 2012-05-14 14:09:24 +0000 | [diff] [blame] | 63 | 'sources!': [ |
| 64 | '../src/utils/SkThreadUtils_pthread_other.cpp', |
| 65 | ], |
borenet@google.com | 05d550e | 2013-06-11 15:52:19 +0000 | [diff] [blame] | 66 | },{ #else if 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]' |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 67 | 'include_dirs!': [ |
| 68 | '../include/utils/unix', |
| 69 | ], |
bungeman@google.com | 5548752 | 2012-05-14 14:09:24 +0000 | [diff] [blame] | 70 | 'sources!': [ |
| 71 | '../src/utils/SkThreadUtils_pthread_linux.cpp', |
| 72 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 73 | }], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 74 | [ 'skia_os == "win"', { |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 75 | 'direct_dependent_settings': { |
| 76 | 'include_dirs': [ |
| 77 | '../include/utils/win', |
| 78 | ], |
| 79 | }, |
bungeman@google.com | 5548752 | 2012-05-14 14:09:24 +0000 | [diff] [blame] | 80 | 'sources!': [ |
| 81 | '../src/utils/SkThreadUtils_pthread.cpp', |
| 82 | '../src/utils/SkThreadUtils_pthread.h', |
| 83 | '../src/utils/SkThreadUtils_pthread_other.cpp', |
| 84 | ], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 85 | },{ #else if 'skia_os != "win"' |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 86 | 'include_dirs!': [ |
| 87 | '../include/utils/win', |
| 88 | ], |
bsalomon@google.com | bd7c641 | 2011-12-01 16:34:28 +0000 | [diff] [blame] | 89 | 'sources/': [ ['exclude', '_win.(h|cpp)$'],], |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 90 | 'sources!': [ |
| 91 | '../include/utils/win/SkAutoCoInitialize.h', |
bungeman@google.com | b29c883 | 2011-10-10 13:19:10 +0000 | [diff] [blame] | 92 | '../include/utils/win/SkHRESULT.h', |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 93 | '../include/utils/win/SkIStream.h', |
| 94 | '../include/utils/win/SkTScopedComPtr.h', |
| 95 | '../src/utils/win/SkAutoCoInitialize.cpp', |
bungeman@google.com | 72cf4fc | 2014-03-21 22:48:32 +0000 | [diff] [blame] | 96 | '../src/utils/win/SkDWrite.h', |
| 97 | '../src/utils/win/SkDWrite.cpp', |
bungeman@google.com | e8f0592 | 2012-08-16 16:13:40 +0000 | [diff] [blame] | 98 | '../src/utils/win/SkDWriteFontFileStream.cpp', |
| 99 | '../src/utils/win/SkDWriteFontFileStream.h', |
| 100 | '../src/utils/win/SkDWriteGeometrySink.cpp', |
| 101 | '../src/utils/win/SkDWriteGeometrySink.h', |
bungeman@google.com | b29c883 | 2011-10-10 13:19:10 +0000 | [diff] [blame] | 102 | '../src/utils/win/SkHRESULT.cpp', |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 103 | '../src/utils/win/SkIStream.cpp', |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 104 | ], |
bungeman@google.com | 3b0a8da | 2011-06-02 15:38:06 +0000 | [diff] [blame] | 105 | }], |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 106 | [ 'skia_os == "nacl"', { |
borenet@google.com | a98eb91 | 2012-09-04 21:09:40 +0000 | [diff] [blame] | 107 | 'sources': [ |
| 108 | '../src/utils/SkThreadUtils_pthread_other.cpp', |
| 109 | ], |
| 110 | 'sources!': [ |
| 111 | '../src/utils/SkThreadUtils_pthread_linux.cpp', |
| 112 | ], |
| 113 | }], |
commit-bot@chromium.org | 23a9121 | 2013-11-12 17:44:28 +0000 | [diff] [blame] | 114 | ['skia_run_pdfviewer_in_gm', { |
| 115 | 'defines': [ |
| 116 | 'SK_BUILD_NATIVE_PDF_RENDERER', |
| 117 | ], |
| 118 | }], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 119 | ], |
| 120 | 'direct_dependent_settings': { |
| 121 | 'include_dirs': [ |
| 122 | '../include/utils', |
commit-bot@chromium.org | ef57b7e | 2014-02-28 20:31:31 +0000 | [diff] [blame] | 123 | '../src/utils', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 124 | ], |
| 125 | }, |
| 126 | }, |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 127 | ], |
| 128 | } |