bazel-xcode / bazel-xcode/PodToBUILD

Support in-tree podspecs

Open
#94 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
330
Forks
68
PR merge metrics
No merged PRs in 30d

Description

This enables people to use local podspecs as the source of truth for target
definition and build settings instead of a BUILD file.

It introduces a single `repository_rule` to generates a BUILD files for
*every* podspec in the source tree _adjacent_ to the podspec.

### Example `repository_rule`

```
# WORKSPACE
gen_pod_build_files()
```

Considerations:

- the rule must be a repository rule, to fit into bazels [evaluation
model](https://github.com/bazelbuild/bazel/blob/master/site/docs/skylark/concepts.md#evaluation-model)

- it may glob all the *.podspecs as an input and use these inputs for cache
invalidation

- the `BUILD` file compiler needs to be updated to manage the local podspecs

- and @ import support needs to be updated to hmaps or symlinking to
the right directory.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.