[build] add benchmark target

This commit is contained in:
Konstantin Käfer
2016-06-01 18:06:26 +02:00
parent d3fe798493
commit 0fe60d398e
11 changed files with 209 additions and 1 deletions

View File

@@ -14,6 +14,7 @@
'includes': [
'../../mbgl.gypi',
'../../test/test.gypi',
'../../benchmark/benchmark.gypi',
'../../bin/glfw.gypi',
'../../bin/render.gypi',
'../../bin/offline.gypi',
@@ -33,6 +34,19 @@
'../../test/src/main.cpp',
],
},
{
'target_name': 'benchmark',
'type': 'executable',
'dependencies': [
'benchmark-lib',
'platform-lib',
],
'sources': [
'../../benchmark/src/main.cpp',
],
},
{
'target_name': 'platform-lib',
'product_name': 'mbgl-platform-linux',

View File

@@ -22,6 +22,7 @@ GTEST_VERSION=1.7.0${CXX11ABI:-}
PIXELMATCH_VERSION=0.9.0
WEBP_VERSION=0.5.0
EARCUT_VERSION=0.11
BENCHMARK_VERSION=1.0.0
function print_opengl_flags {
CONFIG+=" 'opengl_cflags%': $(quote_flags $(pkg-config gl x11 --cflags)),"$LN