fresh.pro 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. # fresh lib project file
  2. # include functions file
  3. include( functions.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 -= debug_and_release release debug warn_off warn_on x86 ppc
  12. CONFIG *= qt warn_on thread x11 windows $$FRESH_BUILD_MODE $$FRESH_BUILD_TYPE
  13. QT *= xml network
  14. # Mac universal build from 10.3 to up to 10.5
  15. macx:universal {
  16. QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.3
  17. QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.4u.sdk
  18. CONFIG *= x86 ppc
  19. }
  20. macx {
  21. LIBS *= "-framework CoreFoundation"
  22. }
  23. setTarget( fresh )
  24. setTemporaryDirectories( $$FRESH_BUILD_PATH )
  25. isEqual( FRESH_BUILD_MODE, debug ):CONFIG *= console
  26. isEqual( FRESH_BUILD_TYPE, static ) {
  27. DESTDIR = $$FRESH_DESTDIR
  28. } else {
  29. win32:DLLDESTDIR = $$FRESH_DESTDIR
  30. else:DESTDIR = $$FRESH_DESTDIR
  31. }
  32. # some library infos
  33. QMAKE_TARGET_COMPANY = "The Fresh Team"
  34. QMAKE_TARGET_PRODUCT = "Fresh Framework"
  35. QMAKE_TARGET_DESCRIPTION = "Qt Extension Framework"
  36. QMAKE_TARGET_COPYRIGHT = "\\251 2005 - 2011 Filipe AZEVEDO and $$QMAKE_TARGET_COMPANY"
  37. VERSION = 1.0.0
  38. # make library exportable
  39. DEFINES *= FRESH_CORE_BUILD
  40. FRESH_SOURCES_PATHS = $$getFolders( ./src )
  41. DEPENDPATH *= $${FRESH_SOURCES_PATHS}
  42. INCLUDEPATH *= $${FRESH_SOURCES_PATHS}
  43. RESOURCES *= resources/fresh.qrc
  44. TRANSLATIONS *= translations/fresh-ru_RU.ts \
  45. translations/fresh-sl_SI.ts \
  46. translations/fresh-pl_PL.ts \
  47. translations/fresh-zh_CN.ts \
  48. translations/fresh-he_IL.ts \
  49. translations/fresh-da_DK.ts \
  50. translations/fresh-sk_SK.ts \
  51. translations/fresh-ja_JP.ts \
  52. translations/fresh-uk_UA.ts \
  53. translations/fresh-cs_CZ.ts \
  54. translations/fresh-ca_ES.ts \
  55. translations/fresh-ar_SA.ts \
  56. translations/fresh-fr_FR.ts \
  57. translations/fresh-zh_TW.ts \
  58. translations/fresh-es_ES.ts \
  59. translations/fresh-de_DE.ts \
  60. translations/fresh-pt_PT.ts \
  61. translations/fresh-sv_SE.ts
  62. FORMS *= \
  63. src/gui/actionmanager/pActionsNodeShortcutEditor.ui \
  64. src/gui/pTranslationDialog.ui \
  65. src/gui/environmentvariablemanager/pEnvironmentVariableEditor.ui \
  66. src/gui/environmentvariablemanager/pEnvironmentVariablesEditor.ui \
  67. src/gui/gc-updatechecker/pUpdateCheckerDialog.ui
  68. HEADERS *= \
  69. src/core/FreshExport.h \
  70. src/core/pCoreUtils.h \
  71. src/core/pGetOpt.h \
  72. src/core/pSettings.h \
  73. src/core/pTranslationManager.h \
  74. src/core/pVersion.h \
  75. src/gui/pColorButton.h \
  76. src/gui/pGuiUtils.h \
  77. src/gui/pIconManager.h \
  78. src/gui/pKeySequenceEdit.h \
  79. src/gui/pLineEdit.h \
  80. src/gui/pMainWindow.h \
  81. src/gui/pToolButton.h \
  82. src/gui/actionmanager/pActionsNode.h \
  83. src/gui/actionmanager/pActionsNodeMenuBar.h \
  84. src/gui/actionmanager/pActionsNodeModel.h \
  85. src/gui/actionmanager/pActionsNodeShortcutEditor.h \
  86. src/gui/dockmanager/pDockToolBar.h \
  87. src/gui/dockmanager/pDockToolBarManager.h \
  88. src/gui/listeditor/pFileListEditor.h \
  89. src/gui/listeditor/pPathListEditor.h \
  90. src/gui/listeditor/pStringListEditor.h \
  91. src/gui/models/pRecursiveSortFilterProxyModel.h \
  92. src/gui/pTranslationDialog.h \
  93. src/gui/queuedmessage/pQueuedMessageToolBar.h \
  94. src/gui/queuedmessage/pQueuedMessageWidget.h \
  95. src/gui/stylemanager/pStylesActionGroup.h \
  96. src/gui/stylemanager/pStylesToolButton.h \
  97. src/gui/pFileDialog.h \
  98. src/gui/pTreeComboBox.h \
  99. src/gui/consolemanager/pConsole.h \
  100. src/gui/consolemanager/pConsoleCommand.h \
  101. src/gui/dockwidget/pDockWidget.h \
  102. src/gui/dockwidget/pDockWidgetTitleBar.h \
  103. src/gui/environmentvariablemanager/pEnvironmentVariableEditor.h \
  104. src/gui/environmentvariablemanager/pEnvironmentVariablesEditor.h \
  105. src/gui/environmentvariablemanager/pEnvironmentVariablesManager.h \
  106. src/gui/environmentvariablemanager/pEnvironmentVariablesModel.h \
  107. src/gui/gc-updatechecker/pUpdateChecker.h \
  108. src/gui/gc-updatechecker/pUpdateCheckerDialog.h \
  109. src/gui/pPaypalButton.h \
  110. src/core/pNetworkAccessManager.h \
  111. src/core/Fresh.h
  112. SOURCES *= \
  113. src/core/pCoreUtils.cpp \
  114. src/core/pGetOpt.cpp \
  115. src/core/pSettings.cpp \
  116. src/core/pTranslationManager.cpp \
  117. src/core/pVersion.cpp \
  118. src/gui/pColorButton.cpp \
  119. src/gui/pGuiUtils.cpp \
  120. src/gui/pIconManager.cpp \
  121. src/gui/pKeySequenceEdit.cpp \
  122. src/gui/pLineEdit.cpp \
  123. src/gui/pMainWindow.cpp \
  124. src/gui/pToolButton.cpp \
  125. src/gui/actionmanager/pActionsNode.cpp \
  126. src/gui/actionmanager/pActionsNodeMenuBar.cpp \
  127. src/gui/actionmanager/pActionsNodeModel.cpp \
  128. src/gui/actionmanager/pActionsNodeShortcutEditor.cpp \
  129. src/gui/dockmanager/pDockToolBar.cpp \
  130. src/gui/dockmanager/pDockToolBarManager.cpp \
  131. src/gui/listeditor/pFileListEditor.cpp \
  132. src/gui/listeditor/pPathListEditor.cpp \
  133. src/gui/listeditor/pStringListEditor.cpp \
  134. src/gui/models/pRecursiveSortFilterProxyModel.cpp \
  135. src/gui/pTranslationDialog.cpp \
  136. src/gui/queuedmessage/pQueuedMessageToolBar.cpp \
  137. src/gui/queuedmessage/pQueuedMessageWidget.cpp \
  138. src/gui/stylemanager/pStylesActionGroup.cpp \
  139. src/gui/stylemanager/pStylesToolButton.cpp \
  140. src/gui/pFileDialog.cpp \
  141. src/gui/pTreeComboBox.cpp \
  142. src/gui/consolemanager/pConsole.cpp \
  143. src/gui/consolemanager/pConsoleCommand.cpp \
  144. src/gui/dockwidget/pDockWidget.cpp \
  145. src/gui/dockwidget/pDockWidgetTitleBar.cpp \
  146. src/gui/environmentvariablemanager/pEnvironmentVariableEditor.cpp \
  147. src/gui/environmentvariablemanager/pEnvironmentVariablesEditor.cpp \
  148. src/gui/environmentvariablemanager/pEnvironmentVariablesManager.cpp \
  149. src/gui/environmentvariablemanager/pEnvironmentVariablesModel.cpp \
  150. src/gui/gc-updatechecker/pUpdateChecker.cpp \
  151. src/gui/gc-updatechecker/pUpdateCheckerDialog.cpp \
  152. src/gui/pPaypalButton.cpp \
  153. src/core/pNetworkAccessManager.cpp \
  154. src/core/Fresh.cpp
  155. macx {
  156. HEADERS *= src/core/pMacHelpers.h
  157. OBJECTIVE_SOURCES *= src/core/pMacHelpers.mm
  158. }
  159. # include installs file
  160. include( installs.pri )