1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# /****************************************************************************
# **
# ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
# **
# ****************************************************************************/
# FLM to be used for registering/unregistering QtServiceFW services build time
SFWTOOL := $(EPOCROOT)/epoc32/tools/servicedbgen$(DOTEXE)
#choose target database to deal with
ifeq ($(PLATFORM), WINSCW)
QTSERVICE_TARGET := -twinscw
DES_DIR := $(EPOCROOT)/epoc32/winscw/c/private/2002AC7F/des
DBFILENAME := $(EPOCROOT)/epoc32/winscw/c/private/2002AC7F/QtServiceFramework_4.8_system.db
else
ifeq ($(PLATFORM), ARMV5)
QTSERVICE_TARGET := -tarmv5
DES_DIR := $(EPOCROOT)/epoc32/data/z/private/2002AC7F/des
DBFILENAME := $(EPOCROOT)/epoc32/data/z/private/2002AC7F/QtServiceFramework_4.8_system.db
else
QTSERVICE_TARGET := -tall
DES_DIR := $(EPOCROOT)/epoc32/data/z/private/2002AC7F/des
DBFILENAME := $(EPOCROOT)/epoc32/data/z/private/2002AC7F/QtServiceFramework_4.8_system.db
endif
endif
define handle_service
# Files named as init_*.xml need the -i flag, others do not
FINAL::
$(call startrule,add_services,FORCESUCCESS) \
$(foreach file,$(filter init_%,$(notdir $(wildcard $(DES_DIR)/*.xml))), \
$(SFWTOOL) $(QTSERVICE_TARGET) -i add $(DES_DIR)/$(file); ) \
$(foreach file,$(filter-out init_%,$(notdir $(wildcard $(DES_DIR)/*.xml))), \
$(SFWTOOL) $(QTSERVICE_TARGET) add $(DES_DIR)/$(file); ) \
$(call endrule,add_services)
endef
SINGLETON:=done_$(call sanitise,$(DES_DIR))
ifeq ($($(SINGLETON)),)
$(SINGLETON):=1
$(eval $(handle_service))
$(eval $(call raptor_release,$(DBFILENAME),WHATMAKEFILE))
$(eval $(call raptor_clean,$(DBFILENAME),WHATMAKEFILE))
endif
|