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