Skip to content

Commit

Permalink
pw_bluetooth_hci: Add Android.bp
Browse files Browse the repository at this point in the history
Fixup pw_bytes Android.bp to follow latest best practices to export it's
deps headers.

Test: Build in android tree
Change-Id: I5c52b5d3e3f599466e99c7b763fc190eb84cdbf3
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/245448
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Pigweed-Auto-Submit: Austin Foxley <afoxley@google.com>
Reviewed-by: Taylor Cramer <cramertj@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Docs-Not-Needed: Austin Foxley <afoxley@google.com>
  • Loading branch information
afoxley authored and CQ Bot Account committed Oct 30, 2024
1 parent 3824b3a commit 9ee6af1
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 2 deletions.
52 changes: 52 additions & 0 deletions pw_bluetooth_hci/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
// Copyright 2024 The Pigweed Authors
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// License for the specific language governing permissions and limitations under
// the License.

package {
default_applicable_licenses: ["external_pigweed_license"],
}

cc_library_static {
name: "pw_bluetooth_hci",
cpp_std: "c++20",
export_include_dirs: ["public"],
vendor_available: true,
host_supported: true,
defaults: [
"pw_android_common_backends",
],
header_libs: [
"pw_assert",
],
export_header_lib_headers: [
"pw_assert",
],
whole_static_libs: [
"pw_bytes",
"pw_function",
"pw_result",
"pw_span",
"pw_status",
],
export_static_lib_headers: [
"pw_bytes",
"pw_function",
"pw_result",
"pw_span",
"pw_status",
],
srcs: [
"packet.cc",
"uart_transport.cc"
],
}
10 changes: 8 additions & 2 deletions pw_bytes/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,32 @@ cc_library_static {
export_include_dirs: ["public"],
header_libs: [
"fuchsia_sdk_lib_stdcompat",
"pw_assert",
],
export_header_lib_headers: [
"fuchsia_sdk_lib_stdcompat",
"pw_assert",
],
host_supported: true,
srcs: [
"alignment.cc",
"alignment.cc",
// Errors with
// "no member named 'contiguous_iterator_tag' in namespace 'std'"
// Updating libc++ will fix this.
// "byte_builder.cc",
],
static_libs: [
whole_static_libs: [
"pw_containers",
"pw_polyfill",
"pw_preprocessor",
"pw_span",
"pw_status",
],
export_static_lib_headers: [
"pw_containers",
"pw_polyfill",
"pw_preprocessor",
"pw_span",
"pw_status",
],
}

0 comments on commit 9ee6af1

Please sign in to comment.