blob: f73d5f0ac62fffa7e34b3eb3b3a53cc1314624cd [file] [log] [blame]
commit-bot@chromium.org44a38772013-12-05 13:45:19 +00001# 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' : [
commit-bot@chromium.orgb1639842014-01-08 15:14:09 +00009 '../third_party/externals/v8/include',
jcgregorioe22f45f2014-10-24 12:49:17 -070010 '../third_party/externals/v8',
tfarina1c4d5782014-06-22 16:13:00 -070011 ],
12 'sources': [
jcgregorio5e44b002014-10-27 10:27:01 -070013 '../experimental/SkV8Example/DrawingMethods.cpp',
14 '../experimental/SkV8Example/DrawingMethods.h',
tfarina1c4d5782014-06-22 16:13:00 -070015 '../experimental/SkV8Example/Global.cpp',
16 '../experimental/SkV8Example/Global.h',
17 '../experimental/SkV8Example/JsContext.cpp',
18 '../experimental/SkV8Example/JsContext.h',
jcgregorioe001da22014-10-29 05:33:27 -070019 '../experimental/SkV8Example/Path2DBuilder.cpp',
20 '../experimental/SkV8Example/Path2DBuilder.h',
tfarina1c4d5782014-06-22 16:13:00 -070021 '../experimental/SkV8Example/Path2D.cpp',
22 '../experimental/SkV8Example/Path2D.h',
23 '../experimental/SkV8Example/SkV8Example.cpp',
24 '../experimental/SkV8Example/SkV8Example.h',
25 ],
26 'dependencies': [
27 'flags.gyp:flags',
28 'skia_lib.gyp:skia_lib',
29 'views.gyp:views',
30 'xml.gyp:xml',
31 ],
32 'link_settings': {
33 'libraries': [
34
35# 'd:/src/v8/build/Debug/lib/v8_base.ia32.lib',
36# 'd:/src/v8/build/Debug/lib/v8_snapshot.lib',
37# 'd:/src/v8/build/Debug/lib/icuuc.lib',
38# 'd:/src/v8/build/Debug/lib/icui18n.lib',
39# 'Ws2_32.lib',
40# 'Winmm.lib',
41
42 '-lpthread',
43 '-lrt',
jcgregorioe22f45f2014-10-24 12:49:17 -070044 '../../third_party/externals/v8/out/native/obj.target/tools/gyp/libv8_base.a',
45 '../../third_party/externals/v8/out/native/obj.target/tools/gyp/libv8_libbase.a',
tfarina1c4d5782014-06-22 16:13:00 -070046 '../../third_party/externals/v8/out/native/obj.target/tools/gyp/libv8_snapshot.a',
jcgregorioe22f45f2014-10-24 12:49:17 -070047 '../../third_party/externals/v8/out/native/obj.target/tools/gyp/libv8_libplatform.a',
tfarina1c4d5782014-06-22 16:13:00 -070048 '../../third_party/externals/v8/out/native/obj.target/third_party/icu/libicudata.a',
49 '../../third_party/externals/v8/out/native/obj.target/third_party/icu/libicui18n.a',
50 '../../third_party/externals/v8/out/native/obj.target/third_party/icu/libicuuc.a',
jcgregorioe22f45f2014-10-24 12:49:17 -070051 '../../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 +000052 ],
tfarina1c4d5782014-06-22 16:13:00 -070053 },
54 'conditions' : [
55 [ 'skia_gpu == 1', {
56 'include_dirs' : [
57 '../src/gpu',
58 ]
59 }],
commit-bot@chromium.org44a38772013-12-05 13:45:19 +000060 [ 'skia_os == "win"', {
tfarina1c4d5782014-06-22 16:13:00 -070061 'sources' : [
62 '../src/views/win/SkOSWindow_Win.cpp',
63 '../src/views/win/skia_win.cpp',
64 ],
65 }],
commit-bot@chromium.org44a38772013-12-05 13:45:19 +000066 [ 'skia_os == "mac"', {
67 'sources': [
tfarina1c4d5782014-06-22 16:13:00 -070068 '../src/views/mac/SampleAppDelegate.h',
69 '../src/views/mac/SampleAppDelegate.mm',
70 '../src/views/mac/SkEventNotifier.mm',
71 '../src/views/mac/skia_mac.mm',
72 '../src/views/mac/SkNSView.h',
73 '../src/views/mac/SkNSView.mm',
74 '../src/views/mac/SkOptionsTableView.h',
75 '../src/views/mac/SkOptionsTableView.mm',
76 '../src/views/mac/SkOSWindow_Mac.mm',
77 '../src/views/mac/SkTextFieldCell.h',
78 '../src/views/mac/SkTextFieldCell.m',
commit-bot@chromium.org44a38772013-12-05 13:45:19 +000079 ],
tfarina1c4d5782014-06-22 16:13:00 -070080 'include_dirs' : [
81 '../src/views/mac/'
commit-bot@chromium.org44a38772013-12-05 13:45:19 +000082 ],
tfarina1c4d5782014-06-22 16:13:00 -070083 'xcode_settings' : {
84 'INFOPLIST_FILE' : '../experimental/SkiaExamples/SkiaExamples-Info.plist',
85 },
86 'mac_bundle_resources' : [
87 '../experimental/SkiaExamples/SkiaExamples.xib'
commit-bot@chromium.org44a38772013-12-05 13:45:19 +000088 ],
tfarina1c4d5782014-06-22 16:13:00 -070089 }],
commit-bot@chromium.org44a38772013-12-05 13:45:19 +000090 ],
commit-bot@chromium.org44a38772013-12-05 13:45:19 +000091 }
92 ],
93}