Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
stefled committed Dec 18, 2023
2 parents d8628b7 + 885d399 commit 95796c4
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 13 deletions.
5 changes: 2 additions & 3 deletions install_dependencies.pri
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ defineReplace(aggregateIgnoreDepsFiles) {

IGNOREDEPFILE_CONTENT = $$aggregateIgnoreDepsFiles($${packageignoredepsfiles})
IGNOREPKGDEPFILENAME=packageignoreinstall.txt
!isEmpty(IGNOREDEPFILE_CONTENT) {
write_file($$_PRO_FILE_PWD_/$${REMAKEN_BUILD_RULES_FOLDER}/$${REMAKEN_FULL_PLATFORM}/$${IGNOREPKGDEPFILENAME}, IGNOREDEPFILE_CONTENT)
}
write_file($$_PRO_FILE_PWD_/$${REMAKEN_BUILD_RULES_FOLDER}/$${REMAKEN_FULL_PLATFORM}/$${IGNOREPKGDEPFILENAME}, IGNOREDEPFILE_CONTENT)
QMAKE_CLEAN += $$_PRO_FILE_PWD_/$${REMAKEN_BUILD_RULES_FOLDER}/$${REMAKEN_FULL_PLATFORM}/$${IGNOREPKGDEPFILENAME}

defined(PROJECTDEPLOYDIR,var) {
packageignore_files.path = $${PROJECTDEPLOYDIR}
Expand Down
37 changes: 27 additions & 10 deletions packagedependencies-parser.pri
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ contains(DEPENDENCIESCONFIG,recurse)|contains(DEPENDENCIESCONFIG,recursive) {
subDepsTree += $$member(subDepsList,2)
}
} else {
subDepsFilesList =
# fix search sub dependencies
#subDepsFilesList =
!contains(subDepsTree, $${subDepsList}) {
subDepsTree += $${subDepsList}
}
Expand Down Expand Up @@ -226,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 @@ -235,19 +240,27 @@ for(depfile, packagedepsfiles) {
conanOptionPrefix = $$take_first(conanOptionInfo)
isEmpty(conanOptionInfo) {
equals(CONAN_MAJOR_VERSION,1) {
remakenConanOptions += $${pkg.name}:$${conanOption}
remakenConanOptions += $${pkg.name}:$$replace(conanOption, "\"","")
}
else {
remakenConanOptions += $${pkg.name}/*:$${conanOption}
equals(pkg.name, $$replace(pkg.name, "/*","")) {
remakenConanOptions += $${pkg.name}/*:$$replace(conanOption, "\"","")
} else {
remakenConanOptions += $${pkg.name}:$$replace(conanOption, "\"","")
}
}
}
else {
equals(CONAN_MAJOR_VERSION,1) {
remakenConanOptions += $${conanOption}
}
else {
remakenConanOptions += $$replace(conanOption, "\"","")
}
else {
conanOptionPkgOption = $$member(conanOptionInfo,0)
remakenConanOptions += $${conanOptionPrefix}/*:$${conanOptionPkgOption}
equals(conanOptionPrefix, $$replace(conanOptionPrefix, "/*","")) {
remakenConanOptions += $${conanOptionPrefix}/*:$$replace(conanOptionPkgOption, "\"","")
} else {
remakenConanOptions += $${conanOptionPrefix}:$$replace(conanOptionPkgOption, "\"","")
}
}
}
}
Expand Down Expand Up @@ -410,7 +423,9 @@ for(depfile, packagedepsfiles) {
#create conanfile.txt
CONANFILECONTENT="[requires]"
for (dep,remakenConanDeps) {
CONANFILECONTENT+=$${dep}
!contains(CONANFILECONTENT,$${dep}) {
CONANFILECONTENT+=$${dep}
}
}
CONANFILECONTENT+=""
CONANFILECONTENT+="[generators]"
Expand All @@ -425,7 +440,9 @@ for(depfile, packagedepsfiles) {
CONANFILECONTENT+=""
CONANFILECONTENT+="[options]"
for (option,remakenConanOptions) {
CONANFILECONTENT+=$${option}
!contains(CONANFILECONTENT,$${option}) {
CONANFILECONTENT+=$${option}
}
}
write_file($${REMAKEN_CONAN_DEPS_OUTPUTDIR}/conanfile.txt, CONANFILECONTENT)
contains(CONFIG,c++11) {
Expand Down

0 comments on commit 95796c4

Please sign in to comment.