Browse Source

Allow to build custom Qt theme in Windows builds

tags/v2.1-rc1
falkTX 5 years ago
parent
commit
af0a73c189
1 changed files with 8 additions and 2 deletions
  1. +8
    -2
      source/theme/Makefile

+ 8
- 2
source/theme/Makefile View File

@@ -10,15 +10,21 @@ include ../modules/Makefile.mk

# ---------------------------------------------------------------------------------------------------------------------

ifeq ($(WIN32),true)
NON_STATIC_LINK_FLAGS = $(shell echo $(LINK_FLAGS) | awk 'sub(" -static","")')
else
NON_STATIC_LINK_FLAGS = $(LINK_FLAGS)
endif

ifeq ($(HAVE_QT4),true)
QT4_CXX_FLAGS = $(BUILD_CXX_FLAGS) $(shell pkg-config --cflags QtCore QtGui)
QT4_LINK_FLAGS = $(LINK_FLAGS) $(shell pkg-config --libs QtCore QtGui)
QT4_LINK_FLAGS = $(NON_STATIC_LINK_FLAGS) $(shell pkg-config --libs QtCore QtGui)
QT4_STYLES_DIR = $(shell pkg-config --variable=libdir QtCore)/qt4/plugins/styles
endif

ifeq ($(HAVE_QT5),true)
QT5_CXX_FLAGS = $(BUILD_CXX_FLAGS) $(shell pkg-config --cflags Qt5Core Qt5Gui Qt5Widgets)
QT5_LINK_FLAGS = $(LINK_FLAGS) $(shell pkg-config --libs Qt5Core Qt5Gui Qt5Widgets)
QT5_LINK_FLAGS = $(NON_STATIC_LINK_FLAGS) $(shell pkg-config --libs Qt5Core Qt5Gui Qt5Widgets)
QT5_STYLES_DIR = $(shell pkg-config --variable=libdir Qt5Core)/qt5/plugins/styles
endif



Loading…
Cancel
Save