blob: 0316d34eb9e4a3a3509627d4c56a335bb27b8c6c [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',
tfarina1c4d5782014-06-22 16:13:00 -070010 ],
11 'sources': [
12 '../experimental/SkV8Example/BaseContext.cpp',
13 '../experimental/SkV8Example/BaseContext.h',
14 '../experimental/SkV8Example/Global.cpp',
15 '../experimental/SkV8Example/Global.h',
16 '../experimental/SkV8Example/JsContext.cpp',
17 '../experimental/SkV8Example/JsContext.h',
18 '../experimental/SkV8Example/Path2D.cpp',
19 '../experimental/SkV8Example/Path2D.h',
20 '../experimental/SkV8Example/SkV8Example.cpp',
21 '../experimental/SkV8Example/SkV8Example.h',
22 ],
23 'dependencies': [
24 'flags.gyp:flags',
25 'skia_lib.gyp:skia_lib',
26 'views.gyp:views',
27 'xml.gyp:xml',
28 ],
29 'link_settings': {
30 'libraries': [
31
32# 'd:/src/v8/build/Debug/lib/v8_base.ia32.lib',
33# 'd:/src/v8/build/Debug/lib/v8_snapshot.lib',
34# 'd:/src/v8/build/Debug/lib/icuuc.lib',
35# 'd:/src/v8/build/Debug/lib/icui18n.lib',
36# 'Ws2_32.lib',
37# 'Winmm.lib',
38
39 '-lpthread',
40 '-lrt',
41 '../../third_party/externals/v8/out/native/obj.target/tools/gyp/libv8_base.x64.a',
42 '../../third_party/externals/v8/out/native/obj.target/tools/gyp/libv8_snapshot.a',
43 '../../third_party/externals/v8/out/native/obj.target/third_party/icu/libicudata.a',
44 '../../third_party/externals/v8/out/native/obj.target/third_party/icu/libicui18n.a',
45 '../../third_party/externals/v8/out/native/obj.target/third_party/icu/libicuuc.a',
46 '../../third_party/externals/v8/out/native/obj.target/icudata/third_party/icu/linux/icudt46l_dat.o',
commit-bot@chromium.org44a38772013-12-05 13:45:19 +000047 ],
tfarina1c4d5782014-06-22 16:13:00 -070048 },
49 'conditions' : [
50 [ 'skia_gpu == 1', {
51 'include_dirs' : [
52 '../src/gpu',
53 ]
54 }],
commit-bot@chromium.org44a38772013-12-05 13:45:19 +000055 [ 'skia_os == "win"', {
tfarina1c4d5782014-06-22 16:13:00 -070056 'sources' : [
57 '../src/views/win/SkOSWindow_Win.cpp',
58 '../src/views/win/skia_win.cpp',
59 ],
60 }],
commit-bot@chromium.org44a38772013-12-05 13:45:19 +000061 [ 'skia_os == "mac"', {
62 'sources': [
tfarina1c4d5782014-06-22 16:13:00 -070063 '../src/views/mac/SampleAppDelegate.h',
64 '../src/views/mac/SampleAppDelegate.mm',
65 '../src/views/mac/SkEventNotifier.mm',
66 '../src/views/mac/skia_mac.mm',
67 '../src/views/mac/SkNSView.h',
68 '../src/views/mac/SkNSView.mm',
69 '../src/views/mac/SkOptionsTableView.h',
70 '../src/views/mac/SkOptionsTableView.mm',
71 '../src/views/mac/SkOSWindow_Mac.mm',
72 '../src/views/mac/SkTextFieldCell.h',
73 '../src/views/mac/SkTextFieldCell.m',
commit-bot@chromium.org44a38772013-12-05 13:45:19 +000074 ],
tfarina1c4d5782014-06-22 16:13:00 -070075 'include_dirs' : [
76 '../src/views/mac/'
commit-bot@chromium.org44a38772013-12-05 13:45:19 +000077 ],
tfarina1c4d5782014-06-22 16:13:00 -070078 'xcode_settings' : {
79 'INFOPLIST_FILE' : '../experimental/SkiaExamples/SkiaExamples-Info.plist',
80 },
81 'mac_bundle_resources' : [
82 '../experimental/SkiaExamples/SkiaExamples.xib'
commit-bot@chromium.org44a38772013-12-05 13:45:19 +000083 ],
tfarina1c4d5782014-06-22 16:13:00 -070084 }],
commit-bot@chromium.org44a38772013-12-05 13:45:19 +000085 ],
commit-bot@chromium.org44a38772013-12-05 13:45:19 +000086 }
87 ],
88}