本文整理汇总了C#中Bam.HasPlatform方法的典型用法代码示例。如果您正苦于以下问题:C# Bam.HasPlatform方法的具体用法?C# Bam.HasPlatform怎么用?C# Bam.HasPlatform使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Bam
的用法示例。
在下文中一共展示了Bam.HasPlatform方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetBinPath
GetBinPath(
Bam.Core.BaseTarget baseTarget)
{
this.GetInstallPath();
if (baseTarget.HasPlatform(Bam.Core.EPlatform.Win64))
{
// VS2012 does not have a pure 64-bit compiler
return this.bin6432Folder;
}
else
{
return this.bin32Folder;
}
}
示例2: AMDAPPSDK_LinkerOptions
void AMDAPPSDK_LinkerOptions(Bam.Core.IModule module, Bam.Core.Target target)
{
var linkerOptions = module.Options as C.ILinkerOptions;
if (null == linkerOptions)
{
return;
}
// set library paths
string platformLibraryPath = null;
if (target.HasPlatform(Bam.Core.EPlatform.Win32))
{
platformLibraryPath = System.IO.Path.Combine(LibraryPath, "x86");
}
else if (target.HasPlatform(Bam.Core.EPlatform.Win64))
{
platformLibraryPath = System.IO.Path.Combine(LibraryPath, "x86_64");
}
else
{
throw new Bam.Core.Exception("Unsupported platform for the DirectX package");
}
linkerOptions.LibraryPaths.Add(platformLibraryPath);
// libraries to link against
linkerOptions.Libraries.Add("OpenCL.lib");
}
示例3: WindowsSDK_LibraryPaths
void WindowsSDK_LibraryPaths(
Bam.Core.IModule module,
Bam.Core.Target target)
{
var linkerOptions = module.Options as C.ILinkerOptions;
if (null == linkerOptions)
{
return;
}
if (target.HasPlatform(Bam.Core.EPlatform.Win32))
{
linkerOptions.LibraryPaths.Add(lib32Path);
}
else if (target.HasPlatform(Bam.Core.EPlatform.Win64))
{
linkerOptions.LibraryPaths.Add(lib64Path);
}
else
{
throw new Bam.Core.Exception("Windows SDK is not supported on '{0}'; use win32 or win64", target.ToString());
}
}