Files
picar/car/build.gradle
Michael Pivato 7777d1b73f Merge branch 'windows_fixes' into 'master'
Disable windows swift generation

See merge request vato007/picar!2
2020-05-19 09:16:28 +00:00

28 lines
557 B
Groovy

configurations {
python {
canBeResolved = true
canBeConsumed = false
}
}
dependencies {
python project(path: ':protobuf', configuration: 'python')
}
task copyPythonCode(type: Copy, dependsOn: configurations.python){
// Copy python protobuf code from proto project.
from zipTree(configurations.python.asPath)
into 'src'
}
task build(type: Exec, dependsOn: copyPythonCode) {
executable 'python3'
args 'setup.py', 'bdist_wheel'
}
task clean {
doLast {
delete 'dist'
delete 'build'
}
}