Skip to content

Commit

Permalink
Do not build a bunch of stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
dellis1972 committed Aug 15, 2024
1 parent 9cd3d69 commit 03e8d57
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/BuildLinuxTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public override void Run(BuildContext context)
Directory.CreateDirectory(buildWorkingDir);
// Path relative to the buildWorkingDir
var cmakeListsPath = System.IO.Path.Combine("..", "crunch", "CMakeLists.txt");
context.StartProcess("cmake", new ProcessSettings { WorkingDirectory = buildWorkingDir, Arguments = cmakeListsPath });
context.StartProcess("cmake", new ProcessSettings { WorkingDirectory = buildWorkingDir, Arguments = $"-DCMAKE_BUILD_TYPE=Release -DBUILD_CRUNCH=ON -DBUILD_SHARED_LIBCRN=OFF -DBUILD_SHARED_LIBS=OFF -DBUILD_EXAMPLES=OFF {cmakeListsPath}" });
context.StartProcess("make", new ProcessSettings { WorkingDirectory = buildWorkingDir, Arguments = "" });
var files = Directory.GetFiles(buildWorkingDir, "crunch", SearchOption.TopDirectoryOnly);
context.CopyFile(files[0], $"{context.ArtifactsDir}/crunch");
Expand Down
2 changes: 1 addition & 1 deletion build/BuildMacOSTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public override void Run(BuildContext context)
Directory.CreateDirectory(buildWorkingDir);
// Path relative to the buildWorkingDir
var cmakeListsPath = System.IO.Path.Combine("..", "crunch", "CMakeLists.txt");
context.StartProcess("cmake", new ProcessSettings { WorkingDirectory = buildWorkingDir, Arguments = $"-DCMAKE_OSX_ARCHITECTURES=\"x86_64;arm64\" {cmakeListsPath}" });
context.StartProcess("cmake", new ProcessSettings { WorkingDirectory = buildWorkingDir, Arguments = $"-DCMAKE_OSX_ARCHITECTURES=\"x86_64;arm64\" -DCMAKE_BUILD_TYPE=Release -DBUILD_CRUNCH=ON -DBUILD_SHARED_LIBCRN=OFF -DBUILD_SHARED_LIBS=OFF -DBUILD_EXAMPLES=OFF {cmakeListsPath}" });
context.StartProcess("make", new ProcessSettings { WorkingDirectory = buildWorkingDir, Arguments = "" });
var files = Directory.GetFiles(buildWorkingDir, "crunch", SearchOption.TopDirectoryOnly);
context.CopyFile(files[0], $"{context.ArtifactsDir}/crunch");
Expand Down
2 changes: 1 addition & 1 deletion build/BuildWindowsTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public override void Run(BuildContext context)
Directory.CreateDirectory(buildWorkingDir);
// Path relative to the buildWorkingDir
var cmakeListsPath = System.IO.Path.Combine("..", "crunch", "CMakeLists.txt");
context.StartProcess("cmake", new ProcessSettings { WorkingDirectory = buildWorkingDir, Arguments = cmakeListsPath });
context.StartProcess("cmake", new ProcessSettings { WorkingDirectory = buildWorkingDir, Arguments = $"-DBUILD_CRUNCH=ON -DBUILD_SHARED_LIBCRN=OFF -DBUILD_SHARED_LIBS=OFF -DBUILD_EXAMPLES=OFF {cmakeListsPath}" });
context.ReplaceTextInFiles("crunch_build/crunch.vcxproj", "MultiThreadedDLL", "MultiThreaded");
//context.ReplaceTextInFiles("crunch_build/crnlib/crn-obj.vcxproj", "MultiThreadedDLL", "MultiThreaded");
context.StartProcess("cmake", new ProcessSettings { WorkingDirectory = buildWorkingDir, Arguments = "--build . --config release" });
Expand Down

0 comments on commit 03e8d57

Please sign in to comment.