Skip to content
This repository has been archived by the owner on Jul 30, 2022. It is now read-only.

Commit

Permalink
fix precompile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
wongfei committed Nov 10, 2021
1 parent 659fb36 commit 2d6bc33
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Plugins/MediaPipe/Source/MediaPipe/MediaPipe.Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ public class MediaPipe : ModuleRules
{
public MediaPipe(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
PCHUsage = PCHUsageMode.NoPCHs; // UseExplicitOrSharedPCHs;
bUseUnity = false;
bUseRTTI = true;

PublicDependencyModuleNames.AddRange(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
#include "MediaPipeShared.h"
#include "Misc/Paths.h"

#if PLATFORM_WINDOWS
#include "Windows/WindowsPlatformProcess.h"
#endif

DEFINE_LOG_CATEGORY(LogMediaPipe);

IMPLEMENT_MODULE(FMediaPipeModule, MediaPipe)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#include "CoreMinimal.h"
#include "ump_api.h"
#include <typeinfo>

#define PLUGIN_NAME "MediaPipe"

Expand Down
6 changes: 5 additions & 1 deletion _precompile.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ set "WORK_DIR=%cd%"
set "BATCH_UAT=%UE_DIR%\Engine\Build\BatchFiles\RunUAT.bat"
set "BATCH_BUILD=%UE_DIR%\Engine\Build\BatchFiles\Build.bat"

"%BATCH_UAT%" BuildPlugin -Plugin="%WORK_DIR%\Plugins\MediaPipe\MediaPipe.uplugin" -Package="%WORK_DIR%\_Precompiled" -TargetPlatforms=Win64 -Rocket -precompile -VS2019
rmdir /S /Q "%WORK_DIR%\Build\Plugins\MediaPipe"

call "%BATCH_UAT%" BuildPlugin -Plugin="%WORK_DIR%\Plugins\MediaPipe\MediaPipe.uplugin" -Package="%WORK_DIR%\Build\Plugins\MediaPipe" -TargetPlatforms=Win64 -Rocket -precompile -VS2019 -StrictIncludes

xcopy /E /H /Q /Y "%WORK_DIR%\Plugins\MediaPipe\ThirdParty" "%WORK_DIR%\Build\Plugins\MediaPipe\ThirdParty\"

:: call "%BATCH_BUILD%" MediaPipeDemoEditor Win64 Development "%WORK_DIR%\MediaPipeDemo.uproject"
:: call "%BATCH_BUILD%" MediaPipeDemo Win64 Development "%WORK_DIR%\MediaPipeDemo.uproject"
Expand Down

0 comments on commit 2d6bc33

Please sign in to comment.