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