| # Copyright 2019 Google LLC |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # https://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| workspace(name = "coral-web") |
| |
| # Configure libedgetpu and downstream libraries (TF and Crosstool). |
| new_local_repository( |
| name = "libedgetpu", |
| path = "libedgetpu", |
| build_file = "libedgetpu/BUILD" |
| ) |
| |
| TENSORFLOW_COMMIT = "ee728bcc18abef50b968c4b4cb06523f64abf7ac" |
| TENSORFLOW_SHA256 = "d429e78426a08ddfe121514aa132b3e90051055e3a379676ade8058a266b726e" |
| |
| load("@libedgetpu//:workspace.bzl", "libedgetpu_dependencies") |
| libedgetpu_dependencies(TENSORFLOW_COMMIT, TENSORFLOW_SHA256) |
| #libedgetpu_dependencies() |
| |
| load("@org_tensorflow//tensorflow:workspace3.bzl", "tf_workspace3") |
| tf_workspace3() |
| |
| load("@org_tensorflow//tensorflow:workspace2.bzl", "tf_workspace2") |
| tf_workspace2() |
| |
| load("@org_tensorflow//tensorflow:workspace1.bzl", "tf_workspace1") |
| tf_workspace1() |
| |
| load("@org_tensorflow//tensorflow:workspace0.bzl", "tf_workspace0") |
| tf_workspace0() |
| |
| # |
| load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| |
| http_archive( |
| name = "build_bazel_rules_nodejs", |
| sha256 = "0f2de53628e848c1691e5729b515022f5a77369c76a09fbe55611e12731c90e3", |
| urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/2.0.1/rules_nodejs-2.0.1.tar.gz"], |
| ) |
| |
| load("@build_bazel_rules_nodejs//:index.bzl", "npm_install") |
| |
| # emscripten 2.0.15 |
| # http_archive( |
| # name = "emscripten", |
| # sha256 = "e35cced1514ad0da40584f8dd6f76aabf847ce0fa82c6dc8dd9442fb74ed6d0d", |
| # strip_prefix = "install", |
| # url = "https://storage.googleapis.com/webassembly/emscripten-releases-builds/mac/89202930a98fe7f9ed59b574469a9471b0bda7dd/wasm-binaries.tbz2", |
| # build_file = "//emscripten_toolchain:emscripten.BUILD", |
| # type = "tar.bz2", |
| # ) |
| |
| # emscripten 2.0.15 |
| http_archive( |
| name = "emscripten", |
| sha256 = "7ff49fc63adf29970f6e7af1df445d7f554bdbbb2606db1cb5d3567ce69df1db", |
| strip_prefix = "install", |
| url = "https://storage.googleapis.com/webassembly/emscripten-releases-builds/linux/89202930a98fe7f9ed59b574469a9471b0bda7dd/wasm-binaries.tbz2", |
| build_file = "//emscripten_toolchain:emscripten.BUILD", |
| type = "tar.bz2", |
| ) |
| |
| npm_install( |
| name = "npm", |
| package_json = "@emscripten//:emscripten/package.json", |
| package_lock_json = "@emscripten//:emscripten/package-lock.json", |
| ) |