efb1d77ad2
- Roll GYP so that we get non-thin archives on Linux - Add merge_static_libs.py - Add skia_core_lib target which builds core, ports, opts*, and utils - Replace dependencies on core/ports/opts/utils with skia_core_libs - Rename exportable libraries with "skia_" Review URL: https://codereview.appspot.com/6619049 git-svn-id: http://skia.googlecode.com/svn/trunk@5889 2bbb7eff-a529-9590-31e7-b0007b416f81
95 lines
2.2 KiB
Python
95 lines
2.2 KiB
Python
# GYP file to build performance testbench.
|
|
#
|
|
{
|
|
'includes': [
|
|
'apptype_console.gypi',
|
|
],
|
|
'targets': [
|
|
{
|
|
'target_name': 'bench',
|
|
'type': 'executable',
|
|
'include_dirs' : [
|
|
'../src/core',
|
|
],
|
|
'includes': [
|
|
'bench.gypi'
|
|
],
|
|
'dependencies': [
|
|
'skia_base_libs.gyp:skia_base_libs',
|
|
'effects.gyp:effects',
|
|
'images.gyp:images',
|
|
'bench_timer',
|
|
],
|
|
'conditions': [
|
|
['skia_gpu == 1',
|
|
{
|
|
'include_dirs' : [
|
|
'../src/gpu',
|
|
],
|
|
},
|
|
],
|
|
],
|
|
},
|
|
{
|
|
'target_name' : 'bench_timer',
|
|
'type': 'static_library',
|
|
'sources': [
|
|
'../bench/BenchTimer.h',
|
|
'../bench/BenchTimer.cpp',
|
|
'../bench/BenchSysTimer_mach.h',
|
|
'../bench/BenchSysTimer_mach.cpp',
|
|
'../bench/BenchSysTimer_posix.h',
|
|
'../bench/BenchSysTimer_posix.cpp',
|
|
'../bench/BenchSysTimer_windows.h',
|
|
'../bench/BenchSysTimer_windows.cpp',
|
|
],
|
|
'include_dirs': [
|
|
'../src/core',
|
|
'../src/gpu',
|
|
],
|
|
'dependencies': [
|
|
'skia_base_libs.gyp:skia_base_libs',
|
|
],
|
|
'conditions': [
|
|
[ 'skia_os not in ["mac", "ios"]', {
|
|
'sources!': [
|
|
'../bench/BenchSysTimer_mach.h',
|
|
'../bench/BenchSysTimer_mach.cpp',
|
|
],
|
|
}],
|
|
[ 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "android"]', {
|
|
'sources!': [
|
|
'../bench/BenchSysTimer_posix.h',
|
|
'../bench/BenchSysTimer_posix.cpp',
|
|
],
|
|
}],
|
|
[ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
|
|
'link_settings': {
|
|
'libraries': [
|
|
'-lrt',
|
|
],
|
|
},
|
|
}],
|
|
[ 'skia_os != "win"', {
|
|
'sources!': [
|
|
'../bench/BenchSysTimer_windows.h',
|
|
'../bench/BenchSysTimer_windows.cpp',
|
|
],
|
|
}],
|
|
['skia_gpu == 1', {
|
|
'sources': [
|
|
'../bench/BenchGpuTimer_gl.h',
|
|
'../bench/BenchGpuTimer_gl.cpp',
|
|
],
|
|
}],
|
|
],
|
|
}
|
|
],
|
|
}
|
|
|
|
# Local Variables:
|
|
# tab-width:2
|
|
# indent-tabs-mode:nil
|
|
# End:
|
|
# vim: set expandtab tabstop=2 shiftwidth=2:
|