/[qspeakers]/qspeakers.pro
ViewVC logotype

Annotation of /qspeakers.pro

Parent Directory Parent Directory | Revision Log Revision Log


Revision 116 - (hide annotations)
Sun Jun 19 17:59:00 2016 UTC (5 years, 3 months ago) by (unknown author)
File size: 2789 byte(s)
added win32 support and installer binary
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 ben 34 VERSION = 1.0.0
12 ben 1 TARGET = qspeakers
13     TEMPLATE = app
14    
15 ben 55 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 116 win32: {
25     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 ben 34 unix: {
85     target.path = $$BINDIR
86 ben 53 database.path = $$DATADIR/qspeakers
87     database.files = qspeakers_db.xml
88 ben 75 translations.path = $$DATADIR/$${TARGET}
89 ben 50 translations.files = $${LOCALE_DIR}
90 ben 69 mime.path = $$DATADIR/mime/packages
91 ben 70 mime.files = application-x-$${TARGET}.xml
92 ben 34 desktop.path = $$DATADIR/applications
93 ben 35 desktop.files = $${TARGET}.desktop
94 ben 34 icon.path = $$DATADIR/pixmaps
95 ben 91 icon.files = qspeakers.png
96 ben 34 INSTALLS += target \
97 ben 53 database \
98 ben 34 translations \
99 ben 69 mime \
100 ben 34 desktop \
101     icon
102     }
103 116
104     win32: {
105     target.path = $$BINDIR
106     database.path = $$DATADIR/qspeakers
107     database.files = qspeakers_db.xml
108     translations.path = $$DATADIR/$${TARGET}
109     translations.files = $${LOCALE_DIR}
110     RC_ICONS += qspeakers.ico
111     INSTALLS += target \
112     database \
113     translations \
114     }

  ViewVC Help
Powered by ViewVC 1.1.26