Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Bazel target for the Objective-C protobuf runtime #554

Merged
merged 1 commit into from Jul 6, 2015

Conversation

jcanizales
Copy link
Contributor

Also add WKT headers to the umbrella file, and simplify Podspec with it.
Plus some layout improvements to the BUILD file.

This is a dependency of the Bazel target for the ObjC gRPC runtime.

Part of grpc/grpc#2120

@jcanizales
Copy link
Contributor Author

CC @TeBoring @thomasvl @dmaclach

"objectivec/*.m",
# Timestamp.pbobjc.m and Duration.pbobjc.m are #imported by
# GPBWellKnownTypes.m. So we can't compile them separately
# (duplicate symbols).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use the globs like on hdrs and filter out these two?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, listing just the umbrella header and the umbrella implementation works alright, because Bazel doesn't move the sources around like Cocoapods.

@jcanizales
Copy link
Contributor Author

I realized I could simplify the Podspec file in the same way.

@jcanizales
Copy link
Contributor Author

(The Travis failure, Maven failing to download an artifact over the network, is unrelated to these changes - looks like a flake, but I don't have authority to rerun the test).

@jcanizales
Copy link
Contributor Author

Ping

@TeBoring
Copy link
Contributor

TeBoring commented Jul 6, 2015

Could you squash commits into one?

@jcanizales
Copy link
Contributor Author

One for the BUILD file and one for the Podspec, or one commit for both?

@TeBoring
Copy link
Contributor

TeBoring commented Jul 6, 2015

I prefer one for both.

# left out, as it's an umbrella implementation file.
s.exclude_files = 'objectivec/GPBProtocolBuffers.m'
s.source_files = 'objectivec/*.h',
'objectivec/google/protobuf/*.pbobjc.h',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't these headers be covered by the umbrella header?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@thomasvl says yes, so done.

Also add WKT headers to the umbrella file, and simplify Podspec with it.
Plus some layout improvements to the BUILD file.
@jcanizales
Copy link
Contributor Author

Squashed.

@TeBoring
Copy link
Contributor

TeBoring commented Jul 6, 2015

LGTM

TeBoring added a commit that referenced this pull request Jul 6, 2015
Add Bazel target for the Objective-C protobuf runtime
@TeBoring TeBoring merged commit ab2094d into protocolbuffers:master Jul 6, 2015
@jcanizales jcanizales deleted the proto-objc-bazel branch July 6, 2015 21:38
taoso pushed a commit to taoso/protobuf that referenced this pull request Aug 1, 2018
…s#554)

Fix a bug which caused us to generate a blank import comment when go_package
contains just a package name (no import path):

  package foo // import ""

Fixes protocolbuffers#553
adellahlou pushed a commit to adellahlou/protobuf that referenced this pull request Apr 20, 2023
rinarakaki pushed a commit to rinarakaki/protobuf that referenced this pull request Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants