Browse Source

Automatically detect pyuic and pyrcc

tags/1.9.8
falkTX 7 years ago
parent
commit
91ccde9789
1 changed files with 14 additions and 8 deletions
  1. +14
    -8
      source/Makefile.mk

+ 14
- 8
source/Makefile.mk View File

@@ -269,21 +269,27 @@ endif
# ---------------------------------------------------------------------------------------------------------------------
# Set PyQt tools

PYUIC4 ?= /usr/bin/pyuic4
PYUIC5 ?= /usr/bin/pyuic5
PYRCC4 ?= $(shell which pyrcc4)
PYUIC4 ?= $(shell which pyuic4)

ifneq (,$(wildcard $(PYUIC4)))
PYRCC5 ?= $(shell which pyrcc5)
PYUIC5 ?= $(shell which pyuic5)

HAVE_PYQT4=false
HAVE_PYQT5=false

ifneq ($(PYUIC4),)
ifneq ($(PYRCC4),)
HAVE_PYQT=true
HAVE_PYQT4=true
else
HAVE_PYQT4=false
endif
endif

ifneq (,$(wildcard $(PYUIC5)))
ifneq ($(PYUIC5),)
ifneq ($(PYRCC5),)
HAVE_PYQT=true
HAVE_PYQT5=true
else
HAVE_PYQT5=false
endif
endif

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


Loading…
Cancel
Save