source: Vago/quazip-0.7.2/quazip/quazip.pro@ 1049

Last change on this file since 1049 was 1049, checked in by s10k, 8 years ago
File size: 2.4 KB
Line 
1TEMPLATE = lib
2CONFIG += qt warn_on
3QT -= gui
4
5# The ABI version.
6
7!win32:VERSION = 1.0.0
8
9# 1.0.0 is the first stable ABI.
10# The next binary incompatible change will be 2.0.0 and so on.
11# The existing QuaZIP policy on changing ABI requires to bump the
12# major version of QuaZIP itself as well. Note that there may be
13# other reasons for chaging the major version of QuaZIP, so
14# in case where there is a QuaZIP major version bump but no ABI change,
15# the VERSION variable will stay the same.
16
17# For example:
18
19# QuaZIP 1.0 is released after some 0.x, keeping binary compatibility.
20# VERSION stays 1.0.0.
21# Then some binary incompatible change is introduced. QuaZIP goes up to
22# 2.0, VERSION to 2.0.0.
23# And so on.
24
25
26# This one handles dllimport/dllexport directives.
27DEFINES += QUAZIP_BUILD
28
29# You'll need to define this one manually if using a build system other
30# than qmake or using QuaZIP sources directly in your project.
31CONFIG(staticlib): DEFINES += QUAZIP_STATIC
32
33# Input
34include(quazip.pri)
35
36
37CONFIG(debug, debug|release) {
38 mac: TARGET = $$join(TARGET,,,_debug)
39 win32: TARGET = $$join(TARGET,,,d)
40}
41
42unix:!symbian {
43 headers.path=$$PREFIX/include/quazip
44 headers.files=$$HEADERS
45 target.path=$$PREFIX/lib/$${LIB_ARCH}
46 INSTALLS += headers target
47
48 OBJECTS_DIR=.obj
49 MOC_DIR=.moc
50
51}
52
53win32 {
54 headers.path=$$PREFIX/include/quazip
55 headers.files=$$HEADERS
56 target.path=$$PREFIX/lib
57 INSTALLS += headers target
58 # workaround for qdatetime.h macro bug
59 DEFINES += NOMINMAX
60}
61
62
63symbian {
64
65 # Note, on Symbian you may run into troubles with LGPL.
66 # The point is, if your application uses some version of QuaZip,
67 # and a newer binary compatible version of QuaZip is released, then
68 # the users of your application must be able to relink it with the
69 # new QuaZip version. For example, to take advantage of some QuaZip
70 # bug fixes.
71
72 # This is probably best achieved by building QuaZip as a static
73 # library and providing linkable object files of your application,
74 # so users can relink it.
75
76 CONFIG += staticlib
77 CONFIG += debug_and_release
78
79 LIBS += -lezip
80
81 #Export headers to SDK Epoc32/include directory
82 exportheaders.sources = $$HEADERS
83 exportheaders.path = quazip
84 for(header, exportheaders.sources) {
85 BLD_INF_RULES.prj_exports += "$$header $$exportheaders.path/$$basename(header)"
86 }
87}
Note: See TracBrowser for help on using the repository browser.