Last active
August 29, 2015 14:28
-
-
Save nico-izo/8460cdbf6f0b729ea226 to your computer and use it in GitHub Desktop.
qbs wtf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# output | |
$ qbs resolve -nf qbsbug.qbs profile:qt-5-4-ololo project.includeSomething:false | |
No build graph exists yet for this configuration. | |
Resolving project for configuration qt-5-4-ololo-debug | |
project.includeSomething is false but we are here | |
ERROR: /home/nico-izo/gitgames/qbsbug2/probemodule.qbs:13:2 Product dependency 'Qt.ololo' not found. | |
$ qbs resolve -nf qbsbug.qbs profile:qt-5-4-ololo project.includeSomething:true | |
No build graph exists yet for this configuration. | |
Resolving project for configuration qt-5-4-ololo-debug | |
project.includeSomething is true but we are here | |
ERROR: /home/nico-izo/gitgames/qbsbug2/probemodule.qbs:13:2 Product dependency 'Qt.ololo' not found. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import qbs.Probes | |
Product { | |
condition: { | |
if(project.includeSomething) | |
print("project.includeSomething == true") | |
else | |
print("project.includeSomething == false") | |
return project.includeSomething | |
} | |
Depends { | |
name: { | |
print("project.includeSomething is ", project.includeSomething, " but we are here") | |
return "Qt.ololo" | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import qbs.base 1.0 | |
Project { | |
name: "test_probe_2" | |
property bool includeSomething: true | |
references: [ | |
"probemodule.qbs" | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment