pw_function: Define as cc_static_library

- Expose non-facade libraries as cc_static_library so they can be built
  on their own, following the new guidance at:
  https://pigweed.dev/pw_build_android/

Bug: 328503970
Test: presubmits in Android main pass
Change-Id: I651e89a09c166a0c2a7663498b12f3cf8110733c
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/199092
Reviewed-by: Matthew Sedam <matthewsedam@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
Pigweed-Auto-Submit: Carlos Chinchilla <cachinchilla@google.com>
Reviewed-by: Cindy Liu <hcindyl@google.com>
This commit is contained in:
Carlos Chinchilla 2024-03-26 22:39:14 +00:00 committed by CQ Bot Account
parent e0abef00c0
commit d6d27ec27a
7 changed files with 14 additions and 14 deletions

View File

@ -27,10 +27,14 @@ cc_library_static {
host_supported: true,
header_libs: [
"pw_chrono",
],
static_libs: [
"pw_function",
],
export_header_lib_headers: [
"pw_chrono",
],
export_static_lib_headers: [
"pw_function",
],
}

View File

@ -26,20 +26,20 @@ cc_library_static {
],
header_libs: [
"pw_assert",
"pw_function",
"pw_result",
"pw_toolchain",
],
export_header_lib_headers: [
"pw_assert",
"pw_function",
"pw_result",
"pw_toolchain",
],
whole_static_libs: [
"pw_function",
"pw_status",
],
export_static_lib_headers: [
"pw_function",
"pw_status",
],
export_include_dirs: [

View File

@ -16,7 +16,7 @@ package {
default_applicable_licenses: ["external_pigweed_license"],
}
cc_library_headers {
cc_library_static {
name: "pw_function",
cpp_std: "c++20",
vendor_available: true,

View File

@ -28,7 +28,6 @@ cc_library_static {
"fuchsia_sdk_lib_fit",
"fuchsia_sdk_lib_stdcompat",
"pw_assert",
"pw_function",
"pw_log",
"pw_polyfill",
"pw_preprocessor",
@ -38,7 +37,6 @@ cc_library_static {
],
export_header_lib_headers: [
"pw_assert",
"pw_function",
"pw_log",
"pw_preprocessor",
"pw_result",
@ -56,6 +54,7 @@ cc_library_static {
static_libs: [
"pw_bytes",
"pw_containers",
"pw_function",
"pw_status",
"pw_stream",
"pw_string",
@ -64,6 +63,7 @@ cc_library_static {
export_static_lib_headers: [
"pw_bytes",
"pw_containers",
"pw_function",
"pw_status",
"pw_stream",
"pw_varint",

View File

@ -114,7 +114,6 @@ cc_defaults {
"fuchsia_sdk_lib_fit",
"fuchsia_sdk_lib_stdcompat",
"pw_assert",
"pw_function",
"pw_log",
"pw_polyfill",
"pw_preprocessor",
@ -128,7 +127,6 @@ cc_defaults {
"fuchsia_sdk_lib_fit",
"fuchsia_sdk_lib_stdcompat",
"pw_assert",
"pw_function",
"pw_log",
"pw_polyfill",
"pw_preprocessor",
@ -141,6 +139,7 @@ cc_defaults {
static_libs: [
"pw_bytes",
"pw_containers",
"pw_function",
"pw_protobuf",
"pw_status",
"pw_stream",
@ -151,6 +150,7 @@ cc_defaults {
export_static_lib_headers: [
"pw_bytes",
"pw_containers",
"pw_function",
"pw_protobuf",
"pw_status",
"pw_stream",

View File

@ -20,18 +20,14 @@ cc_library_headers {
name: "pw_rpc_transport_rpc_transport",
cpp_std: "c++20",
export_include_dirs: ["public"],
header_libs: [
"pw_function",
],
export_header_lib_headers: [
"pw_function",
],
static_libs: [
"pw_bytes",
"pw_function",
"pw_status",
],
export_static_lib_headers: [
"pw_bytes",
"pw_function",
"pw_status",
],
host_supported: true,

View File

@ -26,7 +26,6 @@ cc_defaults {
header_libs: [
"pw_chrono",
"pw_thread_include_dirs",
"pw_function",
"pw_preprocessor",
],
export_header_lib_headers: [
@ -34,6 +33,7 @@ cc_defaults {
"pw_thread_include_dirs",
],
static_libs: [
"pw_function",
"pw_status",
],
srcs: [