Commit Graph

7 Commits

Author SHA1 Message Date
Alexei Frolov
def1471ede Add Go support to GN
This change defines GN templates that allow building Go code as part of
Pigweed's build system. Go is also added as a supported language for the
proto_library template.

Change-Id: I3e639a12e6a8ba0a7a928c5d653c623cff58eb86
2019-12-26 18:37:34 +00:00
Alexei Frolov
bbf164c985 Add pw_protobuf module
This change adds a pw_protobuf module containing a lightweight protobuf
wire format encoder. The encoder comes with a Python script that plugs
into protoc to generate C++ classes from Protobuf files that wrap its
functionality.

Bug: 20

Change-Id: I867655ab64c2f6ddd2a731054b1fbe7ccc97ba70
2019-12-18 21:29:17 +00:00
Rob Mohr
d533ffe911 generate_protos.py passes format check.
Change-Id: I9995cad6a70f8b6f7670b1fac6dc232936faa5e5
2019-12-17 15:10:44 -08:00
Wyatt Hepler
1ccce6b953 pw_cli: Disable colors if the output is not a tty
Bug: 19

Change-Id: Ibdc1f72643415acb12dbf731cd45a9cb786a9fd2
2019-12-17 18:40:46 +00:00
Rob Mohr
21117d8c25 Run 'pw format --fix' on a few files.
Change-Id: I2300a824443ba9bca56ab1116fb451cb3003ea02
2019-12-16 19:06:00 +00:00
Rob Mohr
17ef145c03 Fix some pylint warnings.
Change-Id: I4ba23a344d3fec3111d3ed0ff65fc572ad40fa18
2019-12-16 10:45:52 -08:00
Alexei Frolov
942adf02d6 Add pw_protobuf_compiler module
This change adds a module responsible for invoking the protobuf compiler
to generate code from .proto definition files. It provides a GN template
which performs the codegen operation on a list of input .proto files.
The template currently only supports C++.

Change-Id: I5558fd5b4282e0d6f09f8fafebda972738dc1e83
2019-12-13 19:38:27 +00:00