| Index: gyp/viewer.gyp
|
| diff --git a/gyp/viewer.gyp b/gyp/viewer.gyp
|
| index 1013e070ae0c9bd043c3100232e8a08bd8edd317..012281a68ede5151270166237710570ef6b05e04 100644
|
| --- a/gyp/viewer.gyp
|
| +++ b/gyp/viewer.gyp
|
| @@ -14,26 +14,41 @@
|
| 'type': 'executable',
|
| 'includes' : [
|
| 'gmslides.gypi',
|
| + 'samples.gypi',
|
| ],
|
| 'include_dirs': [
|
| '../bench',
|
| '../gm',
|
| - '../include/views',
|
| '../include/private',
|
| '../src/core',
|
| '../src/effects',
|
| '../src/gpu',
|
| - '../src/images',
|
| '../src/image',
|
| + '../src/images',
|
| + '../src/pathops',
|
| '../src/views/unix',
|
| '../tools/timer',
|
| ],
|
| 'sources': [
|
| '../gm/gm.cpp',
|
| + '<!@(python find.py ../tools/viewer "*.cpp")',
|
| +
|
| + # views (subset of files for the Android build)
|
| + '../src/views/SkEvent.cpp',
|
| + '../src/views/SkEventSink.cpp',
|
| + '../src/views/SkOSMenu.cpp',
|
| + '../src/views/SkTagList.cpp',
|
| + '../src/views/SkTagList.h',
|
| '../src/views/SkTouchGesture.cpp',
|
| + '../src/views/SkView.cpp',
|
| + '../src/views/SkViewPriv.cpp',
|
| + '../src/views/SkViewPriv.h',
|
| '../src/views/unix/keysym2ucs.c',
|
| - '<!@(python find.py ../tools/viewer "*.cpp")',
|
| ],
|
| + 'sources!': [
|
| + '../samplecode/SampleSkLayer.cpp', #relies on SkMatrix44 which doesn't compile
|
| + '../samplecode/SampleFontCache.cpp', #relies on pthread.h
|
| + ],
|
| 'dependencies': [
|
| 'flags.gyp:flags',
|
| 'gputest.gyp:skgputest',
|
| @@ -52,6 +67,11 @@
|
| 'android_deps.gyp:Android_EntryPoint',
|
| 'android_deps.gyp:native_app_glue',
|
| ],
|
| + # views depends on SkOSWindow_android, which we don't want to include
|
| + # so we only include the minimum set of views files in sources
|
| + 'dependencies!': [
|
| + 'views.gyp:views',
|
| + ],
|
| 'link_settings': {
|
| 'libraries': [
|
| '-landroid',
|
| @@ -66,11 +86,13 @@
|
| },
|
| }],
|
| ['skia_os != "android"', {
|
| - 'sources/': [ ['exclude', '_android.(h|cpp)$'],
|
| + 'sources/': [
|
| + ['exclude', '_android.(h|cpp)$'],
|
| + ['exclude', 'src/views'],
|
| ],
|
| }],
|
| ['skia_os != "linux"', {
|
| - 'sources/': [
|
| + 'sources/': [
|
| ['exclude', '_unix.(h|cpp)$'],
|
| ['exclude', 'keysym2ucs.c'],
|
| ],
|
|
|