platform_build_soong/bp2build
Usta (Tsering) Shrestha c4c07b12b6 reduce forest generation to be incremental
Previously, symlink forest generation involved removing the entire
symlink forest and recreating it from scratch. With this change,
a) symlinks which need not change are untouched,
b) symlinks pointing to the wrong location are fixed, and
c) symlinks which should no longer exist are removed.

On AOSP on my local machine, this reduces the symlink forest generation
step from 2.5s to 1.1s clean, and 0.6s when a single file is added to
a source directory.

Bug: 257528847
Test: m bp2build, touch `fakefile` under the forest, remove a file
from the source tree, rerun m bp2build. Manually verify the new forest
does not retain the link to the deleted source file, and that fakefile
no longer exists in the forest.

Change-Id: I481371ae487e9419af6a3a4370c552578b07d650
2023-02-07 06:23:43 +00:00
..
aar_conversion_test.go bp2build support .kt in android_library 2023-01-24 14:53:44 +00:00
Android.bp Bp2build support for multiple product configs 2023-01-05 12:49:14 -08:00
android_app_certificate_conversion_test.go export common bp2build testing functions 2022-08-01 14:49:31 -04:00
android_app_conversion_test.go bp2build kt for android_binary 2023-02-02 20:26:01 +00:00
androidbp_to_build_templates.go Handle nameless modules during bp2build conversion. 2022-09-14 09:32:17 -07:00
apex_conversion_test.go Remove apex_available tag in cc_library_static generated from stubs-providing lib 2023-01-03 21:44:07 +00:00
apex_key_conversion_test.go Introduce BazelStringOrLabelFromProp. 2022-10-20 14:57:37 +00:00
api_domain_conversion_test.go Move API providing modules from bp2build to api_bp2build workspace 2022-10-04 17:33:32 +00:00
bp2build.go Add a new CreateSoongInjectionDirFiles function 2023-01-11 03:21:00 +00:00
bp2build_product_config.go Add --config alias for musl host platform 2023-01-23 10:17:21 -08:00
bpf_conversion_test.go Add bp2build converter for bpf 2022-09-28 14:18:45 -07:00
build_conversion.go Bp2build support for multiple product configs 2023-01-05 12:49:14 -08:00
build_conversion_test.go Bp2build support for multiple product configs 2023-01-05 12:49:14 -08:00
bzl_conversion.go
bzl_conversion_test.go Create a new mode in soong_ui to generate API only BUILD files 2022-10-04 17:32:56 +00:00
cc_binary_conversion_test.go bp2build conversion for Sanitize.Integer_overflow 2022-12-29 21:21:23 +00:00
cc_library_conversion_test.go Rename API surface provided to mainline modules 2023-01-26 23:02:53 +00:00
cc_library_headers_conversion_test.go Add variant_prepend support for all the properties in bp2build 2023-01-04 11:19:50 -08:00
cc_library_shared_conversion_test.go bp2build conversion for Sanitize.Integer_overflow 2022-12-29 21:21:23 +00:00
cc_library_static_conversion_test.go Add musl defaults in bp2build 2023-01-11 18:43:20 +00:00
cc_object_conversion_test.go convert cc_object crt property in bp2build 2023-01-26 10:21:58 -05:00
cc_prebuilt_binary_conversion_test.go Support cc_prebuilt_binary building with Bazel 2022-10-06 19:39:09 +00:00
cc_prebuilt_library_conversion_test.go Support running bp2build tests in fixtures 2022-12-02 11:14:17 +00:00
cc_prebuilt_library_shared_test.go Rename prebuilt_library_* to cc_prebuilt_library_* 2022-10-20 14:51:55 +00:00
cc_prebuilt_library_static_test.go Rename prebuilt_library_* to cc_prebuilt_library_* 2022-10-20 14:51:55 +00:00
cc_prebuilt_object_conversion_test.go Add bp2build support for cc_prebuilt_object 2022-12-09 13:58:58 -08:00
cc_test_conversion_test.go Use //build/bazel/platforms/os:linux_glibc for osLinux 2022-12-20 15:29:31 -08:00
cc_yasm_conversion_test.go Exporting MakeBazelTarget() in testing.go 2022-09-01 16:47:58 +00:00
configurability.go Fix nondeterminism in bp2build 2023-01-30 21:26:57 +00:00
constants.go
conversion.go Export sanitizer vars for use in Bazel 2023-01-23 20:28:06 +00:00
conversion_test.go Export sanitizer vars for use in Bazel 2023-01-23 20:28:06 +00:00
droidstubs_conversion_test.go Create (API) bp2build converters for droidstubs 2022-12-28 23:58:52 +00:00
filegroup_conversion_test.go Fix a bug where deps were missing for converted proto_library 2022-09-15 22:18:48 -07:00
genrule_conversion_test.go Make cc_genrule.srcs configurable. 2022-10-19 12:35:26 -07:00
gensrcs_conversion_test.go export common bp2build testing functions 2022-08-01 14:49:31 -04:00
java_binary_host_conversion_test.go java_binary with kotlin sources 2023-01-09 20:09:37 +00:00
java_import_conversion_test.go Use //build/bazel/platforms/os:linux_glibc for osLinux 2022-12-20 15:29:31 -08:00
java_library_conversion_test.go arch variant support for libs property 2023-01-19 20:42:24 +00:00
java_library_host_conversion_test.go Bp2Build for libs property in java_library 2022-11-29 19:44:50 +00:00
java_plugin_conversion_test.go support libs for java_plugin -> * 2023-01-17 14:57:57 +00:00
java_proto_conversion_test.go Bp2Build for libs property in java_library 2022-11-29 19:44:50 +00:00
license_conversion_test.go Implement bp2build for the license module 2022-09-14 13:49:18 -07:00
license_kind_conversion_test.go Implement bp2build for the license_kind module 2022-09-14 13:49:27 -07:00
linker_config_conversion_test.go Export RunBp2BuildTestCaseSimple() in testing.go 2022-09-01 18:57:01 +00:00
metrics.go Merge "Delete empty entries for covertedModules in bp2build_metrics" 2023-01-27 02:02:39 +00:00
ndk_headers_conversion_test.go Move API providing modules from bp2build to api_bp2build workspace 2022-10-04 17:33:32 +00:00
ndk_library_conversion_test.go Move API providing modules from bp2build to api_bp2build workspace 2022-10-04 17:33:32 +00:00
package_conversion_test.go Implement bp2build for the package module 2022-09-14 13:49:27 -07:00
performance_test.go Bp2build support for multiple product configs 2023-01-05 12:49:14 -08:00
prebuilt_etc_conversion_test.go product_variables srcs in prebuilt_etc 2022-09-09 20:52:09 +00:00
python_binary_conversion_test.go Fix some issues in bp2build converter for python_binary_host. 2022-10-12 17:43:20 -07:00
python_library_conversion_test.go Export RunBp2BuildTestCaseSimple() in testing.go 2022-09-01 18:57:01 +00:00
sh_conversion_test.go Exporting MakeBazelTarget() in testing.go 2022-09-01 16:47:58 +00:00
soong_config_module_type_conversion_test.go Correct global excludes not always being excluded 2023-01-26 11:16:39 -05:00
symlink_forest.go reduce forest generation to be incremental 2023-02-07 06:23:43 +00:00
testing.go Correct global excludes not always being excluded 2023-01-26 11:16:39 -05:00