[Qt] Install valgrind on-demand

This commit is contained in:
Bruno de Oliveira Abinader
2016-06-16 19:22:29 +03:00
parent d323f393ec
commit 3f024ebaf0
3 changed files with 2 additions and 3 deletions

View File

@@ -242,9 +242,11 @@ run-qt-qml-app: qt-qml-app
test-valgrind-qt: $(QT_MAKEFILE) node_modules
$(QT_ENV) $(MAKE) -j$(JOBS) -C $(QT_OUTPUT_PATH) test
.mason/mason install valgrind latest
./scripts/valgrind.sh $(QT_OUTPUT_PATH)/$(BUILDTYPE)/test --gtest_catch_exceptions=0 --gtest_filter=-*.Load
run-valgrind-qt-app: qt-app
.mason/mason install valgrind latest
./scripts/valgrind.sh $(QT_OUTPUT_PATH)/$(BUILDTYPE)/qmapboxgl --test -platform offscreen
#### Linux targets #####################################################

1
configure vendored
View File

@@ -127,7 +127,6 @@ print_flags webp static_libs cflags ldflags
print_flags jni.hpp cflags
print_flags earcut cflags
print_flags benchmark static_libs cflags ldflags
print_flags valgrind
CONFIG+=" }
}

View File

@@ -28,8 +28,6 @@ if [ "$MASON_PLATFORM" == "osx" ]; then
CONFIG+=" 'opengl_ldflags%': ['-framework OpenGL', '-framework CoreFoundation'],"$LN
}
else
VALGRIND_VERSION=latest
function print_opengl_flags {
CONFIG+=" 'opengl_cflags%': $(quote_flags $(pkg-config gl x11 --cflags)),"$LN
CONFIG+=" 'opengl_ldflags%': $(quote_flags $(pkg-config gl x11 --libs)),"$LN