Skip to content

Commit

Permalink
Use cec_exports_repo for subproject export.
Browse files Browse the repository at this point in the history
This replaces //tools/source_tree:export_source_tree with a dependency
on the external cec_exports_repo project.

Signed-off-by: format 20.02.05 <github.com/ChrisCummins/format>
  • Loading branch information
ChrisCummins committed May 7, 2020
1 parent 257c78d commit 07acb0a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@ workspace(name = "phd")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")

http_archive(
name = "cec_exports_repo",
sha256 = "338001b0e2e3cea978b72a456ac201b86042aecbbbdb779694ac4b131e949fc2",
strip_prefix = "exports_repo-2020.05.06",
urls = ["https://github.com/ChrisCummins/exports_repo/archive/2020.05.06.tar.gz"],
)

load("@cec_exports_repo//tools/bzl:deps.bzl", "cec_exports_repo_deps")

cec_exports_repo_deps()

http_archive(
name = "gtest",
sha256 = "9bf1fe5182a604b4135edc1a425ae356c9ad15e9b23f9f12a02e80184c3a249c",
Expand Down
6 changes: 3 additions & 3 deletions gpu/cldrive/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# You should have received a copy of the GNU General Public License
# along with cldrive. If not, see <https://www.gnu.org/licenses/>.

load("//tools/bzl:exports.bzl", "exports_repo")
load("@cec_exports_repo//tools/bzl:exports_repo.bzl", "exports_repo")
load("@io_bazel_rules_docker//cc:image.bzl", "cc_image")

licenses(["restricted"]) # GPL v3
Expand All @@ -28,12 +28,12 @@ exports_files([

exports_repo(
name = "export",
github_repo = "cldrive",
move_file_mapping = {
path_rename = {
"gpu/cldrive/README.md": "README.md",
"gpu/cldrive/LICENSE": "LICENSE",
"gpu/cldrive/travis.yml": ".travis.yml",
},
remote = "[email protected]:ChrisCummins/cldrive.git",
targets = [
"//gpu/cldrive/...",
],
Expand Down

0 comments on commit 07acb0a

Please sign in to comment.