subin s v
11/22/2018, 6:56 AMLanderl Young
11/22/2018, 6:57 AMsubin s v
11/22/2018, 7:00 AMJaroslav
11/22/2018, 7:05 AMlipo
commandJaroslav
11/22/2018, 7:05 AMJaroslav
11/22/2018, 7:07 AMdef workDir = "$buildDir/lib/main/${buildType.toLowerCase()}"
// Get filenames we'll need next
def targets = ['ios_arm64', 'ios_x64']
def frameworks = files(targets.collect { target ->
"$workDir/$target/${libraryName}.framework/$libraryName"
})
// Merge two executables into fat lib
def output = file("$outputDir/${libraryName}.framework/$libraryName")
exec {
executable = 'lipo'
args = frameworks.files
args += ['-create', '-output', output]
}
subin s v
11/22/2018, 7:07 AMSam
11/22/2018, 4:39 PMsubin s v
11/23/2018, 1:18 PM