Add curl for Editor on Linux
This commit is contained in:
@@ -42,7 +42,7 @@ Follow the instructions below to compile and run the engine from source.
|
||||
* Install Visual Studio Code
|
||||
* Install Mono ([https://www.mono-project.com/download/stable](https://www.mono-project.com/download/stable))
|
||||
* Install Git with LFS
|
||||
* Install requried packages: `sudo apt-get install nuget autoconf libtool libogg-dev automake build-essential gettext cmake python curl libtool-bin libx11-dev libpulse-dev libasound2-dev libjack-dev portaudio19-dev`
|
||||
* Install requried packages: `sudo apt-get install nuget autoconf libtool libogg-dev automake build-essential gettext cmake python curl libtool-bin libx11-dev libpulse-dev libasound2-dev libjack-dev portaudio19-dev libcurl4-gnutls-dev`
|
||||
* Install compiler `sudo apt-get install clang-7 lldb-7 lld-7`
|
||||
* Clone repo (with LFS)
|
||||
* Run `sudo bash GenerateProjectFiles.sh`
|
||||
|
||||
3
Source/ThirdParty/curl/curl.Build.cs
vendored
3
Source/ThirdParty/curl/curl.Build.cs
vendored
@@ -24,10 +24,10 @@ public class curl : DepsModule
|
||||
base.Setup(options);
|
||||
|
||||
var depsRoot = options.DepsFolder;
|
||||
options.PublicDefinitions.Add("CURL_STATICLIB");
|
||||
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");
|
||||
@@ -35,6 +35,7 @@ public class curl : DepsModule
|
||||
options.OutputFiles.Add("crypt32.lib");
|
||||
break;
|
||||
case TargetPlatform.Linux:
|
||||
options.Libraries.Add("curl");
|
||||
break;
|
||||
default: throw new InvalidPlatformException(options.Platform.Target);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user