|
1 | | -/* |
2 | | -* Tencent is pleased to support the open source community by making Puerts available. |
3 | | -* Copyright (C) 2020 Tencent. All rights reserved. |
4 | | -* Puerts is licensed under the BSD 3-Clause License, except for the third-party components listed in the file 'LICENSE' which may be subject to their corresponding license terms. |
5 | | -* This file is subject to the terms and conditions defined in file 'LICENSE', which is part of this source code package. |
6 | | -*/ |
7 | | -using System.IO; |
8 | | -using System.Text; |
9 | | - |
10 | | -namespace Puerts.Editor |
11 | | -{ |
12 | | - namespace Generator |
13 | | - { |
14 | | - public class FileExporter |
15 | | - { |
16 | | - public static void ExportWrapper(string saveTo, ILoader loader = null) |
17 | | - { |
18 | | - } |
19 | | - |
20 | | - public static void GenRegisterInfo(string outDir, ILoader loader = null) |
21 | | - { |
22 | | - using (StreamWriter textWriter = new StreamWriter(Path.Combine(outDir, "RegisterInfo_Gen.cs"), false, Encoding.UTF8)) |
23 | | - { |
24 | | - textWriter.Write(@"namespace PuertsStaticWrap |
25 | | -{ |
26 | | -#if !PUERTS_GENERAL |
27 | | - [UnityEngine.Scripting.Preserve] |
28 | | -#endif |
29 | | - public static class PuerRegisterInfo_Gen |
30 | | - { |
31 | | - public static void AddRegisterInfoGetterIntoJsEnv(Puerts.JsEnv jsEnv) |
32 | | - { |
33 | | - } |
34 | | - } |
35 | | -} |
36 | | -"); |
37 | | - textWriter.Flush(); |
38 | | - } |
39 | | - |
40 | | -#if UNITY_2020_1_OR_NEWER && !PUERTS_GENERAL |
41 | | - PuertsIl2cpp.Editor.Generator.CSharpFileExporter.GenExtensionMethodInfos(outDir); |
42 | | -#endif |
43 | | - } |
44 | | - } |
45 | | - } |
| 1 | +/* |
| 2 | +* Tencent is pleased to support the open source community by making Puerts available. |
| 3 | +* Copyright (C) 2020 Tencent. All rights reserved. |
| 4 | +* Puerts is licensed under the BSD 3-Clause License, except for the third-party components listed in the file 'LICENSE' which may be subject to their corresponding license terms. |
| 5 | +* This file is subject to the terms and conditions defined in file 'LICENSE', which is part of this source code package. |
| 6 | +*/ |
| 7 | +using System.IO; |
| 8 | +using System.Text; |
| 9 | + |
| 10 | +namespace Puerts.Editor |
| 11 | +{ |
| 12 | + namespace Generator |
| 13 | + { |
| 14 | + public class FileExporter |
| 15 | + { |
| 16 | + public static void ExportWrapper(string saveTo, ILoader loader = null) |
| 17 | + { |
| 18 | + } |
| 19 | + |
| 20 | + public static void GenRegisterInfo(string outDir, ILoader loader = null) |
| 21 | + { |
| 22 | + using (StreamWriter textWriter = new StreamWriter(Path.Combine(outDir, "RegisterInfo_Gen.cs"), false, Encoding.UTF8)) |
| 23 | + { |
| 24 | + textWriter.Write(@"namespace PuertsStaticWrap |
| 25 | +{ |
| 26 | +#if !PUERTS_GENERAL |
| 27 | + [UnityEngine.Scripting.Preserve] |
| 28 | +#endif |
| 29 | + public static class PuerRegisterInfo_Gen |
| 30 | + { |
| 31 | + public static void AddRegisterInfoGetterIntoJsEnv(Puerts.JsEnv jsEnv) |
| 32 | + { |
| 33 | + } |
| 34 | + } |
| 35 | +} |
| 36 | +"); |
| 37 | + textWriter.Flush(); |
| 38 | + } |
| 39 | + |
| 40 | +#if UNITY_2020_1_OR_NEWER && !PUERTS_GENERAL |
| 41 | + PuertsIl2cpp.Editor.Generator.CSharpFileExporter.GenExtensionMethodInfos(outDir); |
| 42 | +#endif |
| 43 | + } |
| 44 | + } |
| 45 | + } |
46 | 46 | } |
0 commit comments