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