larpon / QtFirebase

An effort to bring Google's Firebase C++ API to Qt + QML
MIT License
284 stars 83 forks source link

Small change to enable clang compilation and linking #98

Closed scivernet closed 5 years ago

scivernet commented 5 years ago

As Android shifts towards clang, using clang will become the way to go. Due to some hardcoded reference to the gnustl version of the libraries error occurred when using clang to compile projects. To make this more flexible, a QTFIREBASE_STL_VARIANT variable was introduced that can be set in the main app .pro file, a bit like the QTFIREBASE_DSK_PATH variable. Setting the variable to "c++" the project will also compile with clang without linking errors (otherwise the wrong libraries are used)