qtmobility/features/qtservice.mk
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 06 Jul 2010 15:12:50 +0300
changeset 15 1f895d8a5b2b
permissions -rw-r--r--
Revision: 201025 Kit: 2010127

TMPROOT:=$(subst \,/,$(EPOCROOT))
EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/

SFWTOOL=$(EPOCROOT)epoc32/tools/servicedbgen

#choose target database to deal with
ifeq ($(PLATFORM), WINSCW)
QTSERVICE_TARGET:=-twinscw
else
ifeq ($(PLATFORM), ARMV5)
QTSERVICE_TARGET:=-tarmv5
else
QTSERVICE_TARGET:=-tall
endif
endif

#Service descriptors are deployed to SFW private folder. As the builder may get invoked from elsewhere,
#we cannot use the path specified in the QTSERVICE_DESCRIPTOR option, so use the default path
DES_PATH=$(EPOCROOT)epoc32/data/z/private/2002AC7F/des/$(QTSERVICE_DESCRIPTOR)

FINAL: 
	@$(SFWTOOL) $(QTSERVICE_TARGET) $(QTSERVICE_INITIALIZE) add $(DES_PATH)

CLEAN: 
	@$(SFWTOOL) $(QTSERVICE_TARGET) $(QTSERVICE_INITIALIZE) remove $(DES_PATH)

MAKMAKE BLD SAVESPACE FREEZE LIB CLEANLIB RESOURCE RELEASABLES: 
	@echo $@ does nothing for these