summaryrefslogtreecommitdiff
path: root/build_kzip.bash
AgeCommit message (Collapse)Author
2021-05-05Prepare kzip script to support superproject sha as an environment variableBrian Egizi
Bug: b/149248752 Change-Id: I17a640c66c8f4a37cc0c55b2d0a23d438c032974
2021-03-08Workaround for b/182183061: generate corpus-specific rule fileSasha Smundak
Bug: 182183061 Test: run build_kzip.bash, verify Go compilation units have corpus set Change-Id: I26e034eb9bbb8fbb3902404ce72f7e223b9a5972
2021-02-16Limit the number of the Java source files in a single compilation unitSasha Smundak
KYTHE_JAVA_SOURCE_BATCH_SIZE environment variable controls this setting. The limit is 1000 if this variable is not set. Fixes: 179932118 Test: run prebuilts/build-tools/build-prebuilts.sh, use it to build kzips, check Change-Id: I9ad57dfd1d2c2dce5cff755b1bd61cf933420bd3
2020-02-25In kzip files, compilation unit paths should be relative to top.Sasha Smundak
Fixes inter-module cross references. Bug: 137798757 Test: build kzips, verify paths Change-Id: I5cf64972ae61b869c96aafea5de0a48303d9af83
2020-01-22Export KYTHE_KZIP_ENCODING.Sasha Smundak
Bug: 146224091 Test: manual Change-Id: I998a51565419b86a9f183c0f3228ce09d7b035c0
2020-01-16Build kzip for Go files in build/blueprint directory.Sasha Smundak
Bug: 137798757 Test: manual Change-Id: If953425c80c60a64ebd6d50dddbac858ef091275
2020-01-15Save compilation units in protobuf format.Sasha Smundak
Bug: 146224091 Test: manual Change-Id: I7a856bab13f54c78efa0061421c3fcb9341bc6e7
2020-01-02Use absolute path for output.Sasha Smundak
Test: manual Bug: 137798757 Change-Id: If2e9c31e1ff523914f5f2cecf8975e1da91c03a7
2019-12-23Run extractor for Go files in build/soong directorySasha Smundak
Bug: 137798757 Test: run cd build/soong && ../../prebuilts/build-tools/linux-x86/bin/go_extractor --goroot=$PWD/../../prebuilts/go/linux-x86 --rules=vnames.go.json --canonicalize_package_corpus --output $OUT_DIR/soong/golang.kzip ./... Change-Id: Ib1edde4bf36e6b0683f49da0986f243690c81d6b
2019-09-27Pass filename mappings to C++ and Java extractors.Sasha Smundak
Android builds by default put artifacts into out/ subdirectory of the source tree, causing the extractor to record their names as relative. The indexer considers such files as sources, which is wrong. Fortunately, the extractor can be fed a set of filename rewriting rules (see build/tools/vnames.json). Also, undo previous unsuccessful attempt use to absolute path for the output directory to distinguish between source code and artifacts. Bug: 141385476 Test: run the build, inspect compilation units of the kzip file Change-Id: I89ec3aed8fd14f43ea6e0b226d54f643346f6125
2019-09-26Name the resulting file $BUILD_NUMBER.kzip, drop revision.txtSasha Smundak
Bug: 137977523 Test: manual Change-Id: Ifb02f033baaf6ee1668ccaa56b59edd05dce078a
2019-09-24Build output directory should be an absolute path.Sasha Smundak
Bug: 141385476 Test: manual Change-Id: I969c761571dca6949204a8aa87a0b52ba98761c2
2019-09-24Generate revision.txt file containing unique ID.Sasha Smundak
Bug: 137977523 Test: manual Change-Id: Ib1fbf6a4305bd843ace203e3f62a511fbdb168a1
2019-08-15Handle the case when OUT_DIR is not set.Sasha Smundak
Bug: 137977523 Test: manual Change-Id: I6a4bcc5099223f28bce72bf10004c01327598fc7
2019-08-13The script to generate input for the cross-referencing pipeline.Sasha Smundak
Bug: 137977523 Test: manual Change-Id: I80faee8db12f0d8e85a09aa9d96fbfc04af19bf8