Skip to content

Instantly share code, notes, and snippets.

@nico-izo
Last active August 29, 2015 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nico-izo/8460cdbf6f0b729ea226 to your computer and use it in GitHub Desktop.
Save nico-izo/8460cdbf6f0b729ea226 to your computer and use it in GitHub Desktop.
qbs wtf
# 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.
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"
}
}
}
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