Skip to content

Commit

Permalink
allow to pass in options for macrogen via gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
thvitt committed Oct 2, 2019
1 parent ca48946 commit 44f2d2f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ task prepareMacrogenOptions {
project.ext.macrogenInputs = []
project.ext.macrogenExecutable = "$venv/bin/macrogen"

if (project.hasProperty('macrogenOptions'))
macrogenArgs.add(project.macrogenOptions)

if (project.rootProject != project) {
// project.macrogenArgs.add("--sigils=$buildDir/sigils.json")
// project.macrogenInputs.add("$buildDir/sigils.json")
Expand All @@ -58,6 +61,8 @@ task installMacrogen(type: Exec) {
executable "$venv/bin/pip"
workingDir projectDir
args "install", "-U", "-e", "."

outputs.file "$venv/bin/macrogen"
}

task runMacrogenComplete {
Expand Down Expand Up @@ -107,3 +112,5 @@ task runMacrogenReporting {
inputs.file("$buildDir/macrogen-graphs.zip")
outputs.dir("$macrogen_reports")
}

assemble.dependsOn(runMacrogenReporting)

0 comments on commit 44f2d2f

Please sign in to comment.