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' : [ 9 '../third_party/externals/v8/include', 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', 47 ], 48 }, 49 'conditions' : [ 50 [ 'skia_gpu == 1', { 51 'include_dirs' : [ 52 '../src/gpu', 53 ] 54 }], 55 [ 'skia_os == "win"', { 56 'sources' : [ 57 '../src/views/win/SkOSWindow_Win.cpp', 58 '../src/views/win/skia_win.cpp', 59 ], 60 }], 61 [ 'skia_os == "mac"', { 62 'sources': [ 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', 74 ], 75 'include_dirs' : [ 76 '../src/views/mac/' 77 ], 78 'xcode_settings' : { 79 'INFOPLIST_FILE' : '../experimental/SkiaExamples/SkiaExamples-Info.plist', 80 }, 81 'mac_bundle_resources' : [ 82 '../experimental/SkiaExamples/SkiaExamples.xib' 83 ], 84 }], 85 ], 86 } 87 ], 88 } 89