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