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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2009-04-12 23:25:58 UTC
  • mfrom: (1.1.4 upstream) (2.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090412232558-3bl06x785yr8xm8u
Tags: 5.1.2-1
* New upstream release.
* Bump compat/debhelper to 7.
* Bump Standards-Version to 3.8.1. No changes needed.
* Invert Maintainers and Uploaders field.
* Fix lintian warnings:
  - dh_clean _k deprecated.
  - missing dependency on libc.

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-msvc2002:LIBS += $${QWT_ROOT}/lib/$${LIBNAME}.lib
 
68
    win32-msvc2003:LIBS += $${QWT_ROOT}/lib/$${LIBNAME}.lib
 
69
    win32-msvc2005:LIBS += $${QWT_ROOT}/lib/$${LIBNAME}.lib
 
70
    win32-msvc2008:LIBS += $${QWT_ROOT}/lib/$${LIBNAME}.lib
 
71
    win32-g++:LIBS   += -L$${QWT_ROOT}/lib -l$${LIBNAME}
 
72
 
 
73
    # isEmpty(QT_VERSION) does not work with Qt-4.1.0/MinGW
 
74
 
 
75
    VVERSION = $$[QT_VERSION]
 
76
    isEmpty(VVERSION) {
 
77
        # Qt 3 
 
78
        TARGET    = qwtplugin$${SUFFIX_STR}
 
79
        CONFIG   += qt plugin
 
80
 
 
81
        UI_DIR    = ui
 
82
 
 
83
        HEADERS  += qwtplugin.h
 
84
        SOURCES  += qwtplugin.cpp
 
85
 
 
86
        target.path = $(QTDIR)/plugins/designer
 
87
        INSTALLS += target
 
88
 
 
89
        IMAGES  += \
 
90
            pixmaps/qwtplot.png \
 
91
            pixmaps/qwtanalogclock.png \
 
92
            pixmaps/qwtcounter.png \
 
93
            pixmaps/qwtcompass.png \
 
94
            pixmaps/qwtdial.png \
 
95
            pixmaps/qwtknob.png \
 
96
            pixmaps/qwtscale.png \
 
97
            pixmaps/qwtslider.png \
 
98
            pixmaps/qwtthermo.png \
 
99
            pixmaps/qwtwheel.png \
 
100
            pixmaps/qwtwidget.png 
 
101
 
 
102
    } else {
 
103
 
 
104
        # Qt 4
 
105
 
 
106
        TARGET    = qwt_designer_plugin$${SUFFIX_STR}
 
107
        CONFIG    += qt designer plugin 
 
108
 
 
109
        RCC_DIR   = resources
 
110
 
 
111
        HEADERS += \
 
112
            qwt_designer_plugin.h
 
113
 
 
114
        SOURCES += \
 
115
            qwt_designer_plugin.cpp
 
116
 
 
117
        contains(CONFIG, QwtPlot) {
 
118
 
 
119
            HEADERS += \
 
120
                qwt_designer_plotdialog.h
 
121
 
 
122
            SOURCES += \
 
123
                qwt_designer_plotdialog.cpp
 
124
        }
 
125
 
 
126
        RESOURCES += \
 
127
            qwt_designer_plugin.qrc
 
128
 
 
129
        target.path = $$[QT_INSTALL_PLUGINS]/designer
 
130
        INSTALLS += target
 
131
    }
 
132
}
 
133
else {
 
134
    TEMPLATE        = subdirs # do nothing
 
135
}