fresh.pro 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. # fresh lib project file
  2. # include qmake-extensions file
  3. include( qmake-extensions.git/qmake-extensions.pri )
  4. isEmpty( build_mode ):FRESH_BUILD_MODE = release
  5. else:FRESH_BUILD_MODE = $${build_mode}
  6. isEmpty( build_type ):FRESH_BUILD_TYPE = static
  7. else:FRESH_BUILD_TYPE = $${build_type}
  8. FRESH_BUILD_PATH = build
  9. FRESH_DESTDIR = build
  10. TEMPLATE = lib
  11. CONFIG -= release debug debug_and_release warn_on warn_off ppc ppc64 x86 x86_64
  12. CONFIG *= warn_on thread x11 windows qt $${FRESH_BUILD_TYPE} $${FRESH_BUILD_MODE}
  13. QT *= network xml
  14. greaterThan( QT_MAJOR_VERSION, 4 ): QT *= widgets
  15. # Mac universal build from 10.3 & up
  16. macx:universal {
  17. SDK_PATH = $$(MAC_SDKS_PATH)
  18. isEmpty( SDK_PATH ):SDK_PATH = /Developer/SDKs
  19. QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.3
  20. QMAKE_MAC_SDK = $${SDK_PATH}/MacOSX10.6.sdk
  21. CONFIG *= app_bundle
  22. #CONFIG *= x86_64
  23. CONFIG *= x86
  24. CONFIG *= ppc
  25. # this link is required for building the ppc port to avoid the undefined __Unwind_Resume symbol
  26. CONFIG( ppc ):LIBS *= -lgcc_eh
  27. }
  28. macx {
  29. LIBS *= "-framework CoreFoundation"
  30. }
  31. setTarget( fresh )
  32. setTemporaryDirectories( $${FRESH_BUILD_PATH} )
  33. isEqual( FRESH_BUILD_MODE, debug ):CONFIG *= console
  34. DESTDIR = $${FRESH_DESTDIR}
  35. isEqual( FRESH_BUILD_TYPE, shared ) {
  36. win32:DLLDESTDIR = $${FRESH_DESTDIR}
  37. }
  38. include( defines.pri )
  39. isShadowBuild() {
  40. FRESH_SOURCES_ROOT_PATH = "$${PWD}/src"
  41. } else {
  42. FRESH_SOURCES_ROOT_PATH = src
  43. }
  44. FRESH_SOURCES_PATHS = $$getFolders( "$${FRESH_SOURCES_ROOT_PATH}" )
  45. DEPENDPATH *= $${FRESH_SOURCES_PATHS}
  46. INCLUDEPATH *= $${FRESH_SOURCES_PATHS}
  47. RESOURCES *= resources/fresh.qrc
  48. XUP.TRANSLATIONS_BASENAME = fresh
  49. XUP.TRANSLATIONS_DIRECTORY = translations
  50. TRANSLATIONS *= \
  51. translations/fresh_ru_RU.ts \
  52. translations/fresh_sl_SI.ts \
  53. translations/fresh_pl_PL.ts \
  54. translations/fresh_zh_CN.ts \
  55. translations/fresh_he_IL.ts \
  56. translations/fresh_da_DK.ts \
  57. translations/fresh_sk_SK.ts \
  58. translations/fresh_ja_JP.ts \
  59. translations/fresh_uk_UA.ts \
  60. translations/fresh_cs_CZ.ts \
  61. translations/fresh_ca_ES.ts \
  62. translations/fresh_ar_SA.ts \
  63. translations/fresh_fr_FR.ts \
  64. translations/fresh_zh_TW.ts \
  65. translations/fresh_es_ES.ts \
  66. translations/fresh_de_DE.ts \
  67. translations/fresh_pt_PT.ts \
  68. translations/fresh_sv_SE.ts
  69. FORMS *= \
  70. src/gui/actionmanager/pActionsShortcutEditor.ui \
  71. src/gui/pTranslationDialog.ui \
  72. src/gui/environmentvariablemanager/pEnvironmentVariableEditor.ui \
  73. src/gui/environmentvariablemanager/pEnvironmentVariablesEditor.ui \
  74. src/gui/gc-updatechecker/pUpdateCheckerDialog.ui \
  75. src/gui/pSpinBox.ui \
  76. src/gui/pQtResourceDialog.ui \
  77. src/gui/pResourcePicker.ui
  78. CORE_HEADERS = \
  79. src/core/FreshExport.h \
  80. src/core/pCoreUtils.h \
  81. src/core/pGetOpt.h \
  82. src/core/pSettings.h \
  83. src/core/pTranslationManager.h \
  84. src/core/pVersion.h \
  85. src/core/pNetworkAccessManager.h \
  86. src/core/pGenericTableModel.h \
  87. src/core/pLocaleModel.h \
  88. src/core/pLocaleSortFilterProxyModel.h \
  89. src/core/pQtResourceModel.h \
  90. src/core/pRecursiveSortFilterProxyModel.h \
  91. src/core/Fresh.h
  92. GUI_HEADERS *= \
  93. src/gui/pColorButton.h \
  94. src/gui/pFontButton.h \
  95. src/gui/pGuiUtils.h \
  96. src/gui/pIconManager.h \
  97. src/gui/pKeySequenceEdit.h \
  98. src/gui/pLineEdit.h \
  99. src/gui/pMainWindow.h \
  100. src/gui/pToolButton.h \
  101. src/gui/actionmanager/pActionsMenuBar.h \
  102. src/gui/actionmanager/pActionsModel.h \
  103. src/gui/actionmanager/pActionsShortcutEditor.h \
  104. src/gui/dockmanager/pDockToolBar.h \
  105. src/gui/dockmanager/pDockToolBarManager.h \
  106. src/gui/listeditor/pFileListEditor.h \
  107. src/gui/listeditor/pPathListEditor.h \
  108. src/gui/listeditor/pStringListEditor.h \
  109. src/gui/pTranslationDialog.h \
  110. src/gui/queuedmessage/pQueuedMessageToolBar.h \
  111. src/gui/queuedmessage/pQueuedMessageWidget.h \
  112. src/gui/stylemanager/pStylesActionGroup.h \
  113. src/gui/stylemanager/pStylesToolButton.h \
  114. src/gui/pFileDialog.h \
  115. src/gui/pTreeComboBox.h \
  116. src/gui/pComboBox.h \
  117. src/gui/consolemanager/pConsole.h \
  118. src/gui/consolemanager/pConsoleCommand.h \
  119. src/gui/dockwidget/pDockWidget.h \
  120. src/gui/dockwidget/pDockWidgetTitleBar.h \
  121. src/gui/environmentvariablemanager/pEnvironmentVariableEditor.h \
  122. src/gui/environmentvariablemanager/pEnvironmentVariablesEditor.h \
  123. src/gui/environmentvariablemanager/pEnvironmentVariablesManager.h \
  124. src/gui/environmentvariablemanager/pEnvironmentVariablesModel.h \
  125. src/gui/gc-updatechecker/pUpdateChecker.h \
  126. src/gui/gc-updatechecker/pUpdateCheckerDialog.h \
  127. src/gui/pPaypalButton.h \
  128. src/gui/pCheckComboBox.h \
  129. src/gui/pCollapsibleFrame.h \
  130. src/gui/pSpinBox.h \
  131. src/gui/pQtResourceDialog.h \
  132. src/gui/pResourcePicker.h \
  133. src/gui/pImageResourcePicker.h
  134. HEADERS *= \
  135. $${CORE_HEADERS} \
  136. $${GUI_HEADERS}
  137. CORE_SOURCES *= \
  138. src/core/pCoreUtils.cpp \
  139. src/core/pGetOpt.cpp \
  140. src/core/pSettings.cpp \
  141. src/core/pTranslationManager.cpp \
  142. src/core/pVersion.cpp \
  143. src/core/pNetworkAccessManager.cpp \
  144. src/core/pGenericTableModel.cpp \
  145. src/core/pLocaleModel.cpp \
  146. src/core/pLocaleSortFilterProxyModel.cpp \
  147. src/core/pQtResourceModel.cpp \
  148. src/core/pRecursiveSortFilterProxyModel.cpp \
  149. src/core/Fresh.cpp
  150. GUI_SOURCES *= \
  151. src/gui/pColorButton.cpp \
  152. src/gui/pFontButton.cpp \
  153. src/gui/pGuiUtils.cpp \
  154. src/gui/pIconManager.cpp \
  155. src/gui/pKeySequenceEdit.cpp \
  156. src/gui/pLineEdit.cpp \
  157. src/gui/pMainWindow.cpp \
  158. src/gui/pToolButton.cpp \
  159. src/gui/actionmanager/pActionsMenuBar.cpp \
  160. src/gui/actionmanager/pActionsModel.cpp \
  161. src/gui/actionmanager/pActionsShortcutEditor.cpp \
  162. src/gui/dockmanager/pDockToolBar.cpp \
  163. src/gui/dockmanager/pDockToolBarManager.cpp \
  164. src/gui/listeditor/pFileListEditor.cpp \
  165. src/gui/listeditor/pPathListEditor.cpp \
  166. src/gui/listeditor/pStringListEditor.cpp \
  167. src/gui/pTranslationDialog.cpp \
  168. src/gui/queuedmessage/pQueuedMessageToolBar.cpp \
  169. src/gui/queuedmessage/pQueuedMessageWidget.cpp \
  170. src/gui/stylemanager/pStylesActionGroup.cpp \
  171. src/gui/stylemanager/pStylesToolButton.cpp \
  172. src/gui/pFileDialog.cpp \
  173. src/gui/pTreeComboBox.cpp \
  174. src/gui/pComboBox.cpp \
  175. src/gui/consolemanager/pConsole.cpp \
  176. src/gui/consolemanager/pConsoleCommand.cpp \
  177. src/gui/dockwidget/pDockWidget.cpp \
  178. src/gui/dockwidget/pDockWidgetTitleBar.cpp \
  179. src/gui/environmentvariablemanager/pEnvironmentVariableEditor.cpp \
  180. src/gui/environmentvariablemanager/pEnvironmentVariablesEditor.cpp \
  181. src/gui/environmentvariablemanager/pEnvironmentVariablesManager.cpp \
  182. src/gui/environmentvariablemanager/pEnvironmentVariablesModel.cpp \
  183. src/gui/gc-updatechecker/pUpdateChecker.cpp \
  184. src/gui/gc-updatechecker/pUpdateCheckerDialog.cpp \
  185. src/gui/pPaypalButton.cpp \
  186. src/gui/pCheckComboBox.cpp \
  187. src/gui/pCollapsibleFrame.cpp \
  188. src/gui/pSpinBox.cpp \
  189. src/gui/pQtResourceDialog.cpp \
  190. src/gui/pResourcePicker.cpp \
  191. src/gui/pImageResourcePicker.cpp
  192. SOURCES *= \
  193. $${CORE_SOURCES} \
  194. $${GUI_SOURCES}
  195. win32 {
  196. HEADERS *= src/core/pWinHelpers.h
  197. }
  198. macx {
  199. HEADERS *= src/core/pMacHelpers.h
  200. OBJECTIVE_SOURCES *= src/core/pMacHelpers.mm
  201. }
  202. # include installs file
  203. include( installs.pri )