1# Copyright 2015 Google Inc.
2#
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5# GYP file to build a V8 sample.
6{
7  'targets': [
8    {
9      'target_name': 'SkV8Example',
10      'type': 'executable',
11      'mac_bundle' : 1,
12      'include_dirs' : [
13        '../third_party/externals/v8/include',
14        '../third_party/externals/v8',
15      ],
16      'sources': [
17        '../experimental/SkV8Example/DrawingMethods.cpp',
18        '../experimental/SkV8Example/DrawingMethods.h',
19        '../experimental/SkV8Example/Global.cpp',
20        '../experimental/SkV8Example/Global.h',
21        '../experimental/SkV8Example/JsContext.cpp',
22        '../experimental/SkV8Example/JsContext.h',
23        '../experimental/SkV8Example/Path2DBuilder.cpp',
24        '../experimental/SkV8Example/Path2DBuilder.h',
25        '../experimental/SkV8Example/Path2D.cpp',
26        '../experimental/SkV8Example/Path2D.h',
27        '../experimental/SkV8Example/SkV8Example.cpp',
28        '../experimental/SkV8Example/SkV8Example.h',
29      ],
30      'dependencies': [
31        'flags.gyp:flags',
32        'skia_lib.gyp:skia_lib',
33        'views.gyp:views',
34        'xml.gyp:xml',
35      ],
36      'link_settings': {
37        'libraries': [
38
39#         'd:/src/v8/build/Debug/lib/v8_base.ia32.lib',
40#         'd:/src/v8/build/Debug/lib/v8_snapshot.lib',
41#         'd:/src/v8/build/Debug/lib/icuuc.lib',
42#         'd:/src/v8/build/Debug/lib/icui18n.lib',
43#         'Ws2_32.lib',
44#         'Winmm.lib',
45
46          '-lpthread',
47          '-lrt',
48          '../../third_party/externals/v8/out/native/obj.target/tools/gyp/libv8_base.a',
49          '../../third_party/externals/v8/out/native/obj.target/tools/gyp/libv8_libbase.a',
50          '../../third_party/externals/v8/out/native/obj.target/tools/gyp/libv8_snapshot.a',
51          '../../third_party/externals/v8/out/native/obj.target/tools/gyp/libv8_libplatform.a',
52          '../../third_party/externals/v8/out/native/obj.target/third_party/icu/libicudata.a',
53          '../../third_party/externals/v8/out/native/obj.target/third_party/icu/libicui18n.a',
54          '../../third_party/externals/v8/out/native/obj.target/third_party/icu/libicuuc.a',
55          '../../third_party/externals/v8/out/native/obj.target/icudata/third_party/icu/linux/icudtl_dat.o',
56        ],
57      },
58      'conditions' : [
59        [ 'skia_gpu == 1', {
60          'include_dirs' : [
61            '../src/gpu',
62          ]
63        }],
64        [ 'skia_os == "win"', {
65          'sources' : [
66            '../src/views/win/SkOSWindow_Win.cpp',
67            '../src/views/win/skia_win.cpp',
68          ],
69        }],
70        [ 'skia_os == "mac"', {
71          'sources': [
72            '../src/views/mac/SampleAppDelegate.h',
73            '../src/views/mac/SampleAppDelegate.mm',
74            '../src/views/mac/SkEventNotifier.mm',
75            '../src/views/mac/skia_mac.mm',
76            '../src/views/mac/SkNSView.h',
77            '../src/views/mac/SkNSView.mm',
78            '../src/views/mac/SkOptionsTableView.h',
79            '../src/views/mac/SkOptionsTableView.mm',
80            '../src/views/mac/SkOSWindow_Mac.mm',
81            '../src/views/mac/SkTextFieldCell.h',
82            '../src/views/mac/SkTextFieldCell.m',
83          ],
84          'include_dirs' : [
85            '../src/views/mac/'
86          ],
87          'xcode_settings' : {
88            'INFOPLIST_FILE' : '../experimental/SkiaExamples/SkiaExamples-Info.plist',
89          },
90          'mac_bundle_resources' : [
91            '../experimental/SkiaExamples/SkiaExamples.xib'
92          ],
93        }],
94      ],
95    }
96  ],
97}
98