blob: 81cb89d396cc5a4b677bc44f442055c8e19d7b58 [file] [log] [blame]
scroggo3e562272015-03-25 10:22:41 -07001# 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.
commit-bot@chromium.org44a38772013-12-05 13:45:19 +00005# 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' : [
commit-bot@chromium.orgb1639842014-01-08 15:14:09 +000013 '../third_party/externals/v8/include',
jcgregorioe22f45f2014-10-24 12:49:17 -070014 '../third_party/externals/v8',
tfarina1c4d5782014-06-22 16:13:00 -070015 ],
16 'sources': [
jcgregorio5e44b002014-10-27 10:27:01 -070017 '../experimental/SkV8Example/DrawingMethods.cpp',
18 '../experimental/SkV8Example/DrawingMethods.h',
tfarina1c4d5782014-06-22 16:13:00 -070019 '../experimental/SkV8Example/Global.cpp',
20 '../experimental/SkV8Example/Global.h',
21 '../experimental/SkV8Example/JsContext.cpp',
22 '../experimental/SkV8Example/JsContext.h',
jcgregorioe001da22014-10-29 05:33:27 -070023 '../experimental/SkV8Example/Path2DBuilder.cpp',
24 '../experimental/SkV8Example/Path2DBuilder.h',
tfarina1c4d5782014-06-22 16:13:00 -070025 '../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',
jcgregorioe22f45f2014-10-24 12:49:17 -070048 '../../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',
tfarina1c4d5782014-06-22 16:13:00 -070050 '../../third_party/externals/v8/out/native/obj.target/tools/gyp/libv8_snapshot.a',
jcgregorioe22f45f2014-10-24 12:49:17 -070051 '../../third_party/externals/v8/out/native/obj.target/tools/gyp/libv8_libplatform.a',
tfarina1c4d5782014-06-22 16:13:00 -070052 '../../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',
jcgregorioe22f45f2014-10-24 12:49:17 -070055 '../../third_party/externals/v8/out/native/obj.target/icudata/third_party/icu/linux/icudtl_dat.o',
commit-bot@chromium.org44a38772013-12-05 13:45:19 +000056 ],
tfarina1c4d5782014-06-22 16:13:00 -070057 },
58 'conditions' : [
59 [ 'skia_gpu == 1', {
60 'include_dirs' : [
61 '../src/gpu',
62 ]
63 }],
commit-bot@chromium.org44a38772013-12-05 13:45:19 +000064 [ 'skia_os == "win"', {
tfarina1c4d5782014-06-22 16:13:00 -070065 'sources' : [
66 '../src/views/win/SkOSWindow_Win.cpp',
67 '../src/views/win/skia_win.cpp',
68 ],
69 }],
commit-bot@chromium.org44a38772013-12-05 13:45:19 +000070 [ 'skia_os == "mac"', {
71 'sources': [
tfarina1c4d5782014-06-22 16:13:00 -070072 '../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',
commit-bot@chromium.org44a38772013-12-05 13:45:19 +000083 ],
tfarina1c4d5782014-06-22 16:13:00 -070084 'include_dirs' : [
85 '../src/views/mac/'
commit-bot@chromium.org44a38772013-12-05 13:45:19 +000086 ],
tfarina1c4d5782014-06-22 16:13:00 -070087 'xcode_settings' : {
88 'INFOPLIST_FILE' : '../experimental/SkiaExamples/SkiaExamples-Info.plist',
89 },
90 'mac_bundle_resources' : [
91 '../experimental/SkiaExamples/SkiaExamples.xib'
commit-bot@chromium.org44a38772013-12-05 13:45:19 +000092 ],
tfarina1c4d5782014-06-22 16:13:00 -070093 }],
commit-bot@chromium.org44a38772013-12-05 13:45:19 +000094 ],
commit-bot@chromium.org44a38772013-12-05 13:45:19 +000095 }
96 ],
97}