summaryrefslogtreecommitdiff
path: root/platform/linux
diff options
context:
space:
mode:
Diffstat (limited to 'platform/linux')
-rw-r--r--platform/linux/platform.gyp14
-rw-r--r--platform/linux/scripts/configure.sh1
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