Skip to content
This repository has been archived by the owner on May 1, 2021. It is now read-only.

Latest commit

 

History

History
53 lines (38 loc) · 1.58 KB

README.md

File metadata and controls

53 lines (38 loc) · 1.58 KB

This repository is deprecated. Native Objective-C rules have already been migrated to Starlark in Bazel core.

Starlark Objective-C rules for Bazel

This repository contains an experimental Starlark implementation of Objective-C rules for Bazel.

Getting Started

Add the following to your WORKSPACE file, replacing <commit> and <sha256> accordingly.

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "rules_objc",
    sha256 = "<sha256>",
    strip_prefix = "rules_objc-<commit>",
    urls = ["https://github.com/thii/rules_objc/archive/<commit>.zip"],
)

Then, in your BUILD files, import and use the rules:

load("@rules_objc//objc:objc.bzl", "objc_library")

objc_library(
    ...
)

The rules are expected to be compatible with their native implementation. See the documentation from the native rules.

Current status

Acknowledgments

Special thanks to the following external rules that have heavily inspired the implementation of these rules (sorted alphabetically).