almost signing ios
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
ADD_DEPENDENCY_BUILD_FILE(tier1, "../../tier1/build.cpp");
|
||||
|
||||
DECLARE_BUILD_STAGE(xtool_backend)
|
||||
DECLARE_BUILD_STAGE(xtool)
|
||||
{
|
||||
if (!linker->IsLibraryExists("swiftCore"))
|
||||
{
|
||||
@@ -16,32 +16,35 @@ DECLARE_BUILD_STAGE(xtool_backend)
|
||||
}
|
||||
|
||||
|
||||
ISwiftCompiler *swiftcompiler = NULL;
|
||||
if (swiftcompiler == NULL)
|
||||
{
|
||||
CreateInterfaceFn pLibFPCFactory = Sys_GetFactory("fpc");
|
||||
swiftcompiler = (ISwiftCompiler*)pLibFPCFactory(SWIFT_COMPILER_INTERFACE_VERSION, NULL);
|
||||
CUtlString outputProject = CUtlString("fpcxtool/.build/%s/debug/libfpcxtool.a",Target_t::HostTarget().GetTriplet().GetString());
|
||||
V_printf("SWIFT %s\n", outputProject.GetString());
|
||||
|
||||
if (swiftcompiler == NULL)
|
||||
return 0;
|
||||
}
|
||||
CUtlVector<CUtlString> args = {"build"};
|
||||
runner->Run("swift","fpcxtool", args);
|
||||
runner->Wait();
|
||||
|
||||
SwiftProject_t compileProject = {};
|
||||
LinkProject_t ldProject = {};
|
||||
|
||||
compileProject.m_szName = "xtool";
|
||||
compileProject.files = {
|
||||
"xtool/sign.swift"
|
||||
};
|
||||
|
||||
ldProject = swiftcompiler->Compile(&compileProject);
|
||||
ldProject.linkType = ELINK_STATIC_LIBRARY;
|
||||
|
||||
CUtlString outputProject = linker->Link(&ldProject);
|
||||
|
||||
|
||||
ADD_OUTPUT_OBJECT("xtool", outputProject)
|
||||
ADD_OUTPUT_OBJECT("xtool", outputProject);
|
||||
|
||||
return 0;
|
||||
};
|
||||
|
||||
DECLARE_BUILD_STAGE(xtool_cpp)
|
||||
{
|
||||
CProject_t compileProject = {};
|
||||
LinkProject_t ldProject = {};
|
||||
CUtlString szOutputProject = "";
|
||||
|
||||
compileProject.m_szName = "xtool";
|
||||
compileProject.files = {
|
||||
"fpcxtool/sign.cpp"
|
||||
};
|
||||
compileProject.includeDirectories = {"../public","../../public"};
|
||||
compileProject.bFPIC = true;
|
||||
ldProject = ccompiler->Compile(&compileProject);
|
||||
|
||||
ldProject.linkType = ELINK_DYNAMIC_LIBRARY;
|
||||
ldProject.libraryObjects.AppendTail(GET_PROJECT_LIBRARY(xtool, "xtool"));
|
||||
szOutputProject = linker->Link(&ldProject);
|
||||
ADD_OUTPUT_OBJECT("xtool", szOutputProject);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user