diff options
author | 2016-05-23 13:13:36 -0700 | |
---|---|---|
committer | 2016-05-23 13:13:36 -0700 | |
commit | 1d1559620058365e0de25636f1bcf07fcc071c3d (patch) | |
tree | aa9cae557fade884de8c1a5359dc0624cd44a288 /gyp | |
parent | 50134ccafdc509d4d430d068d7e68e38473ffe0a (diff) |
Add Xlib support to viewer
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=1999213002
Review-Url: https://codereview.chromium.org/1999213002
Diffstat (limited to 'gyp')
-rw-r--r-- | gyp/viewer.gyp | 15 |
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)$'], ], |