!qbs_do_not_link_bundled_qtscript {
    include(../../library_dirname.pri)
    isEmpty(QBSLIBDIR) {
        QBSLIBDIR = $$shadowed($$PWD/../../../$${QBS_LIBRARY_DIRNAME})
    }
    LIBS += -L$$QBSLIBDIR -lqbsscriptengine$$qtPlatformTargetSuffix()
}

INCLUDEPATH += \
    $$PWD/include \
    $$shadowed($$PWD/include)

!qbs_do_not_link_bundled_qtscript {
    include(../../library_dirname.pri)
    isEmpty(QBSLIBDIR) {
        QBSLIBDIR = $$shadowed($$PWD/../../../$${QBS_LIBRARY_DIRNAME})
    }

    LIBS += -L$$QBSLIBDIR
    macos {
        LIBS += -lqbsscriptengine
    }
    else {
        LIBS += -lqbsscriptengine$$qtPlatformTargetSuffix()
    }

}

INCLUDEPATH += \
    $$PWD/include \
    $$shadowed($$PWD/include)

Fix library not found for -lqbsscriptengine_debug on macOS
Fix library not found for -lqbsscriptengine_debug on macOS

On macOS the qbsscriptengine library doesn’t contain the suffix _debug
when compiling in debug mode. Fix linker error by removing the suffix.

Fixes: QTCREATORBUG-23456
Change-Id: Idca2b36e87a652dac52c45e75b6edde6b3afd322
Reviewed-by: Ivan Komissarov <96f14e4d07227e958f51f7d2898113639e9498d9@gmail.com>
Reviewed-by: Christian Kandeler <3aa99dcdd3f0cac61fb81c2a11771c0cc2497607@qt.io>
