Remove CPP_LIBPREFIX from ios/tvos template
It is no longer used, and was only there to provide compatibility with hxcpp versions older than 3.2
This commit is contained in:
committed by
Josh Tynjala
parent
3208c8772c
commit
1b5958f6ff
@@ -262,23 +262,6 @@ class TVOSPlatform extends PlatformTarget
|
||||
context.IOS_COMPILER = project.config.getString("tvos.compiler", "clang");
|
||||
context.CPP_BUILD_LIBRARY = project.config.getString("cpp.buildLibrary", "hxcpp");
|
||||
|
||||
var json = Json.parse(File.getContent(Haxelib.getPath(new Haxelib("hxcpp"), true) + "/haxelib.json"));
|
||||
|
||||
var version = Std.string(json.version);
|
||||
var versionSplit = version.split(".");
|
||||
|
||||
while (versionSplit.length > 2)
|
||||
versionSplit.pop();
|
||||
|
||||
if (Std.parseFloat(versionSplit.join(".")) > 3.1)
|
||||
{
|
||||
context.CPP_LIBPREFIX = "lib";
|
||||
}
|
||||
else
|
||||
{
|
||||
context.CPP_LIBPREFIX = "";
|
||||
}
|
||||
|
||||
context.IOS_LINKER_FLAGS = ["-stdlib=libc++"].concat(project.config.getArrayString("tvos.linker-flags"));
|
||||
context.IOS_NON_EXEMPT_ENCRYPTION = project.config.getBool("tvos.non-exempt-encryption", true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user