aboutsummaryrefslogtreecommitdiff
path: root/objectivec/google/protobuf/Wrappers.pbobjc.h
diff options
context:
space:
mode:
authorThomas Van Lenten <thomasvl@google.com>2016-05-09 13:53:20 -0400
committerThomas Van Lenten <thomasvl@google.com>2016-05-24 09:25:02 -0400
commit7da023b892ccd7135b6c9762d7618ccf414a4cd7 (patch)
tree04eb21f4a5a59ce61be4dc974d2e7cd6857f296a /objectivec/google/protobuf/Wrappers.pbobjc.h
parent2131b2d544bf6eeb789c128ef3e9e04fc299237a (diff)
downloadprotobuf-7da023b892ccd7135b6c9762d7618ccf414a4cd7.tar.gz
protobuf-7da023b892ccd7135b6c9762d7618ccf414a4cd7.tar.bz2
protobuf-7da023b892ccd7135b6c9762d7618ccf414a4cd7.zip
Better support for using the proto library from a framework.
- Add generator constant for the default framework name. - Add generator api for making the CPP symbol from the name. - Add generator api to see if it is a bundled proto file. - Output a CPP conditional and two imports for the core library headers. - Add helper for generating the #import for file headers to deal with the framework imports. - Add a reference from the unittests to a WKT to use that to inspect how imports generate. - Update the podspec to define the CPP symbol and require pods 1.0 (or later). Fixes https://github.com/google/protobuf/issues/1457
Diffstat (limited to 'objectivec/google/protobuf/Wrappers.pbobjc.h')
-rw-r--r--objectivec/google/protobuf/Wrappers.pbobjc.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/objectivec/google/protobuf/Wrappers.pbobjc.h b/objectivec/google/protobuf/Wrappers.pbobjc.h
index 46510500..5593d348 100644
--- a/objectivec/google/protobuf/Wrappers.pbobjc.h
+++ b/objectivec/google/protobuf/Wrappers.pbobjc.h
@@ -1,7 +1,17 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/wrappers.proto
-#import "GPBProtocolBuffers.h"
+// This CPP symbol can be defined to use imports that match up to the framework
+// imports needed when using CocoaPods.
+#if !defined(GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS)
+ #define GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS 0
+#endif
+
+#if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
+ #import <Protobuf/GPBProtocolBuffers.h>
+#else
+ #import "GPBProtocolBuffers.h"
+#endif
#if GOOGLE_PROTOBUF_OBJC_GEN_VERSION != 30001
#error This file was generated by a different version of protoc which is incompatible with your Protocol Buffer library sources.