aboutsummaryrefslogtreecommitdiffhomepage
path: root/objectivec
diff options
context:
space:
mode:
authorGravatar Thomas Van Lenten <thomasvl@google.com>2016-06-15 11:39:21 -0400
committerGravatar GitHub <noreply@github.com>2016-06-15 11:39:21 -0400
commitf180ef63985fb410dceda1e299020ee4ebd696e0 (patch)
treee408945fa837792c2036c8ea3910addf9d68075e /objectivec
parentf0c1492ef6a6ad17ef62d49cd671980742729783 (diff)
parenta2a3399a6f84e29ab2dfc8c55739bbd495c314ce (diff)
Merge pull request #1683 from thomasvl/third_party_framework
Add support for generation sources into a framework.
Diffstat (limited to 'objectivec')
-rw-r--r--objectivec/README.md17
1 files changed, 15 insertions, 2 deletions
diff --git a/objectivec/README.md b/objectivec/README.md
index c7313e4f..beda2cb6 100644
--- a/objectivec/README.md
+++ b/objectivec/README.md
@@ -123,8 +123,8 @@ never included when the message is encoded.
The Objective C classes/enums can be used from Swift code.
-Objective C Generator Options
------------------------------
+Objective C Generator Proto File Options
+----------------------------------------
**objc_class_prefix=\<prefix\>** (no default)
@@ -133,6 +133,19 @@ be collisions. This option provides a prefix that will be added to the Enums
and Objects (for messages) generated from the proto. Convention is to base
the prefix on the package the proto is in.
+Objective C Generator `protoc` Options
+--------------------------------------
+
+When generating Objective C code, `protoc` supports a `--objc_opt` argument; the
+argument is comma-delimited name/value pairs (_key=value,key2=value2_). The
+_keys_ are used to change the behavior during generation. The currently
+supported keys are:
+
+ * `generate_for_framework_named`: The `value` used for this key will be used
+ when generating the `#import` statements in the generated code. Instead
+ of being plain `#import "some/path/file.pbobjc.h"` lines, they will be
+ framework based, i.e. - `#import <VALUE/file.pbobjc.h>`.
+
Contributing
------------