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': [ |
mtklein | 928e165 | 2015-07-01 11:55:42 -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', |
bungeman@google.com | cbd76ae | 2012-03-21 20:59:49 +0000 | [diff] [blame] | 63 | |
tfarina@chromium.org | e229e92 | 2012-09-27 13:44:57 +0000 | [diff] [blame] | 64 | # Mac |
bsalomon | 241b56d | 2015-06-18 11:49:42 -0700 | [diff] [blame] | 65 | '../src/views/mac/SkEventNotifier.h', |
| 66 | '../src/views/mac/SkEventNotifier.mm', |
| 67 | '../src/views/mac/SkTextFieldCell.h', |
| 68 | '../src/views/mac/SkTextFieldCell.m', |
| 69 | '../src/views/mac/SkNSView.h', |
| 70 | '../src/views/mac/SkNSView.mm', |
bungeman@google.com | cbd76ae | 2012-03-21 20:59:49 +0000 | [diff] [blame] | 71 | '../src/views/mac/SkOSWindow_Mac.mm', |
| 72 | '../src/views/mac/skia_mac.mm', |
| 73 | |
tfarina@chromium.org | e229e92 | 2012-09-27 13:44:57 +0000 | [diff] [blame] | 74 | # SDL |
bungeman | c0c4d75 | 2015-06-12 17:23:35 -0400 | [diff] [blame] | 75 | '../src/views/sdl/SkOSWindow_SDL.cpp', |
bungeman@google.com | cbd76ae | 2012-03-21 20:59:49 +0000 | [diff] [blame] | 76 | |
tfarina@chromium.org | e229e92 | 2012-09-27 13:44:57 +0000 | [diff] [blame] | 77 | # *nix |
bungeman@google.com | cbd76ae | 2012-03-21 20:59:49 +0000 | [diff] [blame] | 78 | '../src/views/unix/SkOSWindow_Unix.cpp', |
| 79 | '../src/views/unix/keysym2ucs.c', |
epoger@google.com | c62923d | 2012-03-22 15:37:22 +0000 | [diff] [blame] | 80 | '../src/views/unix/skia_unix.cpp', |
bungeman@google.com | cbd76ae | 2012-03-21 20:59:49 +0000 | [diff] [blame] | 81 | |
tfarina@chromium.org | e229e92 | 2012-09-27 13:44:57 +0000 | [diff] [blame] | 82 | # Windows |
bungeman@google.com | cbd76ae | 2012-03-21 20:59:49 +0000 | [diff] [blame] | 83 | '../src/views/win/SkOSWindow_win.cpp', |
| 84 | '../src/views/win/skia_win.cpp', |
| 85 | |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 86 | ], |
| 87 | 'sources!' : [ |
bungeman | c0c4d75 | 2015-06-12 17:23:35 -0400 | [diff] [blame] | 88 | '../src/views/sdl/SkOSWindow_SDL.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 89 | ], |
| 90 | 'conditions': [ |
caryclark | c8fcafb | 2015-01-30 12:37:02 -0800 | [diff] [blame] | 91 | [ 'skia_gpu == 1', { |
| 92 | 'include_dirs' : [ |
| 93 | '../src/gpu', |
| 94 | ], |
| 95 | }], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 96 | [ 'skia_os == "mac"', { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 97 | 'link_settings': { |
| 98 | 'libraries': [ |
bsalomon | 241b56d | 2015-06-18 11:49:42 -0700 | [diff] [blame] | 99 | '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework', |
| 100 | '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', |
yangsu@google.com | a854041 | 2011-08-30 14:40:49 +0000 | [diff] [blame] | 101 | '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework', |
| 102 | '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 103 | ], |
| 104 | }, |
bungeman@google.com | cbd76ae | 2012-03-21 20:59:49 +0000 | [diff] [blame] | 105 | },{ |
| 106 | 'sources!': [ |
bsalomon | 241b56d | 2015-06-18 11:49:42 -0700 | [diff] [blame] | 107 | '../src/views/mac/SkEventNotifier.h', |
| 108 | '../src/views/mac/SkEventNotifier.mm', |
| 109 | '../src/views/mac/SkTextFieldCell.h', |
| 110 | '../src/views/mac/SkTextFieldCell.m', |
| 111 | '../src/views/mac/SkNSView.h', |
| 112 | '../src/views/mac/SkNSView.mm', |
| 113 | '../src/views/mac/SkOSWindow_Mac.mm', |
| 114 | '../src/views/mac/skia_mac.mm', |
bungeman@google.com | cbd76ae | 2012-03-21 20:59:49 +0000 | [diff] [blame] | 115 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 116 | }], |
borenet@google.com | 05d550e | 2013-06-11 15:52:19 +0000 | [diff] [blame] | 117 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { |
borenet@google.com | db2e25a | 2012-11-01 18:01:08 +0000 | [diff] [blame] | 118 | 'link_settings': { |
| 119 | 'libraries': [ |
| 120 | '-lGL', |
| 121 | '-lGLU', |
| 122 | '-lX11', |
| 123 | ], |
| 124 | }, |
bungeman@google.com | cbd76ae | 2012-03-21 20:59:49 +0000 | [diff] [blame] | 125 | },{ |
| 126 | 'sources!': [ |
| 127 | '../src/views/unix/SkOSWindow_Unix.cpp', |
| 128 | '../src/views/unix/keysym2ucs.c', |
epoger@google.com | c62923d | 2012-03-22 15:37:22 +0000 | [diff] [blame] | 129 | '../src/views/unix/skia_unix.cpp', |
bungeman@google.com | cbd76ae | 2012-03-21 20:59:49 +0000 | [diff] [blame] | 130 | ], |
| 131 | }], |
| 132 | [ 'skia_os == "win"', { |
| 133 | },{ |
| 134 | 'sources!': [ |
| 135 | '../src/views/win/SkOSWindow_win.cpp', |
| 136 | '../src/views/win/skia_win.cpp', |
| 137 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 138 | }], |
borenet@google.com | b364eb6 | 2012-10-11 19:23:46 +0000 | [diff] [blame] | 139 | [ 'skia_gpu == 1', { |
| 140 | 'include_dirs': [ |
| 141 | '../include/gpu', |
| 142 | ], |
| 143 | }], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 144 | ], |
| 145 | 'direct_dependent_settings': { |
| 146 | 'include_dirs': [ |
| 147 | '../include/views', |
| 148 | ], |
| 149 | }, |
djsollen | 5ae7765 | 2014-11-14 05:52:50 -0800 | [diff] [blame] | 150 | 'export_dependent_settings': [ |
| 151 | 'xml.gyp:xml', |
| 152 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 153 | }, |
| 154 | ], |
| 155 | } |