blob: baa0b3a46c09cc99f37abc0137529e39b963ccdf [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.orgc8d73282014-01-06 18:17:24 +000017 '../experimental/SkV8Example/Path.cpp',
commit-bot@chromium.orgb1639842014-01-08 15:14:09 +000018 '../experimental/SkV8Example/Path.h',
commit-bot@chromium.orgc8d73282014-01-06 18:17:24 +000019 '../experimental/SkV8Example/JsContext.cpp',
commit-bot@chromium.orgb1639842014-01-08 15:14:09 +000020 '../experimental/SkV8Example/JsContext.h',
commit-bot@chromium.org44a38772013-12-05 13:45:19 +000021 ],
22 'dependencies': [
commit-bot@chromium.orgb1639842014-01-08 15:14:09 +000023 'flags.gyp:flags',
commit-bot@chromium.org44a38772013-12-05 13:45:19 +000024 'skia_lib.gyp:skia_lib',
25 'views.gyp:views',
26 'xml.gyp:xml',
27 ],
commit-bot@chromium.orgb1639842014-01-08 15:14:09 +000028 'link_settings': {
29 'libraries': [
commit-bot@chromium.org44a38772013-12-05 13:45:19 +000030
commit-bot@chromium.orgb1639842014-01-08 15:14:09 +000031# 'd:/src/v8/build/Debug/lib/v8_base.ia32.lib',
32# 'd:/src/v8/build/Debug/lib/v8_snapshot.lib',
33# 'd:/src/v8/build/Debug/lib/icuuc.lib',
34# 'd:/src/v8/build/Debug/lib/icui18n.lib',
35# 'Ws2_32.lib',
36# 'Winmm.lib',
commit-bot@chromium.org44a38772013-12-05 13:45:19 +000037
commit-bot@chromium.orgb1639842014-01-08 15:14:09 +000038 '-lpthread',
39 '-lrt',
40 '../third_party/externals/v8/out/native/obj.target/tools/gyp/libv8_base.x64.a',
41 '../third_party/externals/v8/out/native/obj.target/tools/gyp/libv8_snapshot.a',
42 '../third_party/externals/v8/out/native/obj.target/third_party/icu/libicudata.a',
43 '../third_party/externals/v8/out/native/obj.target/third_party/icu/libicui18n.a',
44 '../third_party/externals/v8/out/native/obj.target/third_party/icu/libicuuc.a',
45 '../third_party/externals/v8/out/native/obj.target/icudata/third_party/icu/linux/icudt46l_dat.o',
46 ],
47 },
commit-bot@chromium.org44a38772013-12-05 13:45:19 +000048 'conditions' : [
49 [ 'skia_gpu == 1', {
50 'include_dirs' : [
51 '../src/gpu', #gl/GrGLUtil.h
52 ]
53 }],
54 [ 'skia_os == "win"', {
55 'sources' : [
56 '../src/views/win/SkOSWindow_Win.cpp',
57 '../src/views/win/skia_win.cpp',
58 ],
59 },
60 ],
61
62 [ 'skia_os == "mac"', {
63 'sources': [
64
65 '../src/views/mac/SampleAppDelegate.h',
66 '../src/views/mac/SampleAppDelegate.mm',
67 '../src/views/mac/SkEventNotifier.mm',
68 '../src/views/mac/skia_mac.mm',
69 '../src/views/mac/SkNSView.h',
70 '../src/views/mac/SkNSView.mm',
71 '../src/views/mac/SkOptionsTableView.h',
72 '../src/views/mac/SkOptionsTableView.mm',
73 '../src/views/mac/SkOSWindow_Mac.mm',
74 '../src/views/mac/SkTextFieldCell.h',
75 '../src/views/mac/SkTextFieldCell.m',
76 ],
77 'include_dirs' : [
78 '../src/views/mac/'
79 ],
80 'xcode_settings' : {
81 'INFOPLIST_FILE' : '../experimental/SkiaExamples/SkiaExamples-Info.plist',
82 },
83 'mac_bundle_resources' : [
84 '../experimental/SkiaExamples/SkiaExamples.xib'
85 ],
86 }
87 ],
88 ],
89 }
90 ],
91}