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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2007-10-05 15:20:41 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20071005152041-qmybqh4fj9jejyo2
Tags: 5.0.2-2
* Handle nostrip build option. (Closes: #437877)
* Build libqwt5-doc package in binary-indep target. (Closes: #443110)

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
include ( ../qwtconfig.pri )
 
11
 
 
12
contains(CONFIG, QwtDesigner) {
 
13
 
 
14
    TEMPLATE        = lib
 
15
    MOC_DIR         = moc
 
16
    OBJECTS_DIR     = obj 
 
17
    DESTDIR         = plugins/designer
 
18
    INCLUDEPATH    += ../src 
 
19
    DEPENDPATH     += ../src 
 
20
 
 
21
    contains(CONFIG, QwtDll) {
 
22
        win32::DEFINES += QWT_DLL
 
23
    }
 
24
 
 
25
    !contains(CONFIG, QwtPlot) {
 
26
        DEFINES += NO_QWT_PLOT
 
27
    }
 
28
 
 
29
    !contains(CONFIG, QwtWidgets) {
 
30
        DEFINES += NO_QWT_WIDGETS
 
31
    }
 
32
 
 
33
    unix:LIBS      += -L../lib -lqwt
 
34
    win32-msvc:LIBS  += ../lib/qwt5.lib
 
35
    win32-msvc.net:LIBS  += ../lib/qwt5.lib
 
36
    win32-msvc2005:LIBS += ../lib/qwt5.lib
 
37
    win32-g++:LIBS   += -L../lib -lqwt5
 
38
 
 
39
    # isEmpty(QT_VERSION) does not work with Qt-4.1.0/MinGW
 
40
 
 
41
    VVERSION = $$[QT_VERSION]
 
42
    isEmpty(VVERSION) {
 
43
        # Qt 3 
 
44
        TARGET    = qwtplugin
 
45
        CONFIG   += qt plugin
 
46
 
 
47
        UI_DIR    = ui
 
48
 
 
49
        HEADERS  += qwtplugin.h
 
50
        SOURCES  += qwtplugin.cpp
 
51
 
 
52
        target.path = $(QTDIR)/plugins/designer
 
53
        INSTALLS += target
 
54
 
 
55
        IMAGES  += \
 
56
            pixmaps/qwtplot.png \
 
57
            pixmaps/qwtanalogclock.png \
 
58
            pixmaps/qwtcounter.png \
 
59
            pixmaps/qwtcompass.png \
 
60
            pixmaps/qwtdial.png \
 
61
            pixmaps/qwtknob.png \
 
62
            pixmaps/qwtscale.png \
 
63
            pixmaps/qwtslider.png \
 
64
            pixmaps/qwtthermo.png \
 
65
            pixmaps/qwtwheel.png \
 
66
            pixmaps/qwtwidget.png 
 
67
 
 
68
    } else {
 
69
 
 
70
        # Qt 4
 
71
 
 
72
        TARGET    = qwt_designer_plugin
 
73
        CONFIG    += qt designer plugin 
 
74
 
 
75
        RCC_DIR   = resources
 
76
 
 
77
        HEADERS += \
 
78
            qwt_designer_plugin.h
 
79
 
 
80
        SOURCES += \
 
81
            qwt_designer_plugin.cpp
 
82
 
 
83
        contains(CONFIG, QwtPlot) {
 
84
 
 
85
            HEADERS += \
 
86
                qwt_designer_plotdialog.h
 
87
 
 
88
            SOURCES += \
 
89
                qwt_designer_plotdialog.cpp
 
90
        }
 
91
 
 
92
        RESOURCES += \
 
93
            qwt_designer_plugin.qrc
 
94
 
 
95
        target.path = $$[QT_INSTALL_PLUGINS]/designer
 
96
        INSTALLS += target
 
97
    }
 
98
 
 
99
    CONFIG    += warn_on
 
100
    CONFIG    += release
 
101
}
 
102
else {
 
103
    TEMPLATE        = subdirs # do nothing
 
104
}