QtDropbox icon indicating copy to clipboard operation
QtDropbox copied to clipboard

Making QtDropbox compatible to qt-pods

Open jacob3141 opened this issue 10 years ago • 2 comments

qt-pods is a package manager for Qt libraries: https://github.com/cybercatalyst/qt-pods

I offer you my helpif you need it, so you can make QtDropbox compatible.

jacob3141 avatar Jan 31 '15 15:01 jacob3141

Help would be appreciated. What has to be done to make the library compatible?

lycis avatar Feb 19 '15 19:02 lycis

You can get a full documentation on the README of the project linked above, but basically this is what you need:

  • Your project should be named QtDropbox (ok!)
  • There should be the following files (check the exact naming, case sensitive): qtdropbox.pro, qtdropbox.pri, LICENSE and README.md
  • The qtdropbox.pro must build a static library (TEMPLATE = lib, CONFIG += static) which is called libqtdropbox.a (TARGET = qtdropbox). This will be linked to the final application. See an example here: https://github.com/cybercatalyst/qtlzma/blob/master/qtlzma.pro
  • The qtdropbox.pri contains instructions that will be included in the pro of the final application. If you have no other dependencies and just want to link qtdropbox, this file might look like this: https://github.com/cybercatalyst/qtlzma/blob/master/qtlzma.pri
  • LICENSE and README.md are free text

It is really, really straightforward and I am encouraging people to do it themselves just to see and understand how it works. If you have any questions, don't hesitate to ask!

Ideally, you package your lib as a pod, then you can make an example repository for it, so you keep the lib code separate from the documentation and examples. For example, I have written qtjack as a pod: https://github.com/cybercatalyst/qtjack

And there are the examples on how to use it: https://github.com/cybercatalyst/qtjack-examples

jacob3141 avatar Feb 20 '15 07:02 jacob3141