anisette is done, how to sign?

This commit is contained in:
2026-01-07 18:23:30 +02:00
parent 2b91057589
commit defb60ac53
32 changed files with 455 additions and 61 deletions

View File

@@ -1,5 +1,5 @@
# We want to build just enough to use other stuff
TIER0_FILES := ../tier0/lib.cpp ../tier0/mem.cpp ../tier0/platform.cpp ../tier0/commandline.cpp
TIER0_FILES := ../tier0/lib.cpp ../tier0/mem.cpp ../tier0/platform.cpp ../tier0/commandline.cpp ../tier0/rand.cpp
TIER1_FILES := ../tier1/utlbuffer.cpp ../tier1/interface.cpp ../tier1/utlstring.cpp ../tier1/utlvector.cpp ../tier1/utlmap.cpp
TIER2_FILES := ../tier2/filesystem.cpp ../tier2/fileformats/ini.cpp
FILESYSTEM_FILES := ../stdfilesystems/filesystem_libc.cpp
@@ -20,7 +20,7 @@ recompile: ../build/tools/fpc
build/fpc build
install: ../build/tools/fpc libfpcbuild.a libfpc.so libtier0.so libtier1.a libtier2.a libfilesystem_std.so install_temp builddir
$(CC) -fPIC main.cpp library/helper.cpp library/target.cpp library/builder.cpp -lc -lstdc++ $(CCFLAGS) -o build/fpc libtier0.so build/libtier1.a build/libtier2.a -Wl,--disable-new-dtags -Wl,-rpath,'$$ORIGIN'
$(CC) -fPIC main.cpp library/helper.cpp library/target.cpp library/builder.cpp -lc -lstdc++ $(CCFLAGS) -o build/fpc -ltier0 -Lbuild build/libtier1.a build/libtier2.a -Wl,--disable-new-dtags -Wl,-rpath,'$$ORIGIN'
build/fpc build
mv build/fpc_temp build/fpc
mv build/libfpc_temp.so build/libfpc.so

View File

@@ -87,7 +87,7 @@ DECLARE_BUILD_STAGE(libfpc)
ldProject = ccompiler->Compile(&compileProject);
ldProject.linkType = ELINK_DYNAMIC_LIBRARY;
ldProject.libraryObjects = {
"libtier0.so",
GET_PROJECT_LIBRARY(tier0, "tier0"),
GET_PROJECT_LIBRARY(tier1, "tier1"),
GET_PROJECT_LIBRARY(tier2, "tier2"),
};
@@ -114,7 +114,7 @@ DECLARE_BUILD_STAGE(fpc)
compileProject.includeDirectories = g_IncludeDirectories;
ldProject = ccompiler->Compile(&compileProject);
ldProject.libraryObjects = {
"libtier0.so",
GET_PROJECT_LIBRARY(tier0, "tier0"),
GET_PROJECT_LIBRARY(tier1, "tier1"),
GET_PROJECT_LIBRARY(tier2, "tier2"),
};

Binary file not shown.

Binary file not shown.

View File

@@ -2,7 +2,7 @@
#include "helper.h"
#include "tier0/lib.h"
#include "tier0/platform.h"
#include "tier1/commandline.h"
#include "tier0/commandline.h"
#include "tier1/interface.h"
#include "runner.h"
#include "tier1/utlstring.h"

View File

@@ -88,6 +88,7 @@ CUtlString CAppleTool::SignPackage( const char *szIpa, const char *szPassword )
Plat_FatalErrorFunc("Couldn't get xtool\n");
g_pAppleAuth = (IAppleAuth*)fnFactory(APPLE_AUTH_INTERFACE_VERSION, NULL);
g_pAppleAuth->Init();
g_pAppleAuth->SubmitLoginData("bratelllo@icloud.com", "");
return szIpa;
}

View File

@@ -5,7 +5,7 @@
#include "target.h"
#include "tier0/lib.h"
#include "tier0/platform.h"
#include "tier1/commandline.h"
#include "tier0/commandline.h"
#include "tier1/interface.h"
#include "tier1/utlstring.h"
#include "tier1/utlvector.h"

View File

@@ -161,7 +161,18 @@ void CClangLinker::LinkFile( CUtlVector<CUtlString> &cmd, const char *szName )
void CClangLinker::LinkLibraryObject( CUtlVector<CUtlString> &cmd, const char *szName )
{
cmd.AppendTail(szName);
CUtlString szDir = CUtlString(szName).GetDirectory();
CUtlString szFileName = CUtlString(szName).GetFileName();
if (!V_strncmp(szFileName, "lib",3))
szFileName.RemoveHead(3);
if (!V_strncmp(szFileName.GetFileExtension(), "so",2))
szFileName.RemoveTail(3);
if (!V_strncmp(szFileName.GetFileExtension(), "a",1))
szFileName.RemoveTail(2);
cmd.AppendTail("-L");
cmd.AppendTail(szDir);
cmd.AppendTail("-l");
cmd.AppendTail(szFileName);
}
void CClangLinker::LinkLibrary( CUtlVector<CUtlString> &cmd, const char *szName )

View File

@@ -5,7 +5,7 @@
#include "tier1/utlvector.h"
#include "unistd.h"
#include "sys/wait.h"
#include "tier1/commandline.h"
#include "tier0/commandline.h"
#include "winerunner.h"

View File

@@ -1,5 +1,5 @@
#include "target.h"
#include "tier1/commandline.h"
#include "tier0/commandline.h"
#include "tier1/utlstring.h"
//-----------------------------------------------------------------------------

View File

@@ -7,7 +7,7 @@
#include "tier0/lib.h"
#include "tier0/mem.h"
#include "tier0/platform.h"
#include "tier1/commandline.h"
#include "tier0/commandline.h"
#include "tier1/interface.h"
#include "tier1/utlstring.h"
#include "tier1/utlvector.h"

View File

@@ -1,9 +1,9 @@
#include "runner.h"
#include "tier0/platform.h"
#include "tier0/commandline.h"
#include "tier1/interface.h"
#include "tier1/utlstring.h"
#include "tier1/utlvector.h"
#include "tier1/commandline.h"
#include "windows.h"

View File

@@ -6,7 +6,7 @@
#include "tier1/utlvector.h"
#include "unistd.h"
#include "sys/wait.h"
#include "tier1/commandline.h"
#include "tier0/commandline.h"
class CWineRunner: public IWineRunner
{

Binary file not shown.

View File

@@ -1,5 +1,6 @@
#include "tier0/platform.h"
#include "tier1/commandline.h"
#include "tier0/rand.h"
#include "tier0/commandline.h"
#include "tier1/interface.h"
#include "tier1/utlvector.h"
#include "tier2/ifilesystem.h"
@@ -153,12 +154,10 @@ findbuild:
*ppConfig = g_pConfig;
CommandLine()->CreateCommandLine(c, v);
Plat_InitRandom();
if (CommandLine()->CheckParam("build"))
return build();
const char *szDeployDevice = CommandLine()->ParamValue("deploy");
if (szDeployDevice)
{
}
Plat_ShutdownRandom();
return 0;
};

View File

@@ -5,20 +5,21 @@
#ifndef TARGET_T
#define TARGET_T
#include "tier0/commandline.h"
#include "tier1/utlstring.h"
#include "tier1/commandline.h"
enum ETargetKernel
{
TARGET_KERNEL_UNKNOWN = 0,
TARGET_KERNEL_LINUX,
TARGET_KERNEL_WINDOWS_DEVICES = 0x100,
TARGET_KERNEL_WINDOWS_MSVC,
TARGET_KERNEL_WINDOWS_GNU,
TARGET_KERNEL_WINDOWS = TARGET_KERNEL_WINDOWS_GNU,
TARGET_KERNEL_APPLE_DEVICES = 0x200,
TARGET_KERNEL_POSIX = 0x10000,
TARGET_KERNEL_LINUX,
TARGET_KERNEL_APPLE_DEVICES = TARGET_KERNEL_POSIX | 0x200,
TARGET_KERNEL_DARWIN,
TARGET_KERNEL_IOS,
TARGET_KERNEL_ANDROID,