quazip.pro 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. TEMPLATE = lib
  2. CONFIG += qt warn_on
  3. QT -= gui
  4. DEPENDPATH += .
  5. INCLUDEPATH += .
  6. DEFINES += QUAZIP_BUILD
  7. CONFIG(staticlib): DEFINES += QUAZIP_STATIC
  8. # Input
  9. HEADERS += \
  10. crypt.h\
  11. ioapi.h\
  12. JlCompress.h\
  13. quaadler32.h\
  14. quachecksum32.h\
  15. quacrc32.h\
  16. quazip.h\
  17. quazipfile.h\
  18. quazipfileinfo.h\
  19. quazipnewinfo.h\
  20. quazip_global.h\
  21. unzip.h\
  22. zip.h\
  23. SOURCES += *.c *.cpp
  24. unix:!symbian {
  25. headers.path=$$PREFIX/include/quazip
  26. headers.files=$$HEADERS
  27. target.path=$$PREFIX/lib
  28. INSTALLS += headers target
  29. OBJECTS_DIR=.obj
  30. MOC_DIR=.moc
  31. LIBS += -lz
  32. }
  33. win32 {
  34. headers.path=$$PREFIX/include/quazip
  35. headers.files=$$HEADERS
  36. target.path=$$PREFIX/lib
  37. INSTALLS += headers target
  38. *-g++*: LIBS += -lz.dll
  39. *-msvc*: LIBS += -lzlibwapi
  40. *-msvc*: QMAKE_LFLAGS += /IMPLIB:$$DESTDIR\\quazip.lib
  41. }
  42. symbian {
  43. # Note, on Symbian you may run into troubles with LGPL.
  44. # The point is, if your application uses some version of QuaZip,
  45. # and a newer binary compatible version of QuaZip is released, then
  46. # the users of your application must be able to relink it with the
  47. # new QuaZip version. For example, to take advantage of some QuaZip
  48. # bug fixes.
  49. # This is probably best achieved by building QuaZip as a static
  50. # library and providing linkable object files of your application,
  51. # so users can relink it.
  52. CONFIG += staticlib
  53. CONFIG += debug_and_release
  54. LIBS += -lezip
  55. #Export headers to SDK Epoc32/include directory
  56. exportheaders.sources = $$HEADERS
  57. exportheaders.path = quazip
  58. for(header, exportheaders.sources) {
  59. BLD_INF_RULES.prj_exports += "$$header $$exportheaders.path/$$basename(header)"
  60. }
  61. }