qtmobility/plugins/sensors/sensors.pro
changeset 5 453da2cfceef
parent 4 90517678cc4f
child 8 71781823f776
equal deleted inserted replaced
4:90517678cc4f 5:453da2cfceef
     1 TEMPLATE = subdirs
     1 TEMPLATE = subdirs
     2 
     2 
     3 include(../../common.pri)
     3 include(../../common.pri)
     4 
     4 
     5 device_plugin=0
       
     6 maemo5 {
     5 maemo5 {
     7     device_plugin=1
       
     8     SUBDIRS += n900
     6     SUBDIRS += n900
     9 }
     7 }
    10 
     8 
    11 symbian {
     9 symbian {
    12     exists($${EPOCROOT}epoc32/release/armv5/lib/SensrvClient.lib) {
    10     equals(sensors_symbian_enabled,yes) {
    13         message("Sensor framework found")
    11         SUBDIRS += symbian
    14         device_plugin=1                                                    
    12     } else:equals(sensors_s60_31_enabled,yes) {
       
    13         SUBDIRS += s60_sensor_api
    15     } else {
    14     } else {
    16         exists($${EPOCROOT}epoc32/release/armv5/lib/RRSensorApi.lib) {
    15         message("No native sensor interface found")
    17             message("Sensor API found")
       
    18             device_plugin=1
       
    19             SUBDIRS += s60_sensor_api
       
    20         } else {
       
    21             message("No native sensor interface found")
       
    22             device_plugin=0
       
    23         }
       
    24     }
    16     }
    25 }
    17 }
    26 
    18 
    27 SUBDIRS += generic
    19 SUBDIRS += generic
    28 
    20 
    29 !equals(device_plugin,1) {
    21 # Allow forcing extra plugins to build even if they won't run
    30     # Create some dummy sensors to help out with testing
       
    31     SUBDIRS += dummy
       
    32 }
       
    33 
       
    34 BUILD_ALL_PLUGINS=$$(BUILD_ALL_PLUGINS)
    22 BUILD_ALL_PLUGINS=$$(BUILD_ALL_PLUGINS)
    35 equals(BUILD_ALL_PLUGINS,1) {
    23 equals(BUILD_ALL_PLUGINS,1) {
    36     SUBDIRS *= n900 dummy
    24     SUBDIRS *= n900 dummy
    37 }
    25 }
    38 
    26