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. 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' : [ 13 '../third_party/externals/v8/include', 14 '../third_party/externals/v8', 15 ], 16 'sources': [ 17 '../experimental/SkV8Example/DrawingMethods.cpp', 18 '../experimental/SkV8Example/DrawingMethods.h', 19 '../experimental/SkV8Example/Global.cpp', 20 '../experimental/SkV8Example/Global.h', 21 '../experimental/SkV8Example/JsContext.cpp', 22 '../experimental/SkV8Example/JsContext.h', 23 '../experimental/SkV8Example/Path2DBuilder.cpp', 24 '../experimental/SkV8Example/Path2DBuilder.h', 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', 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', 50 '../../third_party/externals/v8/out/native/obj.target/tools/gyp/libv8_snapshot.a', 51 '../../third_party/externals/v8/out/native/obj.target/tools/gyp/libv8_libplatform.a', 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', 55 '../../third_party/externals/v8/out/native/obj.target/icudata/third_party/icu/linux/icudtl_dat.o', 56 ], 57 }, 58 'conditions' : [ 59 [ 'skia_gpu == 1', { 60 'include_dirs' : [ 61 '../src/gpu', 62 ] 63 }], 64 ], 65 } 66 ], 67 } 68