/[qspeakers]/branches/qtcharts/qspeakers.pro
ViewVC logotype

Annotation of /branches/qtcharts/qspeakers.pro

Parent Directory Parent Directory | Revision Log Revision Log


Revision 166 - (hide annotations)
Sun Oct 30 17:30:59 2016 UTC (4 years, 8 months ago) by (unknown author)
Original Path: qspeakers.pro
File size: 3166 byte(s)
fix manpage out build
1 ben 1 #-------------------------------------------------
2     #
3     # Project created by QtCreator 2014-09-23T08:12:05
4     #
5     #-------------------------------------------------
6    
7 115 QT += core gui xml
8 ben 1
9 115 greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport
10 ben 1
11 162 VERSION = 1.0.1
12 ben 1 TARGET = qspeakers
13     TEMPLATE = app
14    
15 150 unix {
16 116 INCLUDEPATH += /usr/include/qwt
17     equals(QT_MAJOR_VERSION, 4): LIBS = -L/usr/lib -lqwt
18     equals(QT_MAJOR_VERSION, 5): LIBS = -L/usr/lib -lqwt-qt5
19     isEmpty(PREFIX): PREFIX = /usr/local
20     isEmpty(BINDIR): BINDIR = $$PREFIX/bin
21     isEmpty(DATADIR): DATADIR = $$PREFIX/share
22 ben 55 }
23 ben 1
24 150 win32 {
25 116 INCLUDEPATH += c:/qwt-6.1.3/include
26     LIBS += c:/qwt-6.1.3/lib/qwt.dll
27     isEmpty(PREFIX): PREFIX = "C:/Program Files/QSpeakers"
28     isEmpty(BINDIR): BINDIR = $$PREFIX
29     isEmpty(DATADIR): DATADIR = $$PREFIX
30     }
31    
32 ben 55 config.input = config.h.in
33     config.output = config.h
34     QMAKE_SUBSTITUTES += config
35    
36 ben 1 SOURCES += main.cpp\
37 115 mainwindow.cpp \
38     speakerdialog.cpp \
39 ben 1 speakerdb.cpp \
40     speaker.cpp \
41     importexport.cpp \
42     box.cpp \
43     sealedbox.cpp \
44     portedbox.cpp \
45     bandpassbox.cpp \
46 ben 24 plot.cpp \
47     listdialog.cpp \
48 ben 32 searchdialog.cpp \
49     system.cpp
50 ben 1
51     HEADERS += mainwindow.h \
52 115 speakerdialog.h \
53 ben 1 speakerdb.h \
54     speaker.h \
55     importexport.h \
56     box.h \
57     sealedbox.h \
58     portedbox.h \
59 ben 5 bandpassbox.h \
60 ben 24 plot.h \
61     listdialog.h \
62 ben 32 searchdialog.h \
63     system.h
64 ben 1
65     FORMS += mainwindow.ui \
66 115 speakerdialog.ui \
67 ben 24 listdialog.ui \
68     searchdialog.ui
69 ben 1
70 116 isEmpty(QMAKE_LRELEASE):QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
71 ben 34
72     TRANSLATIONS += \
73     qspeakers_en.ts \
74     qspeakers_fr.ts
75    
76 ben 75 LOCALE_DIR = locale
77    
78     updateqm.input = TRANSLATIONS
79     updateqm.output = $$LOCALE_DIR/${QMAKE_FILE_BASE}.qm
80     updateqm.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} -qm $$LOCALE_DIR/${QMAKE_FILE_BASE}.qm
81     updateqm.CONFIG += no_link target_predeps
82     QMAKE_EXTRA_COMPILERS += updateqm
83    
84 150
85     unix {
86 152 MANPAGE = "qspeakers.1"
87 151 manpage.input = MANPAGE
88 166 manpage.output = $${MANPAGE}.gz
89 150 manpage.commands = gzip --to-stdout ${QMAKE_FILE_IN} > ${QMAKE_FILE_OUT}
90     manpage.CONFIG += no_link target_predeps
91     QMAKE_EXTRA_COMPILERS += manpage
92 151 }
93    
94     unix {
95 ben 34 target.path = $$BINDIR
96 151 manual.path = $$DATADIR/man/man1
97     manual.files = $${MANPAGE}.gz
98 152 manual.CONFIG = no_check_exist
99 ben 53 database.path = $$DATADIR/qspeakers
100 152 database.files = "qspeakers_db.xml"
101 ben 75 translations.path = $$DATADIR/$${TARGET}
102 ben 50 translations.files = $${LOCALE_DIR}
103 ben 69 mime.path = $$DATADIR/mime/packages
104 ben 70 mime.files = application-x-$${TARGET}.xml
105 ben 34 desktop.path = $$DATADIR/applications
106 ben 35 desktop.files = $${TARGET}.desktop
107 ben 34 icon.path = $$DATADIR/pixmaps
108 ben 91 icon.files = qspeakers.png
109 ben 34 INSTALLS += target \
110 151 manual \
111 ben 53 database \
112 ben 34 translations \
113 ben 69 mime \
114 ben 34 desktop \
115     icon
116     }
117 116
118 150 win32 {
119 116 target.path = $$BINDIR
120 127 database.path = $$DATADIR
121 116 database.files = qspeakers_db.xml
122     translations.path = $$DATADIR/$${TARGET}
123     translations.files = $${LOCALE_DIR}
124     RC_ICONS += qspeakers.ico
125     INSTALLS += target \
126     database \
127     translations \
128     }

  ViewVC Help
Powered by ViewVC 1.1.26