Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(280)

Unified Diff: gyp/viewer.gyp

Issue 2056343004: Add samples to Viewer. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add samples.gypi Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gyp/samples.gypi ('k') | samplecode/ClockFaceView.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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'],
],
« no previous file with comments | « gyp/samples.gypi ('k') | samplecode/ClockFaceView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698