smf/smfservermodule/util/qjson/src/src.pro
changeset 10 1d94eb8df9c2
parent 9 b85b0c039c14
equal deleted inserted replaced
9:b85b0c039c14 10:1d94eb8df9c2
     1 QJSON_BASE = ..
       
     2 QJSON_SRCBASE = .
       
     3 
       
     4 TEMPLATE = lib
       
     5 QT      -= gui
       
     6 TARGET   = qjson
       
     7 DESTDIR  = $$QJSON_BASE/lib
       
     8 CONFIG += create_prl
       
     9 
       
    10 VERSION = 0.7.1
       
    11 
       
    12 windows: {
       
    13   DEFINES += QJSON_MAKEDLL
       
    14 }
       
    15 
       
    16 QJSON_CPP = $$QJSON_SRCBASE
       
    17 INCLUDEPATH += $$QJSON_CPP
       
    18 
       
    19 PRIVATE_HEADERS += \
       
    20   json_parser.hh \
       
    21   json_scanner.h \
       
    22   location.hh \
       
    23   parser_p.h  \
       
    24   position.hh \
       
    25   qjson_debug.h  \
       
    26   stack.hh
       
    27 
       
    28 PUBLIC_HEADERS += \
       
    29   parser.h \
       
    30   parserrunnable.h \
       
    31   qobjecthelper.h \
       
    32   serializer.h \
       
    33   serializerrunnable.h \
       
    34   qjson_export.h
       
    35 
       
    36 HEADERS += $$PRIVATE_HEADERS $$PUBLIC_HEADERS
       
    37 
       
    38 SOURCES += \
       
    39   json_parser.cc \
       
    40   json_scanner.cpp \
       
    41   parser.cpp \
       
    42   parserrunnable.cpp \
       
    43   qobjecthelper.cpp \
       
    44   serializer.cpp \
       
    45   serializerrunnable.cpp
       
    46 
       
    47 symbian: {
       
    48   DEFINES += QJSON_MAKEDLL
       
    49   #export public header to \epocroot\epoc32\include to be able to use them
       
    50   headers.files = $$PUBLIC_HEADERS
       
    51   headers.path = $$PWD
       
    52   for(header, headers.files) {
       
    53     {BLD_INF_RULES.prj_exports += "$$header"}
       
    54   }
       
    55 
       
    56   TARGET.EPOCALLOWDLLDATA = 1
       
    57 
       
    58   # uid for the dll
       
    59   TARGET.UID3=0xEe29a5ee
       
    60   TARGET.CAPABILITY = ReadDeviceData WriteDeviceData
       
    61 
       
    62   # do not freeze api-> no libs produced. Comment when freezing!
       
    63   # run "abld freeze winscw" to create def files
       
    64   symbian:MMP_RULES += "EXPORTUNFROZEN"
       
    65 
       
    66 
       
    67   # add dll to the sis
       
    68   QjsonDeployment.sources = $${TARGET}.dll
       
    69   QjsonDeployment.path = /sys/bin
       
    70 
       
    71   DEPLOYMENT += QjsonDeployment
       
    72 }