Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Scripts/BuildAndInstallCoDeLib.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ def BuildAndInstallCoDeLib(
buildEnv.GetTargetPlatform()
)

ExternalLibInstallPath = Path(
ExternalLibPath / "Install" / targetPlatformString / BuildTypeString
ExternalZlibLibInstallPath = Path(
ExternalLibPath / "zlib/Install" / targetPlatformString / BuildTypeString
)

CoDeLibRootPath = Path(RepositoryRootPath / ProjectName)
Expand Down Expand Up @@ -76,7 +76,7 @@ def BuildAndInstallCoDeLib(
CoDeLibRootPath,
BuildDirectory,
InstallDirectory,
ExternalLibInstallPath,
ExternalZlibLibInstallPath,
BuildTypeString,
)
print(configureCommand)
Expand All @@ -89,7 +89,7 @@ def BuildAndInstallCoDeLib(
print("==============================")
print(ProjectName + ": Building ({})".format(BuildTypeString))
print("==============================")
buildCommand = "cmake --build {0}".format(BuildDirectory)
buildCommand = "cmake --build {0} -- -j 4".format(BuildDirectory)
print(buildCommand)
subprocess.run(
buildCommand,
Expand Down
10 changes: 7 additions & 3 deletions Scripts/BuildAndInstallExternalLibs.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,14 @@ def BuildAndInstallZlib(

TopLevelCMakeListsDirectory = Path(ExternalLibPath / ProjectName)
BuildDirectory = Path(
ExternalLibPath / "Build" / ProjectName / targetPlatformString / BuildTypeString
ExternalLibPath / ProjectName / "Build" / targetPlatformString / BuildTypeString
)
InstallDirectory = Path(
ExternalLibPath / "Install" / targetPlatformString / BuildTypeString
ExternalLibPath
/ ProjectName
/ "Install"
/ targetPlatformString
/ BuildTypeString
)

if not BuildDirectory.exists():
Expand Down Expand Up @@ -88,7 +92,7 @@ def BuildAndInstallZlib(
print("==============================")
print(ProjectName + ": Building ({})".format(BuildTypeString))
print("==============================")
buildCommand = "cmake --build {0}".format(BuildDirectory)
buildCommand = "cmake --build {0} -- -j 4".format(BuildDirectory)
print(buildCommand)
subprocess.run(
buildCommand,
Expand Down
8 changes: 4 additions & 4 deletions Scripts/BuildBenchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ def BuildBenchmark(
CoDeLibInstallDirectory = Path(
CoDeLibPath / "Install" / targetPlatformString / BuildTypeString
)
ExternalLibInstallPath = Path(
ExternalLibPath / "Install" / targetPlatformString / BuildTypeString
ExternalZlibLibInstallPath = Path(
ExternalLibPath / "zlib/Install" / targetPlatformString / BuildTypeString
)

BenchmarkRootPath = Path(RepositoryRootPath / ProjectName)
Expand All @@ -75,7 +75,7 @@ def BuildBenchmark(
CoDeLibInstallDirectory,
BenchmarkRootPath,
BuildDirectory,
ExternalLibInstallPath,
ExternalZlibLibInstallPath,
BuildTypeString,
)
subprocess.run(
Expand All @@ -87,7 +87,7 @@ def BuildBenchmark(
print("==============================")
print(ProjectName + ": Building ({})".format(BuildTypeString))
print("==============================")
buildCommand = "cmake --build {0}".format(BuildDirectory)
buildCommand = "cmake --build {0} -- -j 4".format(BuildDirectory)
subprocess.run(
buildCommand,
shell=True,
Expand Down
8 changes: 4 additions & 4 deletions Scripts/CleanAll.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
CoDeLibInstallPath = Path(CoDeLibPath / "Install")

ExternalLibPath = Path(ProjectRootPath / "External")
ExternalLibBuildPath = Path(ExternalLibPath / "Build")
ExternalLibInstallPath = Path(ExternalLibPath / "Install")
ExternalZlibLibBuildPath = Path(ExternalLibPath / "zlib/Build")
ExternalZlibLibInstallPath = Path(ExternalLibPath / "zlib/Install")

DirectoriesToRemove = [
BenchmarkBuildPath,
CoDeLibBuildPath,
CoDeLibInstallPath,
ExternalLibBuildPath,
ExternalLibInstallPath,
ExternalZlibLibBuildPath,
ExternalZlibLibInstallPath,
]


Expand Down
8 changes: 5 additions & 3 deletions Scripts/RunBenchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ def RunBenchmark(
+ "-----------------------------------------"
+ "\n"
)
print("\n")
print(BenchmarkHeader, end="")

BenchmarkExecutablePath = Path(BuildDirectory / BenchmarkName)
if targetPlatform == EnvironmentConfig.Platform.WINDOWS:
Expand All @@ -129,7 +127,6 @@ def RunBenchmark(
)

BenchmarkCommand = str(BenchmarkExecutablePath) + " " + BenchmarkOptions
print("Command: {}".format(BenchmarkCommand))

RawBenchmarkResultsFileNames.append(
GetBenchmarkResultsFileRawName(buildConfig, BenchmarkName)
Expand Down Expand Up @@ -177,3 +174,8 @@ def RunBenchmark(
BuildEnv, EnvironmentConfig.BuildConfig.RELEASE, BenchmarkList
)
AppendBenchmarkResultToTotalResultFile(BenchmarkResultFileName, RawResultFiles)

# Print the content of BenchmarkResultFileName to the console
print("\n")
with open(BenchmarkResultFileName, "r") as file:
print(file.read())
9 changes: 5 additions & 4 deletions Scripts/RunTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,6 @@ def RunTests(
+ "-----------------------------------------"
+ "\n"
)
print("\n")
print(testHeader, end="")

TestExecutablePath = Path(CoDeLibBuildPath / "Test" / testName)
if targetPlatform == EnvironmentConfig.Platform.WINDOWS:
Expand All @@ -116,8 +114,6 @@ def RunTests(
TestOptions = '"' + str(BenchmarkTestFilesPath) + '/"'
TestCommand = str(TestExecutablePath) + " " + TestOptions

print("Command: {}".format(TestCommand))

RawTestResultsFileNames.append(GetTestResultsFileRawName(buildConfig, testName))

TestResultsFileRaw = open(RawTestResultsFileNames[-1], "w")
Expand Down Expand Up @@ -156,3 +152,8 @@ def RunTests(

RawResultFiles = RunTests(BuildEnv, EnvironmentConfig.BuildConfig.RELEASE, TestList)
AppendTestResultToTotalResultFile(TestResultsFileName, RawResultFiles)

# Print the content of BenchmarkResultFileName to the console
print("\n")
with open(TestResultsFileName, "r") as file:
print(file.read())