Home | History | Annotate | Download | only in gyp
      1 # GYP file to build a V8 sample.
      2 {
      3   'targets': [
      4     {
      5       'target_name': 'SkV8Example',
      6       'type': 'executable',
      7       'mac_bundle' : 1,
      8       'include_dirs' : [
      9         '../tools/flags',
     10         '../../../v8/include',
     11         ],
     12       'includes': [],
     13        'sources': [
     14          '../experimental/SkV8Example/SkV8Example.h',
     15          '../experimental/SkV8Example/SkV8Example.cpp',
     16        ],
     17        'dependencies': [
     18          'skia_lib.gyp:skia_lib',
     19          'views.gyp:views',
     20          'xml.gyp:xml',
     21        ],
     22 
     23         'link_settings': {
     24           'libraries': [
     25 
     26 #            'd:/src/v8/build/Debug/lib/v8_base.ia32.lib',
     27 #            'd:/src/v8/build/Debug/lib/v8_snapshot.lib',
     28 
     29 #            'd:/src/v8/build/Debug/lib/icuuc.lib',
     30 #            'd:/src/v8/build/Debug/lib/icui18n.lib',
     31 
     32 #            'Ws2_32.lib',
     33 #            'Winmm.lib',
     34 
     35             '-lpthread',
     36             '-lrt',
     37             '../../../v8/out/native/obj.target/tools/gyp/libv8_base.x64.a',
     38           '../../../v8/out/native/obj.target/tools/gyp/libv8_snapshot.a',
     39 
     40           '../../../v8/out/native/obj.target/third_party/icu/libicudata.a',
     41           '../../../v8/out/native/obj.target/third_party/icu/libicui18n.a',
     42           '../../../v8/out/native/obj.target/third_party/icu/libicuuc.a',
     43 
     44           '../../../v8/out/native/obj.target/icudata/third_party/icu/linux/icudt46l_dat.o',
     45             ],
     46         },
     47        'conditions' : [
     48          [ 'skia_gpu == 1', {
     49            'include_dirs' : [
     50              '../src/gpu',  #gl/GrGLUtil.h
     51              ]
     52          }],
     53         [ 'skia_os == "win"', {
     54          'sources' : [
     55            '../src/views/win/SkOSWindow_Win.cpp',
     56            '../src/views/win/skia_win.cpp',
     57            ],
     58           },
     59         ],
     60 
     61         [ 'skia_os == "mac"', {
     62           'sources': [
     63 
     64           '../src/views/mac/SampleAppDelegate.h',
     65           '../src/views/mac/SampleAppDelegate.mm',
     66           '../src/views/mac/SkEventNotifier.mm',
     67           '../src/views/mac/skia_mac.mm',
     68           '../src/views/mac/SkNSView.h',
     69           '../src/views/mac/SkNSView.mm',
     70           '../src/views/mac/SkOptionsTableView.h',
     71           '../src/views/mac/SkOptionsTableView.mm',
     72           '../src/views/mac/SkOSWindow_Mac.mm',
     73           '../src/views/mac/SkTextFieldCell.h',
     74           '../src/views/mac/SkTextFieldCell.m',
     75           ],
     76         'include_dirs' : [
     77           '../src/views/mac/'
     78           ],
     79         'xcode_settings' : {
     80           'INFOPLIST_FILE' : '../experimental/SkiaExamples/SkiaExamples-Info.plist',
     81         },
     82         'mac_bundle_resources' : [
     83           '../experimental/SkiaExamples/SkiaExamples.xib'
     84           ],
     85         }
     86       ],
     87      ],
     88     }
     89   ],
     90 }
     91