/[svn]/qsampler/trunk/src/src.pro
ViewVC logotype

Diff of /qsampler/trunk/src/src.pro

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2285 by capela, Mon Nov 21 15:58:34 2011 UTC revision 3347 by capela, Fri Aug 25 10:39:58 2017 UTC
# Line 1  Line 1 
1  # qsampler.pro  # qsampler.pro
2  #  #
3  TARGET = qsampler  NAME = qsampler
4    
5    TARGET = $${NAME}
6  TEMPLATE = app  TEMPLATE = app
 DEPENDPATH += .  
 INCLUDEPATH += .  
7    
8  include(src.pri)  include(src.pri)
9    
# Line 65  FORMS += \ Line 64  FORMS += \
64  RESOURCES += \  RESOURCES += \
65          qsampler.qrc          qsampler.qrc
66    
67    
68  TRANSLATIONS += \  TRANSLATIONS += \
69      translations/qsampler_cs.ts \          translations/qsampler_cs.ts \
70      translations/qsampler_ru.ts          translations/qsampler_ru.ts
71    
72    
73  unix {  unix {
74    
# Line 80  unix { Line 81  unix {
81                  PREFIX = /usr/local                  PREFIX = /usr/local
82          }          }
83    
84          BINDIR = $$PREFIX/bin          isEmpty(BINDIR) {
85          DATADIR = $$PREFIX/share                  BINDIR = $${PREFIX}/bin
86          LOCALEDIR = $(localedir)          }
87    
88          DEFINES += DATADIR=\"$$DATADIR\"          isEmpty(DATADIR) {
89          DEFINES += LOCALEDIR=\"$$LOCALEDIR\"                  DATADIR = $${PREFIX}/share
90            }
91    
92            #DEFINES += DATADIR=\"$${DATADIR}\"
93    
94          # make install          # make install
95          INSTALLS += target desktop icon          INSTALLS += target desktop icon appdata \
96                    icon_scalable mimeinfo mimetypes mimetypes_scalable
97    
98            target.path = $${BINDIR}
99    
100            desktop.path = $${DATADIR}/applications
101            desktop.files += $${NAME}.desktop
102    
103          target.path = $$BINDIR          icon.path = $${DATADIR}/icons/hicolor/32x32/apps
104            icon.files += images/$${NAME}.png
105    
106          desktop.path = $$DATADIR/applications          icon_scalable.path = $${DATADIR}/icons/hicolor/scalable/apps
107          desktop.files += $${TARGET}.desktop          icon_scalable.files += images/$${NAME}.svg
108    
109          icon.path = $$DATADIR/icons/hicolor/32x32/apps          appdata.path = $${DATADIR}/metainfo
110          icon.files += images/$${TARGET}.png          appdata.files += appdata/$${NAME}.appdata.xml
111    
112            mimeinfo.path = $${DATADIR}/mime/packages
113            mimeinfo.files += mimetypes/$${NAME}.xml
114    
115            mimetypes.path = $${DATADIR}/icons/hicolor/32x32/mimetypes
116            mimetypes.files += mimetypes/application-x-$${NAME}-session.png
117    
118            mimetypes_scalable.path = $${DATADIR}/icons/hicolor/scalable/mimetypes
119            mimetypes_scalable.files += mimetypes/application-x-$${NAME}-session.svg
120  }  }
121    
122  win32 {  win32 {
123    
124          CONFIG(debug, debug|release): CONFIG += console          CONFIG(debug, debug|release): CONFIG += console
125          INSTALLS += target          INSTALLS += target
126          target.path = $$PREFIX/bin          target.path = $${PREFIX}/bin
127  }  }
128    
129  macx {  macx {
# Line 111  macx { Line 131  macx {
131          QMAKE_MAC_SDK = $$(SDKROOT)          QMAKE_MAC_SDK = $$(SDKROOT)
132          CONFIG += $$(QMAKE_ARCHS)          CONFIG += $$(QMAKE_ARCHS)
133  }  }
134    
135    
136    # QT5 support
137    !lessThan(QT_MAJOR_VERSION, 5) {
138            QT += widgets
139    }

Legend:
Removed from v.2285  
changed lines
  Added in v.3347

  ViewVC Help
Powered by ViewVC