From 14e2e320c0960226c702149540c0ad50228bd0c9 Mon Sep 17 00:00:00 2001 From: Lee Yunjin Date: Mon, 6 Oct 2025 17:19:41 +0900 Subject: [PATCH] Add LINUX_BUILD Definition to support linux without destructing other platform builds --- README.md | 3 ++- Source/HoudiniEngine/Private/HoudiniEngine.cpp | 7 ++++++- Source/HoudiniEngine/Private/HoudiniOutputTranslator.cpp | 8 ++++++-- .../HoudiniEngineEditor/Private/HoudiniEngineEditor.cpp | 6 +++++- .../Private/Tests/HoudiniEditorTestUtils.cpp | 6 +++++- 5 files changed, 24 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4838389b..9f50f395 100644 --- a/README.md +++ b/README.md @@ -105,4 +105,5 @@ However, the Houdini Digital Assets themselves (the HDA files), that were create 01. You should now be able to import Houdini Digital Assets (HDA) `.otl` or `.hda` files or drag and drop them into the `Content Browser`. 01. Once you have an HDA in the `Content Browser` you should be able to drag it into the Editor viewport. This will spawn a new Houdini Asset Actor. Geometry cooking will be done in a separate thread and geometry will be displayed once the cooking is complete. At this point you will be able to see asset parameters in the `Details` pane. Modifying any of the parameters will force the asset to recook and possibly update its geometry. - +# Building on Linux +If you are using `RunUAT.sh` on Linux distributions, you should add `-Definition=LINUX_BUILD` to your command. diff --git a/Source/HoudiniEngine/Private/HoudiniEngine.cpp b/Source/HoudiniEngine/Private/HoudiniEngine.cpp index 2cee1b69..a94c5e14 100644 --- a/Source/HoudiniEngine/Private/HoudiniEngine.cpp +++ b/Source/HoudiniEngine/Private/HoudiniEngine.cpp @@ -43,7 +43,12 @@ #include "Engine/StaticMesh.h" #include "Materials/Material.h" #include "ISettingsModule.h" -#include "HAL/PlatformFilemanager.h" +#ifdef LINUX_BUILD + #include "HAL/PlatformFileManager.h" +#else + #include "HAL/PlatformFilemanager.h" +#endif + #include "Async/Async.h" #include "Logging/LogMacros.h" diff --git a/Source/HoudiniEngine/Private/HoudiniOutputTranslator.cpp b/Source/HoudiniEngine/Private/HoudiniOutputTranslator.cpp index 9b8e9307..4ab835f9 100644 --- a/Source/HoudiniEngine/Private/HoudiniOutputTranslator.cpp +++ b/Source/HoudiniEngine/Private/HoudiniOutputTranslator.cpp @@ -51,7 +51,11 @@ #include "EditorSupportDelegates.h" #include "FileHelpers.h" #include "LandscapeInfo.h" -#include "HAL/PlatformFilemanager.h" +#ifdef LINUX_BUILD + #include "HAL/PlatformFileManager.h" +else + #include "HAL/PlatformFilemanager.h" +#endif #include "HAL/FileManager.h" #include "Engine/WorldComposition.h" #include "Modules/ModuleManager.h" @@ -2392,4 +2396,4 @@ FHoudiniOutputTranslator::GetTempFolderFromAttribute(UHoudiniAssetComponent * HA HAC->TemporaryCookFolder.Path = TempFolderOverride; } -#undef LOCTEXT_NAMESPACE \ No newline at end of file +#undef LOCTEXT_NAMESPACE diff --git a/Source/HoudiniEngineEditor/Private/HoudiniEngineEditor.cpp b/Source/HoudiniEngineEditor/Private/HoudiniEngineEditor.cpp index a59bb452..9975d6ea 100644 --- a/Source/HoudiniEngineEditor/Private/HoudiniEngineEditor.cpp +++ b/Source/HoudiniEngineEditor/Private/HoudiniEngineEditor.cpp @@ -53,7 +53,11 @@ #include "Modules/ModuleManager.h" #include "Interfaces/IPluginManager.h" -#include "HAL/PlatformFilemanager.h" +#ifdef LINUX_BUILD + #include "HAL/PlatformFileManager.h" +else + #include "HAL/PlatformFilemanager.h" +#endif #include "Misc/MessageDialog.h" #include "Misc/Paths.h" #include "AssetRegistryModule.h" diff --git a/Source/HoudiniEngineEditor/Private/Tests/HoudiniEditorTestUtils.cpp b/Source/HoudiniEngineEditor/Private/Tests/HoudiniEditorTestUtils.cpp index 20695a5e..a0912e43 100644 --- a/Source/HoudiniEngineEditor/Private/Tests/HoudiniEditorTestUtils.cpp +++ b/Source/HoudiniEngineEditor/Private/Tests/HoudiniEditorTestUtils.cpp @@ -12,7 +12,11 @@ #include "LevelEditor.h" #include "AssetRegistryModule.h" #include "Core/Public/HAL/FileManager.h" -#include "Core/Public/HAL/PlatformFilemanager.h" +#ifdef LINUX_BUILD + #include "Core/Public/HAL/PlatformFileManager.h" +#else + #include "Core/Public/HAL/PlatformFilemanager.h" +#endif #include "Editor/EditorPerformanceSettings.h" #include "Engine/Selection.h" #include "Interfaces/IMainFrameModule.h"