You're breathtaking!

This commit is contained in:
Wojtek Figat
2020-12-07 23:40:54 +01:00
commit 6fb9eee74c
5143 changed files with 1153594 additions and 0 deletions

40
Source/ThirdParty/curl/curl.Build.cs vendored Normal file
View File

@@ -0,0 +1,40 @@
// Copyright (c) 2012-2020 Wojciech Figat. All rights reserved.
using System.IO;
using Flax.Build;
using Flax.Build.NativeCpp;
/// <summary>
/// https://curl.haxx.se/
/// </summary>
public class curl : DepsModule
{
/// <inheritdoc />
public override void Init()
{
base.Init();
LicenseType = LicenseTypes.Custom;
LicenseFilePath = "curl License.txt";
}
/// <inheritdoc />
public override void Setup(BuildOptions options)
{
base.Setup(options);
var depsRoot = options.DepsFolder;
switch (options.Platform.Target)
{
case TargetPlatform.Windows:
options.PublicDefinitions.Add("CURL_STATICLIB");
options.OutputFiles.Add(Path.Combine(depsRoot, "libcurl.lib"));
options.OptionalDependencyFiles.Add(Path.Combine(depsRoot, "libcurl.pdb"));
options.OutputFiles.Add("ws2_32.lib");
options.OutputFiles.Add("wldap32.lib");
options.OutputFiles.Add("crypt32.lib");
break;
default: throw new InvalidPlatformException(options.Platform.Target);
}
}
}