Skip to content

Revisit how the WKTs are bundled with ObjC. - #7173

Merged
thomasvl merged 1 commit into
protocolbuffers:masterfrom
thomasvl:objc_flatten_wkt_paths
Feb 10, 2020
Merged

thomasvl merged 1 commit into
protocolbuffers:masterfrom
thomasvl:objc_flatten_wkt_paths

Conversation

@thomasvl

@thomasvl thomasvl commented Feb 4, 2020

Copy link
Copy Markdown
Contributor

There are have been a few issues around people using case sensitive file systems
what Xcode/clang does when looking at the paths. In attempts to solve one set of
warnings, new warnings/errors happened in different setup. So, to hopefully put
these problem away for got, move the WKTs to be at the same level as the other
headers.

  • Revert "Override CocoaPods module to lowercase (Override CocoaPods module to lowercaseΒ #6464)"
    This reverts commit 479ba82.
  • Move WKTs to the objectivec directory and make the old headers shim back to
    the new locations.
  • Update objectivec/generate_well_known_types.sh to check them one at a time
    and to deal with the new locations for them.

@thomasvl

thomasvl commented Feb 4, 2020

Copy link
Copy Markdown
Contributor Author

@paulb777 @dmaclach fyi

Comment thread objectivec/generate_well_known_types.sh Resolved
Comment thread objectivec/generate_well_known_types.sh Resolved
Comment thread objectivec/generate_well_known_types.sh Resolved
There are have been a few issues around people using case sensitive file systems
what Xcode/clang does when looking at the paths. In attempts to solve one set of
warnings, new warnings/errors happened in different setup. So, to hopefully put
these problem away for got, move the WKTs to be at the same level as the other
headers.

- Revert "Override CocoaPods module to lowercase (protocolbuffers#6464)"
  This reverts commit 479ba82.
- Move WKTs to the objectivec directory and make the old headers shim back to
  the new locations.
- Update objectivec/generate_well_known_types.sh to check them one at a time
  and to deal with the new locations for them.

Fixes protocolbuffers#6803
@thomasvl
thomasvl force-pushed the objc_flatten_wkt_paths branch from a305224 to 6b4b28c Compare February 6, 2020 22:31
@thomasvl
thomasvl merged commit 56c48ae into protocolbuffers:master Feb 10, 2020
@thomasvl
thomasvl deleted the objc_flatten_wkt_paths branch February 10, 2020 17:20
thomasvl added a commit to thomasvl/protobuf that referenced this pull request Mar 1, 2022
Overdue followup to protocolbuffers#7173

Since all the files are at the same level as the runtime headers, there is no
need for things to be framework based imports, they should all just work like
the other headers do.

- Directly generate the bundled header imports into the preamble section when
  generating for a bundled proto.
- Update the preamble generation to skip the CPP wrapper when generating for a
  bundled proto file.
- Regenerate the WKTs.
- Update GPBProtocolBuffer.h to also skip the CPP wrapping.
thomasvl added a commit to thomasvl/protobuf that referenced this pull request Mar 1, 2022
Overdue followup to protocolbuffers#7173

Since all the files are at the same level as the runtime headers, there is no
need for things to be framework based imports, they should all just work like
the other headers do.

- Directly generate the bundled header imports into the preamble section when
  generating for a bundled proto.
- Update the preamble generation to skip the CPP wrapper when generating for a
  bundled proto file.
- Regenerate the WKTs.
- Update GPBProtocolBuffer.h to also skip the CPP wrapping.

GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS in the podspec and non bundled files still
has to exist because that comes into play for those files to find the runtime
headers.
thomasvl added a commit to thomasvl/protobuf that referenced this pull request Mar 1, 2022
Overdue followup to protocolbuffers#7173

Since all the files are at the same level as the runtime headers, there is no
need for things to be framework based imports, they should all just work like
the other headers do.

- Directly generate the bundled header imports into the preamble section when
  generating for a bundled proto.
- Update the preamble generation to skip the CPP wrapper when generating for a
  bundled proto file.
- Regenerate the WKTs.
- Update GPBProtocolBuffer.h/GPBWellKnownTypes.h to also skip the CPP wrapping.

GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS in the podspec and non bundled files still
has to exist because that comes into play for those files to find the runtime
headers.
thomasvl added a commit to thomasvl/protobuf that referenced this pull request Mar 1, 2022
Overdue followup to protocolbuffers#7173

Since all the files are at the same level as the runtime headers, there is no
need for things to be framework based imports, they should all just work like
the other headers do.

- Directly generate the bundled header imports into the preamble section when
  generating for a bundled proto.
- Update the preamble generation to skip the CPP wrapper when generating for a
  bundled proto file.
- Regenerate the WKTs.
- Update GPBProtocolBuffer.h/GPBWellKnownTypes.h to also skip the CPP wrapping.

GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS in the podspec and non bundled files still
has to exist because that comes into play for those files to find the runtime
headers.
thomasvl added a commit to thomasvl/protobuf that referenced this pull request Mar 1, 2022
Overdue followup to protocolbuffers#7173

Since all the files are at the same level as the runtime headers, there is no
need for things to be framework based imports, they should all just work like
the other headers do.

- Directly generate the bundled header imports into the preamble section when
  generating for a bundled proto.
- Update the preamble generation to skip the CPP wrapper when generating for a
  bundled proto file.
- Regenerate the WKTs.
- Update GPBProtocolBuffer.h/GPBWellKnownTypes.h to also skip the CPP wrapping.

GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS in the podspec and non bundled files still
has to exist because that comes into play for those files to find the runtime
headers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants