Add gyp for bench and make run on Windows.
http://codereview.appspot.com/4528112/ git-svn-id: http://skia.googlecode.com/svn/trunk@1458 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
e6ff8ab743
commit
206c98ae40
56
gyp/bench.gyp
Normal file
56
gyp/bench.gyp
Normal file
@ -0,0 +1,56 @@
|
||||
{
|
||||
'includes': [
|
||||
'target_defaults.gypi',
|
||||
],
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'bench',
|
||||
'type': 'executable',
|
||||
'mac_bundle' : 1,
|
||||
'include_dirs': [
|
||||
'../include/effects',
|
||||
'../include/utils',
|
||||
'../include/images',
|
||||
],
|
||||
'sources': [
|
||||
'../bench/benchmain.cpp',
|
||||
|
||||
'../bench/SkBenchmark.h',
|
||||
'../bench/SkBenchmark.cpp',
|
||||
|
||||
'../bench/BitmapBench.cpp',
|
||||
'../bench/DecodeBench.cpp',
|
||||
'../bench/FPSBench.cpp',
|
||||
'../bench/GradientBench.cpp',
|
||||
'../bench/PathBench.cpp',
|
||||
'../bench/RectBench.cpp',
|
||||
'../bench/RepeatTileBench.cpp',
|
||||
'../bench/TextBench.cpp',
|
||||
],
|
||||
'dependencies': [
|
||||
'core.gyp:core',
|
||||
'effects.gyp:effects',
|
||||
'images.gyp:images',
|
||||
'utils.gyp:utils',
|
||||
'gpu.gyp:gr',
|
||||
'gpu.gyp:skgr',
|
||||
],
|
||||
'msvs_settings': {
|
||||
'VCLinkerTool': {
|
||||
'SubSystem': '1',
|
||||
'EntryPointSymbol': 'mainCRTStartup',
|
||||
'AdditionalDependencies': [
|
||||
'OpenGL32.lib',
|
||||
'usp10.lib',
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
# Local Variables:
|
||||
# tab-width:2
|
||||
# indent-tabs-mode:nil
|
||||
# End:
|
||||
# vim: set expandtab tabstop=2 shiftwidth=2:
|
@ -153,6 +153,7 @@
|
||||
'../src/ports/SkMemory_malloc.cpp',
|
||||
'../src/ports/SkOSFile_stdio.cpp',
|
||||
'../src/ports/SkTime_Unix.cpp',
|
||||
'../src/ports/SkTime_win.cpp',
|
||||
'../src/ports/SkXMLParser_empty.cpp',
|
||||
'../src/ports/sk_predefined_gamma.h',
|
||||
|
||||
@ -304,6 +305,7 @@
|
||||
[ 'OS != "win"', {
|
||||
'sources!': [
|
||||
'../src/ports/SkDebug_win.cpp',
|
||||
'../src/ports/SkTime_win.cpp',
|
||||
],
|
||||
}],
|
||||
],
|
||||
|
@ -8,6 +8,9 @@
|
||||
#elif defined(SK_BUILD_FOR_UNIX)
|
||||
#include <X11/Xlib.h>
|
||||
#include <GL/glx.h>
|
||||
#elif defined(SK_BUILD_FOR_WIN32)
|
||||
#include <Windows.h>
|
||||
#include <GL/GL.h>
|
||||
#else
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user