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. 6 7{ 8 'targets': [ 9 { 10 'target_name': 'views', 11 'product_name': 'skia_views', 12 'type': 'static_library', 13 'standalone_static_library': 1, 14 'dependencies': [ 15 'skia_lib.gyp:skia_lib', 16 'xml.gyp:*', 17 ], 18 'include_dirs': [ 19 '../include/views', 20 '../include/views/unix', 21 ], 22 'sources': [ 23 '../include/views/SkApplication.h', 24 '../include/views/SkBGViewArtist.h', 25 '../include/views/SkEvent.h', 26 '../include/views/SkEventSink.h', 27 '../include/views/SkKey.h', 28 '../include/views/SkOSMenu.h', 29 '../include/views/SkOSWindow_Mac.h', 30 '../include/views/SkOSWindow_NaCl.h', 31 '../include/views/SkOSWindow_SDL.h', 32 '../include/views/SkOSWindow_Unix.h', 33 '../include/views/SkOSWindow_Win.h', 34 '../include/views/SkStackViewLayout.h', 35 '../include/views/SkSystemEventTypes.h', 36 '../include/views/SkTextBox.h', 37 '../include/views/SkTouchGesture.h', 38 '../include/views/SkView.h', 39 '../include/views/SkViewInflate.h', 40 '../include/views/SkWidget.h', 41 '../include/views/SkWindow.h', 42 43 '../src/views/SkBGViewArtist.cpp', 44 '../src/views/SkEvent.cpp', 45 '../src/views/SkEventSink.cpp', 46 '../src/views/SkOSMenu.cpp', 47 '../src/views/SkParsePaint.cpp', 48 '../src/views/SkProgressView.cpp', 49 '../src/views/SkStackViewLayout.cpp', 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', 58 '../src/views/SkWidgets.cpp', 59 '../src/views/SkWindow.cpp', 60 61 # Mac 62 '../src/views/mac/SkOSWindow_Mac.mm', 63 '../src/views/mac/skia_mac.mm', 64 65 # SDL 66 '../src/views/SDL/SkOSWindow_SDL.cpp', 67 68 # *nix 69 '../src/views/unix/SkOSWindow_Unix.cpp', 70 '../src/views/unix/keysym2ucs.c', 71 '../src/views/unix/skia_unix.cpp', 72 73 # Windows 74 '../src/views/win/SkOSWindow_win.cpp', 75 '../src/views/win/skia_win.cpp', 76 77 ], 78 'sources!' : [ 79 '../src/views/SDL/SkOSWindow_SDL.cpp', 80 ], 81 'conditions': [ 82 [ 'skia_os == "mac"', { 83 'link_settings': { 84 'libraries': [ 85 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework', 86 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', 87 ], 88 }, 89 },{ 90 'sources!': [ 91 '../src/views/mac/SkOSWindow_Mac.mm', 92 '../src/views/mac/skia_mac.mm', 93 ], 94 }], 95 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { 96 'link_settings': { 97 'libraries': [ 98 '-lGL', 99 '-lGLU', 100 '-lX11', 101 ], 102 }, 103 },{ 104 'sources!': [ 105 '../src/views/unix/SkOSWindow_Unix.cpp', 106 '../src/views/unix/keysym2ucs.c', 107 '../src/views/unix/skia_unix.cpp', 108 ], 109 }], 110 [ 'skia_os == "win"', { 111 },{ 112 'sources!': [ 113 '../src/views/win/SkOSWindow_win.cpp', 114 '../src/views/win/skia_win.cpp', 115 ], 116 }], 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 }], 128 [ 'skia_gpu == 1', { 129 'include_dirs': [ 130 '../include/gpu', 131 ], 132 }], 133 ], 134 'direct_dependent_settings': { 135 'include_dirs': [ 136 '../include/views', 137 ], 138 }, 139 }, 140 ], 141} 142