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