Skip to content

Commit 710b391

Browse files
Use PublicDefinitions instead of Definitions
1 parent 8eb8bb4 commit 710b391

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Source/UnrealEnginePython/UnrealEnginePython.Build.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class UnrealEnginePython : ModuleRules
1111
private string pythonHome = "";
1212
// otherwise specify the path of your python installation
1313
//private string pythonHome = "C:/Program Files/Python36";
14-
// this is an example for Homebrew on Mac
14+
// this is an example for Homebrew on Mac
1515
//private string pythonHome = "/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/";
1616
// on Linux an include;libs syntax is expected:
1717
//private string pythonHome = "/usr/local/include/python3.6;/usr/local/lib/libpython3.6.so"
@@ -217,7 +217,7 @@ public UnrealEnginePython(TargetInfo Target)
217217
string libPath = GetMacPythonLibFile(pythonHome);
218218
PublicLibraryPaths.Add(Path.GetDirectoryName(libPath));
219219
PublicDelayLoadDLLs.Add(libPath);
220-
Definitions.Add(string.Format("UNREAL_ENGINE_PYTHON_ON_MAC"));
220+
PublicDefinitions.Add(string.Format("UNREAL_ENGINE_PYTHON_ON_MAC"));
221221
}
222222
else if (Target.Platform == UnrealTargetPlatform.Linux)
223223
{
@@ -242,13 +242,13 @@ public UnrealEnginePython(TargetInfo Target)
242242
PublicIncludePaths.Add(items[0]);
243243
PublicAdditionalLibraries.Add(items[1]);
244244
}
245-
Definitions.Add(string.Format("UNREAL_ENGINE_PYTHON_ON_LINUX"));
245+
PublicDefinitions.Add(string.Format("UNREAL_ENGINE_PYTHON_ON_LINUX"));
246246
}
247247

248248
string enableThreads = System.Environment.GetEnvironmentVariable("UEP_ENABLE_THREADS");
249249
if (!string.IsNullOrEmpty(enableThreads))
250250
{
251-
Definitions.Add("UEPY_THREADING");
251+
PublicDefinitions.Add("UEPY_THREADING");
252252
System.Console.WriteLine("*** Enabled Python Threads support ***");
253253
}
254254

@@ -257,8 +257,8 @@ public UnrealEnginePython(TargetInfo Target)
257257
private bool IsPathRelative(string Path)
258258
{
259259
bool IsRooted = Path.StartsWith("\\", System.StringComparison.Ordinal) || // Root of the current directory on Windows. Also covers "\\" for UNC or "network" paths.
260-
Path.StartsWith("/", System.StringComparison.Ordinal) || // Root of the current directory on Windows, root on UNIX-likes.
261-
// Also covers "\\", considering normalization replaces "\\" with "//".
260+
Path.StartsWith("/", System.StringComparison.Ordinal) || // Root of the current directory on Windows, root on UNIX-likes.
261+
// Also covers "\\", considering normalization replaces "\\" with "//".
262262
(Path.Length >= 2 && char.IsLetter(Path[0]) && Path[1] == ':'); // Starts with "<DriveLetter>:"
263263
return !IsRooted;
264264
}

0 commit comments

Comments
 (0)