Skip to content

Commit

Permalink
fix[conanv2] : add /* on conan options when generates conanfile.txt, …
Browse files Browse the repository at this point in the history
…only if not exist in packagedependencies.txt
  • Loading branch information
stefled committed Dec 1, 2023
1 parent 15ae477 commit 8c38cb9
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions packagedependencies-parser.pri
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,11 @@ for(depfile, packagedepsfiles) {
remakenConanOptions += $${pkg.name}:shared=$${sharedLinkMode}
}
else {
remakenConanOptions += $${pkg.name}/*:shared=$${sharedLinkMode}
equals(pkg.name, $$replace(pkg.name, "/*","")) {
remakenConanOptions += $${pkg.name}/*:shared=$${sharedLinkMode}
} else {
remakenConanOptions += $${pkg.name}:shared=$${sharedLinkMode}
}
}
}
conanOptions = $$split(pkg.toolOptions, $$LITERAL_HASH)
Expand All @@ -239,7 +243,11 @@ for(depfile, packagedepsfiles) {
remakenConanOptions += $${pkg.name}:$$replace(conanOption, "\"","")
}
else {
remakenConanOptions += $${pkg.name}/*:$$replace(conanOption, "\"","")
equals(pkg.name, $$replace(pkg.name, "/*","")) {
remakenConanOptions += $${pkg.name}/*:$$replace(conanOption, "\"","")
} else {
remakenConanOptions += $${pkg.name}:$$replace(conanOption, "\"","")
}
}
}
else {
Expand All @@ -248,7 +256,11 @@ for(depfile, packagedepsfiles) {
}
else {
conanOptionPkgOption = $$member(conanOptionInfo,0)
remakenConanOptions += $${conanOptionPrefix}/*:$$replace(conanOptionPkgOption, "\"","")
equals(conanOptionPrefix, $$replace(conanOptionPrefix, "/*","")) {
remakenConanOptions += $${conanOptionPrefix}/*:$$replace(conanOptionPkgOption, "\"","")
} else {
remakenConanOptions += $${conanOptionPrefix}:$$replace(conanOptionPkgOption, "\"","")
}
}
}
}
Expand Down

0 comments on commit 8c38cb9

Please sign in to comment.