44cb78c988
Introducing fdo_profile module type to reimplement the afdo support in cc moduels. This change allows the feature to be compatible with Bazel migration. How it works: PreDepsMutators: * BeginMutator: If non-static cc modules sets afdo prop, search and add corresponding fdo_profile module as a dep with fdoProfileTag * fdoProfileMutator: * If in fdo_profile module, set FdoProfileProvider with full path to profile * If in cc module, read FdoProfileProvider from dep with fdoProfileTag and set FdoProfileInfo.Path to FdoProfilePath field PostDepsMutators: * afdoDepsMutator: If a module has FdoProfilePath set, walk to its static deps and set itself to the deps' AfdoRdeps * afdoMutator: If a static dep has AfdoRDeps set, create afdo variant. Ignore-AOSP-First: Other CLs in the same topic are internal-only Test: go test Bug: b/267229065 Change-Id: I687d798a02d9743c92804fea36fb4ae3a7a0e5e3 Merged-In: I687d798a02d9743c92804fea36fb4ae3a7a0e5e3
116 lines
2.4 KiB
Text
116 lines
2.4 KiB
Text
package {
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
}
|
|
|
|
bootstrap_go_package {
|
|
name: "soong-cc",
|
|
pkgPath: "android/soong/cc",
|
|
deps: [
|
|
"blueprint",
|
|
"blueprint-pathtools",
|
|
"soong",
|
|
"soong-android",
|
|
"soong-bazel",
|
|
"soong-cc-config",
|
|
"soong-etc",
|
|
"soong-fuzz",
|
|
"soong-genrule",
|
|
"soong-multitree",
|
|
"soong-snapshot",
|
|
"soong-tradefed",
|
|
],
|
|
srcs: [
|
|
"afdo.go",
|
|
"fdo_profile.go",
|
|
|
|
"androidmk.go",
|
|
"api_level.go",
|
|
"bp2build.go",
|
|
"builder.go",
|
|
"cc.go",
|
|
"ccdeps.go",
|
|
"check.go",
|
|
"coverage.go",
|
|
"gen.go",
|
|
"image.go",
|
|
"linkable.go",
|
|
"lto.go",
|
|
"makevars.go",
|
|
"pgo.go",
|
|
"prebuilt.go",
|
|
"proto.go",
|
|
"rs.go",
|
|
"sanitize.go",
|
|
"sabi.go",
|
|
"sdk.go",
|
|
"snapshot_prebuilt.go",
|
|
"snapshot_utils.go",
|
|
"stl.go",
|
|
"strip.go",
|
|
"sysprop.go",
|
|
"tidy.go",
|
|
"util.go",
|
|
"vendor_snapshot.go",
|
|
"vndk.go",
|
|
"vndk_prebuilt.go",
|
|
|
|
"cmakelists.go",
|
|
"compdb.go",
|
|
"compiler.go",
|
|
"installer.go",
|
|
"linker.go",
|
|
|
|
"binary.go",
|
|
"binary_sdk_member.go",
|
|
"fuzz.go",
|
|
"image_sdk_traits.go",
|
|
"library.go",
|
|
"library_headers.go",
|
|
"library_sdk_member.go",
|
|
"library_stub.go",
|
|
"native_bridge_sdk_trait.go",
|
|
"object.go",
|
|
"test.go",
|
|
|
|
"ndk_abi.go",
|
|
"ndk_headers.go",
|
|
"ndk_library.go",
|
|
"ndk_prebuilt.go",
|
|
"ndk_sysroot.go",
|
|
|
|
"llndk_library.go",
|
|
|
|
"kernel_headers.go",
|
|
|
|
"genrule.go",
|
|
|
|
"vendor_public_library.go",
|
|
|
|
"testing.go",
|
|
|
|
"stub_library.go",
|
|
],
|
|
testSrcs: [
|
|
"afdo_test.go",
|
|
"binary_test.go",
|
|
"cc_test.go",
|
|
"compiler_test.go",
|
|
"gen_test.go",
|
|
"genrule_test.go",
|
|
"library_headers_test.go",
|
|
"library_stub_test.go",
|
|
"library_test.go",
|
|
"lto_test.go",
|
|
"ndk_test.go",
|
|
"object_test.go",
|
|
"prebuilt_test.go",
|
|
"proto_test.go",
|
|
"sanitize_test.go",
|
|
"sdk_test.go",
|
|
"test_data_test.go",
|
|
"tidy_test.go",
|
|
"vendor_public_library_test.go",
|
|
"vendor_snapshot_test.go",
|
|
],
|
|
pluginFor: ["soong_build"],
|
|
}
|