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