mkspecs/symbian-sbsv2/flm/qt/qmake_extra_pre_targetdep.flm
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 15 Mar 2010 12:43:09 +0200
branchRCL_3
changeset 6 dee5afe5301f
parent 5 d3bac044e0f0
child 8 3f74d0d4af4c
permissions -rw-r--r--
Revision: 201008 Kit: 201010

# /****************************************************************************
# **
# ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
# ** Contact: Nokia Corporation (qt-info@nokia.com)
# **
# ** This file is part of symbian-sbsv2 mkspec.
# **
# ****************************************************************************/


SINGLETON:=$(call sanitise,TARGET_$(PREDEP_TARGET))

MY_CMD:=$(COMMAND)

# If the command has a drive letter, don't prepend EPOCROOT
ifneq ($(findstring :,$(firstword $(COMMAND))), :)
    # Additional checking is necessary for the Linux compilation
    ifneq ($(findstring $(EPOCROOT), $(firstword $(COMMAND))), $(EPOCROOT))
        ifeq ($(findstring /epoc32, $(firstword $(COMMAND))), /epoc32)
	    MY_CMD:=$(EPOCROOT)$(COMMAND)
	 endif
    endif
endif

define qmake_extra_pre_targetdep
EXPORT:: $(PREDEP_TARGET)

# Prevent duplicate targets from being created
$(SINGLETON):=1

$(PREDEP_TARGET): $(DEPS) 
	$(call startrule,qmake_extra_pre_targetdep,FORCESUCCESS) \
	$(MY_CMD) \
	$(call endrule,qmake_extra_pre_targetdep)
endef

ifeq ($($(SINGLETON)),)
$(eval $(qmake_extra_pre_targetdep))
$(eval $(call GenerateStandardCleanTarget,$(PREDEP_TARGET),''))
endif