# in WORKSPACE
http_archive(
name = 'com_baidu_babylon',
urls = ['https://github.com/baidu/babylon/releases/download/v1.4.2/v1.4.2.tar.gz'],
strip_prefix = 'babylon-1.4.2',
sha256 = 'd60ee9cd86a777137bf021c8861e97438a69cc857659d5eb39af9e8464434cf1',
)
# in WORKSPACE
... // 增加babylon的WORKSPACE内的依赖项,注意和项目已有依赖去重合并
@com_baidu_babylon//:babylon
# in BUILD
cc_library(
...
deps = [
...
'@com_baidu_babylon//:any',
'@com_baidu_babylon//:concurrent',
],
)