diff options
Diffstat (limited to 'examples/sensors/grue/use_grue_static_plugin.pri')
-rw-r--r-- | examples/sensors/grue/use_grue_static_plugin.pri | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/sensors/grue/use_grue_static_plugin.pri b/examples/sensors/grue/use_grue_static_plugin.pri new file mode 100644 index 0000000..6ccee1c --- /dev/null +++ b/examples/sensors/grue/use_grue_static_plugin.pri @@ -0,0 +1,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 + } +} |