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', |
jcgregorio | e22f45f | 2014-10-24 12:49:17 -0700 | [diff] [blame] | 10 | '../third_party/externals/v8', |
tfarina | 1c4d578 | 2014-06-22 16:13:00 -0700 | [diff] [blame] | 11 | ], |
| 12 | 'sources': [ |
jcgregorio | 5e44b00 | 2014-10-27 10:27:01 -0700 | [diff] [blame] | 13 | '../experimental/SkV8Example/DrawingMethods.cpp', |
| 14 | '../experimental/SkV8Example/DrawingMethods.h', |
tfarina | 1c4d578 | 2014-06-22 16:13:00 -0700 | [diff] [blame] | 15 | '../experimental/SkV8Example/Global.cpp', |
| 16 | '../experimental/SkV8Example/Global.h', |
| 17 | '../experimental/SkV8Example/JsContext.cpp', |
| 18 | '../experimental/SkV8Example/JsContext.h', |
jcgregorio | e001da2 | 2014-10-29 05:33:27 -0700 | [diff] [blame] | 19 | '../experimental/SkV8Example/Path2DBuilder.cpp', |
| 20 | '../experimental/SkV8Example/Path2DBuilder.h', |
tfarina | 1c4d578 | 2014-06-22 16:13:00 -0700 | [diff] [blame] | 21 | '../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', |
jcgregorio | e22f45f | 2014-10-24 12:49:17 -0700 | [diff] [blame] | 44 | '../../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', |
tfarina | 1c4d578 | 2014-06-22 16:13:00 -0700 | [diff] [blame] | 46 | '../../third_party/externals/v8/out/native/obj.target/tools/gyp/libv8_snapshot.a', |
jcgregorio | e22f45f | 2014-10-24 12:49:17 -0700 | [diff] [blame] | 47 | '../../third_party/externals/v8/out/native/obj.target/tools/gyp/libv8_libplatform.a', |
tfarina | 1c4d578 | 2014-06-22 16:13:00 -0700 | [diff] [blame] | 48 | '../../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', |
jcgregorio | e22f45f | 2014-10-24 12:49:17 -0700 | [diff] [blame] | 51 | '../../third_party/externals/v8/out/native/obj.target/icudata/third_party/icu/linux/icudtl_dat.o', |
commit-bot@chromium.org | 44a3877 | 2013-12-05 13:45:19 +0000 | [diff] [blame] | 52 | ], |
tfarina | 1c4d578 | 2014-06-22 16:13:00 -0700 | [diff] [blame] | 53 | }, |
| 54 | 'conditions' : [ |
| 55 | [ 'skia_gpu == 1', { |
| 56 | 'include_dirs' : [ |
| 57 | '../src/gpu', |
| 58 | ] |
| 59 | }], |
commit-bot@chromium.org | 44a3877 | 2013-12-05 13:45:19 +0000 | [diff] [blame] | 60 | [ 'skia_os == "win"', { |
tfarina | 1c4d578 | 2014-06-22 16:13:00 -0700 | [diff] [blame] | 61 | 'sources' : [ |
| 62 | '../src/views/win/SkOSWindow_Win.cpp', |
| 63 | '../src/views/win/skia_win.cpp', |
| 64 | ], |
| 65 | }], |
commit-bot@chromium.org | 44a3877 | 2013-12-05 13:45:19 +0000 | [diff] [blame] | 66 | [ 'skia_os == "mac"', { |
| 67 | 'sources': [ |
tfarina | 1c4d578 | 2014-06-22 16:13:00 -0700 | [diff] [blame] | 68 | '../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.org | 44a3877 | 2013-12-05 13:45:19 +0000 | [diff] [blame] | 79 | ], |
tfarina | 1c4d578 | 2014-06-22 16:13:00 -0700 | [diff] [blame] | 80 | 'include_dirs' : [ |
| 81 | '../src/views/mac/' |
commit-bot@chromium.org | 44a3877 | 2013-12-05 13:45:19 +0000 | [diff] [blame] | 82 | ], |
tfarina | 1c4d578 | 2014-06-22 16:13:00 -0700 | [diff] [blame] | 83 | 'xcode_settings' : { |
| 84 | 'INFOPLIST_FILE' : '../experimental/SkiaExamples/SkiaExamples-Info.plist', |
| 85 | }, |
| 86 | 'mac_bundle_resources' : [ |
| 87 | '../experimental/SkiaExamples/SkiaExamples.xib' |
commit-bot@chromium.org | 44a3877 | 2013-12-05 13:45:19 +0000 | [diff] [blame] | 88 | ], |
tfarina | 1c4d578 | 2014-06-22 16:13:00 -0700 | [diff] [blame] | 89 | }], |
commit-bot@chromium.org | 44a3877 | 2013-12-05 13:45:19 +0000 | [diff] [blame] | 90 | ], |
commit-bot@chromium.org | 44a3877 | 2013-12-05 13:45:19 +0000 | [diff] [blame] | 91 | } |
| 92 | ], |
| 93 | } |