diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-12-05 13:45:19 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-12-05 13:45:19 +0000 |
commit | 44a3877442805f48158c0d1e936b9c3970ddd3af (patch) | |
tree | 06acf4b1467fca0688dd9da3d6f6fae7f9e3f153 /gyp | |
parent | bd04652cd6d4d15ffdf556e4fabb35cdee3e0e58 (diff) |
V8 and Skia
R=robertphillips@google.com
Author: jcgregorio@google.com
Review URL: https://codereview.chromium.org/93933005
git-svn-id: http://skia.googlecode.com/svn/trunk@12503 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gyp')
-rw-r--r-- | gyp/everything.gyp | 1 | ||||
-rw-r--r-- | gyp/v8.gyp | 81 |
2 files changed, 82 insertions, 0 deletions
diff --git a/gyp/everything.gyp b/gyp/everything.gyp index 0a798b61ac..5d1697ec8d 100644 --- a/gyp/everything.gyp +++ b/gyp/everything.gyp @@ -22,6 +22,7 @@ 'dependencies': [ 'debugger.gyp:debugger', 'pdfviewer.gyp:pdfviewer', + #'v8.gyp:SkV8Example', ], }], # DM assumes you've got a GPU. diff --git a/gyp/v8.gyp b/gyp/v8.gyp new file mode 100644 index 0000000000..3db536e0c6 --- /dev/null +++ b/gyp/v8.gyp @@ -0,0 +1,81 @@ +# GYP file to build a V8 sample. +{ + 'targets': [ + { + 'target_name': 'SkV8Example', + 'type': 'executable', + 'mac_bundle' : 1, + 'include_dirs' : [ + '../tools/flags', + '../../../v8/include', + ], + 'includes': [], + 'sources': [ + '../experimental/SkV8Example/SkV8Example.h', + '../experimental/SkV8Example/SkV8Example.cpp', + ], + 'dependencies': [ + 'skia_lib.gyp:skia_lib', + 'views.gyp:views', + 'xml.gyp:xml', + ], + + 'link_settings': { + 'libraries': [ + + '-lpthread', + '-lrt', + '../../../v8/out/native/obj.target/tools/gyp/libv8_base.x64.a', + '../../../v8/out/native/obj.target/tools/gyp/libv8_snapshot.a', + + '../../../v8/out/native/obj.target/third_party/icu/libicudata.a', + '../../../v8/out/native/obj.target/third_party/icu/libicui18n.a', + '../../../v8/out/native/obj.target/third_party/icu/libicuuc.a', + + '../../../v8/out/native/obj.target/icudata/third_party/icu/linux/icudt46l_dat.o', + ], + }, + 'conditions' : [ + [ 'skia_gpu == 1', { + 'include_dirs' : [ + '../src/gpu', #gl/GrGLUtil.h + ] + }], + [ 'skia_os == "win"', { + 'sources' : [ + '../src/views/win/SkOSWindow_Win.cpp', + '../src/views/win/skia_win.cpp', + ], + }, + ], + + [ 'skia_os == "mac"', { + 'sources': [ + + '../src/views/mac/SampleAppDelegate.h', + '../src/views/mac/SampleAppDelegate.mm', + '../src/views/mac/SkEventNotifier.mm', + '../src/views/mac/skia_mac.mm', + '../src/views/mac/SkNSView.h', + '../src/views/mac/SkNSView.mm', + '../src/views/mac/SkOptionsTableView.h', + '../src/views/mac/SkOptionsTableView.mm', + '../src/views/mac/SkOSWindow_Mac.mm', + '../src/views/mac/SkTextFieldCell.h', + '../src/views/mac/SkTextFieldCell.m', + ], + 'include_dirs' : [ + '../src/views/mac/' + ], + 'xcode_settings' : { + 'INFOPLIST_FILE' : '../experimental/SkiaExamples/SkiaExamples-Info.plist', + }, + 'mac_bundle_resources' : [ + '../experimental/SkiaExamples/SkiaExamples.xib' + ], + } + ], + ], + } + ], +} |