@@ -46,6 +46,12 @@ abstract class ConanInstallTask : Exec() {
46
46
@get:Input
47
47
abstract val conanExecutable: Property <String >
48
48
49
+ @get:Input
50
+ abstract val deployer: Property <String ?>
51
+
52
+ @get:Input
53
+ abstract val deployerFolder: Property <String ?>
54
+
49
55
init {
50
56
profile.convention(" default" )
51
57
buildProfile.convention(" default" )
@@ -60,15 +66,21 @@ abstract class ConanInstallTask : Exec() {
60
66
val conanToolchainFile: Provider <RegularFile > = arch.map { project.layout.buildDirectory.get().file(" conan/$it /conan_toolchain.cmake" ) }
61
67
62
68
override fun exec () {
63
- commandLine (
69
+ val args = mutableListOf (
64
70
conanExecutable.get(),
65
71
" install" , conanfile.get(),
66
- " --output-folder=" + outputDirectory.get(),
72
+ " --output-folder=${ outputDirectory.get()} " ,
67
73
" --build=missing" ,
68
- " --profile:host=" + profile.get(),
69
- " --profile:build=" + buildProfile.get(),
70
- " --settings:host" , " arch=" + arch.get(),
74
+ " --profile:host=${ profile.get()} " ,
75
+ " --profile:build=${ buildProfile.get()} " ,
76
+ " --settings:host" , " arch=${ arch.get()} "
71
77
)
78
+
79
+ deployer.getOrNull()?.let { args.add(" --deployer=$it " ) }
80
+ deployerFolder.getOrNull()?.let { args.add(" --deployer-folder=$it " ) }
81
+
82
+ commandLine(args)
83
+
72
84
super .exec()
73
85
74
86
// conan install creates toolchain in one of two places:
0 commit comments