Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Plugins/UE4Haxe
63 changes: 28 additions & 35 deletions Source/HaxeProgramTest.Target.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,55 +3,48 @@

public class HaxeProgramTestTarget : TargetRules
{
public HaxeProgramTestTarget(TargetInfo target) : base(target) {
public HaxeProgramTestTarget(TargetInfo Target) : base(Target) {
Type = TargetType.Program;
LaunchModuleName = "HaxeProgramTest";
LinkType = TargetLinkType.Monolithic;
ExtraModuleNames.Add("HaxeProgramTest");
}

public override void SetupGlobalEnvironment(
TargetInfo Target,
ref LinkEnvironmentConfiguration OutLinkEnvironmentConfiguration,
ref CPPEnvironmentConfiguration OutCPPEnvironmentConfiguration
)
{
// Lean and mean
bCompileLeanAndMeanUE = true;
// Lean and mean
bCompileLeanAndMeanUE = true;

// Never use malloc profiling in Unreal Header Tool.
bUseMallocProfiler = false;
// Never use malloc profiling in Unreal Header Tool.
bUseMallocProfiler = false;

// No editor needed
bBuildEditor = false;
// Editor-only data is not needed as well
bBuildWithEditorOnlyData = false;
// No editor needed
bBuildEditor = false;
// Editor-only data is not needed as well
bBuildWithEditorOnlyData = false;

// Currently this app is not linking against the engine, so we'll compile out references from Core to the rest of the engine
bCompileAgainstEngine = false;
bCompileAgainstCoreUObject = false;
// Currently this app is not linking against the engine, so we'll compile out references from Core to the rest of the engine
bCompileAgainstEngine = false;
bCompileAgainstCoreUObject = false;

// Our test project is a console application, not a Windows app (sets entry point to main(), instead of WinMain())
OutLinkEnvironmentConfiguration.bIsBuildingConsoleApplication = true;
// Our test project is a console application, not a Windows app (sets entry point to main(), instead of WinMain())
bIsBuildingConsoleApplication = true;
bUseLoggingInShipping = true;

bIncludeADO = false;
bIncludeADO = false;

// Do not include ICU for Linux (this is a temporary workaround, separate headless CrashReportClient target should be created, see UECORE-14 for details).
if (Target.Platform == UnrealTargetPlatform.Linux)
{
bCompileICU = false;
}
// Do not include ICU for Linux (this is a temporary workaround, separate headless CrashReportClient target should be created, see UECORE-14 for details).
if (Target.Platform == UnrealTargetPlatform.Linux)
{
bCompileICU = false;
}

// CrashReportClient.exe has no exports, so no need to verify that a .lib and .exp file was emitted by
// the linker.
OutLinkEnvironmentConfiguration.bHasExports = false;
// CrashReportClient.exe has no exports, so no need to verify that a .lib and .exp file was emitted by
// the linker.
bHasExports = false;

bUseChecksInShipping = true;
bUseChecksInShipping = true;

// Epic Games Launcher needs to run on OS X 10.9, so CrashReportClient needs this as well
OutCPPEnvironmentConfiguration.bEnableOSX109Support = true;
// Epic Games Launcher needs to run on OS X 10.9, so CrashReportClient needs this as well
bEnableOSX109Support = true;

OutCPPEnvironmentConfiguration.Definitions.Add("NOINITCRASHREPORTER=1");
}
GlobalDefinitions.Add("NOINITCRASHREPORTER=1");
}
}
4 changes: 2 additions & 2 deletions Source/HaxeUnitTests/Public/BasicType2.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "HaxeUnitTests.h"

#include "BasicType2.h"

#include "HaxeUnitTests.h"

// yeah, it seems that we REALLY NEED to define that. WTF.
UBasicType2::UBasicType2(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
Expand Down
2 changes: 1 addition & 1 deletion Source/HaxeUnitTests/Public/BasicTypesSub.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "HaxeUnitTests.h"
#include "BasicTypesSub.h"
#include "HaxeUnitTests.h"

int64 UBasicTypesSub1::setText(FText text)
{
Expand Down
2 changes: 0 additions & 2 deletions Source/HaxeUnitTests/Public/BasicTypesSub.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class HAXEUNITTESTS_API UBasicTypesSub1 : public UBasicTypesUObject

static UBasicTypesUObject *SomeObject;

UFUNCTION()
virtual int64 setText(FText text) override;

UFUNCTION(BlueprintImplementableEvent)
Expand Down Expand Up @@ -133,7 +132,6 @@ class HAXEUNITTESTS_API UBasicTypesSub3 : public UBasicTypesSub2
bool isSub3 = true;
virtual bool setUI64_I64_Float_Double(uint64 ui64, int64 i64, float f, double d) override;

UFUNCTION()
virtual int64 setText(FText text) override;

static UBasicTypesSub3 *CreateFromCpp() {
Expand Down
2 changes: 1 addition & 1 deletion Source/HaxeUnitTests/Public/BasicTypesUObject.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "HaxeUnitTests.h"
#include "BasicTypesUObject.h"
#include "HaxeUnitTests.h"

int UBasicTypesUObject::someStaticInt = 0;

Expand Down
2 changes: 1 addition & 1 deletion Source/HaxeUnitTests/Public/HaxeUnitTestsGameMode.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Fill out your copyright notice in the Description page of Project Settings.

#include "HaxeUnitTests.h"
#include "HaxeUnitTestsGameMode.h"
#include "HaxeUnitTests.h"



Expand Down
2 changes: 1 addition & 1 deletion Source/HaxeUnitTests/Public/NonUObject.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "HaxeUnitTests.h"
#include "NonUObject.h"
#include "HaxeUnitTests.h"

int FSimpleStruct::someStaticInt = 442;

Expand Down
2 changes: 1 addition & 1 deletion Source/HaxeUnitTests/Public/TemplatesDef.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "HaxeUnitTests.h"
#include "TemplatesDef.h"
#include "HaxeUnitTests.h"

int UTemplatesDef::someStaticInt = 42;

2 changes: 1 addition & 1 deletion Source/HaxeUnitTests/Public/TestTools.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "HaxeUnitTests.h"
#include "TestTools.h"
#include "HaxeUnitTests.h"
#include "Modules/ModuleManager.h"
#if WITH_EDITOR
#include "ISessionFrontendModule.h"
Expand Down