Skip to content

Commit

Permalink
fix: failed build the deepin-os-release on Qt 5.7.1
Browse files Browse the repository at this point in the history
Change-Id: I5c4810b2e29c5537375d013935e71b8c05a3ab21
  • Loading branch information
zccrs committed Jan 23, 2019
1 parent 8a68af5 commit 8bae865
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions src/dtk_qmake.prf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ DEFINES += Q_HOST_NAME=\\\"$$QMAKE_HOST.arch\\\" Q_HOST_$$upper($$QMAKE_HOST.arc
defineTest(buildQMAKEProject) {
pro_dir = $$1
pro_out_dir = $$shadowed($$pro_dir)
isEmpty(QMAKE_CD): QMAKE_CD=cd
pro_cmd_base = "$$QMAKE_CD $$system_quote($$system_path($$pro_out_dir)) &&"
mkpath($$pro_out_dir)
command = $$pro_cmd_base $$system_quote($$system_path($$QMAKE_QMAKE))
Expand All @@ -19,17 +20,27 @@ defineTest(buildQMAKEProject) {
}
command += -spec $$QMAKESPEC $$shell_quote($$pro_dir)
message($${command}:)
!equals(3, false): 1 = "( $$1 ) 2>&1"
output = $$system("$$command", lines, result)
!isEmpty(output): message($$output)
!equals(result, 0): return(false)
# Qt >= 5.8
greaterThan(QT_MINOR_VERSION, 7) {
!equals(3, false): 1 = "( $$1 ) 2>&1"
output = $$system("$$command", lines, result)
!isEmpty(output): message($$output)
!equals(result, 0): return(false)
} else {
system("$$command")|return(false)
}
load(configure)
command = $$pro_cmd_base $$QMAKE_MAKE
message($${command}:)
!equals(3, false): 1 = "( $$1 ) 2>&1"
output = $$system("$$command", lines, result)
!isEmpty(output): message($$output)
!equals(result, 0): return(false)
# Qt >= 5.8
greaterThan(QT_MINOR_VERSION, 7) {
!equals(3, false): 1 = "( $$1 ) 2>&1"
output = $$system("$$command", lines, result)
!isEmpty(output): message($$output)
!equals(result, 0): return(false)
} else {
system("$$command")|return(false)
}
return(true)
}

Expand Down

0 comments on commit 8bae865

Please sign in to comment.