Skip to content

Set up shared library targets.#2573

Merged
3405691582 merged 1 commit into
google:mainfrom
3405691582:509968291_2
May 18, 2026
Merged

Set up shared library targets.#2573
3405691582 merged 1 commit into
google:mainfrom
3405691582:509968291_2

Conversation

@3405691582
Copy link
Copy Markdown
Collaborator

Here we create Bazel cc_shared_library targets for the result, libbase, files, and fs libraries. These were determined to have the most usages across all targets.

Since these libraries have external dependencies, they must be resolved by dynamic linkage as well. This necessitates creating some targets to facilitate this. We put this at top level rather than creating new directory structure, since we might want to adjust how this looks.

We also do the needful to ensure these libraries are packaged. This will incur a slight bit of bloat, but we'll perform the migration soon enough that this should be temporary and possibly not even noticed.

@3405691582 3405691582 requested a review from Databean May 15, 2026 18:54
Comment thread base/cvd/cuttlefish/result/BUILD.bazel
Comment thread base/cvd/BUILD.bazel
@3405691582 3405691582 force-pushed the 509968291_2 branch 2 times, most recently from 48047e3 to c0fc73b Compare May 18, 2026 16:35
@3405691582 3405691582 added the kokoro:run Run e2e tests. label May 18, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:run Run e2e tests. label May 18, 2026
3405691582 added a commit to 3405691582/android-cuttlefish that referenced this pull request May 18, 2026
In google#2573 we set up some new targets to build shared libraries. This
commit migrates all binary targets with dependencies on
//cuttlefish/result, //libbase, //cuttlefish/common/libs/fs:fs, and
//cuttlefish/common/utils:files to use the shared library targets
instead.
3405691582 added a commit to 3405691582/android-cuttlefish that referenced this pull request May 18, 2026
In google#2573 we set up some new targets to build shared libraries. This
commit migrates all binary targets with dependencies on
//cuttlefish/result, //libbase, //cuttlefish/common/libs/fs:fs, and
//cuttlefish/common/utils:files to use the shared library targets
instead.
Here we create Bazel cc_shared_library targets for the result, libbase,
files, and fs libraries. These were determined to have the most usages
across all targets.

Since these libraries have external dependencies, they must be resolved
by dynamic linkage as well. This necessitates creating some targets to
facilitate this. We put this at top level rather than creating new
directory structure, since we might want to adjust how this looks.

We also do the needful to ensure these libraries are packaged. This
will incur a slight bit of bloat, but we'll perform the migration soon
enough that this should be temporary and possibly not even noticed.
@3405691582 3405691582 added the kokoro:run Run e2e tests. label May 18, 2026
@3405691582 3405691582 enabled auto-merge May 18, 2026 21:46
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:run Run e2e tests. label May 18, 2026
@3405691582 3405691582 added this pull request to the merge queue May 18, 2026
Merged via the queue into google:main with commit dbb670e May 18, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants