epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 1 | { |
| 2 | 'includes': [ |
epoger@google.com | 5351b37 | 2011-07-01 17:16:26 +0000 | [diff] [blame] | 3 | 'common.gypi', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 4 | ], |
| 5 | 'targets': [ |
| 6 | { |
| 7 | 'target_name': 'utils', |
| 8 | 'type': 'static_library', |
| 9 | 'include_dirs': [ |
| 10 | '../include/config', |
| 11 | '../include/core', |
| 12 | '../include/utils', |
epoger@google.com | 0a030cd | 2011-06-02 19:52:14 +0000 | [diff] [blame] | 13 | '../include/utils/mac', |
senorblanco@chromium.org | 907afca | 2011-06-01 20:55:45 +0000 | [diff] [blame] | 14 | '../include/utils/unix', |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 15 | '../include/utils/win', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 16 | '../include/views', |
| 17 | '../include/effects', |
| 18 | '../include/xml', |
| 19 | ], |
| 20 | 'sources': [ |
| 21 | '../include/utils/SkBoundaryPatch.h', |
| 22 | '../include/utils/SkCamera.h', |
| 23 | '../include/utils/SkCubicInterval.h', |
| 24 | '../include/utils/SkCullPoints.h', |
| 25 | '../include/utils/SkDumpCanvas.h', |
| 26 | '../include/utils/SkEGLContext.h', |
| 27 | '../include/utils/SkGLCanvas.h', |
| 28 | '../include/utils/SkInterpolator.h', |
| 29 | '../include/utils/SkLayer.h', |
reed@google.com | c8cc60c | 2011-06-13 14:58:44 +0000 | [diff] [blame] | 30 | '../include/utils/SkMatrix44.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 31 | '../include/utils/SkMeshUtils.h', |
| 32 | '../include/utils/SkNinePatch.h', |
| 33 | '../include/utils/SkNWayCanvas.h', |
| 34 | '../include/utils/SkParse.h', |
| 35 | '../include/utils/SkParsePaint.h', |
| 36 | '../include/utils/SkParsePath.h', |
| 37 | '../include/utils/SkProxyCanvas.h', |
| 38 | '../include/utils/SkSfntUtils.h', |
| 39 | '../include/utils/SkTextBox.h', |
| 40 | '../include/utils/SkUnitMappers.h', |
| 41 | |
| 42 | '../src/utils/SkBoundaryPatch.cpp', |
| 43 | '../src/utils/SkCamera.cpp', |
| 44 | '../src/utils/SkColorMatrix.cpp', |
| 45 | '../src/utils/SkCubicInterval.cpp', |
| 46 | '../src/utils/SkCullPoints.cpp', |
| 47 | '../src/utils/SkDumpCanvas.cpp', |
| 48 | '../src/utils/SkEGLContext_none.cpp', |
| 49 | '../src/utils/SkInterpolator.cpp', |
| 50 | '../src/utils/SkLayer.cpp', |
reed@google.com | c8cc60c | 2011-06-13 14:58:44 +0000 | [diff] [blame] | 51 | '../src/utils/SkMatrix44.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 52 | '../src/utils/SkMeshUtils.cpp', |
| 53 | '../src/utils/SkNinePatch.cpp', |
| 54 | '../src/utils/SkNWayCanvas.cpp', |
| 55 | '../src/utils/SkOSFile.cpp', |
| 56 | '../src/utils/SkParse.cpp', |
| 57 | '../src/utils/SkParseColor.cpp', |
| 58 | '../src/utils/SkParsePath.cpp', |
| 59 | '../src/utils/SkProxyCanvas.cpp', |
| 60 | '../src/utils/SkSfntUtils.cpp', |
| 61 | '../src/utils/SkUnitMappers.cpp', |
| 62 | |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 63 | #mac |
bungeman@google.com | 63aab2f | 2011-06-01 16:15:43 +0000 | [diff] [blame] | 64 | '../include/utils/mac/SkCGUtils.h', |
bungeman@google.com | 63aab2f | 2011-06-01 16:15:43 +0000 | [diff] [blame] | 65 | '../src/utils/mac/SkCreateCGImageRef.cpp', |
| 66 | '../src/utils/mac/SkEGLContext_mac.cpp', |
bungeman@google.com | 63aab2f | 2011-06-01 16:15:43 +0000 | [diff] [blame] | 67 | |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 68 | #mesa |
bungeman@google.com | 63aab2f | 2011-06-01 16:15:43 +0000 | [diff] [blame] | 69 | '../src/utils/mesa/SkEGLContext_Mesa.cpp', |
| 70 | |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 71 | #sdl |
bungeman@google.com | 63aab2f | 2011-06-01 16:15:43 +0000 | [diff] [blame] | 72 | '../src/utils/SDL/SkOSWindow_SDL.cpp', |
| 73 | |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 74 | #*nix |
bungeman@google.com | 63aab2f | 2011-06-01 16:15:43 +0000 | [diff] [blame] | 75 | '../src/utils/unix/keysym2ucs.c', |
| 76 | '../src/utils/unix/SkEGLContext_Unix.cpp', |
| 77 | '../src/utils/unix/SkOSWindow_Unix.cpp', |
| 78 | |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 79 | #windows |
| 80 | '../include/utils/win/SkAutoCoInitialize.h', |
| 81 | '../include/utils/win/SkIStream.h', |
| 82 | '../include/utils/win/SkTScopedComPtr.h', |
| 83 | '../src/utils/win/SkAutoCoInitialize.cpp', |
bungeman@google.com | 63aab2f | 2011-06-01 16:15:43 +0000 | [diff] [blame] | 84 | '../src/utils/win/skia_win.cpp', |
bungeman@google.com | 3b0a8da | 2011-06-02 15:38:06 +0000 | [diff] [blame] | 85 | '../src/utils/win/SkEGLContext_Win.cpp', |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 86 | '../src/utils/win/SkIStream.cpp', |
bungeman@google.com | 63aab2f | 2011-06-01 16:15:43 +0000 | [diff] [blame] | 87 | '../src/utils/win/SkOSWindow_Win.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 88 | ], |
| 89 | 'sources!': [ |
bungeman@google.com | 63aab2f | 2011-06-01 16:15:43 +0000 | [diff] [blame] | 90 | '../src/utils/mesa/SkEGLContext_Mesa.cpp', |
| 91 | '../src/utils/SDL/SkOSWindow_SDL.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 92 | ], |
| 93 | 'conditions': [ |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 94 | [ 'skia_os == "mac"', { |
bungeman@google.com | 3b0a8da | 2011-06-02 15:38:06 +0000 | [diff] [blame] | 95 | 'sources!': [ |
| 96 | '../src/utils/SkEGLContext_none.cpp', |
| 97 | ], |
epoger@google.com | c39f175 | 2011-06-03 17:52:12 +0000 | [diff] [blame] | 98 | 'link_settings': { |
| 99 | 'libraries': [ |
| 100 | '$(SDKROOT)/System/Library/Frameworks/AGL.framework', |
| 101 | ], |
| 102 | }, |
bungeman@google.com | fe5afe5 | 2011-06-24 13:58:17 +0000 | [diff] [blame] | 103 | 'direct_dependent_settings': { |
| 104 | 'include_dirs': [ |
| 105 | '../include/utils/mac', |
| 106 | ], |
| 107 | }, |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 108 | },{ #else if 'skia_os != "mac"' |
senorblanco@chromium.org | 907afca | 2011-06-01 20:55:45 +0000 | [diff] [blame] | 109 | 'include_dirs!': [ |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 110 | '../include/utils/mac', |
| 111 | ], |
| 112 | 'sources!': [ |
| 113 | '../include/utils/mac/SkCGUtils.h', |
| 114 | '../src/utils/mac/SkCreateCGImageRef.cpp', |
| 115 | '../src/utils/mac/SkEGLContext_mac.cpp', |
yangsu@google.com | a854041 | 2011-08-30 14:40:49 +0000 | [diff] [blame^] | 116 | '../src/utils/mac/skia_mac.mm', |
| 117 | '../src/utils/mac/SkOSWindow_Mac.mm', |
senorblanco@chromium.org | 907afca | 2011-06-01 20:55:45 +0000 | [diff] [blame] | 118 | ], |
bungeman@google.com | 63aab2f | 2011-06-01 16:15:43 +0000 | [diff] [blame] | 119 | }], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 120 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', { |
bungeman@google.com | 3b0a8da | 2011-06-02 15:38:06 +0000 | [diff] [blame] | 121 | 'sources!': [ |
| 122 | '../src/utils/SkEGLContext_none.cpp', |
| 123 | ], |
epoger@google.com | 161933b | 2011-06-03 17:21:21 +0000 | [diff] [blame] | 124 | 'link_settings': { |
| 125 | 'libraries': [ |
| 126 | '-lGL', |
| 127 | '-lGLU', |
| 128 | ], |
| 129 | }, |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 130 | },{ #else if 'skia_os not in ["linux", "freebsd", "openbsd", "solaris"]' |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 131 | 'include_dirs!': [ |
| 132 | '../include/utils/unix', |
| 133 | ], |
bungeman@google.com | 63aab2f | 2011-06-01 16:15:43 +0000 | [diff] [blame] | 134 | 'sources!': [ |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 135 | '../src/utils/unix/keysym2ucs.c', |
| 136 | '../src/utils/unix/SkEGLContext_Unix.cpp', |
| 137 | '../src/utils/unix/SkOSWindow_Unix.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 138 | ], |
| 139 | }], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 140 | [ 'skia_os == "win"', { |
bungeman@google.com | 3b0a8da | 2011-06-02 15:38:06 +0000 | [diff] [blame] | 141 | 'sources!': [ |
| 142 | '../src/utils/SkEGLContext_none.cpp', |
| 143 | ], |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 144 | 'direct_dependent_settings': { |
| 145 | 'include_dirs': [ |
| 146 | '../include/utils/win', |
| 147 | ], |
| 148 | }, |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 149 | },{ #else if 'skia_os != "win"' |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 150 | 'include_dirs!': [ |
| 151 | '../include/utils/win', |
| 152 | ], |
| 153 | 'sources!': [ |
| 154 | '../include/utils/win/SkAutoCoInitialize.h', |
| 155 | '../include/utils/win/SkIStream.h', |
| 156 | '../include/utils/win/SkTScopedComPtr.h', |
| 157 | '../src/utils/win/SkAutoCoInitialize.cpp', |
| 158 | '../src/utils/win/skia_win.cpp', |
| 159 | '../src/utils/win/SkEGLContext_Win.cpp', |
| 160 | '../src/utils/win/SkIStream.cpp', |
| 161 | '../src/utils/win/SkOSWindow_Win.cpp', |
| 162 | ], |
bungeman@google.com | 3b0a8da | 2011-06-02 15:38:06 +0000 | [diff] [blame] | 163 | }], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 164 | ], |
| 165 | 'direct_dependent_settings': { |
| 166 | 'include_dirs': [ |
| 167 | '../include/utils', |
| 168 | ], |
| 169 | }, |
| 170 | }, |
| 171 | ], |
| 172 | } |
| 173 | |
| 174 | # Local Variables: |
| 175 | # tab-width:2 |
| 176 | # indent-tabs-mode:nil |
| 177 | # End: |
| 178 | # vim: set expandtab tabstop=2 shiftwidth=2: |