Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个由多个.dylib文件构建的大型库,我想将其导入为一个prebuilt_cxx_library. 但是,该命令只允许lib_name.
.dylib
prebuilt_cxx_library
lib_name
.dylib包含具有多个文件的大型第三方库的推荐方法是什么?
每个prebuilt_cxx_library对应一个动态或静态库。
但是,您可以使用exported_deps将其他预构建库提供给消费者:
exported_deps
prebuilt_cxx_library( name = 'a', ... ) prebuilt_cxx_library( name = 'b', ... exported_deps = [ '//:a', ], )
的用户//:b现在也会得到//:a。
//:b
//:a