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