Skip to content

Commit

Permalink
Move third_party directories to corresponding dir.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 546991881
  • Loading branch information
Neural-Link Team authored and tensorflow-copybara committed Jul 10, 2023
1 parent 559cc0b commit 6d0de7d
Show file tree
Hide file tree
Showing 14 changed files with 8 additions and 9 deletions.
6 changes: 3 additions & 3 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ workspace(name = "org_tensorflow_neural_structured_learning")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

# farmhash
load("//research/carls/third_party/farmhash:workspace.bzl", farmhash = "repo")
load("//research/carls/knowledge_bank/farmhash:workspace.bzl", farmhash = "repo")
farmhash()

# leveldb
load("//research/carls/third_party/leveldb:workspace.bzl", leveldb = "repo")
load("//research/carls/knowledge_bank/leveldb:workspace.bzl", leveldb = "repo")
leveldb()

# rocksdb
load("//research/carls/third_party/rocksdb:workspace.bzl", rocksdb = "repo")
load("//research/carls/knowledge_bank/rocksdb:workspace.bzl", rocksdb = "repo")
rocksdb()

# absl
Expand Down
2 changes: 1 addition & 1 deletion research/carls/bazel/repo.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ cc_library(
def _protobuf_includes_repo_impl(repo_ctx):
tf_include_path = _find_tf_include_path(repo_ctx)
repo_ctx.symlink(tf_include_path, "tf_includes")
repo_ctx.symlink(Label("//research/carls/third_party:protobuf.BUILD"), "BUILD")
repo_ctx.symlink(Label("//research/carls:protobuf.BUILD"), "BUILD")

def _tensorflow_includes_repo_impl(repo_ctx):
tf_include_path = _find_tf_include_path(repo_ctx)
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def repo():

http_archive(
name = "farmhash_archive",
build_file = "//research/carls/third_party/farmhash:farmhash.BUILD",
build_file = "//research/carls/knowledge_bank/farmhash:farmhash.BUILD",
sha256 = FARMHASH_SHA256,
strip_prefix = "farmhash-{commit}".format(commit = FARMHASH_COMMIT),
urls = [
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def repo():

http_archive(
name = "com_google_leveldb",
build_file = "//research/carls/third_party/leveldb:leveldb.BUILD",
build_file = "//research/carls/knowledge_bank/leveldb:leveldb.BUILD",
patch_cmds = [
"""mkdir leveldb; cp include/leveldb/* leveldb""",
],
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def repo():

http_archive(
name = "rocksdb",
build_file = "//research/carls/third_party/rocksdb:rocksdb.BUILD",
build_file = "//research/carls/knowledge_bank/rocksdb:rocksdb.BUILD",
sha256 = ROCKSDB_SHA256,
strip_prefix = "rocksdb-{version}".format(version = ROCKSDB_VERSION),
url = "https://github.com/facebook/rocksdb/archive/v{version}.tar.gz".format(version = ROCKSDB_VERSION),
Expand All @@ -19,7 +19,7 @@ def repo():
# A dependency of rocksdb that is required for rocksdb::ClockCache.
http_archive(
name = "tbb",
build_file = "//research/carls/third_party/rocksdb:tbb.BUILD",
build_file = "//research/carls/knowledge_bank/rocksdb:tbb.BUILD",
sha256 = "b182c73caaaabc44ddc5ad13113aca7e453af73c1690e4061f71dfe4935d74e8",
strip_prefix = "oneTBB-2021.1.1",
url = "https://github.com/oneapi-src/oneTBB/archive/v2021.1.1.tar.gz",
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion research/carls/third_party/BUILD

This file was deleted.

0 comments on commit 6d0de7d

Please sign in to comment.