1 2# Copyright 2007-2008 David Johnson 3# This project file is free software; the author gives unlimited 4# permission to copy, distribute and modify it. 5 6TARGET = qbrew 7TEMPLATE = app 8CONFIG += qt warn_on 9QT += printsupport widgets xml 10 11MOC_DIR = build 12OBJECTS_DIR = build 13RCC_DIR = build 14UI_DIR = build 15 16INCLUDEPATH += src 17VPATH = src 18 19win32 { 20 RC_FILE = win\icon.rc 21 CONFIG -= console 22 23 target.path = release 24 25 trans.path = translations 26 trans.files = translations/*.qm 27 28 data.path = release 29 data.files = data/* pics/splash.png win/qbrew.ico README LICENSE 30 31 doc.path = release/doc 32 doc.files = docs/book/*.html docs/primer/*.html 33 34 INSTALLS += target trans data doc 35} 36 37macx { 38 CONFIG += x86 ppc 39 QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.4 40 QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.4u.sdk 41 42 DEFINES += HAVE_ROUND 43 LIBS += -dead-strip 44 QMAKE_POST_LINK=strip qbrew.app/Contents/MacOS/qbrew 45 46 # install into app bundle 47 trans.path = qbrew.app/Contents/Resources/translations 48 trans.files = translations/*.qm 49 50 data.path = qbrew.app/Contents/Resources 51 data.files = data/* pics/splash.png mac/application.icns mac/document.icns 52 53 doc.path = qbrew.app/Contents/Resources/en.lproj 54 doc.files = docs/book/*.html docs/primer/*.html 55 56 misc.path = qbrew.app/Contents 57 misc.files = mac/Info.plist mac/PkgInfo 58 59 INSTALLS += trans data doc misc 60} 61 62unix:!macx { 63 configure { 64 DEFINES += $$(HAVEDEFS) 65 target.path = $$(BINDIR) 66 trans.path = $$(DATADIR)/translations 67 data.path = $$(DATADIR) 68 doc.path = $$(DOCDIR) 69 } else { 70 target.path = /usr/local/bin 71 trans.path = /usr/local/share/qbrew/translations 72 data.path = /usr/local/share/qbrew 73 doc.path = /usr/local/share/doc/qbrew 74 } 75 76 DEFINES += Q_WS_X11 77 78 trans.files = translations/*.qm 79 data.files = data/* pics/splash.png 80 doc.files = docs/book/*.html docs/primer/*.html README LICENSE 81 INSTALLS += target trans data doc 82} 83 84RESOURCES = qbrew.qrc 85 86HEADERS = alcoholtool.h \ 87 beerxmlreader.h \ 88 configstate.h \ 89 configure.h \ 90 data.h \ 91 databasetool.h \ 92 datareader.h \ 93 grain.h \ 94 graindelegate.h \ 95 grainmodel.h \ 96 helpviewer.h \ 97 hop.h \ 98 hopdelegate.h \ 99 hopmodel.h \ 100 hydrometertool.h \ 101 ingredientview.h \ 102 misc.h \ 103 miscdelegate.h \ 104 miscmodel.h \ 105 notepage.h \ 106 qbrew.h \ 107 quantity.h \ 108 recipe.h \ 109 recipereader.h \ 110 resource.h \ 111 style.h \ 112 styledelegate.h \ 113 stylemodel.h \ 114 textprinter.h \ 115 view.h 116 117SOURCES = alcoholtool.cpp \ 118 beerxmlreader.cpp \ 119 configure.cpp \ 120 data.cpp \ 121 databasetool.cpp \ 122 datareader.cpp \ 123 export.cpp \ 124 grain.cpp \ 125 graindelegate.cpp \ 126 grainmodel.cpp \ 127 helpviewer.cpp \ 128 hop.cpp \ 129 hopdelegate.cpp \ 130 hopmodel.cpp \ 131 hydrometertool.cpp \ 132 ingredientview.cpp \ 133 main.cpp \ 134 misc.cpp \ 135 miscdelegate.cpp \ 136 miscmodel.cpp \ 137 notepage.cpp \ 138 qbrew.cpp \ 139 quantity.cpp \ 140 recipe.cpp \ 141 recipereader.cpp \ 142 style.cpp \ 143 styledelegate.cpp \ 144 stylemodel.cpp \ 145 textprinter.cpp \ 146 view.cpp 147 148FORMS = alcoholtool.ui \ 149 calcconfig.ui \ 150 databasetool.ui \ 151 generalconfig.ui \ 152 helpviewer.ui \ 153 hydrometertool.ui \ 154 ingredientpage.ui \ 155 mainwindow.ui \ 156 noteview.ui \ 157 recipeconfig.ui \ 158 view.ui 159 160TRANSLATIONS = translations/qbrew_de.ts 161