aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkarthik bharadwaj <karthikmb@google.com>2022-06-24 21:16:32 +0000
committerCQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-06-24 21:16:32 +0000
commitfa778efaf7764ce4dcde487328358606d07b4b08 (patch)
treecc93e3c1a6f585eede382865facdae6e730770d0
parent1c974a121a9c7eb0694407ba5aae13fbe410bbf5 (diff)
downloadpigweed-fa778efaf7764ce4dcde487328358606d07b4b08.tar.gz
pw_build: Cover more modules with Soong
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 <karthikmb@google.com> Reviewed-by: Wyatt Hepler <hepler@google.com> Commit-Queue: Karthik Bharadwaj <karthikmb@google.com>
-rw-r--r--pw_bytes/Android.bp19
-rw-r--r--pw_polyfill/Android.bp19
-rw-r--r--pw_preprocessor/Android.bp19
-rw-r--r--pw_span/Android.bp20
-rw-r--r--pw_tokenizer/Android.bp30
-rw-r--r--pw_varint/Android.bp25
6 files changed, 132 insertions, 0 deletions
diff --git a/pw_bytes/Android.bp b/pw_bytes/Android.bp
new file mode 100644
index 000000000..f0d366dbf
--- /dev/null
+++ b/pw_bytes/Android.bp
@@ -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"],
+}
diff --git a/pw_polyfill/Android.bp b/pw_polyfill/Android.bp
new file mode 100644
index 000000000..59d8f2980
--- /dev/null
+++ b/pw_polyfill/Android.bp
@@ -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"],
+}
diff --git a/pw_preprocessor/Android.bp b/pw_preprocessor/Android.bp
new file mode 100644
index 000000000..f1dca27e3
--- /dev/null
+++ b/pw_preprocessor/Android.bp
@@ -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"],
+}
diff --git a/pw_span/Android.bp b/pw_span/Android.bp
new file mode 100644
index 000000000..0f70ca175
--- /dev/null
+++ b/pw_span/Android.bp
@@ -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"],
+}
diff --git a/pw_tokenizer/Android.bp b/pw_tokenizer/Android.bp
new file mode 100644
index 000000000..59fcbb904
--- /dev/null
+++ b/pw_tokenizer/Android.bp
@@ -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"],
+}
diff --git a/pw_varint/Android.bp b/pw_varint/Android.bp
new file mode 100644
index 000000000..f3179789b
--- /dev/null
+++ b/pw_varint/Android.bp
@@ -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"],
+}