bazel-xcode / PodToBUILD

An easy way to integrate CocoaPods into Bazel
Apache License 2.0
322 stars 69 forks source link

Support in-tree podspecs #94

Open jerrymarino opened 5 years ago

jerrymarino commented 5 years ago

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:

segiddins commented 5 years ago

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

would be super if it took in a list of files, so we could write a glob with excludes

use these inputs for cache invalidation

since podspecs can contain arbitrary ruby, would also like to be able to pass in a list of other files to consider as dependencies of the podspecs

updated to hmaps or symlinking to the right directory

and if symlinking, ideally do that as part of the build process, rather than when evaluating the repository rule