Skip to content

Commit

Permalink
Update the project configuration generator to ensure MSVC compiler us…
Browse files Browse the repository at this point in the history
…e UTF-8 mode for the FreeType and LVGL library source files.
  • Loading branch information
MouriNaruto committed Nov 29, 2024
1 parent 27cbbb7 commit 67c3c1f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
8 changes: 7 additions & 1 deletion LvglProjectFileUpdater/LvglWindowsLibraryProjectUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,13 @@ public static void Run()

foreach (var CurrentName in NewSourceNames)
{
ProjectRoot.AddItem("ClCompile", CurrentName.Item1);
{
ProjectItemElement Item =
ProjectRoot.AddItem("ClCompile", CurrentName.Item1);
Item.AddMetadata(
"AdditionalOptions",
"/utf-8 %(AdditionalOptions)");
}

{
ProjectItemElement Item =
Expand Down
16 changes: 14 additions & 2 deletions LvglProjectFileUpdater/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,13 @@ static void UpdateLvglWindowsSimulator()

foreach (var CurrentName in NewSourceNames)
{
ProjectRoot.AddItem("ClCompile", CurrentName.Item1);
{
ProjectItemElement Item =
ProjectRoot.AddItem("ClCompile", CurrentName.Item1);
Item.AddMetadata(
"AdditionalOptions",
"/utf-8 %(AdditionalOptions)");
}

{
ProjectItemElement Item =
Expand Down Expand Up @@ -354,7 +360,13 @@ static void UpdateLvglWindowsDesktopApplication()

foreach (var CurrentName in NewSourceNames)
{
ProjectRoot.AddItem("ClCompile", CurrentName.Item1);
{
ProjectItemElement Item =
ProjectRoot.AddItem("ClCompile", CurrentName.Item1);
Item.AddMetadata(
"AdditionalOptions",
"/utf-8 %(AdditionalOptions)");
}

{
ProjectItemElement Item =
Expand Down

0 comments on commit 67c3c1f

Please sign in to comment.