Skip to content

Commit

Permalink
pw_build: Cover more modules with Soong
Browse files Browse the repository at this point in the history
Adds Android blueprint files for the following modules:
- pw_bytes
- pw_preprocessor
- pw_polyfill
- pw_span
- pw_tokenizer
- pw_varint

Change-Id: Ib35c0034fb15d9843a43283c11a3411352ef5c61
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/98268
Pigweed-Auto-Submit: Karthik Bharadwaj <[email protected]>
Reviewed-by: Wyatt Hepler <[email protected]>
Commit-Queue: Karthik Bharadwaj <[email protected]>
  • Loading branch information
karthik bharadwaj authored and CQ Bot Account committed Jun 24, 2022
1 parent 1c974a1 commit fa778ef
Show file tree
Hide file tree
Showing 6 changed files with 132 additions and 0 deletions.
19 changes: 19 additions & 0 deletions pw_bytes/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// 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.

cc_library_headers {
name: "pw_bytes_headers",
vendor_available: true,
export_include_dirs: ["public"],
}
19 changes: 19 additions & 0 deletions pw_polyfill/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// 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.

cc_library_headers {
name: "pw_polyfill_headers",
vendor_available: true,
export_include_dirs: ["public"],
}
19 changes: 19 additions & 0 deletions pw_preprocessor/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// 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.

cc_library_headers {
name: "pw_preprocessor_headers",
vendor_available: true,
export_include_dirs: ["public"],
}
20 changes: 20 additions & 0 deletions pw_span/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// 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.

cc_library_headers {
name: "pw_span_headers",
vendor_available: true,
cpp_std: "c++20",
export_include_dirs: ["public"],
}
30 changes: 30 additions & 0 deletions pw_tokenizer/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// 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.

cc_library_static {
name: "pw_detokenizer",
cpp_std: "c++20",
vendor_available: true,
export_include_dirs: ["public"],
srcs: [
"detokenize.cc",
"decode.cc",
],
header_libs: [
"pw_bytes_headers",
"pw_polyfill_headers",
"pw_preprocessor_headers",
],
static_libs: ["pw_varint"],
}
25 changes: 25 additions & 0 deletions pw_varint/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.

cc_library_static {
name: "pw_varint",
cpp_std: "c++20",
vendor_available: true,
export_include_dirs: ["public"],
header_libs: [
"pw_preprocessor_headers",
"pw_polyfill_headers",
],
srcs: ["varint.cc"],
}

0 comments on commit fa778ef

Please sign in to comment.