~ubuntu-branches/ubuntu/oneiric/qwt/oneiric-proposed

« back to all changes in this revision

Viewing changes to qwt-5.1.1/designer/designer.pro

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2008-05-26 10:26:31 UTC
  • mfrom: (1.1.3 upstream) (2.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080526102631-bp95mfccnrb957nx
Tags: 5.1.1-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- mode: sh -*- ###########################
 
2
# Qwt Widget Library
 
3
# Copyright (C) 1997   Josef Wilgen
 
4
# Copyright (C) 2002   Uwe Rathmann
 
5
#
 
6
# This library is free software; you can redistribute it and/or
 
7
# modify it under the terms of the Qwt License, Version 1.0
 
8
##############################################
 
9
 
 
10
QWT_ROOT = ..
 
11
 
 
12
include ( $${QWT_ROOT}/qwtconfig.pri )
 
13
 
 
14
contains(CONFIG, QwtDesigner) {
 
15
 
 
16
    CONFIG    += warn_on
 
17
 
 
18
    SUFFIX_STR =
 
19
 
 
20
    VVERSION = $$[QT_VERSION]
 
21
    isEmpty(VVERSION) {
 
22
 
 
23
        # Qt 3
 
24
        debug {
 
25
            SUFFIX_STR = $${DEBUG_SUFFIX}
 
26
        }
 
27
        else {
 
28
            SUFFIX_STR = $${RELEASE_SUFFIX}
 
29
        }
 
30
    }
 
31
    else {
 
32
 
 
33
        CONFIG(debug, debug|release) {
 
34
            SUFFIX_STR = $${DEBUG_SUFFIX}
 
35
        }
 
36
        else {
 
37
            SUFFIX_STR = $${RELEASE_SUFFIX}
 
38
        }
 
39
    }
 
40
 
 
41
    TEMPLATE        = lib
 
42
    MOC_DIR         = moc
 
43
    OBJECTS_DIR     = obj$${SUFFIX_STR}
 
44
    DESTDIR         = plugins/designer
 
45
    INCLUDEPATH    += $${QWT_ROOT}/src 
 
46
    DEPENDPATH     += $${QWT_ROOT}/src 
 
47
 
 
48
    LIBNAME         = qwt$${SUFFIX_STR}
 
49
    contains(CONFIG, QwtDll) {
 
50
        win32 {
 
51
            DEFINES += QT_DLL QWT_DLL
 
52
            LIBNAME = $${LIBNAME}$${VER_MAJ}
 
53
        }
 
54
    }
 
55
 
 
56
    !contains(CONFIG, QwtPlot) {
 
57
        DEFINES += NO_QWT_PLOT
 
58
    }
 
59
 
 
60
    !contains(CONFIG, QwtWidgets) {
 
61
        DEFINES += NO_QWT_WIDGETS
 
62
    }
 
63
 
 
64
    unix:LIBS      += -L$${QWT_ROOT}/lib -l$${LIBNAME}
 
65
    win32-msvc:LIBS  += $${QWT_ROOT}/lib/$${LIBNAME}.lib
 
66
    win32-msvc.net:LIBS  += $${QWT_ROOT}/lib/$${LIBNAME}.lib
 
67
    win32-msvc2005:LIBS += $${QWT_ROOT}/lib/$${LIBNAME}.lib
 
68
    win32-g++:LIBS   += -L$${QWT_ROOT}/lib -l$${LIBNAME}
 
69
 
 
70
    # isEmpty(QT_VERSION) does not work with Qt-4.1.0/MinGW
 
71
 
 
72
    VVERSION = $$[QT_VERSION]
 
73
    isEmpty(VVERSION) {
 
74
        # Qt 3 
 
75
        TARGET    = qwtplugin$${SUFFIX_STR}
 
76
        CONFIG   += qt plugin
 
77
 
 
78
        UI_DIR    = ui
 
79
 
 
80
        HEADERS  += qwtplugin.h
 
81
        SOURCES  += qwtplugin.cpp
 
82
 
 
83
        target.path = $(QTDIR)/plugins/designer
 
84
        INSTALLS += target
 
85
 
 
86
        IMAGES  += \
 
87
            pixmaps/qwtplot.png \
 
88
            pixmaps/qwtanalogclock.png \
 
89
            pixmaps/qwtcounter.png \
 
90
            pixmaps/qwtcompass.png \
 
91
            pixmaps/qwtdial.png \
 
92
            pixmaps/qwtknob.png \
 
93
            pixmaps/qwtscale.png \
 
94
            pixmaps/qwtslider.png \
 
95
            pixmaps/qwtthermo.png \
 
96
            pixmaps/qwtwheel.png \
 
97
            pixmaps/qwtwidget.png 
 
98
 
 
99
    } else {
 
100
 
 
101
        # Qt 4
 
102
 
 
103
        TARGET    = qwt_designer_plugin$${SUFFIX_STR}
 
104
        CONFIG    += qt designer plugin 
 
105
 
 
106
        RCC_DIR   = resources
 
107
 
 
108
        HEADERS += \
 
109
            qwt_designer_plugin.h
 
110
 
 
111
        SOURCES += \
 
112
            qwt_designer_plugin.cpp
 
113
 
 
114
        contains(CONFIG, QwtPlot) {
 
115
 
 
116
            HEADERS += \
 
117
                qwt_designer_plotdialog.h
 
118
 
 
119
            SOURCES += \
 
120
                qwt_designer_plotdialog.cpp
 
121
        }
 
122
 
 
123
        RESOURCES += \
 
124
            qwt_designer_plugin.qrc
 
125
 
 
126
        target.path = $$[QT_INSTALL_PLUGINS]/designer
 
127
        INSTALLS += target
 
128
    }
 
129
}
 
130
else {
 
131
    TEMPLATE        = subdirs # do nothing
 
132
}