tfarina@chromium.org | e229e92 | 2012-09-27 13:44:57 +0000 | [diff] [blame] | 1 | # Views is the Skia windowing toolkit. |
| 2 | # It provides: |
| 3 | # * A portable means of creating native windows. |
| 4 | # * Events. |
| 5 | # * Basic widgets and controls. |
bungeman@google.com | 5e41b37 | 2012-03-23 14:11:43 +0000 | [diff] [blame] | 6 | |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 7 | { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 8 | 'targets': [ |
| 9 | { |
| 10 | 'target_name': 'views', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 11 | 'product_name': 'skia_views', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 12 | 'type': 'static_library', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 13 | 'standalone_static_library': 1, |
bungeman@google.com | b8f3655 | 2013-07-22 14:39:45 +0000 | [diff] [blame] | 14 | 'dependencies': [ |
| 15 | 'skia_lib.gyp:skia_lib', |
bungeman@google.com | b8f3655 | 2013-07-22 14:39:45 +0000 | [diff] [blame] | 16 | 'xml.gyp:*', |
| 17 | ], |
bungeman@google.com | 2b0ab9e | 2013-07-19 22:31:23 +0000 | [diff] [blame] | 18 | 'include_dirs': [ |
| 19 | '../include/views', |
| 20 | '../include/views/unix', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 21 | ], |
| 22 | 'sources': [ |
| 23 | '../include/views/SkApplication.h', |
| 24 | '../include/views/SkBGViewArtist.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 25 | '../include/views/SkEvent.h', |
| 26 | '../include/views/SkEventSink.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 27 | '../include/views/SkKey.h', |
| 28 | '../include/views/SkOSMenu.h', |
| 29 | '../include/views/SkOSWindow_Mac.h', |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 30 | '../include/views/SkOSWindow_NaCl.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 31 | '../include/views/SkOSWindow_SDL.h', |
| 32 | '../include/views/SkOSWindow_Unix.h', |
| 33 | '../include/views/SkOSWindow_Win.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 34 | '../include/views/SkStackViewLayout.h', |
| 35 | '../include/views/SkSystemEventTypes.h', |
bungeman@google.com | 802eee9 | 2012-03-28 20:01:06 +0000 | [diff] [blame] | 36 | '../include/views/SkTextBox.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 37 | '../include/views/SkTouchGesture.h', |
| 38 | '../include/views/SkView.h', |
| 39 | '../include/views/SkViewInflate.h', |
| 40 | '../include/views/SkWidget.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 41 | '../include/views/SkWindow.h', |
| 42 | |
| 43 | '../src/views/SkBGViewArtist.cpp', |
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', |
| 47 | '../src/views/SkParsePaint.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 48 | '../src/views/SkProgressView.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 49 | '../src/views/SkStackViewLayout.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 50 | '../src/views/SkTagList.cpp', |
| 51 | '../src/views/SkTagList.h', |
| 52 | '../src/views/SkTextBox.cpp', |
| 53 | '../src/views/SkTouchGesture.cpp', |
| 54 | '../src/views/SkView.cpp', |
| 55 | '../src/views/SkViewInflate.cpp', |
| 56 | '../src/views/SkViewPriv.cpp', |
| 57 | '../src/views/SkViewPriv.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 58 | '../src/views/SkWidgets.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 59 | '../src/views/SkWindow.cpp', |
bungeman@google.com | cbd76ae | 2012-03-21 20:59:49 +0000 | [diff] [blame] | 60 | |
tfarina@chromium.org | e229e92 | 2012-09-27 13:44:57 +0000 | [diff] [blame] | 61 | # Mac |
bungeman@google.com | cbd76ae | 2012-03-21 20:59:49 +0000 | [diff] [blame] | 62 | '../src/views/mac/SkOSWindow_Mac.mm', |
| 63 | '../src/views/mac/skia_mac.mm', |
| 64 | |
tfarina@chromium.org | e229e92 | 2012-09-27 13:44:57 +0000 | [diff] [blame] | 65 | # SDL |
bungeman@google.com | cbd76ae | 2012-03-21 20:59:49 +0000 | [diff] [blame] | 66 | '../src/views/SDL/SkOSWindow_SDL.cpp', |
| 67 | |
tfarina@chromium.org | e229e92 | 2012-09-27 13:44:57 +0000 | [diff] [blame] | 68 | # *nix |
bungeman@google.com | cbd76ae | 2012-03-21 20:59:49 +0000 | [diff] [blame] | 69 | '../src/views/unix/SkOSWindow_Unix.cpp', |
| 70 | '../src/views/unix/keysym2ucs.c', |
epoger@google.com | c62923d | 2012-03-22 15:37:22 +0000 | [diff] [blame] | 71 | '../src/views/unix/skia_unix.cpp', |
bungeman@google.com | cbd76ae | 2012-03-21 20:59:49 +0000 | [diff] [blame] | 72 | |
tfarina@chromium.org | e229e92 | 2012-09-27 13:44:57 +0000 | [diff] [blame] | 73 | # Windows |
bungeman@google.com | cbd76ae | 2012-03-21 20:59:49 +0000 | [diff] [blame] | 74 | '../src/views/win/SkOSWindow_win.cpp', |
| 75 | '../src/views/win/skia_win.cpp', |
| 76 | |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 77 | ], |
| 78 | 'sources!' : [ |
bungeman@google.com | cbd76ae | 2012-03-21 20:59:49 +0000 | [diff] [blame] | 79 | '../src/views/SDL/SkOSWindow_SDL.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 80 | ], |
| 81 | 'conditions': [ |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 82 | [ 'skia_os == "mac"', { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 83 | 'link_settings': { |
| 84 | 'libraries': [ |
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!': [ |
| 91 | '../src/views/mac/SkOSWindow_Mac.mm', |
| 92 | '../src/views/mac/skia_mac.mm', |
| 93 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 94 | }], |
borenet@google.com | 05d550e | 2013-06-11 15:52:19 +0000 | [diff] [blame] | 95 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { |
borenet@google.com | db2e25a | 2012-11-01 18:01:08 +0000 | [diff] [blame] | 96 | 'link_settings': { |
| 97 | 'libraries': [ |
| 98 | '-lGL', |
| 99 | '-lGLU', |
| 100 | '-lX11', |
| 101 | ], |
| 102 | }, |
bungeman@google.com | cbd76ae | 2012-03-21 20:59:49 +0000 | [diff] [blame] | 103 | },{ |
| 104 | 'sources!': [ |
| 105 | '../src/views/unix/SkOSWindow_Unix.cpp', |
| 106 | '../src/views/unix/keysym2ucs.c', |
epoger@google.com | c62923d | 2012-03-22 15:37:22 +0000 | [diff] [blame] | 107 | '../src/views/unix/skia_unix.cpp', |
bungeman@google.com | cbd76ae | 2012-03-21 20:59:49 +0000 | [diff] [blame] | 108 | ], |
| 109 | }], |
| 110 | [ 'skia_os == "win"', { |
| 111 | },{ |
| 112 | 'sources!': [ |
| 113 | '../src/views/win/SkOSWindow_win.cpp', |
| 114 | '../src/views/win/skia_win.cpp', |
| 115 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 116 | }], |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 117 | [ 'skia_os == "nacl"', { |
| 118 | 'sources!': [ |
| 119 | '../src/views/unix/SkOSWindow_Unix.cpp', |
| 120 | '../src/views/unix/keysym2ucs.c', |
| 121 | '../src/views/unix/skia_unix.cpp', |
| 122 | ], |
| 123 | }, { |
| 124 | 'sources!': [ |
| 125 | '../src/views/nacl/SkOSWindow_NaCl.cpp', |
| 126 | ], |
| 127 | }], |
borenet@google.com | b364eb6 | 2012-10-11 19:23:46 +0000 | [diff] [blame] | 128 | [ 'skia_gpu == 1', { |
| 129 | 'include_dirs': [ |
| 130 | '../include/gpu', |
| 131 | ], |
| 132 | }], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 133 | ], |
| 134 | 'direct_dependent_settings': { |
| 135 | 'include_dirs': [ |
| 136 | '../include/views', |
| 137 | ], |
| 138 | }, |
| 139 | }, |
| 140 | ], |
| 141 | } |