Skip to content

Commit

Permalink
build: Add Android.bp for pw_rpc
Browse files Browse the repository at this point in the history
Also update/add all required dependencies

Change-Id: I2239fcb1226cb1d2a9213b55a8003e9271c4dedd
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/115890
Reviewed-by: Anthony Stange <[email protected]>
Reviewed-by: Wyatt Hepler <[email protected]>
Commit-Queue: Victor Berchet <[email protected]>
  • Loading branch information
Victor Berchet authored and CQ Bot Account committed Oct 28, 2022
1 parent 567b398 commit 8aac1c7
Show file tree
Hide file tree
Showing 24 changed files with 618 additions and 18 deletions.
25 changes: 25 additions & 0 deletions pw_assert/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Copyright 2022 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_headers {
name: "pw_assert_headers",
cpp_std: "c++2a",
vendor_available: true,
export_include_dirs: ["public"],
host_supported: true,
}
29 changes: 29 additions & 0 deletions pw_assert_log/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// Copyright 2022 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_headers {
name: "pw_assert_log_headers",
cpp_std: "c++2a",
vendor_available: true,
export_include_dirs: [
"assert_backend_public_overrides",
"check_backend_public_overrides",
"public",
],
host_supported: true,
}
12 changes: 10 additions & 2 deletions pw_bytes/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,19 @@
// License for the specific language governing permissions and limitations under
// the License.

cc_library_headers {
name: "pw_bytes_headers",
package {
default_applicable_licenses: ["external_pigweed_license"],
}

cc_library_static {
name: "pw_bytes",
vendor_available: true,
export_include_dirs: ["public"],
header_libs: [
"pw_span_headers",
],
host_supported: true,
srcs: [
"byte_builder.cc"
]
}
35 changes: 35 additions & 0 deletions pw_containers/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// Copyright 2022 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_containers",
cpp_std: "c++2a",
vendor_available: true,
export_include_dirs: ["public"],
header_libs: [
"pw_assert_headers",
"pw_assert_log_headers",
"pw_log_headers",
"pw_log_null_headers",
"pw_preprocessor_headers",
],
host_supported: true,
srcs: [
"intrusive_list.cc",
],
}
27 changes: 27 additions & 0 deletions pw_function/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Copyright 2022 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_headers {
name: "pw_function_headers",
cpp_std: "c++2a",
vendor_available: true,
export_include_dirs: [
"public",
],
host_supported: true,
}
18 changes: 9 additions & 9 deletions pw_log/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
// License for the specific language governing permissions and limitations under
// the License.

cc_library {
name: "libpw_log",
vendor_available: true,
package {
default_applicable_licenses: ["external_pigweed_license"],
}

cc_library_headers {
name: "pw_log_headers",
cpp_std: "c++2a",
export_include_dirs: [
"public",
],
header_libs: [
"pw_span_headers",
],
vendor_available: true,
export_include_dirs: ["public"],
host_supported: true,
}

android_library {
Expand Down
12 changes: 8 additions & 4 deletions pw_log_android/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
// License for the specific language governing permissions and limitations under
// the License.

package {
default_applicable_licenses: ["external_pigweed_license"],
}

cc_library {
name: "libpw_log_android",
vendor_available: true,
Expand All @@ -20,10 +24,10 @@ cc_library {
"public",
"public_overrides",
],
export_static_lib_headers: [
"libpw_log",
export_header_lib_headers: [
"pw_log_headers",
],
static_libs: [
"libpw_log",
header_libs: [
"pw_log_headers",
],
}
28 changes: 28 additions & 0 deletions pw_log_null/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// Copyright 2022 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_headers {
name: "pw_log_null_headers",
cpp_std: "c++2a",
vendor_available: true,
export_include_dirs: [
"public",
"public_overrides",
],
host_supported: true,
}
5 changes: 5 additions & 0 deletions pw_polyfill/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@
// License for the specific language governing permissions and limitations under
// the License.

package {
default_applicable_licenses: ["external_pigweed_license"],
}

cc_library_headers {
name: "pw_polyfill_headers",
vendor_available: true,
export_include_dirs: ["public"],
host_supported: true,
}
5 changes: 5 additions & 0 deletions pw_preprocessor/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@
// License for the specific language governing permissions and limitations under
// the License.

package {
default_applicable_licenses: ["external_pigweed_license"],
}

cc_library_headers {
name: "pw_preprocessor_headers",
vendor_available: true,
export_include_dirs: ["public"],
host_supported: true,
}
53 changes: 53 additions & 0 deletions pw_protobuf/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
// Copyright 2022 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_protobuf",
vendor_available: true,
export_include_dirs: ["public"],
header_libs: [
"fuschia_sdk_lib_fit",
"fuschia_sdk_lib_stdcompat",
"pw_assert_headers",
"pw_assert_log_headers",
"pw_function_headers",
"pw_log_headers",
"pw_log_null_headers",
"pw_polyfill_headers",
"pw_preprocessor_headers",
"pw_result_headers",
"pw_span_headers",
],
host_supported: true,
srcs: [
"decoder.cc",
"encoder.cc",
"find.cc",
"map_utils.cc",
"message.cc",
"stream_decoder.cc",
],
static_libs: [
"pw_bytes",
"pw_containers",
"pw_status",
"pw_stream",
"pw_string",
"pw_varint",
],
}
27 changes: 27 additions & 0 deletions pw_result/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Copyright 2022 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_headers {
name: "pw_result_headers",
cpp_std: "c++2a",
vendor_available: true,
export_include_dirs: [
"public",
],
host_supported: true,
}
Loading

0 comments on commit 8aac1c7

Please sign in to comment.