Commit Graph

12 Commits

Author SHA1 Message Date
Rob Mohr
068194895a Many changes to support stricter deps
* Split pw_assert targets as in pwrev/9000.
* Add many missing dependencies (mostly on //pw_unit_test)
* Added visibility and licenses to pw_minimal_cpp_stdlib/BUILD
* Used explicit template params in pw_result/result_test.cc
* Added missing #include of pw_kvs/pw_kvs_private/macros.h

Change-Id: I9bdc875b585e47792ca926f7c75cfe055b02fa48
Bug: 101
2020-04-07 00:04:46 +00:00
Wyatt Hepler
61def0a64a Bazel: Move include paths to libraries
Instead of having a global list of -I include paths, have each library
provide a -I for the public/ directory using the includes argument.

Change-Id: I2e321752906920cd94beaaab97b8796af85078e4
2020-01-06 18:41:23 +00:00
Rob Mohr
3895a127c7 Fix bazel build.
pw_string/util_test.cc was not tested and pw_varint had no BUILD file.

Change-Id: Ibaf5c05d3876b6cef5eb1fc70f644f03468bca2b
2019-12-02 21:44:15 +00:00
Wyatt Hepler
ce9b952f05 pw_string: StringBuilder utility class
StringBuilder can be used to flexibly and safely build strings in
fixed-size buffers.

Change-Id: Ie4453e1bcd11ef522bb0211304e9cf758ac17827
2019-11-25 18:08:31 +00:00
Rob Mohr
c2787500d5 Move loads to beginning of BUILD files.
Change-Id: Idb918a48cfe6149f624295f6712fbf0a3a36a7ff
2019-11-19 18:20:03 +00:00
Rob Mohr
c8dd7fd723 Add missing format_test dep.
Change-Id: If5107700a9c8dab0c8f617fb2bd23741c3dfe080
2019-11-19 09:15:26 -08:00
Rob Mohr
905d628b0b Add pw_status dep to to_string_test.
Change-Id: I6fd09f310b9d362551d05b0eb27192ecba808748
2019-11-19 05:11:52 +00:00
Rob Mohr
c70366e906 Simplify bazel build.
Use variables instead of functions, and add wrappers for builtins.

Change-Id: If6e75efe35ce2fe754f2ed7421497bc1f5d47507
2019-11-18 11:24:53 -08:00
Wyatt Hepler
e2dc6d18d6 Safer snprintf / vsnprintf functions
Provide a string::Format function that writes to a span. The snprintf
return value is interpreted and returned as a StatusWithSize.

Change-Id: Ib7fed684dc333d5feaef85c1bb558cb45e3936bd
2019-11-15 21:54:48 +00:00
Rob Mohr
e8fbe6a882 Add license metadata to bazel files.
Change-Id: Id32c7db700f3fba809d4e90473cbd3e8b8d7ca47
2019-11-15 11:52:14 -08:00
Rob Mohr
cf185b4ccc Update bazel for pw_status and pw_string changes.
Change-Id: I698260e5dbb82625bb34e8a2c68a683eb569eddc
2019-11-14 18:29:39 +00:00
Rob Mohr
75e5fc9a15 Add pw_string to bazel build.
Change-Id: I0aa7741959b741de082d44afe87786754b572951
2019-11-14 09:16:03 -08:00