diff options
Diffstat (limited to 'python/builder.go')
-rw-r--r-- | python/builder.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/python/builder.go b/python/builder.go index b4ab20691..106649398 100644 --- a/python/builder.go +++ b/python/builder.go @@ -70,6 +70,17 @@ var ( CommandDeps: []string{"$mergeParCmd"}, }, "srcsZips", "launcher") + + precompile = pctx.AndroidStaticRule("precompilePython", blueprint.RuleParams{ + Command: `LD_LIBRARY_PATH="$ldLibraryPath" ` + + `PYTHONPATH=$stdlibZip/internal/stdlib ` + + `$launcher build/soong/python/scripts/precompile_python.py $in $out`, + CommandDeps: []string{ + "$stdlibZip", + "$launcher", + "build/soong/python/scripts/precompile_python.py", + }, + }, "stdlibZip", "launcher", "ldLibraryPath") ) func init() { |