qwbfs.pro 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. ###########################################################################################
  2. ## Created using Monkey Studio v1.8.4.0 (1.8.4.0)
  3. ##
  4. ## Author : Filipe Azevedo aka Nox P@sNox <pasnox@gmail.com>
  5. ## Project : qwbfs
  6. ## FileName : qwbfs.pro
  7. ## Date : 2010-04-04T11:04:05
  8. ## License : GPL2
  9. ## Comment : Creating using Monkey Studio RAD
  10. ## Home Page : https://github.com/pasnox/qwbfsmanager
  11. ##
  12. ###########################################################################################
  13. TEMPLATE = app
  14. LANGUAGE = C++/Qt4
  15. TARGET = $$quote( qwbfsmanager )
  16. macx:TARGET = $$quote( QWBFSManager )
  17. BUILD_PATH = ../build
  18. DESTDIR = ../bin
  19. include( ../shared.pri )
  20. CONFIG *= warn_on thread x11 windows qt resources embed_manifest_exe app_bundle
  21. QT *= core gui network xml
  22. greaterThan( QT_MAJOR_VERSION, 4 ):QT *= widgets
  23. include( ../libwbfs/libwbfs.pri )
  24. win32_crossbuild {
  25. exists( "$(QT_WIN32_PATH)/lib/*fresh*" ):CONFIG *= fresh
  26. } else {
  27. exists( "$$[QT_INSTALL_LIBS]/libfresh\.*" ):CONFIG *= fresh
  28. }
  29. fresh {
  30. !build_pass:message( "Using system fresh library." )
  31. } else {
  32. exists( ../fresh.git/fresh.pro ) {
  33. !build_pass:message( "Using bundled fresh library." )
  34. FRESH_PATH = ../fresh.git
  35. include( $$FRESH_PATH/qmake-extensions.git/qmake-extensions.pri )
  36. FRESH_SOURCES_PATHS = $$getFolders( $$PWD/$$FRESH_PATH/src )
  37. DEFINES *= FRESH_CORE_BUILD
  38. DEPENDPATH *= $${FRESH_SOURCES_PATHS}
  39. DEPENDPATH *= $$FRESH_PATH/include/FreshCore \
  40. $$FRESH_PATH/include/FreshGui
  41. INCLUDEPATH *= $$FRESH_PATH/include
  42. INCLUDEPATH *= $${FRESH_SOURCES_PATHS}
  43. PRE_TARGETDEPS *= $${FRESH_PATH}
  44. QMAKE_RPATHDIR *= $$OUT_PWD/$$FRESH_PATH/build
  45. macx:LIBS *= -F$$OUT_PWD/$$FRESH_PATH/build
  46. LIBS *= -L$$OUT_PWD/$$FRESH_PATH/build
  47. QT *= xml network
  48. CONFIG( debug, debug|release ) {
  49. # Debug
  50. unix:LIBS *= -lfresh_debug
  51. else:LIBS *= -lfreshd
  52. } else {
  53. # Release
  54. LIBS *= -lfresh
  55. }
  56. } else {
  57. !build_pass:error( "Fresh library not found - initialize the submodules using the init-repositories script." )
  58. }
  59. }
  60. # define some usefull values
  61. OS = $$lower( $$QMAKE_HOST.os )
  62. QMAKE_TARGET_COMPANY = "QWBFS Team"
  63. QMAKE_TARGET_PRODUCT = "QWBFS Manager"
  64. QMAKE_TARGET_DESCRIPTION = "The Free, Fast and Powerful cross platform Wii Backup File System manager"
  65. greaterThan( QT_MAJOR_VERSION, 4 ) {
  66. QMAKE_TARGET_COPYRIGHT = "© 2010 - 2016 Filipe Azevedo"
  67. } else {
  68. QMAKE_TARGET_COPYRIGHT = "\\251 2010 - 2016 Filipe Azevedo"
  69. }
  70. PACKAGE_DOMAIN = "github.com/pasnox/qwbfsmanager"
  71. PACKAGE_DOWNLOADS_FEED = "http://to-be-changed"
  72. PACKAGE_REPORT_BUG_URL = "https://github.com/pasnox/qwbfsmanager/issues"
  73. PACKAGE_DISCUSS_URL = "http://groups.google.com/group/qwbfs-discuss"
  74. PACKAGE_VERSION = 1.2.6
  75. !isEqual( OS, "windows" ):exists( "$$PWD/../.git" ):SVN_REVISION = $$system( export LANG=C && [ -f /usr/bin/git ] && git --git-dir="$$PWD/../.git" describe )
  76. isEmpty( SVN_REVISION ):SVN_REVISION = $(SVN_REVISION)
  77. isEmpty( SVN_REVISION ):SVN_REVISION = "N/C"
  78. !isEqual( OS, "windows" ):system( touch $$PWD/src/main.h )
  79. isEqual( SVN_REVISION, "N/C" ) {
  80. CONFIG( debug, debug|release ) {
  81. PACKAGE_VERSION_STR = $${PACKAGE_VERSION} (debug)
  82. } else {
  83. PACKAGE_VERSION_STR = $${PACKAGE_VERSION} (release)
  84. }
  85. } else {
  86. CONFIG( debug, debug|release ) {
  87. PACKAGE_VERSION_STR = $${PACKAGE_VERSION} ($$SVN_REVISION debug)
  88. } else {
  89. PACKAGE_VERSION_STR = $${PACKAGE_VERSION} ($$SVN_REVISION release)
  90. }
  91. }
  92. # define variable for source code
  93. DEFINES *= "_APPLICATION_NAME=\"\\\"$${QMAKE_TARGET_PRODUCT}\\\"\"" \
  94. "_APPLICATION_VERSION=\"\\\"$${PACKAGE_VERSION}\\\"\"" \
  95. "_APPLICATION_VERSION_STR=\"\\\"$${PACKAGE_VERSION_STR}\\\"\"" \
  96. "_APPLICATION_DOMAIN=\"\\\"$${PACKAGE_DOMAIN}\\\"\"" \
  97. "_APPLICATION_COPYRIGHTS=\"\\\"$${QMAKE_TARGET_COPYRIGHT}\\\"\"" \
  98. "_APPLICATION_DESCRIPTION=\"\\\"$${QMAKE_TARGET_DESCRIPTION}\\\"\"" \
  99. "_APPLICATION_ORGANIZATION=\"\\\"$${QMAKE_TARGET_COMPANY}\\\"\"" \
  100. "_APPLICATION_DOWNLOADS_FEED=\"\\\"$${PACKAGE_DOWNLOADS_FEED}\\\"\"" \
  101. "_APPLICATION_REPORT_BUG_URL=\"\\\"$${PACKAGE_REPORT_BUG_URL}\\\"\"" \
  102. "_APPLICATION_DISCUSS_URL=\"\\\"$${PACKAGE_DISCUSS_URL}\\\"\""
  103. INCLUDEPATH *= src
  104. DEPENDPATH *= src \
  105. src/models \
  106. src/qwbfsdriver \
  107. src/wiitdb
  108. macx:ICON = resources/qwbfsmanager.icns
  109. win32:RC_FILE = resources/qwbfsmanager.rc
  110. RESOURCES = resources/resources.qrc
  111. XUP.TRANSLATIONS_BASENAME = qwbfsmanager
  112. XUP.TRANSLATIONS_DIRECTORY = ../translations
  113. TRANSLATIONS *= ../translations/qwbfsmanager-ru_RU.ts \
  114. ../translations/qwbfsmanager-sl_SI.ts \
  115. ../translations/qwbfsmanager-pl_PL.ts \
  116. ../translations/qwbfsmanager-zh_CN.ts \
  117. ../translations/qwbfsmanager-he_IL.ts \
  118. ../translations/qwbfsmanager-da_DK.ts \
  119. ../translations/qwbfsmanager-sk_SK.ts \
  120. ../translations/qwbfsmanager-ja_JP.ts \
  121. ../translations/qwbfsmanager-uk_UA.ts \
  122. ../translations/qwbfsmanager-cs_CZ.ts \
  123. ../translations/qwbfsmanager-ca_ES.ts \
  124. ../translations/qwbfsmanager-ar_SA.ts \
  125. ../translations/qwbfsmanager-fr_FR.ts \
  126. ../translations/qwbfsmanager-zh_TW.ts \
  127. ../translations/qwbfsmanager-es_ES.ts \
  128. ../translations/qwbfsmanager-de_DE.ts \
  129. ../translations/qwbfsmanager-pt_PT.ts \
  130. ../translations/qwbfsmanager-sv_SE.ts \
  131. ../translations/qwbfsmanager-it_IT.ts
  132. FORMS *= src/UIMain.ui \
  133. src/PartitionWidget.ui \
  134. src/ProgressDialog.ui \
  135. src/UIAbout.ui \
  136. src/PropertiesDialog.ui
  137. HEADERS *= src/main.h \
  138. src/Utils.h \
  139. src/UIMain.h \
  140. src/Gauge.h \
  141. src/PartitionWidget.h \
  142. src/ProgressDialog.h \
  143. src/WorkerThread.h \
  144. src/qwbfsdriver/PartitionDiscHandle.h \
  145. src/qwbfsdriver/PartitionHandle.h \
  146. src/qwbfsdriver/PartitionProperties.h \
  147. src/qwbfsdriver/PartitionStatus.h \
  148. src/models/Disc.h \
  149. src/models/DiscDelegate.h \
  150. src/models/DiscModel.h \
  151. src/qwbfsdriver/Driver.h \
  152. src/UIAbout.h \
  153. src/wiitdb/Covers.h \
  154. src/PropertiesDialog.h \
  155. src/Properties.h \
  156. src/ListView.h \
  157. src/ofi-labs-pictureflow/pictureflow-qt/pictureflow.h \
  158. src/CoverFlowView.h \
  159. src/models/pPartitionModel.h \
  160. src/models/PartitionDelegate.h \
  161. src/PartitionComboBox.h \
  162. src/models/pPartition.h
  163. SOURCES *= src/main.cpp \
  164. src/Utils.cpp \
  165. src/UIMain.cpp \
  166. src/Gauge.cpp \
  167. src/PartitionWidget.cpp \
  168. src/ProgressDialog.cpp \
  169. src/WorkerThread.cpp \
  170. src/qwbfsdriver/PartitionDiscHandle.cpp \
  171. src/qwbfsdriver/PartitionHandle.cpp \
  172. src/qwbfsdriver/PartitionProperties.cpp \
  173. src/qwbfsdriver/PartitionStatus.cpp \
  174. src/models/Disc.cpp \
  175. src/models/DiscDelegate.cpp \
  176. src/models/DiscModel.cpp \
  177. src/qwbfsdriver/Driver.cpp \
  178. src/UIAbout.cpp \
  179. src/wiitdb/Covers.cpp \
  180. src/PropertiesDialog.cpp \
  181. src/Properties.cpp \
  182. src/ListView.cpp \
  183. src/ofi-labs-pictureflow/pictureflow-qt/pictureflow.cpp \
  184. src/CoverFlowView.cpp \
  185. src/models/pPartitionModel.cpp \
  186. src/models/PartitionDelegate.cpp \
  187. src/PartitionComboBox.cpp \
  188. src/models/pPartition.cpp
  189. linux* {
  190. QT *= dbus
  191. LIBS *= -ludev
  192. SOURCES *= src/models/pPartitionModel_linux.cpp
  193. }
  194. macx {
  195. LIBS *= "-framework DiskArbitration" "-framework CoreServices"
  196. OBJECTIVE_SOURCES *= src/models/pPartitionModel_mac.mm
  197. }
  198. win32 {
  199. SOURCES *= src/models/pPartitionModel_win.cpp
  200. }
  201. include( installs.pri )