blob: b2eb54c2efb54992767021f856e05215a3b999fb [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' : [
9 '../tools/flags',
commit-bot@chromium.orgb1639842014-01-08 15:14:09 +000010 '../third_party/externals/v8/include',
commit-bot@chromium.org44a38772013-12-05 13:45:19 +000011 ],
commit-bot@chromium.org44a38772013-12-05 13:45:19 +000012 'sources': [
commit-bot@chromium.org44a38772013-12-05 13:45:19 +000013 '../experimental/SkV8Example/SkV8Example.cpp',
commit-bot@chromium.orgb1639842014-01-08 15:14:09 +000014 '../experimental/SkV8Example/SkV8Example.h',
commit-bot@chromium.org0fc0dea2013-12-18 04:45:37 +000015 '../experimental/SkV8Example/Global.cpp',
commit-bot@chromium.orgb1639842014-01-08 15:14:09 +000016 '../experimental/SkV8Example/Global.h',
commit-bot@chromium.orgf679d1b2014-02-27 20:20:21 +000017 '../experimental/SkV8Example/Path2D.cpp',
18 '../experimental/SkV8Example/Path2D.h',
commit-bot@chromium.org24e04962014-03-04 20:44:32 +000019 '../experimental/SkV8Example/BaseContext.cpp',
20 '../experimental/SkV8Example/BaseContext.h',
commit-bot@chromium.orgc8d73282014-01-06 18:17:24 +000021 '../experimental/SkV8Example/JsContext.cpp',
commit-bot@chromium.orgb1639842014-01-08 15:14:09 +000022 '../experimental/SkV8Example/JsContext.h',
commit-bot@chromium.org44a38772013-12-05 13:45:19 +000023 ],
24 'dependencies': [
commit-bot@chromium.orgb1639842014-01-08 15:14:09 +000025 'flags.gyp:flags',
commit-bot@chromium.org44a38772013-12-05 13:45:19 +000026 'skia_lib.gyp:skia_lib',
27 'views.gyp:views',
28 'xml.gyp:xml',
29 ],
commit-bot@chromium.orgb1639842014-01-08 15:14:09 +000030 'link_settings': {
31 'libraries': [
commit-bot@chromium.org44a38772013-12-05 13:45:19 +000032
commit-bot@chromium.orgb1639842014-01-08 15:14:09 +000033# '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',
commit-bot@chromium.org44a38772013-12-05 13:45:19 +000039
commit-bot@chromium.orgb1639842014-01-08 15:14:09 +000040 '-lpthread',
41 '-lrt',
commit-bot@chromium.org310ec8e2014-02-13 15:30:06 +000042 '../../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',
commit-bot@chromium.orgb1639842014-01-08 15:14:09 +000048 ],
49 },
commit-bot@chromium.org44a38772013-12-05 13:45:19 +000050 '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}