Skip to content

Commit 6ea853e

Browse files
committed
Add N-API generator support to the CLI.
1 parent e8fbdaa commit 6ea853e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/CLI/CLI.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,9 @@ static void GetGeneratorKind(string generator, List<string> errorMessages)
219219
case "cpp":
220220
options.Kind = CppSharp.Generators.GeneratorKind.CPlusPlus;
221221
return;
222+
case "napi":
223+
options.Kind = CppSharp.Generators.GeneratorKind.NAPI;
224+
return;
222225
case "qjs":
223226
options.Kind = CppSharp.Generators.GeneratorKind.QuickJS;
224227
return;

src/CLI/Generator.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ private static string GetGeneratorKindName(GeneratorKind kind)
223223
return "C++/CLI";
224224
case GeneratorKind.CSharp:
225225
return "C#";
226+
case GeneratorKind.NAPI:
227+
return "N-API";
226228
default:
227229
return kind.ToString();
228230
}

0 commit comments

Comments
 (0)