diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2016-06-01 18:06:26 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2016-06-06 13:50:55 +0200 |
commit | 0fe60d398e563fe01a3aabab1f39b733883c4e71 (patch) | |
tree | 4ef7c3de32883544404cb70df9d866f4c73b1ffe /platform/linux | |
parent | d3fe7984930fe7636d9dc36c8aa4c7ec3e891e49 (diff) | |
download | qtlocation-mapboxgl-0fe60d398e563fe01a3aabab1f39b733883c4e71.tar.gz |
[build] add benchmark target
Diffstat (limited to 'platform/linux')
-rw-r--r-- | platform/linux/platform.gyp | 14 | ||||
-rw-r--r-- | platform/linux/scripts/configure.sh | 1 |
2 files changed, 15 insertions, 0 deletions
diff --git a/platform/linux/platform.gyp b/platform/linux/platform.gyp index 98a1e253c9..7adf5337c4 100644 --- a/platform/linux/platform.gyp +++ b/platform/linux/platform.gyp @@ -14,6 +14,7 @@ 'includes': [ '../../mbgl.gypi', '../../test/test.gypi', + '../../benchmark/benchmark.gypi', '../../bin/glfw.gypi', '../../bin/render.gypi', '../../bin/offline.gypi', @@ -34,6 +35,19 @@ ], }, { + 'target_name': 'benchmark', + 'type': 'executable', + + 'dependencies': [ + 'benchmark-lib', + 'platform-lib', + ], + + 'sources': [ + '../../benchmark/src/main.cpp', + ], + }, + { 'target_name': 'platform-lib', 'product_name': 'mbgl-platform-linux', 'type': 'static_library', diff --git a/platform/linux/scripts/configure.sh b/platform/linux/scripts/configure.sh index 0f74afc55f..8f041d589a 100644 --- a/platform/linux/scripts/configure.sh +++ b/platform/linux/scripts/configure.sh @@ -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 |