scroggo | 3e56227 | 2015-03-25 10:22:41 -0700 | [diff] [blame] | 1 | # Copyright 2015 Google Inc. |
| 2 | # |
| 3 | # Use of this source code is governed by a BSD-style license that can be |
| 4 | # found in the LICENSE file. |
commit-bot@chromium.org | 44a3877 | 2013-12-05 13:45:19 +0000 | [diff] [blame] | 5 | # GYP file to build a V8 sample. |
| 6 | { |
| 7 | 'targets': [ |
| 8 | { |
| 9 | 'target_name': 'SkV8Example', |
| 10 | 'type': 'executable', |
| 11 | 'mac_bundle' : 1, |
| 12 | 'include_dirs' : [ |
commit-bot@chromium.org | b163984 | 2014-01-08 15:14:09 +0000 | [diff] [blame] | 13 | '../third_party/externals/v8/include', |
jcgregorio | e22f45f | 2014-10-24 12:49:17 -0700 | [diff] [blame] | 14 | '../third_party/externals/v8', |
tfarina | 1c4d578 | 2014-06-22 16:13:00 -0700 | [diff] [blame] | 15 | ], |
| 16 | 'sources': [ |
jcgregorio | 5e44b00 | 2014-10-27 10:27:01 -0700 | [diff] [blame] | 17 | '../experimental/SkV8Example/DrawingMethods.cpp', |
| 18 | '../experimental/SkV8Example/DrawingMethods.h', |
tfarina | 1c4d578 | 2014-06-22 16:13:00 -0700 | [diff] [blame] | 19 | '../experimental/SkV8Example/Global.cpp', |
| 20 | '../experimental/SkV8Example/Global.h', |
| 21 | '../experimental/SkV8Example/JsContext.cpp', |
| 22 | '../experimental/SkV8Example/JsContext.h', |
jcgregorio | e001da2 | 2014-10-29 05:33:27 -0700 | [diff] [blame] | 23 | '../experimental/SkV8Example/Path2DBuilder.cpp', |
| 24 | '../experimental/SkV8Example/Path2DBuilder.h', |
tfarina | 1c4d578 | 2014-06-22 16:13:00 -0700 | [diff] [blame] | 25 | '../experimental/SkV8Example/Path2D.cpp', |
| 26 | '../experimental/SkV8Example/Path2D.h', |
| 27 | '../experimental/SkV8Example/SkV8Example.cpp', |
| 28 | '../experimental/SkV8Example/SkV8Example.h', |
| 29 | ], |
| 30 | 'dependencies': [ |
| 31 | 'flags.gyp:flags', |
| 32 | 'skia_lib.gyp:skia_lib', |
| 33 | 'views.gyp:views', |
| 34 | 'xml.gyp:xml', |
| 35 | ], |
| 36 | 'link_settings': { |
| 37 | 'libraries': [ |
| 38 | |
| 39 | # 'd:/src/v8/build/Debug/lib/v8_base.ia32.lib', |
| 40 | # 'd:/src/v8/build/Debug/lib/v8_snapshot.lib', |
| 41 | # 'd:/src/v8/build/Debug/lib/icuuc.lib', |
| 42 | # 'd:/src/v8/build/Debug/lib/icui18n.lib', |
| 43 | # 'Ws2_32.lib', |
| 44 | # 'Winmm.lib', |
| 45 | |
| 46 | '-lpthread', |
| 47 | '-lrt', |
jcgregorio | e22f45f | 2014-10-24 12:49:17 -0700 | [diff] [blame] | 48 | '../../third_party/externals/v8/out/native/obj.target/tools/gyp/libv8_base.a', |
| 49 | '../../third_party/externals/v8/out/native/obj.target/tools/gyp/libv8_libbase.a', |
tfarina | 1c4d578 | 2014-06-22 16:13:00 -0700 | [diff] [blame] | 50 | '../../third_party/externals/v8/out/native/obj.target/tools/gyp/libv8_snapshot.a', |
jcgregorio | e22f45f | 2014-10-24 12:49:17 -0700 | [diff] [blame] | 51 | '../../third_party/externals/v8/out/native/obj.target/tools/gyp/libv8_libplatform.a', |
tfarina | 1c4d578 | 2014-06-22 16:13:00 -0700 | [diff] [blame] | 52 | '../../third_party/externals/v8/out/native/obj.target/third_party/icu/libicudata.a', |
| 53 | '../../third_party/externals/v8/out/native/obj.target/third_party/icu/libicui18n.a', |
| 54 | '../../third_party/externals/v8/out/native/obj.target/third_party/icu/libicuuc.a', |
jcgregorio | e22f45f | 2014-10-24 12:49:17 -0700 | [diff] [blame] | 55 | '../../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] | 56 | ], |
tfarina | 1c4d578 | 2014-06-22 16:13:00 -0700 | [diff] [blame] | 57 | }, |
| 58 | 'conditions' : [ |
| 59 | [ 'skia_gpu == 1', { |
| 60 | 'include_dirs' : [ |
| 61 | '../src/gpu', |
| 62 | ] |
| 63 | }], |
commit-bot@chromium.org | 44a3877 | 2013-12-05 13:45:19 +0000 | [diff] [blame] | 64 | ], |
commit-bot@chromium.org | 44a3877 | 2013-12-05 13:45:19 +0000 | [diff] [blame] | 65 | } |
| 66 | ], |
| 67 | } |