|
@@ -90,70 +90,6 @@ bool BuildWindows::CheckIncludeResourceFile(const String& resourceDir, const Str
|
|
|
return BuildBase::CheckIncludeResourceFile(resourceDir, fileName);
|
|
return BuildBase::CheckIncludeResourceFile(resourceDir, fileName);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void BuildWindows::BuildAtomicNET()
|
|
|
|
|
-{
|
|
|
|
|
- // AtomicNET
|
|
|
|
|
-
|
|
|
|
|
- FileSystem* fileSystem = GetSubsystem<FileSystem>();
|
|
|
|
|
- ToolEnvironment* tenv = GetSubsystem<ToolEnvironment>();
|
|
|
|
|
- ToolSystem* tsystem = GetSubsystem<ToolSystem>();
|
|
|
|
|
- Project* project = tsystem->GetProject();
|
|
|
|
|
- String projectResources = project->GetResourcePath();
|
|
|
|
|
-
|
|
|
|
|
- String assembliesPath = projectResources + "Assemblies/";
|
|
|
|
|
-
|
|
|
|
|
- // if no assemblies path, no need to install AtomicNET
|
|
|
|
|
- if (!fileSystem->DirExists(assembliesPath))
|
|
|
|
|
- return;
|
|
|
|
|
-
|
|
|
|
|
- Vector<String> results;
|
|
|
|
|
- fileSystem->ScanDir(results, assembliesPath, "*.dll", SCAN_FILES, true);
|
|
|
|
|
-
|
|
|
|
|
- // if no assembiles in Assemblies path, no need to install AtomicNET
|
|
|
|
|
- if (!results.Size())
|
|
|
|
|
- return;
|
|
|
|
|
-
|
|
|
|
|
- BuildLog("Building AtomicNET");
|
|
|
|
|
-
|
|
|
|
|
- fileSystem->CreateDir(buildPath_ + "/AtomicPlayer_Resources/AtomicNET");
|
|
|
|
|
- fileSystem->CreateDir(buildPath_ + "/AtomicPlayer_Resources/AtomicNET/Atomic");
|
|
|
|
|
- fileSystem->CreateDir(buildPath_ + "/AtomicPlayer_Resources/AtomicNET/Atomic/Assemblies");
|
|
|
|
|
-
|
|
|
|
|
- fileSystem->CopyDir(tenv->GetNETCoreCLRAbsPath(), buildPath_ + "/AtomicPlayer_Resources/AtomicNET/CoreCLR");
|
|
|
|
|
- fileSystem->CopyDir(tenv->GetNETTPAPaths(), buildPath_ + "/AtomicPlayer_Resources/AtomicNET/Atomic/TPA");
|
|
|
|
|
-
|
|
|
|
|
- // Atomic Assemblies
|
|
|
|
|
-
|
|
|
|
|
- const String& assemblyLoadPaths = tenv->GetNETAssemblyLoadPaths();
|
|
|
|
|
- Vector<String> paths = assemblyLoadPaths.Split(';');
|
|
|
|
|
-
|
|
|
|
|
- for (unsigned i = 0; i < paths.Size(); i++)
|
|
|
|
|
- {
|
|
|
|
|
- Vector<String> loadResults;
|
|
|
|
|
- fileSystem->ScanDir(loadResults, paths[i], "*.dll", SCAN_FILES, true);
|
|
|
|
|
-
|
|
|
|
|
- for (unsigned j = 0; j < loadResults.Size(); j++)
|
|
|
|
|
- {
|
|
|
|
|
- String pathName, fileName, ext;
|
|
|
|
|
- SplitPath(loadResults[j], pathName, fileName, ext);
|
|
|
|
|
-
|
|
|
|
|
- if (fileName != "AtomicNETEngine")
|
|
|
|
|
- continue;
|
|
|
|
|
-
|
|
|
|
|
- fileSystem->Copy(paths[i] + "/" + loadResults[j], ToString("%s/AtomicPlayer_Resources/AtomicNET/Atomic/Assemblies/%s.dll", buildPath_.CString(), fileName.CString()));
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- // Project assemblied
|
|
|
|
|
- for (unsigned i = 0; i < results.Size(); i++)
|
|
|
|
|
- {
|
|
|
|
|
- String pathName, fileName, ext;
|
|
|
|
|
- SplitPath(results[i], pathName, fileName, ext);
|
|
|
|
|
- fileSystem->Copy(assembliesPath + results[i], ToString("%s/AtomicPlayer_Resources/AtomicNET/Atomic/Assemblies/%s.dll", buildPath_.CString(), fileName.CString()));
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
void BuildWindows::Build(const String& buildPath)
|
|
void BuildWindows::Build(const String& buildPath)
|
|
|
{
|
|
{
|
|
|
ToolEnvironment* tenv = GetSubsystem<ToolEnvironment>();
|
|
ToolEnvironment* tenv = GetSubsystem<ToolEnvironment>();
|