fresh-bundle-check.pri 886 B

1234567891011121314151617181920212223
  1. win32_crossbuild {
  2. exists( "$(QT_WIN32_PATH)/lib/*fresh*" ):CONFIG *= fresh
  3. } else {
  4. exists( "$$[QT_INSTALL_LIBS]/*fresh*" ):CONFIG *= fresh
  5. }
  6. fresh {
  7. !build_pass:message( "Using system fresh library." )
  8. } else {
  9. isEmpty( FRESH_BUNDLE_PATH ) {
  10. !build_pass:error( "FRESH_BUNDLE_PATH is empty. Please declare this variable before include this file" )
  11. }
  12. exists( $${FRESH_BUNDLE_PATH}/fresh.pro ) {
  13. SUBDIRS *= $${FRESH_BUNDLE_PATH}/fresh.pro
  14. !build_pass:message( "Using bundled fresh library (1)." )
  15. } else:exists( $${_PRO_FILE_PWD_}/$${FRESH_BUNDLE_PATH}/fresh.pro ) {
  16. SUBDIRS *= $${_PRO_FILE_PWD_}/$${FRESH_BUNDLE_PATH}/fresh.pro
  17. !build_pass:message( "Using bundled fresh library (2)." )
  18. } else {
  19. !build_pass:error( "Fresh library not found - Execute: git submodule init && git submodule update." )
  20. }
  21. }