diff options
author | Ivo van Dongen <info@ivovandongen.nl> | 2017-07-06 16:40:04 +0300 |
---|---|---|
committer | Ivo van Dongen <ivovandongen@users.noreply.github.com> | 2017-07-06 21:27:40 +0300 |
commit | 9ba3dc92494791fb41b6f20fe11ddd950f381a5f (patch) | |
tree | 0de7cefa86e0af978fb810d3aedc77fc2fb173c7 | |
parent | d5fbcb242acff2ab270b4018b01c2c6be9c4955f (diff) | |
download | qtlocation-mapboxgl-9ba3dc92494791fb41b6f20fe11ddd950f381a5f.tar.gz |
[build] add node-benchmark target and xcode scheme
-rw-r--r-- | Makefile | 8 | ||||
-rw-r--r-- | cmake/node.cmake | 11 |
2 files changed, 19 insertions, 0 deletions
@@ -108,6 +108,14 @@ run-benchmark: run-benchmark-. run-benchmark-%: benchmark $(MACOS_OUTPUT_PATH)/$(BUILDTYPE)/mbgl-benchmark --benchmark_filter=$* +.PHONY: node-benchmark +node-benchmark: $(MACOS_PROJ_PATH) + set -o pipefail && $(MACOS_XCODEBUILD) -scheme 'node-benchmark' build $(XCPRETTY) + +.PHONY: run-node-benchmark +run-node-benchmark: node-benchmark + node platform/node/test/benchmark.js + .PHONY: glfw-app glfw-app: $(MACOS_PROJ_PATH) set -o pipefail && $(MACOS_XCODEBUILD) -scheme 'mbgl-glfw' build $(XCPRETTY) diff --git a/cmake/node.cmake b/cmake/node.cmake index 8626534271..502edd8293 100644 --- a/cmake/node.cmake +++ b/cmake/node.cmake @@ -87,3 +87,14 @@ xcode_create_scheme( "group" "test" ) + +xcode_create_scheme( + TARGET mbgl-node + TYPE node + NAME "node-benchmark" + ARGS + "platform/node/test/benchmark.js" + OPTIONAL_ARGS + "group" + "test" +) |