File tree 2 files changed +40
-0
lines changed
2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change 3
3
4
4
namespace CppSharp
5
5
{
6
+ public enum TargetPlatform
7
+ {
8
+ Windows ,
9
+ Android ,
10
+ MacOS ,
11
+ iOS ,
12
+ WatchOS ,
13
+ TVOS
14
+ }
15
+
6
16
public static class Platform
7
17
{
8
18
public static bool IsWindows
Original file line number Diff line number Diff line change 8
8
9
9
namespace CppSharp
10
10
{
11
+ public enum CompilationTarget
12
+ {
13
+ SharedLibrary ,
14
+ StaticLibrary ,
15
+ Application
16
+ }
17
+
11
18
public class DriverOptions
12
19
{
13
20
public DriverOptions ( )
@@ -118,6 +125,29 @@ public bool DoAllModulesHaveLibraries() =>
118
125
119
126
#endregion
120
127
128
+ #region Compilation options (Embeddinator-specific for now)
129
+
130
+ /// <summary>
131
+ /// Target platform for code compilation.
132
+ /// </summary>
133
+ public TargetPlatform Platform ;
134
+
135
+ /// <summary>
136
+ /// Specifies the VS version.
137
+ /// </summary>
138
+ /// <remarks>When null, latest is used.</remarks>
139
+ public VisualStudioVersion VsVersion ;
140
+
141
+ // If code compilation is enabled, then sets the compilation target.
142
+ public CompilationTarget Target ;
143
+
144
+ // If true, will compile the generated as a shared library / DLL.
145
+ public bool CompileSharedLibrary => Target == CompilationTarget . SharedLibrary ;
146
+
147
+ // If true, will force the generation of debug metadata for the native
148
+ // and managed code.
149
+ public bool DebugMode ;
150
+
121
151
#endregion
122
152
123
153
#region Generator options
You can’t perform that action at this time.
0 commit comments