summaryrefslogtreecommitdiffstats
path: root/examples/sensors/grue/use_grue_static_plugin.pri
blob: 6ccee1cd47f880a3dd4f212bac5989960c525668 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Need to manually link to the plugin when using a static Qt build.
qtConfig(static) {
    SOURCES += $$grue_plugin_base_dir/grue_plugin_import_custom.cpp
    LIBS += -L$$grue_plugin_base_dir/sensors
    # For iOS, xcode takes care of the debug suffix
    macx-xcode {
        LIBS += -lplugins_sensors_qtsensors_grue$($${QMAKE_XCODE_LIBRARY_SUFFIX_SETTING})
    # For desktop platforms we need to do it per-platform.
    } else {
        lib_to_link = plugins_sensors_qtsensors_grue
        if(!debug_and_release|build_pass):CONFIG(debug, debug|release) {
            macos:lib_to_link = $${lib_to_link}_debug
            win32:lib_to_link = $${lib_to_link}d
        }
        LIBS += -l$$lib_to_link
    }
}