-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathfresh.pro
229 lines (203 loc) · 7.24 KB
/
fresh.pro
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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
# fresh lib project file
# include qmake-extensions file
include( qmake-extensions.git/qmake-extensions.pri )
isEmpty( build_mode ):FRESH_BUILD_MODE = release
else:FRESH_BUILD_MODE = $${build_mode}
isEmpty( build_type ):FRESH_BUILD_TYPE = static
else:FRESH_BUILD_TYPE = $${build_type}
FRESH_BUILD_PATH = build
FRESH_DESTDIR = build
TEMPLATE = lib
CONFIG -= release debug debug_and_release warn_on warn_off ppc ppc64 x86 x86_64
CONFIG *= warn_on thread x11 windows qt $${FRESH_BUILD_TYPE} $${FRESH_BUILD_MODE}
QT *= network xml
greaterThan( QT_MAJOR_VERSION, 4 ): QT *= widgets
# Mac universal build from 10.3 & up
macx:universal {
SDK_PATH = $$(MAC_SDKS_PATH)
isEmpty( SDK_PATH ):SDK_PATH = /Developer/SDKs
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.3
QMAKE_MAC_SDK = $${SDK_PATH}/MacOSX10.6.sdk
CONFIG *= app_bundle
#CONFIG *= x86_64
CONFIG *= x86
CONFIG *= ppc
# this link is required for building the ppc port to avoid the undefined __Unwind_Resume symbol
CONFIG( ppc ):LIBS *= -lgcc_eh
}
macx {
LIBS *= "-framework CoreFoundation"
}
setTarget( fresh )
setTemporaryDirectories( $${FRESH_BUILD_PATH} )
isEqual( FRESH_BUILD_MODE, debug ):CONFIG *= console
DESTDIR = $${FRESH_DESTDIR}
isEqual( FRESH_BUILD_TYPE, shared ) {
win32:DLLDESTDIR = $${FRESH_DESTDIR}
}
include( defines.pri )
isShadowBuild() {
FRESH_SOURCES_ROOT_PATH = "$${PWD}/src"
} else {
FRESH_SOURCES_ROOT_PATH = src
}
FRESH_SOURCES_PATHS = $$getFolders( "$${FRESH_SOURCES_ROOT_PATH}" )
DEPENDPATH *= $${FRESH_SOURCES_PATHS}
INCLUDEPATH *= $${FRESH_SOURCES_PATHS}
RESOURCES *= resources/fresh.qrc
XUP.TRANSLATIONS_BASENAME = fresh
XUP.TRANSLATIONS_DIRECTORY = translations
TRANSLATIONS *= \
translations/fresh_ru_RU.ts \
translations/fresh_sl_SI.ts \
translations/fresh_pl_PL.ts \
translations/fresh_zh_CN.ts \
translations/fresh_he_IL.ts \
translations/fresh_da_DK.ts \
translations/fresh_sk_SK.ts \
translations/fresh_ja_JP.ts \
translations/fresh_uk_UA.ts \
translations/fresh_cs_CZ.ts \
translations/fresh_ca_ES.ts \
translations/fresh_ar_SA.ts \
translations/fresh_fr_FR.ts \
translations/fresh_zh_TW.ts \
translations/fresh_es_ES.ts \
translations/fresh_de_DE.ts \
translations/fresh_pt_PT.ts \
translations/fresh_sv_SE.ts
FORMS *= \
src/gui/actionmanager/pActionsShortcutEditor.ui \
src/gui/pTranslationDialog.ui \
src/gui/environmentvariablemanager/pEnvironmentVariableEditor.ui \
src/gui/environmentvariablemanager/pEnvironmentVariablesEditor.ui \
src/gui/gc-updatechecker/pUpdateCheckerDialog.ui \
src/gui/pSpinBox.ui \
src/gui/pQtResourceDialog.ui \
src/gui/pResourcePicker.ui
CORE_HEADERS = \
src/core/FreshExport.h \
src/core/pCoreUtils.h \
src/core/pGetOpt.h \
src/core/pSettings.h \
src/core/pTranslationManager.h \
src/core/pVersion.h \
src/core/pNetworkAccessManager.h \
src/core/pGenericTableModel.h \
src/core/pLocaleModel.h \
src/core/pLocaleSortFilterProxyModel.h \
src/core/pQtResourceModel.h \
src/core/pRecursiveSortFilterProxyModel.h \
src/core/Fresh.h
GUI_HEADERS *= \
src/gui/pColorButton.h \
src/gui/pFontButton.h \
src/gui/pGuiUtils.h \
src/gui/pIconManager.h \
src/gui/pKeySequenceEdit.h \
src/gui/pLineEdit.h \
src/gui/pMainWindow.h \
src/gui/pToolButton.h \
src/gui/actionmanager/pActionsMenuBar.h \
src/gui/actionmanager/pActionsModel.h \
src/gui/actionmanager/pActionsShortcutEditor.h \
src/gui/dockmanager/pDockToolBar.h \
src/gui/dockmanager/pDockToolBarManager.h \
src/gui/listeditor/pFileListEditor.h \
src/gui/listeditor/pPathListEditor.h \
src/gui/listeditor/pStringListEditor.h \
src/gui/pTranslationDialog.h \
src/gui/queuedmessage/pQueuedMessageToolBar.h \
src/gui/queuedmessage/pQueuedMessageWidget.h \
src/gui/stylemanager/pStylesActionGroup.h \
src/gui/stylemanager/pStylesToolButton.h \
src/gui/pFileDialog.h \
src/gui/pTreeComboBox.h \
src/gui/pComboBox.h \
src/gui/consolemanager/pConsole.h \
src/gui/consolemanager/pConsoleCommand.h \
src/gui/dockwidget/pDockWidget.h \
src/gui/dockwidget/pDockWidgetTitleBar.h \
src/gui/environmentvariablemanager/pEnvironmentVariableEditor.h \
src/gui/environmentvariablemanager/pEnvironmentVariablesEditor.h \
src/gui/environmentvariablemanager/pEnvironmentVariablesManager.h \
src/gui/environmentvariablemanager/pEnvironmentVariablesModel.h \
src/gui/gc-updatechecker/pUpdateChecker.h \
src/gui/gc-updatechecker/pUpdateCheckerDialog.h \
src/gui/pPaypalButton.h \
src/gui/pCheckComboBox.h \
src/gui/pCollapsibleFrame.h \
src/gui/pSpinBox.h \
src/gui/pQtResourceDialog.h \
src/gui/pResourcePicker.h \
src/gui/pImageResourcePicker.h
HEADERS *= \
$${CORE_HEADERS} \
$${GUI_HEADERS}
CORE_SOURCES *= \
src/core/pCoreUtils.cpp \
src/core/pGetOpt.cpp \
src/core/pSettings.cpp \
src/core/pTranslationManager.cpp \
src/core/pVersion.cpp \
src/core/pNetworkAccessManager.cpp \
src/core/pGenericTableModel.cpp \
src/core/pLocaleModel.cpp \
src/core/pLocaleSortFilterProxyModel.cpp \
src/core/pQtResourceModel.cpp \
src/core/pRecursiveSortFilterProxyModel.cpp \
src/core/Fresh.cpp
GUI_SOURCES *= \
src/gui/pColorButton.cpp \
src/gui/pFontButton.cpp \
src/gui/pGuiUtils.cpp \
src/gui/pIconManager.cpp \
src/gui/pKeySequenceEdit.cpp \
src/gui/pLineEdit.cpp \
src/gui/pMainWindow.cpp \
src/gui/pToolButton.cpp \
src/gui/actionmanager/pActionsMenuBar.cpp \
src/gui/actionmanager/pActionsModel.cpp \
src/gui/actionmanager/pActionsShortcutEditor.cpp \
src/gui/dockmanager/pDockToolBar.cpp \
src/gui/dockmanager/pDockToolBarManager.cpp \
src/gui/listeditor/pFileListEditor.cpp \
src/gui/listeditor/pPathListEditor.cpp \
src/gui/listeditor/pStringListEditor.cpp \
src/gui/pTranslationDialog.cpp \
src/gui/queuedmessage/pQueuedMessageToolBar.cpp \
src/gui/queuedmessage/pQueuedMessageWidget.cpp \
src/gui/stylemanager/pStylesActionGroup.cpp \
src/gui/stylemanager/pStylesToolButton.cpp \
src/gui/pFileDialog.cpp \
src/gui/pTreeComboBox.cpp \
src/gui/pComboBox.cpp \
src/gui/consolemanager/pConsole.cpp \
src/gui/consolemanager/pConsoleCommand.cpp \
src/gui/dockwidget/pDockWidget.cpp \
src/gui/dockwidget/pDockWidgetTitleBar.cpp \
src/gui/environmentvariablemanager/pEnvironmentVariableEditor.cpp \
src/gui/environmentvariablemanager/pEnvironmentVariablesEditor.cpp \
src/gui/environmentvariablemanager/pEnvironmentVariablesManager.cpp \
src/gui/environmentvariablemanager/pEnvironmentVariablesModel.cpp \
src/gui/gc-updatechecker/pUpdateChecker.cpp \
src/gui/gc-updatechecker/pUpdateCheckerDialog.cpp \
src/gui/pPaypalButton.cpp \
src/gui/pCheckComboBox.cpp \
src/gui/pCollapsibleFrame.cpp \
src/gui/pSpinBox.cpp \
src/gui/pQtResourceDialog.cpp \
src/gui/pResourcePicker.cpp \
src/gui/pImageResourcePicker.cpp
SOURCES *= \
$${CORE_SOURCES} \
$${GUI_SOURCES}
win32 {
HEADERS *= src/core/pWinHelpers.h
}
macx {
HEADERS *= src/core/pMacHelpers.h
OBJECTIVE_SOURCES *= src/core/pMacHelpers.mm
}
# include installs file
include( installs.pri )