qmake-extensions.pri 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. ###########################################################################################
  2. ## Created using Monkey Studio IDE v1.9.0.1 (1.9.0.1)
  3. ##
  4. ## Author : Filipe Azevedo aka Nox P@sNox <pasnox@gmail.com>
  5. ## Project : qmake-extensions.pri
  6. ## FileName : qmake-extensions.pri
  7. ## Date : 2012-07-28T13:13:40
  8. ## License : LGPL3
  9. ## Comment : Creating using Monkey Studio RAD
  10. ## Home Page : https://github.com/pasnox/qmake-extensions
  11. ##
  12. ## This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
  13. ## WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  14. ##
  15. ###########################################################################################
  16. Q_HOST_OS = $${QMAKE_HOST.os}
  17. Q_LOWER_HOST_OS = $$lower( $${Q_HOST_OS} )
  18. win32 {
  19. !isEqual( Q_LOWER_HOST_OS, "windows" ) {
  20. # we are cross building for windows
  21. CONFIG *= cb_win32
  22. }
  23. }
  24. macx {
  25. !isEqual( Q_LOWER_HOST_OS, "darwin" ) {
  26. # we are cross building for mac os x
  27. CONFIG *= cb_mac
  28. }
  29. }
  30. # the build target os
  31. Q_TARGET = $${Q_HOST_OS}
  32. # the build target arch
  33. Q_ARCH = $${QT_ARCH}
  34. cb_win32 {
  35. Q_TARGET = Windows
  36. }
  37. cb_mac {
  38. Q_TARGET = Darwin
  39. }
  40. Q_TARGET_ARCH = "$${Q_TARGET}-$${Q_ARCH}"
  41. # Some useful variables that can't be easily added in variable values directly
  42. Q_NULL =
  43. Q_BACK_SLASH = "\\"
  44. Q_SLASH = "/"
  45. Q_QUOTE = "\""
  46. Q_DOLLAR = "\\$"
  47. Q_OPENING_BRACE = "\\{"
  48. Q_CLOSING_BRACE = "\\}"
  49. # include functions
  50. isEmpty( translations_pass ) {
  51. include( $${PWD}/functions.pri )
  52. } else {
  53. include( $${PWD}/fake-functions.pri )
  54. }