CPPHelper: warn when rebuild command cannot find C++ project source files
Typically, you can't run rebuild with Haxelib releases and need to check out from Git
This commit is contained in:
@@ -201,11 +201,17 @@ class CPPHelper
|
|||||||
path = project.config.get("project.rebuild.path");
|
path = project.config.get("project.rebuild.path");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (path == null || !FileSystem.exists(path))
|
if (path == null)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!FileSystem.exists(path))
|
||||||
|
{
|
||||||
|
Log.warn("Skipping rebuild. Path not found: " + path + "\nIf you are using a release from Haxelib, source code for native binaries may not be bundled. To rebuild, you may need to check out the full repository.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (buildFile == null && project.config.exists("project.rebuild.file"))
|
if (buildFile == null && project.config.exists("project.rebuild.file"))
|
||||||
{
|
{
|
||||||
buildFile = project.config.get("project.rebuild.file");
|
buildFile = project.config.get("project.rebuild.file");
|
||||||
@@ -215,6 +221,7 @@ class CPPHelper
|
|||||||
|
|
||||||
if (!FileSystem.exists(Path.combine(path, buildFile)))
|
if (!FileSystem.exists(Path.combine(path, buildFile)))
|
||||||
{
|
{
|
||||||
|
Log.warn("Skipping rebuild. Path not found: " + path + "\nIf you are using a release from Haxelib, source code for native binaries may not be bundled. To rebuild, you may need to check out the full repository.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user