Coder Social home page Coder Social logo

bazel_deps's Introduction

Open-source bazel build file collection

This contains a set of open source packages configured to build within the bazel (https://bazel.build) build system. Currently supported platforms are x86_64 and armv7.

Example Usage

In tools/workspace/bazel_deps/repository.bzl

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


def bazel_deps_repository(name):
    commit = "XXX"
    http_archive(
        name = name,
        url = "https://github.com/mjbots/bazel_deps/archive/{}.zip".format(commit),
        sha256 = "XXX",
        strip_prefix = "bazel-deps-{}".format(commit),
    )

At least an empty tools/workspace/bazel_deps/BUILD is required.

In tools/workspace/default.bzl

load("//tools/workspace/bazel_deps:repository.bzl", "bazel_deps_respository")

def add_default_repositories(excludes = []):
    if "bazel_deps" not in excludes:
        bazel_deps_repository(name = "bazel_deps")

At least an empty tools/workspace/BUILD is required.

In WORKSPACE:

load("//tools/workspace/default.bzl", "add_default_repositories")

add_default_repositories()

load("@bazel_deps//tools/workspace:default.bzl",
     bazel_deps_add = "add_default_repositories")
bazel_deps_add()

At this point, each of the relevant packages can be referenced in bazel rules as is typical:

cc_binary(
    name = "my_application",
    deps = ["@ffmpeg"],
)

bazel_deps's People

Contributors

jpieper avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.