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