Initial project build steps
This commit is contained in:
parent
88a60e60a8
commit
76d73a6a35
16
.gitignore
vendored
16
.gitignore
vendored
@ -2,6 +2,7 @@ Binaries
|
||||
DerivedDataCache
|
||||
Intermediate
|
||||
Saved
|
||||
Build
|
||||
.vscode
|
||||
.vs
|
||||
*.VC.db
|
||||
@ -11,4 +12,17 @@ Saved
|
||||
*.sln
|
||||
*.suo
|
||||
*.xcodeproj
|
||||
*.xcworkspace
|
||||
*.xcworkspace
|
||||
|
||||
# IntelliJ
|
||||
.idea/
|
||||
*.DS_Store*
|
||||
*.DotSettings.user
|
||||
|
||||
# Rust crate
|
||||
Source/land_of_barl/.idea/
|
||||
Source/land_of_barl/Cargo.lock
|
||||
Source/land_of_barl/gen/
|
||||
Source/land_of_barl/target/
|
||||
|
||||
|
||||
|
@ -1,12 +1,8 @@
|
||||
// Copyright Epic Games, Inc. All Rights Reserved.
|
||||
|
||||
using UnrealBuildTool;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public class LandOfBarlTarget : TargetRules
|
||||
{
|
||||
public LandOfBarlTarget(TargetInfo Target) : base(Target)
|
||||
{
|
||||
public class LandOfBarlTarget : TargetRules {
|
||||
public LandOfBarlTarget(TargetInfo Target) : base(Target) {
|
||||
Type = TargetType.Game;
|
||||
DefaultBuildSettings = BuildSettingsVersion.V5;
|
||||
IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_5;
|
||||
|
0
Source/LandOfBarl/Bridge.cpp
Normal file
0
Source/LandOfBarl/Bridge.cpp
Normal file
2
Source/LandOfBarl/Bridge.h
Normal file
2
Source/LandOfBarl/Bridge.h
Normal file
@ -0,0 +1,2 @@
|
||||
#pragma once
|
||||
|
@ -1,23 +1,36 @@
|
||||
// Copyright Epic Games, Inc. All Rights Reserved.
|
||||
|
||||
using System.IO;
|
||||
using UnrealBuildTool;
|
||||
|
||||
public class LandOfBarl : ModuleRules
|
||||
{
|
||||
public LandOfBarl(ReadOnlyTargetRules Target) : base(Target)
|
||||
{
|
||||
public class LandOfBarl : ModuleRules {
|
||||
private void AddRustLibrary(ReadOnlyTargetRules Target) {
|
||||
var CrateDir = Path.Combine(ModuleDirectory, "..", "land_of_barl");
|
||||
|
||||
var TargetName = "release";
|
||||
|
||||
var LibraryPath = "";
|
||||
if (Target.Platform == UnrealTargetPlatform.Win64) {
|
||||
LibraryPath = Path.Combine(CrateDir, "target", TargetName, "land_of_barl.lib");
|
||||
|
||||
PublicSystemLibraries.Add("Bcrypt.Lib");
|
||||
PublicSystemLibraries.Add("Ntdll.Lib");
|
||||
PublicSystemLibraries.Add("Userenv.Lib");
|
||||
PublicSystemLibraries.Add("WSock32.Lib");
|
||||
PublicSystemLibraries.Add("WS2_32.Lib");
|
||||
} else if (Target.Platform == UnrealTargetPlatform.Mac || Target.Platform == UnrealTargetPlatform.Linux) {
|
||||
LibraryPath = Path.Combine(CrateDir, "target", TargetName, "libland_of_barl.a");
|
||||
}
|
||||
|
||||
ExternalDependencies.Add(LibraryPath);
|
||||
PublicAdditionalLibraries.Add(LibraryPath);
|
||||
}
|
||||
|
||||
public LandOfBarl(ReadOnlyTargetRules Target) : base(Target) {
|
||||
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
|
||||
|
||||
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "EnhancedInput" });
|
||||
|
||||
PrivateDependencyModuleNames.AddRange(new string[] { });
|
||||
|
||||
// Uncomment if you are using Slate UI
|
||||
// PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore" });
|
||||
PrivateDependencyModuleNames.AddRange(new string[] { });
|
||||
|
||||
// Uncomment if you are using online features
|
||||
// PrivateDependencyModuleNames.Add("OnlineSubsystem");
|
||||
|
||||
// To include OnlineSubsystemSteam, add it to the plugins section in your uproject file with the Enabled attribute set to true
|
||||
AddRustLibrary(Target);
|
||||
}
|
||||
}
|
||||
}
|
@ -1,5 +1,3 @@
|
||||
// Copyright Epic Games, Inc. All Rights Reserved.
|
||||
|
||||
#include "LandOfBarl.h"
|
||||
#include "Modules/ModuleManager.h"
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
// Copyright Epic Games, Inc. All Rights Reserved.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
|
@ -1,12 +1,8 @@
|
||||
// Copyright Epic Games, Inc. All Rights Reserved.
|
||||
|
||||
using UnrealBuildTool;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public class LandOfBarlEditorTarget : TargetRules
|
||||
{
|
||||
public LandOfBarlEditorTarget( TargetInfo Target) : base(Target)
|
||||
{
|
||||
public class LandOfBarlEditorTarget : TargetRules {
|
||||
public LandOfBarlEditorTarget( TargetInfo Target) : base(Target) {
|
||||
Type = TargetType.Editor;
|
||||
DefaultBuildSettings = BuildSettingsVersion.V5;
|
||||
IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_5;
|
||||
|
Loading…
x
Reference in New Issue
Block a user