diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2015-01-26 17:48:07 +0100 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2015-01-26 21:46:41 +0100 |
commit | eaf3ca9683d2a6556e790b95b9598da5786c7f71 (patch) | |
tree | bb985f5b55d98abaf24320ab878c6ca5cd9d8816 /examples/exampleresources | |
parent | 00e42f75f1a29f87cf3b3db0a5df416100b76965 (diff) |
Fix example building on MinGW
In general make the code slightly more robust.
Change-Id: I54b3a6c91d0cf086e0bd804f95a2286d2ec00452
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'examples/exampleresources')
-rw-r--r-- | examples/exampleresources/exampleresources.pri | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/examples/exampleresources/exampleresources.pri b/examples/exampleresources/exampleresources.pri index b8448408b..0bd8a17f5 100644 --- a/examples/exampleresources/exampleresources.pri +++ b/examples/exampleresources/exampleresources.pri @@ -1,13 +1,17 @@ INCLUDEPATH += $$PWD +EXAMPLERESOURCESLIB=exampleresources + win32 { build_pass { CONFIG(debug, debug|release) { - LIBS += $$shadowed($$PWD)/debug/exampleresources.$${QMAKE_EXTENSION_STATICLIB} + LIBS += $$shadowed($$PWD)/debug/$${QMAKE_PREFIX_STATICLIB}$${EXAMPLERESOURCESLIB}.$${QMAKE_EXTENSION_STATICLIB} } else { - LIBS += $$shadowed($$PWD)/release/exampleresources.$${QMAKE_EXTENSION_STATICLIB} + LIBS += $$shadowed($$PWD)/release/$${QMAKE_PREFIX_STATICLIB}$${EXAMPLERESOURCESLIB}.$${QMAKE_EXTENSION_STATICLIB} } } } else { - LIBS += $$shadowed($$PWD)/libexampleresources.$${QMAKE_EXTENSION_STATICLIB} + LIBS += $$shadowed($$PWD)/$${QMAKE_PREFIX_STATICLIB}$${EXAMPLERESOURCESLIB}.$${QMAKE_EXTENSION_STATICLIB} } + +unset(EXAMPLERESOURCESLIB) |