android signing

This commit is contained in:
2026-01-01 16:13:08 +02:00
parent 37f689f36d
commit 95d7489aa3
8 changed files with 180 additions and 15 deletions

View File

@@ -7,6 +7,7 @@
#include "tier0/platform.h"
#include "tier1/utlstring.h"
#include "legal.h"
struct AndroidManifest_t
{
@@ -36,6 +37,7 @@ abstract_class IAPKTool
{
public:
virtual CUtlString BuildPackage( AndroidManifest_t manifest, CUtlString szManifestDir ) = 0;
virtual CUtlString SignPackage( const char *szApk, LegalInfo_t *pLegalInfo, const char *szAlias, const char *szStorePassword, const char *szKeyPassword ) = 0;
};
IAPKTool *APKTool();

View File

@@ -105,9 +105,6 @@ protected:
// Returns executable which should the OS run
virtual const char *GetCompilerExecutable( LinkProject_t *pProject ) = 0;
// returns object file format, eg .obj or .o
virtual const char *GetOutputObjectFormat() = 0;
virtual void SetTarget( CUtlVector<CUtlString> &cmd, LinkProject_t *pProject ) = 0;
virtual void SetSysroot( CUtlVector<CUtlString> &cmd, LinkProject_t *pProject , const char *szSysroot ) = 0;

16
fpc/public/legal.h Normal file
View File

@@ -0,0 +1,16 @@
#ifndef LEGAL_H
#define LEGAL_H
struct LegalInfo_t
{
const char *FirstName;
const char *LastName;
const char *OrganizationalUnitName;
const char *OrganizationName;
const char *City;
const char *State;
const char *CountryCode;
};
#endif