Name Description Size
.style.yapf 30
gn_ast.py Helper script to use GN's JSON interface to make changes. AST implementation details: https://gn.googlesource.com/gn/+/refs/heads/main/src/gn/parse_tree.cc To dump an AST: gn format --dump-tree=json BUILD.gn > foo.json 11208
gn_editor.py 17741
jni_refactor.py Refactors BUILD.gn files for our Annotation Processor -> .srcjar migration. 1) Finds all generate_jni() targets 2) Finds all android_library() targets with that use ":jni_processor" 3) Compares lists of sources between them 4) Removes the annotation_processor_deps entry 5) Adds the generate_jni target as a srcjar_dep 6) Updates visibility of generate_jni to allow the dep This script has already done its job, but is left as an example of using gn_ast. 5352
json_gn_editor.py Helper script to use GN's JSON interface to make changes. 24329
json_gn_editor_test.py \ android_library("target_name") { deps =[":local_dep"]} #shouldn't change 3859
README.md # GN AST 597
utils.py 1179