qtmobility/qtmobility.pro
changeset 14 6fbed849b4f4
parent 11 06b8e2af4411
child 15 1f895d8a5b2b
equal deleted inserted replaced
11:06b8e2af4411 14:6fbed849b4f4
    41 
    41 
    42     unix:!symbian:system(cat $${QT_MOBILITY_SOURCE_TREE}/features/mobility.prf.template >> $$PRF_OUTPUT)
    42     unix:!symbian:system(cat $${QT_MOBILITY_SOURCE_TREE}/features/mobility.prf.template >> $$PRF_OUTPUT)
    43     win32:system(type $${QT_MOBILITY_SOURCE_TREE}\features\mobility.prf.template >> $$PRF_OUTPUT)
    43     win32:system(type $${QT_MOBILITY_SOURCE_TREE}\features\mobility.prf.template >> $$PRF_OUTPUT)
    44     symbian:system(type $${QT_MOBILITY_SOURCE_TREE}\features\mobility.prf.template >> $$PRF_OUTPUT)
    44     symbian:system(type $${QT_MOBILITY_SOURCE_TREE}\features\mobility.prf.template >> $$PRF_OUTPUT)
    45 
    45 
       
    46     PRF_CONFIG=$${QT_MOBILITY_BUILD_TREE}/features/mobilityconfig.prf
       
    47     system(echo MOBILITY_CONFIG=$${mobility_modules} > $$PRF_CONFIG)
       
    48 
    46     #symbian does not generate make install rule. we have to copy prf manually 
    49     #symbian does not generate make install rule. we have to copy prf manually 
    47     symbian {
    50     symbian {
    48         FORMATDIR=$$[QT_INSTALL_DATA]\mkspecs\features
    51         FORMATDIR=$$[QT_INSTALL_DATA]\mkspecs\features
    49         FORMATDIR=$$replace(FORMATDIR,/,\\ )
    52         FORMATDIR=$$replace(FORMATDIR,/,\\ )
    50         system(copy "$${QT_MOBILITY_BUILD_TREE}\features\mobility.prf $$FORMATDIR")
    53         system(copy "$${QT_MOBILITY_BUILD_TREE}\features\mobility.prf $$FORMATDIR")
       
    54         system(copy "$${QT_MOBILITY_BUILD_TREE}\features\mobilityconfig.prf $$FORMATDIR")
    51     }
    55     }
       
    56 
       
    57     # install config file
       
    58     config.path = $$[QT_INSTALL_DATA]/mkspecs/features
       
    59     config.files = $$QT_MOBILITY_BUILD_TREE/features/mobilityconfig.prf
    52 
    60 
    53     # install feature file
    61     # install feature file
    54     feature.path = $$[QT_INSTALL_DATA]/mkspecs/features
    62     feature.path = $$[QT_INSTALL_DATA]/mkspecs/features
    55     feature.files = $$QT_MOBILITY_BUILD_TREE/features/mobility.prf
    63     feature.files = $$QT_MOBILITY_BUILD_TREE/features/mobility.prf
    56     INSTALLS += feature
    64     INSTALLS += feature config
    57 }
    65 }
    58 
    66 
    59 TEMPLATE = subdirs
    67 TEMPLATE = subdirs
    60 CONFIG+=ordered
    68 CONFIG+=ordered
    61 
    69 
    76 }
    84 }
    77 
    85 
    78 contains(build_unit_tests, yes):SUBDIRS+=tests
    86 contains(build_unit_tests, yes):SUBDIRS+=tests
    79 contains(build_examples, yes):SUBDIRS+=examples
    87 contains(build_examples, yes):SUBDIRS+=examples
    80 
    88 
       
    89 #updating and deployment of translations requires Qt 4.6.3/qtPrepareTool
       
    90 !symbian:defined(qtPrepareTool):SUBDIRS += translations
       
    91 
    81 # install Qt style headers
    92 # install Qt style headers
    82 qtmheaders.path = $${QT_MOBILITY_INCLUDE}
    93 qtmheaders.path = $${QT_MOBILITY_INCLUDE}
    83 
    94 
    84 !symbian {
    95 !symbian {
    85     qtmheaders.files = $${QT_MOBILITY_BUILD_TREE}/include/QtmBearer/* \
    96     qtmheaders.files = $${QT_MOBILITY_BUILD_TREE}/include/QtmBearer/* \
    86                          $${QT_MOBILITY_BUILD_TREE}/include/QtmContacts/* \
    97                          $${QT_MOBILITY_BUILD_TREE}/include/QtmContacts/* \
    87                          $${QT_MOBILITY_BUILD_TREE}/include/QtmLocation/* \
    98                          $${QT_MOBILITY_BUILD_TREE}/include/QtmLocation/* \
    88                          $${QT_MOBILITY_BUILD_TREE}/include/QtmMessaging/* \
    99                          $${QT_MOBILITY_BUILD_TREE}/include/QtmMessaging/* \
    89                          $${QT_MOBILITY_BUILD_TREE}/include/QtmMedia/* \
   100                          $${QT_MOBILITY_BUILD_TREE}/include/QtMultimedia/* \
    90                          $${QT_MOBILITY_BUILD_TREE}/include/QtmPubSub/* \
   101                          $${QT_MOBILITY_BUILD_TREE}/include/QtmPubSub/* \
    91                          $${QT_MOBILITY_BUILD_TREE}/include/QtmServiceFramework/* \
   102                          $${QT_MOBILITY_BUILD_TREE}/include/QtmServiceFramework/* \
    92                          $${QT_MOBILITY_BUILD_TREE}/include/QtmVersit/* \
   103                          $${QT_MOBILITY_BUILD_TREE}/include/QtmVersit/* \
    93                          $${QT_MOBILITY_BUILD_TREE}/include/QtmSystemInfo/* \
   104                          $${QT_MOBILITY_BUILD_TREE}/include/QtmSystemInfo/* \
    94                          $${QT_MOBILITY_BUILD_TREE}/include/QtmSensors/*
   105                          $${QT_MOBILITY_BUILD_TREE}/include/QtmSensors/*
    95     INSTALLS += qtmheaders
   106     INSTALLS += qtmheaders
    96 } else {
   107 } else {
    97 
       
    98 #    Can we assume the path exists?
       
    99 #    paths = $$MW_LAYER_PUBLIC_EXPORT_PATH("") \
       
   100 #            $$APP_LAYER_PUBLIC_EXPORT_PATH("")
       
   101 #    for(i, paths) {
       
   102 #        exportPath=$$EPOCROOT"."$$dirname($$i)
       
   103 #        nativePath=$$replace(exportPath, /,\)
       
   104 #        !exists($$nativePath):system($$QMAKE_MKDIR $$nativePath)
       
   105 #    }
       
   106 
       
   107     #absolute path does not work and so is shadow building for Symbian
   108     #absolute path does not work and so is shadow building for Symbian
   108     qtmAppHeaders = include/QtmContacts/* \
   109     qtmAppHeaders = include/QtmContacts/* \
   109                           include/QtmVersit/*
   110                           include/QtmVersit/*
   110 
   111 
   111     qtmMwHeaders = include/QtmBearer/* \
   112     qtmMwHeaders = include/QtmBearer/* \
   112                        include/QtmLocation/* \
   113                        include/QtmLocation/* \
   113                        include/QtmMessaging/* \
   114                        include/QtmMessaging/* \
   114                        include/QtmMedia/* \
   115                        include/QtMultimedia/* \
   115                        include/QtmPubSub/* \
   116                        include/QtmPubSub/* \
   116                        include/QtmServiceFramework/* \
   117                        include/QtmServiceFramework/* \
   117                        include/QtmSystemInfo/* \
   118                        include/QtmSystemInfo/* \
   118                        include/QtmSensors/*
   119                        include/QtmSensors/*
   119 
   120