Satoru Takabayashi | bc26c61 | 2011-08-12 16:44:16 -0700 | [diff] [blame] | 1 | This repository (system_api.git) contains constants and definitions like |
| 2 | D-Bus service names that are shared between Chromium and Chromium OS. |
| 3 | |
| 4 | This repository is only for things like headers and .proto files. |
| 5 | No implementation should be added. |
Ryan Harrison | d27a489 | 2012-02-06 13:42:39 -0500 | [diff] [blame] | 6 | |
| 7 | When writting a .proto file make sure to use: |
| 8 | "option optimize_for = LITE_RUNTIME;" |
| 9 | |
| 10 | This will force usage of a lite protobuf instead of a full/heavy weight |
| 11 | protobuf. The browser only links against the light version, so you will get |
| 12 | cryptic link errors about missing parts of Message if you define a protobuf here |
| 13 | and then try to use it in Chrome. Currently CrOS links against the full |
| 14 | protobuffer library, but that might change in the future. |
| 15 | |
| 16 | When declaring a protobuf, avoid use of required unless it is exactly what you |
| 17 | mean. "Required is Forever" and very rarely should actually be used. Consult |
| 18 | http://code.google.com/apis/protocolbuffers/docs/cpptutorial.html for a detailed |
| 19 | of this issue. |