2016-04-06 13:08:59 +00:00
|
|
|
# Copyright 2016 Google Inc.
|
|
|
|
#
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
# GYP file to build performance testbench.
|
|
|
|
#
|
|
|
|
{
|
|
|
|
'includes': [
|
|
|
|
'apptype_console.gypi',
|
|
|
|
],
|
|
|
|
'targets': [
|
|
|
|
{
|
2016-05-04 20:49:13 +00:00
|
|
|
'target_name': 'viewer',
|
2016-04-06 13:08:59 +00:00
|
|
|
'type': 'executable',
|
|
|
|
'includes' : [
|
|
|
|
'gmslides.gypi',
|
2016-06-16 16:52:35 +00:00
|
|
|
'samples.gypi',
|
2016-04-06 13:08:59 +00:00
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'../bench',
|
|
|
|
'../gm',
|
|
|
|
'../include/private',
|
|
|
|
'../src/core',
|
|
|
|
'../src/effects',
|
|
|
|
'../src/gpu',
|
2016-06-13 18:30:10 +00:00
|
|
|
'../src/image',
|
2016-06-16 16:52:35 +00:00
|
|
|
'../src/images',
|
|
|
|
'../src/pathops',
|
2016-05-23 20:13:36 +00:00
|
|
|
'../src/views/unix',
|
2016-04-07 18:09:51 +00:00
|
|
|
'../tools/timer',
|
2016-04-06 13:08:59 +00:00
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'../gm/gm.cpp',
|
2016-08-02 21:28:26 +00:00
|
|
|
'<!@(python find.py "*.cpp" ../tools/viewer)',
|
2016-08-04 19:30:31 +00:00
|
|
|
'<!@(python find.py "*.h" ../tools/viewer)',
|
2016-06-16 16:52:35 +00:00
|
|
|
|
|
|
|
# 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',
|
2016-06-13 18:30:10 +00:00
|
|
|
'../src/views/SkTouchGesture.cpp',
|
2016-06-16 16:52:35 +00:00
|
|
|
'../src/views/SkView.cpp',
|
|
|
|
'../src/views/SkViewPriv.cpp',
|
|
|
|
'../src/views/SkViewPriv.h',
|
2016-05-23 20:13:36 +00:00
|
|
|
'../src/views/unix/keysym2ucs.c',
|
2016-04-06 13:08:59 +00:00
|
|
|
],
|
2016-06-16 16:52:35 +00:00
|
|
|
'sources!': [
|
|
|
|
'../samplecode/SampleSkLayer.cpp', #relies on SkMatrix44 which doesn't compile
|
|
|
|
'../samplecode/SampleFontCache.cpp', #relies on pthread.h
|
2016-08-02 21:28:26 +00:00
|
|
|
],
|
2016-04-06 13:08:59 +00:00
|
|
|
'dependencies': [
|
|
|
|
'flags.gyp:flags',
|
|
|
|
'gputest.gyp:skgputest',
|
|
|
|
'jsoncpp.gyp:jsoncpp',
|
|
|
|
'skia_lib.gyp:skia_lib',
|
|
|
|
'tools.gyp:crash_handler',
|
|
|
|
'tools.gyp:proc_stats',
|
|
|
|
'tools.gyp:resources',
|
|
|
|
'tools.gyp:sk_tool_utils',
|
|
|
|
'tools.gyp:timer',
|
|
|
|
'tools.gyp:url_data_manager',
|
|
|
|
],
|
2016-04-21 14:59:44 +00:00
|
|
|
'conditions' : [
|
|
|
|
[ 'skia_os == "android"', {
|
|
|
|
'dependencies': [
|
|
|
|
'android_deps.gyp:Android_EntryPoint',
|
|
|
|
'android_deps.gyp:native_app_glue',
|
|
|
|
],
|
2016-06-16 16:52:35 +00:00
|
|
|
# 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',
|
|
|
|
],
|
2016-04-21 14:59:44 +00:00
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'-landroid',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}],
|
2016-06-17 16:29:14 +00:00
|
|
|
[ 'skia_os == "linux" and skia_vulkan == 1', {
|
2016-05-23 20:13:36 +00:00
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'-lX11-xcb',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}],
|
2016-08-04 19:30:31 +00:00
|
|
|
[ 'skia_os == "mac"', {
|
|
|
|
'dependencies': [
|
|
|
|
'sdl.gyp:sdl',
|
|
|
|
],
|
|
|
|
}],
|
2016-04-21 14:59:44 +00:00
|
|
|
['skia_os != "android"', {
|
2016-06-16 16:52:35 +00:00
|
|
|
'sources/': [
|
|
|
|
['exclude', '_android.(h|cpp)$'],
|
|
|
|
['exclude', 'src/views'],
|
2016-04-21 14:59:44 +00:00
|
|
|
],
|
|
|
|
}],
|
2016-05-23 20:13:36 +00:00
|
|
|
['skia_os != "linux"', {
|
2016-06-16 16:52:35 +00:00
|
|
|
'sources/': [
|
2016-05-23 20:13:36 +00:00
|
|
|
['exclude', '_unix.(h|cpp)$'],
|
|
|
|
['exclude', 'keysym2ucs.c'],
|
|
|
|
],
|
|
|
|
}],
|
2016-04-21 14:59:44 +00:00
|
|
|
['skia_os != "win"', {
|
|
|
|
'sources/': [ ['exclude', '_win.(h|cpp)$'],
|
|
|
|
],
|
|
|
|
}],
|
2016-07-19 21:17:20 +00:00
|
|
|
['skia_os != "mac"', {
|
|
|
|
'sources/': [ ['exclude', '_mac.(h|cpp)$'],
|
|
|
|
],
|
|
|
|
}],
|
2016-06-17 16:29:14 +00:00
|
|
|
['skia_vulkan == 0', {
|
|
|
|
'sources/': [ ['exclude', 'Vulkan']
|
|
|
|
],
|
|
|
|
}],
|
2016-04-21 14:59:44 +00:00
|
|
|
],
|
2016-04-06 13:08:59 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|