Skip to content

Commit

Permalink
cleanup project files and module rules
Browse files Browse the repository at this point in the history
  • Loading branch information
microdee committed Jun 4, 2023
1 parent d543a15 commit 26f2549
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 107 deletions.
90 changes: 28 additions & 62 deletions Source/SpaceMouse/SpaceMouse.Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,72 +5,38 @@

public class SpaceMouse : ModuleRules
{
public SpaceMouse(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = ModuleRules.PCHUsageMode.NoSharedPCHs;
public SpaceMouse(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = PCHUsageMode.NoSharedPCHs;
bEnableUndefinedIdentifierWarnings = false;
CppStandard = CppStandardVersion.Cpp17;

PublicIncludePaths.AddRange(
new string[] {
// ... add public include paths required here ...
}
);


PrivateIncludePaths.AddRange(
new string[] {
// ... add other private include paths required here ...
}
);


PublicDependencyModuleNames.AddRange(
new string[]
{
"Core",
"CoreUObject",
"Engine",
"InputCore",
"PropertyEditor",
CppStandard = CppStandardVersion.Cpp17;


PublicDependencyModuleNames.AddRange(new []
{
"Core",
"CoreUObject",
"Engine",
"InputCore",
"PropertyEditor",

"SpaceMouseReader",
"SpaceMouseRuntime"
// ... add other public dependencies that you statically link with here ...
}
);


PrivateDependencyModuleNames.AddRange(
new string[]
{
// ... add private dependencies that you statically link with here ...
}
);
"SpaceMouseReader",
"SpaceMouseRuntime"
});

if (Target.Type == TargetType.Editor)
{
PublicDependencyModuleNames.AddRange(
new string[]
{
"Slate",
"SlateCore",
"UnrealEd",
"EditorStyle",
"DetailCustomizations",
"LevelEditor",
"ApplicationCore",
"RHI"
// ... add private dependencies that you statically link with here ...
}
);
PublicDependencyModuleNames.AddRange(new []
{
"Slate",
"SlateCore",
"UnrealEd",
"EditorStyle",
"DetailCustomizations",
"LevelEditor",
"ApplicationCore",
"RHI"
});
}

DynamicallyLoadedModuleNames.AddRange(
new string[]
{
// ... add any modules that your module loads dynamically here ...
}
);
}
}
}
3 changes: 1 addition & 2 deletions Source/SpaceMouseReader/SpaceMouseReader.Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ public class SpaceMouseReader : ModuleRules
{
public SpaceMouseReader(ReadOnlyTargetRules Target) : base(Target)
{
PrecompileForTargets = PrecompileTargetsType.Any;
PCHUsage = ModuleRules.PCHUsageMode.NoSharedPCHs;
PCHUsage = PCHUsageMode.NoSharedPCHs;
bEnableUndefinedIdentifierWarnings = false;
CppStandard = CppStandardVersion.Cpp17;

Expand Down
57 changes: 16 additions & 41 deletions Source/SpaceMouseRuntime/SpaceMouseRuntime.Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,52 +7,27 @@ public class SpaceMouseRuntime : ModuleRules
{
public SpaceMouseRuntime(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = ModuleRules.PCHUsageMode.NoSharedPCHs;
PCHUsage = PCHUsageMode.NoSharedPCHs;
bEnableUndefinedIdentifierWarnings = false;
CppStandard = CppStandardVersion.Cpp17;

PublicIncludePaths.AddRange(
new string[] {
// ... add public include paths required here ...
}
);


PrivateIncludePaths.AddRange(
new string[] {
// ... add other private include paths required here ...
}
);
if (Target.Version.MajorVersion >= 5)
{
PrivateDependencyModuleNames.AddRange(new [] {
"ApplicationCore"
});
}


PublicDependencyModuleNames.AddRange(
new string[]
{
"Core",
"CoreUObject",
"Engine",
PublicDependencyModuleNames.AddRange(new []
{
"Core",
"CoreUObject",
"Engine",

"SpaceMouseReader",
"InputCore",
"InputDevice"
// ... add other public dependencies that you statically link with here ...
}
);


PrivateDependencyModuleNames.AddRange(
new string[]
{
// ... add private dependencies that you statically link with here ...
}
);


DynamicallyLoadedModuleNames.AddRange(
new string[]
{
// ... add any modules that your module loads dynamically here ...
}
);
"SpaceMouseReader",
"InputCore",
"InputDevice"
});
}
}
4 changes: 2 additions & 2 deletions SpaceMouse.uplugin
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"FileVersion": 3,
"Version": 1,
"VersionName": "1.2.5",
"EngineVersion": "5.0.3",
"VersionName": "1.2.6",
"EngineVersion": "5.2.0",
"FriendlyName": "SpaceMouse",
"Description": "Control the active editor viewport camera with 3DConnexion SpaceMice",
"Category": "Input Devices",
Expand Down

0 comments on commit 26f2549

Please sign in to comment.