@@ -13,31 +13,31 @@ tasks.register('conanProfile', Copy) {
1313 into " build/"
1414
1515 doLast {
16- def file = file(" build/conanprofile.txt" )
17- def content = file. text
18- content = content. replace(" <NDK_PATH>" , android. ndkDirectory. toString())
19- file. write(content)
16+ def file = file(" build/conanprofile.txt" )
17+ def content = file. text
18+ content = content. replace(" <NDK_PATH>" , android. ndkDirectory. toString())
19+ file. write(content)
2020 }
2121}
2222
2323tasks. register(' conanInstall' ) {
2424 dependsOn(conanProfile)
2525 doFirst {
26- [" armv7" , " armv8" , " x86" , " x86_64" ]. each { String arch ->
27- exec {
28- commandLine(
29- " conan" , " install" , " ." ,
30- " --output-folder=build/conan/" + arch,
31- " --build=missing" ,
32- " --profile:host=build/conanprofile.txt" ,
33- " -s" , " arch=" + arch,
34- " -s" , " build_type=Release" ,
35- " -s" , " &:build_type=RelWithDebInfo" ,
36- " -s" , " odrcore/*:build_type=RelWithDebInfo" ,
37- )
26+ [" armv7" , " armv8" , " x86" , " x86_64" ]. each { String arch ->
27+ exec {
28+ commandLine(
29+ " conan" , " install" , " ." ,
30+ " --output-folder=build/conan/" + arch,
31+ " --build=missing" ,
32+ " --profile:host=build/conanprofile.txt" ,
33+ " -s" , " arch=" + arch,
34+ " -s" , " build_type=Release" ,
35+ " -s" , " &:build_type=RelWithDebInfo" ,
36+ " -s" , " odrcore/*:build_type=RelWithDebInfo" ,
37+ )
38+ }
3839 }
3940 }
40- }
4141}
4242preBuild. dependsOn conanInstall
4343
0 commit comments