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. |
tfarina@chromium.org | e229e92 | 2012-09-27 13:44:57 +0000 | [diff] [blame] | 5 | # Views is the Skia windowing toolkit. |
| 6 | # It provides: |
| 7 | # * A portable means of creating native windows. |
| 8 | # * Events. |
| 9 | # * Basic widgets and controls. |
bungeman@google.com | 5e41b37 | 2012-03-23 14:11:43 +0000 | [diff] [blame] | 10 | |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 11 | { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 12 | 'targets': [ |
| 13 | { |
| 14 | 'target_name': 'views', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 15 | 'product_name': 'skia_views', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 16 | 'type': 'static_library', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 17 | 'standalone_static_library': 1, |
bungeman@google.com | b8f3655 | 2013-07-22 14:39:45 +0000 | [diff] [blame] | 18 | 'dependencies': [ |
| 19 | 'skia_lib.gyp:skia_lib', |
djsollen | 5ae7765 | 2014-11-14 05:52:50 -0800 | [diff] [blame] | 20 | 'xml.gyp:xml', |
bungeman@google.com | b8f3655 | 2013-07-22 14:39:45 +0000 | [diff] [blame] | 21 | ], |
bungeman@google.com | 2b0ab9e | 2013-07-19 22:31:23 +0000 | [diff] [blame] | 22 | 'include_dirs': [ |
herb | b906daf | 2015-09-29 09:37:59 -0700 | [diff] [blame] | 23 | '../include/private', |
bungeman@google.com | 2b0ab9e | 2013-07-19 22:31:23 +0000 | [diff] [blame] | 24 | '../include/views', |
| 25 | '../include/views/unix', |
bsalomon | 4238017 | 2015-02-23 08:57:23 -0800 | [diff] [blame] | 26 | '../src/gpu', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 27 | ], |
| 28 | 'sources': [ |
| 29 | '../include/views/SkApplication.h', |
| 30 | '../include/views/SkBGViewArtist.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 31 | '../include/views/SkEvent.h', |
| 32 | '../include/views/SkEventSink.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 33 | '../include/views/SkKey.h', |
| 34 | '../include/views/SkOSMenu.h', |
| 35 | '../include/views/SkOSWindow_Mac.h', |
| 36 | '../include/views/SkOSWindow_SDL.h', |
| 37 | '../include/views/SkOSWindow_Unix.h', |
| 38 | '../include/views/SkOSWindow_Win.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 39 | '../include/views/SkStackViewLayout.h', |
| 40 | '../include/views/SkSystemEventTypes.h', |
| 41 | '../include/views/SkTouchGesture.h', |
| 42 | '../include/views/SkView.h', |
| 43 | '../include/views/SkViewInflate.h', |
| 44 | '../include/views/SkWidget.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 45 | '../include/views/SkWindow.h', |
| 46 | |
| 47 | '../src/views/SkBGViewArtist.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 48 | '../src/views/SkEvent.cpp', |
| 49 | '../src/views/SkEventSink.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 50 | '../src/views/SkOSMenu.cpp', |
| 51 | '../src/views/SkParsePaint.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 52 | '../src/views/SkProgressView.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 53 | '../src/views/SkStackViewLayout.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 54 | '../src/views/SkTagList.cpp', |
| 55 | '../src/views/SkTagList.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 56 | '../src/views/SkTouchGesture.cpp', |
| 57 | '../src/views/SkView.cpp', |
| 58 | '../src/views/SkViewInflate.cpp', |
| 59 | '../src/views/SkViewPriv.cpp', |
| 60 | '../src/views/SkViewPriv.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 61 | '../src/views/SkWidgets.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 62 | '../src/views/SkWindow.cpp', |
joshualitt | 65d6fbb | 2015-11-04 13:41:02 -0800 | [diff] [blame] | 63 | |
| 64 | # Unix |
| 65 | '../src/views/unix/SkOSWindow_Unix.cpp', |
| 66 | '../src/views/unix/keysym2ucs.c', |
| 67 | '../src/views/unix/skia_unix.cpp', |
bungeman@google.com | cbd76ae | 2012-03-21 20:59:49 +0000 | [diff] [blame] | 68 | |
tfarina@chromium.org | e229e92 | 2012-09-27 13:44:57 +0000 | [diff] [blame] | 69 | # Mac |
bsalomon | 241b56d | 2015-06-18 11:49:42 -0700 | [diff] [blame] | 70 | '../src/views/mac/SkEventNotifier.h', |
| 71 | '../src/views/mac/SkEventNotifier.mm', |
| 72 | '../src/views/mac/SkTextFieldCell.h', |
| 73 | '../src/views/mac/SkTextFieldCell.m', |
| 74 | '../src/views/mac/SkNSView.h', |
| 75 | '../src/views/mac/SkNSView.mm', |
bungeman@google.com | cbd76ae | 2012-03-21 20:59:49 +0000 | [diff] [blame] | 76 | '../src/views/mac/SkOSWindow_Mac.mm', |
| 77 | '../src/views/mac/skia_mac.mm', |
| 78 | |
tfarina@chromium.org | e229e92 | 2012-09-27 13:44:57 +0000 | [diff] [blame] | 79 | # Windows |
bungeman@google.com | cbd76ae | 2012-03-21 20:59:49 +0000 | [diff] [blame] | 80 | '../src/views/win/SkOSWindow_win.cpp', |
| 81 | '../src/views/win/skia_win.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 82 | ], |
| 83 | 'conditions': [ |
caryclark | c8fcafb | 2015-01-30 12:37:02 -0800 | [diff] [blame] | 84 | [ 'skia_gpu == 1', { |
| 85 | 'include_dirs' : [ |
| 86 | '../src/gpu', |
| 87 | ], |
| 88 | }], |
joshualitt | 47fdae9 | 2015-11-09 12:30:05 -0800 | [diff] [blame] | 89 | [ 'skia_os == "mac" and skia_use_sdl == 0', { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 90 | 'link_settings': { |
| 91 | 'libraries': [ |
bsalomon | 241b56d | 2015-06-18 11:49:42 -0700 | [diff] [blame] | 92 | '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework', |
| 93 | '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', |
yangsu@google.com | a854041 | 2011-08-30 14:40:49 +0000 | [diff] [blame] | 94 | '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework', |
| 95 | '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 96 | ], |
| 97 | }, |
bungeman@google.com | cbd76ae | 2012-03-21 20:59:49 +0000 | [diff] [blame] | 98 | },{ |
| 99 | 'sources!': [ |
bsalomon | 241b56d | 2015-06-18 11:49:42 -0700 | [diff] [blame] | 100 | '../src/views/mac/SkEventNotifier.h', |
| 101 | '../src/views/mac/SkEventNotifier.mm', |
| 102 | '../src/views/mac/SkTextFieldCell.h', |
| 103 | '../src/views/mac/SkTextFieldCell.m', |
| 104 | '../src/views/mac/SkNSView.h', |
| 105 | '../src/views/mac/SkNSView.mm', |
| 106 | '../src/views/mac/SkOSWindow_Mac.mm', |
| 107 | '../src/views/mac/skia_mac.mm', |
bungeman@google.com | cbd76ae | 2012-03-21 20:59:49 +0000 | [diff] [blame] | 108 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 109 | }], |
joshualitt | 47fdae9 | 2015-11-09 12:30:05 -0800 | [diff] [blame] | 110 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"] and skia_use_sdl == 0', { |
borenet@google.com | db2e25a | 2012-11-01 18:01:08 +0000 | [diff] [blame] | 111 | 'link_settings': { |
| 112 | 'libraries': [ |
| 113 | '-lGL', |
| 114 | '-lGLU', |
| 115 | '-lX11', |
| 116 | ], |
| 117 | }, |
bungeman@google.com | cbd76ae | 2012-03-21 20:59:49 +0000 | [diff] [blame] | 118 | },{ |
| 119 | 'sources!': [ |
| 120 | '../src/views/unix/SkOSWindow_Unix.cpp', |
| 121 | '../src/views/unix/keysym2ucs.c', |
epoger@google.com | c62923d | 2012-03-22 15:37:22 +0000 | [diff] [blame] | 122 | '../src/views/unix/skia_unix.cpp', |
bungeman@google.com | cbd76ae | 2012-03-21 20:59:49 +0000 | [diff] [blame] | 123 | ], |
| 124 | }], |
| 125 | [ 'skia_os == "win"', { |
| 126 | },{ |
| 127 | 'sources!': [ |
| 128 | '../src/views/win/SkOSWindow_win.cpp', |
| 129 | '../src/views/win/skia_win.cpp', |
| 130 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 131 | }], |
borenet@google.com | b364eb6 | 2012-10-11 19:23:46 +0000 | [diff] [blame] | 132 | [ 'skia_gpu == 1', { |
| 133 | 'include_dirs': [ |
| 134 | '../include/gpu', |
| 135 | ], |
| 136 | }], |
joshualitt | 65d6fbb | 2015-11-04 13:41:02 -0800 | [diff] [blame] | 137 | [ 'skia_use_sdl == 1', { |
| 138 | 'defines': [ |
| 139 | 'SK_USE_SDL', |
| 140 | ], |
| 141 | 'dependencies': [ |
| 142 | 'sdl.gyp:sdl', |
| 143 | ], |
| 144 | 'sources!': [ |
joshualitt | 47fdae9 | 2015-11-09 12:30:05 -0800 | [diff] [blame] | 145 | # linux sources |
| 146 | '../src/views/unix/SkOSWindow_Unix.cpp', |
| 147 | '../src/views/unix/keysym2ucs.c', |
| 148 | '../src/views/unix/skia_unix.cpp', |
| 149 | |
| 150 | # mac sources |
| 151 | '../src/views/mac/SkEventNotifier.h', |
| 152 | '../src/views/mac/SkEventNotifier.mm', |
| 153 | '../src/views/mac/SkTextFieldCell.h', |
| 154 | '../src/views/mac/SkTextFieldCell.m', |
| 155 | '../src/views/mac/SkNSView.h', |
| 156 | '../src/views/mac/SkNSView.mm', |
| 157 | '../src/views/mac/SkOSWindow_Mac.mm', |
| 158 | '../src/views/mac/skia_mac.mm', |
joshualitt | dad57c8 | 2015-11-11 13:17:06 -0800 | [diff] [blame] | 159 | |
| 160 | # win sources |
| 161 | '../src/views/win/SkOSWindow_win.cpp', |
| 162 | '../src/views/win/skia_win.cpp', |
joshualitt | 65d6fbb | 2015-11-04 13:41:02 -0800 | [diff] [blame] | 163 | ], |
| 164 | 'sources': [ |
| 165 | '../src/views/sdl/SkOSWindow_SDL.cpp', |
| 166 | ], |
| 167 | 'export_dependent_settings': [ |
| 168 | 'sdl.gyp:sdl', |
| 169 | ], |
joshualitt | 47fdae9 | 2015-11-09 12:30:05 -0800 | [diff] [blame] | 170 | 'conditions': [ |
| 171 | [ 'skia_os == "mac"', { |
| 172 | 'include_dirs': [ |
| 173 | '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework/Headers', |
| 174 | ], |
| 175 | 'link_settings': { |
| 176 | 'libraries': [ |
| 177 | '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', |
| 178 | ], |
| 179 | } |
| 180 | }], |
| 181 | ], |
joshualitt | 65d6fbb | 2015-11-04 13:41:02 -0800 | [diff] [blame] | 182 | }], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 183 | ], |
| 184 | 'direct_dependent_settings': { |
| 185 | 'include_dirs': [ |
| 186 | '../include/views', |
| 187 | ], |
| 188 | }, |
djsollen | 5ae7765 | 2014-11-14 05:52:50 -0800 | [diff] [blame] | 189 | 'export_dependent_settings': [ |
| 190 | 'xml.gyp:xml', |
| 191 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 192 | }, |
| 193 | ], |
| 194 | } |