From 4363676aec66b0ec7c22c29c16634b52a5d50ae7 Mon Sep 17 00:00:00 2001 From: f4exb Date: Sun, 18 Feb 2018 23:09:30 +0100 Subject: [PATCH] Windows build: compile sdrbase resources as a binary resource file loaded dynamically --- sdrbase/sdrbase.pro | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/sdrbase/sdrbase.pro b/sdrbase/sdrbase.pro index 120955c06..9aeeb90a1 100644 --- a/sdrbase/sdrbase.pro +++ b/sdrbase/sdrbase.pro @@ -207,7 +207,16 @@ HEADERS += audio/audiodeviceinfo.h\ LIBS += -L../httpserver/$${build_subdir} -lhttpserver LIBS += -L../swagger/$${build_subdir} -lswagger -RESOURCES = resources/res.qrc +RCC_BINARY_SOURCES += resources/res.qrc + +asset_builder.commands = $$[QT_HOST_BINS]/rcc -binary ${QMAKE_FILE_IN} -o ${QMAKE_FILE_OUT} -no-compress +asset_builder.depend_command = $$[QT_HOST_BINS]/rcc -list $$QMAKE_RESOURCE_FLAGS ${QMAKE_FILE_IN} +asset_builder.input = RCC_BINARY_SOURCES +asset_builder.output = $$OUT_PWD/$$DESTDIR/${QMAKE_FILE_IN_BASE}.qrb +asset_builder.CONFIG += no_link target_predeps +QMAKE_EXTRA_COMPILERS += asset_builder + +OTHER_FILES += $$RCC_BINARY_SOURCES CONFIG(ANDROID):CONFIG += mobility CONFIG(ANDROID):MOBILITY =