Skip to content

Instantly share code, notes, and snippets.

@shadowmint
Created March 21, 2015 07:23
Show Gist options
  • Save shadowmint/ae4bd93053566af4b40f to your computer and use it in GitHub Desktop.
Save shadowmint/ae4bd93053566af4b40f to your computer and use it in GitHub Desktop.
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
using System.IO;
namespace UnrealBuildTool.Rules
{
public class TestBlankPlugin : ModuleRules
{
private string ModulePath {
get {
return Path.GetFullPath(Path.GetDirectoryName(RulesCompiler.GetModuleFilename(this.GetType().Name)));
}
}
public TestBlankPlugin(TargetInfo Target)
{
var plugin = Path.Combine(ModulePath, "../../../extern/");
var plugin_lib = Path.Combine(plugin, "target/debug/libextern.lib");
var plugin_headers = Path.Combine(plugin, "include");
Log.TraceError(plugin);
Log.TraceError(plugin_lib);
Log.TraceError(plugin_headers);
PublicAdditionalLibraries.Add(plugin_lib);
PublicIncludePaths.Add(plugin_headers);
PublicDelayLoadDLLs.Add(plugin_lib);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment