From ab78825966794f845cb718dddc3eda76ffb06f26 Mon Sep 17 00:00:00 2001 From: thunder2 Date: Thu, 31 Mar 2016 10:23:23 +0200 Subject: [PATCH] Enabled webui build script for Windows compile --- libresapi/src/libresapi.pro | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/libresapi/src/libresapi.pro b/libresapi/src/libresapi.pro index 210fb5089..39fca750e 100644 --- a/libresapi/src/libresapi.pro +++ b/libresapi/src/libresapi.pro @@ -34,13 +34,22 @@ win32{ DEFINES *= WINDOWS_SYS INCLUDEPATH += . $$INC_DIR - # create_webfiles.commands = $$_PRO_FILE_PWD_/webui-src/make-src/build.bat $$_PRO_FILE_PWD_ - # QMAKE_EXTRA_TARGETS += create_webfiles - # PRE_TARGETDEPS += create_webfiles + greaterThan(QT_MAJOR_VERSION, 4) { + # Qt 5 + PRO_PATH=$$shell_path($$_PRO_FILE_PWD_) + MAKE_SRC=$$shell_path($$PRO_PATH/webui-src/make-src) + } else { + # Qt 4 + PRO_PATH=$$replace(_PRO_FILE_PWD_, /, \\) + MAKE_SRC=$$PRO_PATH\\webui-src\\make-src + } + create_webfiles.commands = $$MAKE_SRC\\build.bat $$PRO_PATH + QMAKE_EXTRA_TARGETS += create_webfiles + PRE_TARGETDEPS += create_webfiles - # # create dummy files - # system(webui-src/make-src/init.bat .) + # create dummy files + system($$MAKE_SRC\\init.bat .) } libmicrohttpd{