mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-29 08:22:00 +00:00
Fix multiple fbs code generation failure (#6365)
This commit is contained in:
committed by
GitHub
parent
82836a62be
commit
0168178a17
@@ -48,7 +48,11 @@ android {
|
|||||||
|
|
||||||
standardOutput = new ByteArrayOutputStream()
|
standardOutput = new ByteArrayOutputStream()
|
||||||
errorOutput = new ByteArrayOutputStream()
|
errorOutput = new ByteArrayOutputStream()
|
||||||
commandLine 'flatc', '-o', outputCppDir, '--cpp', "${fbsFiles.join(" ")}"
|
def commandLineArgs = ['flatc', '-o', outputCppDir, '--cpp']
|
||||||
|
fbsFiles.forEach{
|
||||||
|
commandLineArgs.add(it.path)
|
||||||
|
}
|
||||||
|
commandLine commandLineArgs
|
||||||
|
|
||||||
doFirst {
|
doFirst {
|
||||||
delete "$outputCppDir/"
|
delete "$outputCppDir/"
|
||||||
@@ -70,7 +74,11 @@ android {
|
|||||||
|
|
||||||
standardOutput = new ByteArrayOutputStream()
|
standardOutput = new ByteArrayOutputStream()
|
||||||
errorOutput = new ByteArrayOutputStream()
|
errorOutput = new ByteArrayOutputStream()
|
||||||
commandLine 'flatc', '-o', outputKotlinDir, '--kotlin', "${fbsFiles.join(" ")}"
|
def commandLineArgs = ['flatc', '-o', outputKotlinDir, '--kotlin']
|
||||||
|
fbsFiles.forEach{
|
||||||
|
commandLineArgs.add(it.path)
|
||||||
|
}
|
||||||
|
commandLine commandLineArgs
|
||||||
|
|
||||||
doFirst {
|
doFirst {
|
||||||
delete "$outputKotlinDir/"
|
delete "$outputKotlinDir/"
|
||||||
|
|||||||
Reference in New Issue
Block a user