aboutsummaryrefslogtreecommitdiffhomepage
path: root/gyp
diff options
context:
space:
mode:
authorGravatar jvanverth <jvanverth@google.com>2016-05-23 13:13:36 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-05-23 13:13:36 -0700
commit1d1559620058365e0de25636f1bcf07fcc071c3d (patch)
treeaa9cae557fade884de8c1a5359dc0624cd44a288 /gyp
parent50134ccafdc509d4d430d068d7e68e38473ffe0a (diff)
Add Xlib support to viewer
Diffstat (limited to 'gyp')
-rw-r--r--gyp/viewer.gyp15
1 files changed, 15 insertions, 0 deletions
diff --git a/gyp/viewer.gyp b/gyp/viewer.gyp
index 84daa8d4c5..1013e070ae 100644
--- a/gyp/viewer.gyp
+++ b/gyp/viewer.gyp
@@ -25,11 +25,13 @@
'../src/gpu',
'../src/images',
'../src/image',
+ '../src/views/unix',
'../tools/timer',
],
'sources': [
'../gm/gm.cpp',
'../src/views/SkTouchGesture.cpp',
+ '../src/views/unix/keysym2ucs.c',
'<!@(python find.py ../tools/viewer "*.cpp")',
],
'dependencies': [
@@ -56,10 +58,23 @@
],
},
}],
+ [ 'skia_os == "linux"', {
+ 'link_settings': {
+ 'libraries': [
+ '-lX11-xcb',
+ ],
+ },
+ }],
['skia_os != "android"', {
'sources/': [ ['exclude', '_android.(h|cpp)$'],
],
}],
+ ['skia_os != "linux"', {
+ 'sources/': [
+ ['exclude', '_unix.(h|cpp)$'],
+ ['exclude', 'keysym2ucs.c'],
+ ],
+ }],
['skia_os != "win"', {
'sources/': [ ['exclude', '_win.(h|cpp)$'],
],