summaryrefslogtreecommitdiffstats
path: root/features/qtservice.prf
blob: 00999f1144bb6d91fa770d8e6b6a17710eca3641 (plain)
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
###############################################################################
# Service FW plug-in
###############################################################################

symbian {
    isEmpty(QTSERVICE.DESCRIPTOR) {
       error("Missing service descriptor file")
    }
    else {
       QTSERVICEDBGEN = servicedbgen.exe
       QTC_COMMAND = add
       contains(QTSERVICE.INITIALIZE, yes) {
          QTSERVICE_INITIALIZE = -i

          #raptor uses filename for determining the usage of -i
          symbian-sbsv2:QTSERVICE_INITIALIZE_PREFIX=init_
       }

       #deploy descriptor file to service framework server's private folder
       #so batch mode tool execution can include the service
       qtservice_descriptors = $$QTSERVICE.DESCRIPTOR
       for(descriptor, qtservice_descriptors) {
           BASENAME = $${QTSERVICE_INITIALIZE_PREFIX}$$basename(descriptor)
           BLD_INF_RULES.prj_exports += "$$descriptor			/epoc32/winscw/c/private/2002AC7F/des/$$BASENAME"
           BLD_INF_RULES.prj_exports += "$$descriptor			/epoc32/data/z/private/2002AC7F/des/$$BASENAME"
       }
       
       symbian-abld{
          DUMMY = qtservice.out
          qtc.output = $$DUMMY
          QTC_INPUT = .
          qtc.input = QTC_INPUT
          qtc.CONFIG = no_link explicit_dependencies
          qtc.variable_out = PRE_TARGETDEPS
          qtc.commands = $$QTSERVICEDBGEN $$QTSERVICE_INITIALIZE $$QTC_COMMAND $$QTSERVICE.DESCRIPTOR
          QMAKE_EXTRA_COMPILERS += qtc
       }
       
    }
}