-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathfresh-bundle-check.pri
More file actions
23 lines (21 loc) · 886 Bytes
/
fresh-bundle-check.pri
File metadata and controls
23 lines (21 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
win32_crossbuild {
exists( "$(QT_WIN32_PATH)/lib/*fresh*" ):CONFIG *= fresh
} else {
exists( "$$[QT_INSTALL_LIBS]/*fresh*" ):CONFIG *= fresh
}
fresh {
!build_pass:message( "Using system fresh library." )
} else {
isEmpty( FRESH_BUNDLE_PATH ) {
!build_pass:error( "FRESH_BUNDLE_PATH is empty. Please declare this variable before include this file" )
}
exists( $${FRESH_BUNDLE_PATH}/fresh.pro ) {
SUBDIRS *= $${FRESH_BUNDLE_PATH}/fresh.pro
!build_pass:message( "Using bundled fresh library (1)." )
} else:exists( $${_PRO_FILE_PWD_}/$${FRESH_BUNDLE_PATH}/fresh.pro ) {
SUBDIRS *= $${_PRO_FILE_PWD_}/$${FRESH_BUNDLE_PATH}/fresh.pro
!build_pass:message( "Using bundled fresh library (2)." )
} else {
!build_pass:error( "Fresh library not found - Execute: git submodule init && git submodule update." )
}
}