Skip to content

Commit

Permalink
Native/Assimp: Strip Linux/macOS binaries after build.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Apr 14, 2024
1 parent 459fcfa commit e9d8ec6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/nuke/Native/Assimp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ partial class Build {
InheritedShell($"{prepare} {GetCMakeToolchainFlag(triple)}", buildDir).AssertZeroExitCode();
InheritedShell(build, buildDir).AssertZeroExitCode();

InheritedShell($"{triple}-strip --strip-unneeded bin/libassimp.so.5", buildDir).AssertZeroExitCode();

CopyAll((buildDir / "bin").GlobFiles("libassimp.so.5"), runtimes / rid / "native");
}
}
Expand All @@ -89,6 +91,8 @@ partial class Build {
InheritedShell($"{prepare} -DCMAKE_OSX_ARCHITECTURES={arch}", buildDir).AssertZeroExitCode();
InheritedShell(build, buildDir).AssertZeroExitCode();

InheritedShell($"strip -Sx bin/libassimp.5.dylib", buildDir).AssertZeroExitCode();

CopyAll((buildDir / "bin").GlobFiles("libassimp.5.dylib"), runtimes / rid / "native");
}
}
Expand Down

0 comments on commit e9d8ec6

Please sign in to comment.