Skip to content

Commit

Permalink
build: fix arm toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielku15 committed Aug 11, 2024
1 parent 9662e7c commit 7339847
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/Build.LibSkia.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ partial class Build
{
var newSources = "# AlphaSkia Patch FreeType\n";
// ensure we have freetype available
newSources += " include_dirs = [ \"../externals/freetype/include\" ]\n";
newSources += " include_dirs = [ \"externals/freetype/include\" ]\n";
newSources += " sources += [\n";
newSources += " \"src/ports/SkFontHost_FreeType.cpp\",\n";
newSources += " \"src/ports/SkFontHost_FreeType_common.cpp\",\n";
Expand Down
7 changes: 5 additions & 2 deletions build/Build.Native.cs
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,11 @@ void PatchSkiaToolchain()
var toolChainBuildFile = SkiaPath / "gn" / "toolchain" / "BUILD.gn";
var oldToolChainSource = toolChainBuildFile.ReadAllText();
toolChainBuildFile.WriteAllText(oldToolChainSource.Replace(
"env_setup = \"$shell $win_sdk/bin/SetEnv.cmd /x86",
"# env_setup = \"$shell $win_sdk/bin/SetEnv.cmd /x86"
" env_setup = \"$shell $win_sdk/bin/SetEnv.cmd /x86",
" # env_setup = \"$shell $win_sdk/bin/SetEnv.cmd /x86"
).Replace(
" env_setup = \"$shell set \\\"PATH=%PATH%;$win_vc\\\\Tools\\\\MSVC\\\\$win_toolchain_version\\\\bin\\\\HostX64\\\\x64\\\" && \"",
" # env_setup = \"$shell set \\\"PATH=%PATH%;$win_vc\\\\Tools\\\\MSVC\\\\$win_toolchain_version\\\\bin\\\\HostX64\\\\x64\\\" && \""
));
}
}

0 comments on commit 7339847

Please sign in to comment.