commit-bot@chromium.org | 44a3877 | 2013-12-05 13:45:19 +0000 | [diff] [blame] | 1 | # 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.org | b163984 | 2014-01-08 15:14:09 +0000 | [diff] [blame] | 9 | '../third_party/externals/v8/include', |
tfarina | 1c4d578 | 2014-06-22 16:13:00 -0700 | [diff] [blame] | 10 | ], |
| 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.org | 44a3877 | 2013-12-05 13:45:19 +0000 | [diff] [blame] | 47 | ], |
tfarina | 1c4d578 | 2014-06-22 16:13:00 -0700 | [diff] [blame] | 48 | }, |
| 49 | 'conditions' : [ |
| 50 | [ 'skia_gpu == 1', { |
| 51 | 'include_dirs' : [ |
| 52 | '../src/gpu', |
| 53 | ] |
| 54 | }], |
commit-bot@chromium.org | 44a3877 | 2013-12-05 13:45:19 +0000 | [diff] [blame] | 55 | [ 'skia_os == "win"', { |
tfarina | 1c4d578 | 2014-06-22 16:13:00 -0700 | [diff] [blame] | 56 | 'sources' : [ |
| 57 | '../src/views/win/SkOSWindow_Win.cpp', |
| 58 | '../src/views/win/skia_win.cpp', |
| 59 | ], |
| 60 | }], |
commit-bot@chromium.org | 44a3877 | 2013-12-05 13:45:19 +0000 | [diff] [blame] | 61 | [ 'skia_os == "mac"', { |
| 62 | 'sources': [ |
tfarina | 1c4d578 | 2014-06-22 16:13:00 -0700 | [diff] [blame] | 63 | '../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.org | 44a3877 | 2013-12-05 13:45:19 +0000 | [diff] [blame] | 74 | ], |
tfarina | 1c4d578 | 2014-06-22 16:13:00 -0700 | [diff] [blame] | 75 | 'include_dirs' : [ |
| 76 | '../src/views/mac/' |
commit-bot@chromium.org | 44a3877 | 2013-12-05 13:45:19 +0000 | [diff] [blame] | 77 | ], |
tfarina | 1c4d578 | 2014-06-22 16:13:00 -0700 | [diff] [blame] | 78 | 'xcode_settings' : { |
| 79 | 'INFOPLIST_FILE' : '../experimental/SkiaExamples/SkiaExamples-Info.plist', |
| 80 | }, |
| 81 | 'mac_bundle_resources' : [ |
| 82 | '../experimental/SkiaExamples/SkiaExamples.xib' |
commit-bot@chromium.org | 44a3877 | 2013-12-05 13:45:19 +0000 | [diff] [blame] | 83 | ], |
tfarina | 1c4d578 | 2014-06-22 16:13:00 -0700 | [diff] [blame] | 84 | }], |
commit-bot@chromium.org | 44a3877 | 2013-12-05 13:45:19 +0000 | [diff] [blame] | 85 | ], |
commit-bot@chromium.org | 44a3877 | 2013-12-05 13:45:19 +0000 | [diff] [blame] | 86 | } |
| 87 | ], |
| 88 | } |