protected override void WriteIl2CppOutputProject( BuildPostProcessArgs args, string il2cppOutputProjectDirectory, IIl2CppPlatformProvider il2cppPlatformProvider) { string additionalDefines = "UNITY_WIN=1;UNITY_STANDALONE_WIN=1;PLATFORM_WIN=1;PLATFORM_STANDALONE_WIN=1"; VisualStudioProjectHelpers.WriteIl2CppOutputProject((BuildTargetGroup)1, il2cppOutputProjectDirectory, WindowsDesktopStandalonePostProcessor.Il2CppOutputProjectTemplate, additionalDefines, il2cppPlatformProvider); }
private static void WriteProjectPropsFile( string stagingArea, string projectName, bool useIl2Cpp) { string path = FileUtil.CombinePaths(new string[2] { stagingArea, "UnityCommon.props" }); string str = useIl2Cpp ? "il2cpp" : "mono"; using (StreamWriter streamWriter = new StreamWriter(path)) { streamWriter.WriteLine("<Project xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\">"); streamWriter.WriteLine(" <PropertyGroup>"); streamWriter.WriteLine(" <ProjectName>" + VisualStudioProjectHelpers.EscapeXML(projectName) + "</ProjectName>"); streamWriter.WriteLine(" <ScriptingBackend>" + str + "</ScriptingBackend>"); streamWriter.WriteLine(" </PropertyGroup>"); streamWriter.WriteLine("</Project>"); } }