Menu

#4 please create .pri file for future releases

closed
nobody
None
5
2011-05-23
2011-03-02
kavulix
No

I prefer to include the quazip source files rather than building quazip separately. Unfortunately it's not very convenient at the moment to have to manually edit my .pro file to include every quazip source file. If you could create and maintain a .pri file in the quazip folder then quazip users would only have to add a single line to their .pro files. I've attached an example of a .pri file that could be used for quazip. With that file saved in the quazip-0.3/quazip folder you could then add the following line to a .pro file to include all of the necessary files. Thanks for the great software.

include(quazip-0.3/quazip/quazip.pri)

Discussion

  • kavulix

    kavulix - 2011-03-02

    Example of quazip.pri file

     
  • Sergey A. Tachenov

    You could just copy the whole "quazip" directory to your project, then just:

    HEADERS += quazip/*.h
    SOURCES += quazip/*.c quazip/*.cpp

    The next release will probably have no sources in plain C, so the second line will probably be even simpler. There seem to be little meaning in having a .pri file just for this. However, there is still a point in creating a .pri file in case some additional configuration is needed, like some #defines.

     
  • Sergey A. Tachenov

    • status: open --> closed
     
  • Sergey A. Tachenov

    Okay, I have added the file to the project, just in case. Didn't test it much, though. I usually compile QuaZip as a separate library.