标签: bazel separation-of-concerns
我有一个带有WORKSPACE和许多软件包的Bazel项目。 WORKSPACE文件很大,因此我想知道是否有可能将其分解为单独的文件并导入。
WORKSPACE
答案 0 :(得分:6)
您可以将CreateBitmap()的部分提取到WORKSPACE文件中,并将.bzl的这些用于变量和函数的符号提取到load()中。
CreateBitmap()
.bzl
load()
有关更多信息,请参见You could and should use other API instead. By using CreateSharedBitmap to create an ID2D1Bitmap from an IDXGISurface, you can write a Direct3D scene to a bitmap and render it with Direct2D。