简体   繁体   English

是否可以使用 Bazel 构建 Unity3D 项目?

[英]Is it possible to build a Unity3D project with Bazel?

The majority of our code base is built with Bazel with the exception a few Unity projects.除了少数 Unity 项目外,我们的大部分代码库都是使用 Bazel 构建的。 Anybody know if there's anyway to build the Unity applications using Bazel as well?有人知道是否还有使用 Bazel 构建 Unity 应用程序的方法吗?

I'm not immediately familiar with Unity projects, but if the input files are purely C# code and .dll files, you can use the C# rules defined for Bazel.我不是很熟悉 Unity 项目,但如果输入文件是纯 C# 代码和.dll文件,您可以使用为 Bazel 定义的 C# 规则。 It includes rules such as csharp_library , csharp_binary and dll_import .它包括csharp_librarycsharp_binarydll_import等规则。

https://github.com/bazelbuild/rules_dotnet https://github.com/bazelbuild/rules_dotnet

If these are not sufficient (special filetypes, using a different compiler, etc), you may have to write your own rules using Skylark, and possibly reuse the rules_dotnet rules for the C# specific code in the new rules.如果这些还不够(特殊文件类型、使用不同的编译器等),您可能必须使用 Skylark 编写自己的规则,并可能在rules_dotnet规则中为 C# 特定代码重用rules_dotnet规则。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM