Skip to content

Latest commit

 

History

History

depend-use-bzlmod

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Bazel with bzlmod

使用方法

  • 增加依赖项
# in MODULE.bazel
bazel_dep(name = 'babylon', version = '1.4.2')
  • 添加依赖的子模块到编译目标,全部可用子模块可以参照模块功能文档,或者BUILD文件,也可以直接添加All in One依赖目标@babylon
# in BUILD
cc_library(
  ...
  deps = [
    ...
    '@babylon//:any',
    '@babylon//:concurrent',
  ],
)