Skip to content

Commit

Permalink
enable/disable config tests by qmake parameters or .qmake.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Sep 11, 2013
1 parent b2b6444 commit 53fdd66
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion root.pri
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ cache(BUILD_DIR, set, BUILD_DIR)
cache(SOURCE_ROOT, set, SOURCE_ROOT)
cache(mkspecs_cached, set, mkspecs_build)

!CONFIG(no_config_tests) {
#config.tests
!isEmpty(EssentialDepends) {
for(d, EssentialDepends) {
Expand All @@ -65,5 +66,11 @@ cache(mkspecs_cached, set, mkspecs_build)
}

!isEmpty(EssentialDepends)|!isEmpty(OptionalDepends) {
message("To recheck the dependencies, delete .qmake.cache or run qmake with argument 'CONFIG+=recheck'")
message("To recheck the dependencies, delete '.qmake.cache' in the root of build dir, run qmake with argument 'CONFIG+=recheck' or '-config recheck'")
}
}

message("To disable config tests, create '.qmake.conf' in the root source dir, add 'CONFIG += no_config_tests'(Qt5)")
message("Or pass 'CONFIG += no_config_tests' or '-config no_config_tests' to qmake")
message("To manually set a config test result to true, disable config tests and pass 'CONFIG += config_name' to qmake")
message("Or add 'CONFIG += config_name' in '.qmake.config'(Qt5):")

0 comments on commit 53fdd66

Please sign in to comment.