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' : [ |
| 9 | '../tools/flags', |
| 10 | '../../../v8/include', |
| 11 | ], |
| 12 | 'includes': [], |
| 13 | 'sources': [ |
| 14 | '../experimental/SkV8Example/SkV8Example.h', |
| 15 | '../experimental/SkV8Example/SkV8Example.cpp', |
commit-bot@chromium.org | 0fc0dea | 2013-12-18 04:45:37 +0000 | [diff] [blame] | 16 | '../experimental/SkV8Example/Global.h', |
| 17 | '../experimental/SkV8Example/Global.cpp', |
commit-bot@chromium.org | c8d7328 | 2014-01-06 18:17:24 +0000 | [diff] [blame^] | 18 | '../experimental/SkV8Example/Path.h', |
| 19 | '../experimental/SkV8Example/Path.cpp', |
| 20 | '../experimental/SkV8Example/JsContext.h', |
| 21 | '../experimental/SkV8Example/JsContext.cpp', |
commit-bot@chromium.org | 44a3877 | 2013-12-05 13:45:19 +0000 | [diff] [blame] | 22 | ], |
| 23 | 'dependencies': [ |
| 24 | 'skia_lib.gyp:skia_lib', |
| 25 | 'views.gyp:views', |
| 26 | 'xml.gyp:xml', |
commit-bot@chromium.org | 48d94b8c | 2013-12-16 18:24:51 +0000 | [diff] [blame] | 27 | 'flags.gyp:flags', |
commit-bot@chromium.org | 44a3877 | 2013-12-05 13:45:19 +0000 | [diff] [blame] | 28 | ], |
| 29 | |
| 30 | 'link_settings': { |
| 31 | 'libraries': [ |
| 32 | |
robertphillips@google.com | ea4f3db | 2013-12-05 15:55:00 +0000 | [diff] [blame] | 33 | # 'd:/src/v8/build/Debug/lib/v8_base.ia32.lib', |
| 34 | # 'd:/src/v8/build/Debug/lib/v8_snapshot.lib', |
| 35 | |
| 36 | # 'd:/src/v8/build/Debug/lib/icuuc.lib', |
| 37 | # 'd:/src/v8/build/Debug/lib/icui18n.lib', |
| 38 | |
| 39 | # 'Ws2_32.lib', |
| 40 | # 'Winmm.lib', |
| 41 | |
commit-bot@chromium.org | 44a3877 | 2013-12-05 13:45:19 +0000 | [diff] [blame] | 42 | '-lpthread', |
| 43 | '-lrt', |
| 44 | '../../../v8/out/native/obj.target/tools/gyp/libv8_base.x64.a', |
| 45 | '../../../v8/out/native/obj.target/tools/gyp/libv8_snapshot.a', |
| 46 | |
| 47 | '../../../v8/out/native/obj.target/third_party/icu/libicudata.a', |
| 48 | '../../../v8/out/native/obj.target/third_party/icu/libicui18n.a', |
| 49 | '../../../v8/out/native/obj.target/third_party/icu/libicuuc.a', |
| 50 | |
| 51 | '../../../v8/out/native/obj.target/icudata/third_party/icu/linux/icudt46l_dat.o', |
| 52 | ], |
| 53 | }, |
| 54 | 'conditions' : [ |
| 55 | [ 'skia_gpu == 1', { |
| 56 | 'include_dirs' : [ |
| 57 | '../src/gpu', #gl/GrGLUtil.h |
| 58 | ] |
| 59 | }], |
| 60 | [ 'skia_os == "win"', { |
| 61 | 'sources' : [ |
| 62 | '../src/views/win/SkOSWindow_Win.cpp', |
| 63 | '../src/views/win/skia_win.cpp', |
| 64 | ], |
| 65 | }, |
| 66 | ], |
| 67 | |
| 68 | [ 'skia_os == "mac"', { |
| 69 | 'sources': [ |
| 70 | |
| 71 | '../src/views/mac/SampleAppDelegate.h', |
| 72 | '../src/views/mac/SampleAppDelegate.mm', |
| 73 | '../src/views/mac/SkEventNotifier.mm', |
| 74 | '../src/views/mac/skia_mac.mm', |
| 75 | '../src/views/mac/SkNSView.h', |
| 76 | '../src/views/mac/SkNSView.mm', |
| 77 | '../src/views/mac/SkOptionsTableView.h', |
| 78 | '../src/views/mac/SkOptionsTableView.mm', |
| 79 | '../src/views/mac/SkOSWindow_Mac.mm', |
| 80 | '../src/views/mac/SkTextFieldCell.h', |
| 81 | '../src/views/mac/SkTextFieldCell.m', |
| 82 | ], |
| 83 | 'include_dirs' : [ |
| 84 | '../src/views/mac/' |
| 85 | ], |
| 86 | 'xcode_settings' : { |
| 87 | 'INFOPLIST_FILE' : '../experimental/SkiaExamples/SkiaExamples-Info.plist', |
| 88 | }, |
| 89 | 'mac_bundle_resources' : [ |
| 90 | '../experimental/SkiaExamples/SkiaExamples.xib' |
| 91 | ], |
| 92 | } |
| 93 | ], |
| 94 | ], |
| 95 | } |
| 96 | ], |
| 97 | } |