Skip to content

Commit

Permalink
generalize references to exclusive builds
Browse files Browse the repository at this point in the history
exclusive_builds_post.prf (via default_post.prf) processes
debug_and_release into BUILDS, so .prfs which can rely on being
executed later (because they are loaded via CONFIG) can rely on BUILDS
and related variables.

Change-Id: I5677079ad5145bf493af17b4b60347208572fd21
Reviewed-by: Jake Petroules <[email protected]>
Reviewed-by: Oswald Buddenhagen <[email protected]>
  • Loading branch information
ossilator committed Jul 13, 2016
1 parent fc57a65 commit a42c9cf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions mkspecs/features/file_copies.prf
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
isEmpty(COPIES): return()
contains(TEMPLATE, .*subdirs): error("COPIES does not work with TEMPLATE=subdirs")

build_pass:build_all: \
debug_and_release:debug {
build_pass:build_all:!isEqual(BUILD_PASS, $$first(BUILDS)) {
# Avoid that multiple build passes race with each other.
# This will fail to copy anything if the user explicitly invokes
# only the non-primary build. This is unfixable, as at qmake time
Expand Down
2 changes: 1 addition & 1 deletion mkspecs/features/qt_docs_targets.prf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ contains(TEMPLATE, subdirs) {
for(inst, DOC_TARGETS): \
prepareRecursiveTarget($$inst)
} else {
debug_and_release:!build_pass {
!isEmpty(BUILDS):!build_pass {
sub = $$first(BUILDS)
for(inst, DOC_TARGETS) {
$${inst}.CONFIG = recursive
Expand Down
2 changes: 1 addition & 1 deletion mkspecs/features/resources.prf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ for(resource, RESOURCES) {

resource_file = $$RCC_DIR/qmake_$${resource}.qrc

!debug_and_release|build_pass {
isEmpty(BUILDS)|build_pass {
# Collection of files, generate qrc file
prefix = $$eval($${resource}.prefix)
isEmpty(prefix): \
Expand Down

0 comments on commit a42c9cf

Please sign in to comment.