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