From d2b260f489e773ea01c35b61be36a77e89640490 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Wed, 1 Apr 2015 08:42:04 +1100 Subject: [PATCH] Better way to decide on whether to compile MOC --- makefile | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/makefile b/makefile index c6a56797deb..63ff8fd0505 100644 --- a/makefile +++ b/makefile @@ -705,17 +705,27 @@ GEN_FOLDERS := \ LAYOUTS=$(wildcard $(SRC)/emu/layout/*.lay) $(wildcard $(SRC)/$(TARGET)/layout/*.lay) -# TODO: this will attempt to build on many platforms lacking Qt, e.g. emscripten and OS/2 -ifneq ($(TARGETOS),macosx) -MOC_FILES= -else MOC_FILES=$(wildcard $(SRC)/osd/modules/debugger/qt/*.h) +ifneq ($(USE_QTDEBUG),1) +ifeq ($(TARGETOS),macosx) +MOC_FILES= +endif +ifeq ($(TARGETOS),solaris) +MOC_FILES= +endif +ifeq ($(TARGETOS),haiku) +MOC_FILES= +endif +ifeq ($(TARGETOS),emscripten) +MOC_FILES= +endif +ifeq ($(TARGETOS),os2) +MOC_FILES= +endif +endif ifeq ($(OS),windows) MOC = moc -ifneq ($(OSD),sdl) -MOC_FILES= -endif else MOCTST = $(shell which moc-qt4 2>/dev/null) ifeq '$(MOCTST)' '' @@ -730,7 +740,6 @@ MOC = $(MOCTST) endif endif -endif ifneq (,$(wildcard src/osd/$(OSD)/$(OSD).mak)) include src/osd/$(OSD)/$(OSD).mak