Update
This commit is contained in:
@@ -49,36 +49,37 @@ type
|
|||||||
funcs:TStringList;
|
funcs:TStringList;
|
||||||
regvars:TList<TPair<string,PTypeInfo>>;
|
regvars:TList<TPair<string,PTypeInfo>>;
|
||||||
consts:TList<TPair<string,TValue>>;
|
consts:TList<TPair<string,TValue>>;
|
||||||
|
callbacks:TList<TPair<string,TRTBCallBack>>;
|
||||||
FText:string;
|
FText:string;
|
||||||
function GetIncLibs():string;
|
function GetIncLibs():string;
|
||||||
function GetText:string;override;
|
function GetText:string;override;
|
||||||
procedure SetText(S:string);override;
|
procedure SetText(const S:string);override;
|
||||||
public
|
public
|
||||||
constructor Create(Compiler:TRTBFasmCompiler);
|
constructor Create(Compiler:TRTBFasmCompiler);
|
||||||
|
|
||||||
procedure LoadLib(Name:string);override;
|
procedure LoadLib(const Name:string);override;
|
||||||
procedure UnLoadLib(Name:string);override;
|
procedure UnLoadLib(const Name:string);override;
|
||||||
|
|
||||||
procedure AddNameSpace(Name:string);override;
|
procedure AddNameSpace(const Name:string);override;
|
||||||
procedure DelNameSpace(Name:string);override;
|
procedure DelNameSpace(const Name:string);override;
|
||||||
|
|
||||||
procedure AddType(NameSpace:string;Name:string;&Type:TRTBType);override;//-
|
procedure AddType(const NameSpace,Name:string;&Type:TRTBType);override;//-
|
||||||
procedure DelType(NameSpace:string;Name:string);override;//-
|
procedure DelType(const NameSpace,Name:string);override;//-
|
||||||
|
|
||||||
procedure AddConst(NameSpace:string;Name:string;Val:TValue);override;
|
procedure AddConst(const NameSpace,Name:string;Val:TValue);override;
|
||||||
procedure DelConst(NameSpace:string;Name:string);override;
|
procedure DelConst(const NameSpace,Name:string);override;
|
||||||
|
|
||||||
procedure AddVariable(NameSpace:string;Name:string;var Data);override;
|
procedure AddVariable(const NameSpace,Name:string;var Data);override;
|
||||||
procedure ExportVariable(NameSpace:string;Name:string;var Data);override;
|
procedure ExportVariable(const NameSpace,Name:string;var Data);override;
|
||||||
procedure DelVariable(NameSpace:string;Name:string);override;
|
procedure DelVariable(const NameSpace,Name:string);override;
|
||||||
|
|
||||||
procedure AddCallBack(NameSpace:string;Name:string;CallBack:TRTBCallBack);override;//-
|
procedure AddCallBack(const NameSpace,Name:string;CallBack:TRTBCallBack);override;
|
||||||
procedure DelCallBack(NameSpace:string;Name:string);override;//-
|
procedure DelCallBack(const NameSpace,Name:string);override;
|
||||||
|
|
||||||
procedure &Register(NameSpace:string;Name:string;&Type:TRTBType);override;
|
procedure &Register(const NameSpace,Name:string;&Type:TRTBType);override;
|
||||||
procedure UnRegister(NameSpace:string;Name:string);override;
|
procedure UnRegister(const NameSpace,Name:string);override;
|
||||||
procedure RegisterFunction(NameSpace:string;Name:string);override;
|
procedure RegisterFunction(const NameSpace,Name:string);override;
|
||||||
procedure UnRegisterFunction(NameSpace:string;Name:string);override;
|
procedure UnRegisterFunction(const NameSpace,Name:string);override;
|
||||||
|
|
||||||
function Compilate:TRTBModule;override;
|
function Compilate:TRTBModule;override;
|
||||||
destructor Destroy;override;
|
destructor Destroy;override;
|
||||||
@@ -94,6 +95,15 @@ implementation
|
|||||||
|
|
||||||
uses System.SysUtils;
|
uses System.SysUtils;
|
||||||
|
|
||||||
|
function CallBackCall(callbacks:TList<TPair<string,TRTBCallBack>>;n:NativeUInt;p:pointer):pointer;stdcall;
|
||||||
|
begin
|
||||||
|
with callbacks[n].Value([p])do
|
||||||
|
begin
|
||||||
|
Result:=GetMemory(DataSize);
|
||||||
|
ExtractRawData(Result);
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
constructor TRTBFasmCompiler.TRTBFasmSource.TRTBFasmModule.TRTBFasmFunc.Create(p:Pointer);
|
constructor TRTBFasmCompiler.TRTBFasmSource.TRTBFasmModule.TRTBFasmFunc.Create(p:Pointer);
|
||||||
begin
|
begin
|
||||||
inherited Create();
|
inherited Create();
|
||||||
@@ -180,7 +190,7 @@ begin
|
|||||||
Result:=FText;
|
Result:=FText;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TRTBFasmCompiler.TRTBFasmSource.SetText(S:string);
|
procedure TRTBFasmCompiler.TRTBFasmSource.SetText(const S:string);
|
||||||
begin
|
begin
|
||||||
FText:=S;
|
FText:=S;
|
||||||
end;
|
end;
|
||||||
@@ -193,35 +203,37 @@ libs:=TStringList.Create;
|
|||||||
funcs:=TStringList.Create;
|
funcs:=TStringList.Create;
|
||||||
regvars:=TList<TPair<string,PTypeInfo>>.Create;
|
regvars:=TList<TPair<string,PTypeInfo>>.Create;
|
||||||
consts:=TList<TPair<string,TValue>>.Create;
|
consts:=TList<TPair<string,TValue>>.Create;
|
||||||
|
callbacks:=TList<TPair<string,TRTBCallBack>>.Create;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TRTBFasmCompiler.TRTBFasmSource.LoadLib(Name:string);
|
procedure TRTBFasmCompiler.TRTBFasmSource.LoadLib(const Name:string);
|
||||||
begin
|
begin
|
||||||
libs.Add(Name);
|
libs.Add(Name);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TRTBFasmCompiler.TRTBFasmSource.UnLoadLib(Name:string);
|
procedure TRTBFasmCompiler.TRTBFasmSource.UnLoadLib(const Name:string);
|
||||||
begin
|
begin
|
||||||
with libs do
|
with libs do
|
||||||
Delete(IndexOf(Name));
|
Delete(IndexOf(Name));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TRTBFasmCompiler.TRTBFasmSource.AddNameSpace(Name:string);
|
procedure TRTBFasmCompiler.TRTBFasmSource.AddNameSpace(const Name:string);
|
||||||
begin
|
begin
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TRTBFasmCompiler.TRTBFasmSource.DelNameSpace(Name:string);
|
procedure TRTBFasmCompiler.TRTBFasmSource.DelNameSpace(const Name:string);
|
||||||
label
|
label
|
||||||
funcscontinue,regvarscontinue,constscontinue;
|
funcscontinue,regvarscontinue,constscontinue;
|
||||||
var
|
var
|
||||||
i,i0:NativeUInt;
|
i,i0:NativeUInt;
|
||||||
|
tName:string;
|
||||||
begin
|
begin
|
||||||
Name:=Name+'.';
|
tName:=Name+'.';
|
||||||
i:=0;
|
i:=0;
|
||||||
while i<funcs.Count do
|
while i<funcs.Count do
|
||||||
begin
|
begin
|
||||||
for i0:=1 to length(Name) do
|
for i0:=1 to length(tName) do
|
||||||
if funcs.Strings[i][i0]=Name[i0]then
|
if funcs.Strings[i][i0]=tName[i0]then
|
||||||
goto funcscontinue;
|
goto funcscontinue;
|
||||||
funcs.Delete(i);
|
funcs.Delete(i);
|
||||||
inc(i);
|
inc(i);
|
||||||
@@ -230,8 +242,8 @@ end;
|
|||||||
i:=0;
|
i:=0;
|
||||||
while i<regvars.Count do
|
while i<regvars.Count do
|
||||||
begin
|
begin
|
||||||
for i0:=1 to length(Name) do
|
for i0:=1 to length(tName) do
|
||||||
if regvars.Items[i].Key[i0]=Name[i0]then
|
if regvars.Items[i].Key[i0]=tName[i0]then
|
||||||
goto regvarscontinue;
|
goto regvarscontinue;
|
||||||
regvars.Delete(i);
|
regvars.Delete(i);
|
||||||
inc(i);
|
inc(i);
|
||||||
@@ -240,8 +252,8 @@ end;
|
|||||||
i:=0;
|
i:=0;
|
||||||
while i<consts.Count do
|
while i<consts.Count do
|
||||||
begin
|
begin
|
||||||
for i0:=1 to length(Name) do
|
for i0:=1 to length(tName) do
|
||||||
if consts.Items[i].Key[i0]=Name[i0]then
|
if consts.Items[i].Key[i0]=tName[i0]then
|
||||||
goto constscontinue;
|
goto constscontinue;
|
||||||
consts.Delete(i);
|
consts.Delete(i);
|
||||||
inc(i);
|
inc(i);
|
||||||
@@ -249,15 +261,15 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TRTBFasmCompiler.TRTBFasmSource.AddType(NameSpace:string;Name:string;&Type:TRTBType);
|
procedure TRTBFasmCompiler.TRTBFasmSource.AddType(const NameSpace,Name:string;&Type:TRTBType);
|
||||||
begin
|
begin
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TRTBFasmCompiler.TRTBFasmSource.DelType(NameSpace:string;Name:string);
|
procedure TRTBFasmCompiler.TRTBFasmSource.DelType(const NameSpace,Name:string);
|
||||||
begin
|
begin
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TRTBFasmCompiler.TRTBFasmSource.AddConst(NameSpace:string;Name:string;Val:TValue);
|
procedure TRTBFasmCompiler.TRTBFasmSource.AddConst(const NameSpace,Name:string;Val:TValue);
|
||||||
begin
|
begin
|
||||||
if NameSpace<>'' then
|
if NameSpace<>'' then
|
||||||
consts.Add(TPair<string,TValue>.Create(NameSpace+'.'+Name,Val))
|
consts.Add(TPair<string,TValue>.Create(NameSpace+'.'+Name,Val))
|
||||||
@@ -265,22 +277,20 @@ else
|
|||||||
consts.Add(TPair<string,TValue>.Create(Name,Val));
|
consts.Add(TPair<string,TValue>.Create(Name,Val));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TRTBFasmCompiler.TRTBFasmSource.DelConst(NameSpace:string;Name:string);
|
procedure TRTBFasmCompiler.TRTBFasmSource.DelConst(const NameSpace,Name:string);
|
||||||
var
|
var
|
||||||
i:NativeUInt;
|
i:NativeUInt;
|
||||||
begin
|
begin
|
||||||
if NameSpace<>'' then
|
|
||||||
Name:=NameSpace+'.'+Name;
|
|
||||||
if consts.Count<>0 then
|
if consts.Count<>0 then
|
||||||
for i:=0 to consts.Count-1 do
|
for i:=0 to consts.Count-1 do
|
||||||
if consts.Items[i].Key=Name then
|
if(consts.Items[i].Key=NameSpace+'.'+Name)or(consts.Items[i].Key=Name)then
|
||||||
begin
|
begin
|
||||||
consts.Delete(i);
|
consts.Delete(i);
|
||||||
Break;
|
Break;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TRTBFasmCompiler.TRTBFasmSource.AddVariable(NameSpace:string;Name:string;var Data);
|
procedure TRTBFasmCompiler.TRTBFasmSource.AddVariable(const NameSpace,Name:string;var Data);
|
||||||
begin
|
begin
|
||||||
if NameSpace<>'' then
|
if NameSpace<>'' then
|
||||||
consts.Add(TPair<string,TValue>.Create(NameSpace+'.'+Name,addr(Data)))
|
consts.Add(TPair<string,TValue>.Create(NameSpace+'.'+Name,addr(Data)))
|
||||||
@@ -288,7 +298,7 @@ else
|
|||||||
consts.Add(TPair<string,TValue>.Create(Name,addr(Data)));
|
consts.Add(TPair<string,TValue>.Create(Name,addr(Data)));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TRTBFasmCompiler.TRTBFasmSource.ExportVariable(NameSpace:string;Name:string;var Data);
|
procedure TRTBFasmCompiler.TRTBFasmSource.ExportVariable(const NameSpace,Name:string;var Data);
|
||||||
begin
|
begin
|
||||||
if NameSpace<>'' then
|
if NameSpace<>'' then
|
||||||
consts.Add(TPair<string,TValue>.Create(NameSpace+'.'+Name,Addr(Data)))
|
consts.Add(TPair<string,TValue>.Create(NameSpace+'.'+Name,Addr(Data)))
|
||||||
@@ -296,20 +306,33 @@ else
|
|||||||
consts.Add(TPair<string,TValue>.Create(Name,Addr(Data)));
|
consts.Add(TPair<string,TValue>.Create(Name,Addr(Data)));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TRTBFasmCompiler.TRTBFasmSource.DelVariable(NameSpace:string;Name:string);
|
procedure TRTBFasmCompiler.TRTBFasmSource.DelVariable(const NameSpace,Name:string);
|
||||||
begin
|
begin
|
||||||
DelConst(NameSpace,Name);
|
DelConst(NameSpace,Name);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TRTBFasmCompiler.TRTBFasmSource.AddCallBack(NameSpace:string;Name:string;CallBack:TRTBCallBack);
|
procedure TRTBFasmCompiler.TRTBFasmSource.AddCallBack(const NameSpace,Name:string;CallBack:TRTBCallBack);
|
||||||
begin
|
begin
|
||||||
|
if NameSpace<>'' then
|
||||||
|
callbacks.Add(TPair<string,TRTBCallBack>.Create(NameSpace+'.'+Name,CallBack))
|
||||||
|
else
|
||||||
|
callbacks.Add(TPair<string,TRTBCallBack>.Create(Name,CallBack));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TRTBFasmCompiler.TRTBFasmSource.DelCallBack(NameSpace:string;Name:string);
|
procedure TRTBFasmCompiler.TRTBFasmSource.DelCallBack(const NameSpace,Name:string);
|
||||||
|
var
|
||||||
|
i:NativeUInt;
|
||||||
begin
|
begin
|
||||||
|
if callbacks.Count<>0 then
|
||||||
|
for i:=0 to callbacks.Count-1 do
|
||||||
|
if(callbacks.Items[i].Key=NameSpace+'.'+Name)or(callbacks.Items[i].Key=Name)then
|
||||||
|
begin
|
||||||
|
callbacks.Delete(i);
|
||||||
|
Break;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TRTBFasmCompiler.TRTBFasmSource.&Register(NameSpace:string;Name:string;&Type:TRTBType);
|
procedure TRTBFasmCompiler.TRTBFasmSource.&Register(const NameSpace,Name:string;&Type:TRTBType);
|
||||||
begin
|
begin
|
||||||
if NameSpace<>'' then
|
if NameSpace<>'' then
|
||||||
regvars.Add(TPair<string,PTypeInfo>.Create(NameSpace+'.'+Name,&Type))
|
regvars.Add(TPair<string,PTypeInfo>.Create(NameSpace+'.'+Name,&Type))
|
||||||
@@ -317,22 +340,20 @@ else
|
|||||||
regvars.Add(TPair<string,PTypeInfo>.Create(Name,&Type));
|
regvars.Add(TPair<string,PTypeInfo>.Create(Name,&Type));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TRTBFasmCompiler.TRTBFasmSource.UnRegister(NameSpace:string;Name:string);
|
procedure TRTBFasmCompiler.TRTBFasmSource.UnRegister(const NameSpace,Name:string);
|
||||||
var
|
var
|
||||||
i:NativeUInt;
|
i:NativeUInt;
|
||||||
begin
|
begin
|
||||||
if NameSpace<>'' then
|
|
||||||
Name:=NameSpace+'.'+Name;
|
|
||||||
if regvars.Count<>0 then
|
if regvars.Count<>0 then
|
||||||
for i:=0 to regvars.Count-1 do
|
for i:=0 to regvars.Count-1 do
|
||||||
if regvars.Items[i].Key=Name then
|
if(regvars.Items[i].Key=Name)or(regvars.Items[i].Key=NameSpace+'.'+Name) then
|
||||||
begin
|
begin
|
||||||
regvars.Delete(i);
|
regvars.Delete(i);
|
||||||
Break;
|
Break;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TRTBFasmCompiler.TRTBFasmSource.RegisterFunction(NameSpace:string;Name:string);
|
procedure TRTBFasmCompiler.TRTBFasmSource.RegisterFunction(const NameSpace,Name:string);
|
||||||
begin
|
begin
|
||||||
if NameSpace<>'' then
|
if NameSpace<>'' then
|
||||||
funcs.Add(NameSpace+'.'+Name)
|
funcs.Add(NameSpace+'.'+Name)
|
||||||
@@ -340,13 +361,14 @@ else
|
|||||||
funcs.Add(Name);
|
funcs.Add(Name);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TRTBFasmCompiler.TRTBFasmSource.UnRegisterFunction(NameSpace:string;Name:string);
|
procedure TRTBFasmCompiler.TRTBFasmSource.UnRegisterFunction(const NameSpace,Name:string);
|
||||||
begin
|
begin
|
||||||
if NameSpace<>'' then
|
|
||||||
Name:=NameSpace+'.'+Name;
|
|
||||||
with funcs do
|
with funcs do
|
||||||
|
begin
|
||||||
|
Delete(IndexOf(NameSpace+'.'+Name));
|
||||||
Delete(IndexOf(Name));
|
Delete(IndexOf(Name));
|
||||||
end;
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
function TRTBFasmCompiler.TRTBFasmSource.Compilate:TRTBModule;
|
function TRTBFasmCompiler.TRTBFasmSource.Compilate:TRTBModule;
|
||||||
procedure VarParse(key:string;value:TValue;var PreDecl:string;var base:NativeUInt);
|
procedure VarParse(key:string;value:TValue;var PreDecl:string;var base:NativeUInt);
|
||||||
@@ -547,7 +569,7 @@ case SizeOf(pointer)of
|
|||||||
4:pointerDecl:='dd ';
|
4:pointerDecl:='dd ';
|
||||||
8:pointerDecl:='dq ';
|
8:pointerDecl:='dq ';
|
||||||
end;
|
end;
|
||||||
PreDecl:='';
|
PreDecl:='use32'+sLineBreak;
|
||||||
FuncDict:=TDictionary<string,NativeUInt>.Create();
|
FuncDict:=TDictionary<string,NativeUInt>.Create();
|
||||||
base:=0;
|
base:=0;
|
||||||
with funcs do
|
with funcs do
|
||||||
@@ -572,6 +594,14 @@ with consts do
|
|||||||
for i:=0 to Count-1 do
|
for i:=0 to Count-1 do
|
||||||
with Items[i] do
|
with Items[i] do
|
||||||
ConstParse(Key,Value,PreDecl,base);
|
ConstParse(Key,Value,PreDecl,base);
|
||||||
|
if callbacks.Count<>0 then
|
||||||
|
for i:=0 to callbacks.Count-1 do
|
||||||
|
PreDecl:=PreDecl+callbacks[i].Key+':'+sLineBreak+
|
||||||
|
{$IFDEF CPU32BITS}'pop eax'{$ELSE}'pop rax'{$ENDIF}+sLineBreak+
|
||||||
|
{$IFDEF CPU32BITS}'push dword '{$ELSE}'push qword '{$ENDIF}+i.ToString+sLineBreak+
|
||||||
|
{$IFDEF CPU32BITS}'push dword '{$ELSE}'push qword '{$ENDIF}+NativeUint(pointer(callbacks)).ToString+sLineBreak+
|
||||||
|
{$IFDEF CPU32BITS}'push eax'{$ELSE}'push rax'{$ENDIF}+sLineBreak+
|
||||||
|
{$IFDEF CPU32BITS}'jmp dword '{$ELSE}'jmp qword '{$ENDIF}+NativeUint(@CallBackCall).ToString+sLineBreak;
|
||||||
Res:=FasmAssemble('org '+NativeUInt(p).ToString+sLineBreak+PreDecl+Text+GetIncLibs,sb,(Compiler as TRTBFasmCompiler).MaxSteps);
|
Res:=FasmAssemble('org '+NativeUInt(p).ToString+sLineBreak+PreDecl+Text+GetIncLibs,sb,(Compiler as TRTBFasmCompiler).MaxSteps);
|
||||||
if Res.Error<>FASM_OK then
|
if Res.Error<>FASM_OK then
|
||||||
begin
|
begin
|
||||||
|
|||||||
@@ -15,13 +15,13 @@ type
|
|||||||
protected type
|
protected type
|
||||||
TRTBLuaFunc=class(TRTBFunc)
|
TRTBLuaFunc=class(TRTBFunc)
|
||||||
protected
|
protected
|
||||||
//p:Pointer;
|
Name:string;
|
||||||
public
|
public
|
||||||
//constructor Create(s:string);
|
constructor Create(s:string);
|
||||||
//function Call(OutType:PTypeInfo;args:TArray<TValue>;CallType:TRTBCallType=CRTBCallTypeDefault):TValue;override;
|
function Call(OutType:PTypeInfo;args:TArray<TValue>;CallType:TRTBCallType=CRTBCallTypeDefault):TValue;override;
|
||||||
//destructor Destroy;override;
|
destructor Destroy;override;
|
||||||
end;
|
end;
|
||||||
TRTBFasmVar=class(TRTBVar)
|
TRTBLuaVar=class(TRTBVar)
|
||||||
protected
|
protected
|
||||||
//p:pointer;
|
//p:pointer;
|
||||||
//&Type:TRTBType;
|
//&Type:TRTBType;
|
||||||
@@ -32,15 +32,14 @@ type
|
|||||||
//destructor Destroy;override;
|
//destructor Destroy;override;
|
||||||
end;
|
end;
|
||||||
private
|
private
|
||||||
//p:Pointer;
|
State:Plua_State;
|
||||||
//sb:NativeUInt;
|
|
||||||
//funcs:TDictionary<string,NativeUInt>;
|
//funcs:TDictionary<string,NativeUInt>;
|
||||||
//regvars:TDictionary<string,TPair<NativeUInt,PTypeInfo>>;
|
//regvars:TDictionary<string,TPair<NativeUInt,PTypeInfo>>;
|
||||||
//function GetFuntion(Name:string):TRTBFunc;override;
|
function GetFuntion(Name:string):TRTBFunc;override;
|
||||||
//function GetVar(Name:string):TRTBVar;override;
|
//function GetVar(Name:string):TRTBVar;override;
|
||||||
public
|
public
|
||||||
//constructor Create(p:Pointer;sb:NativeUInt;funcs:TDictionary<string,NativeUInt>;regvars:TDictionary<string,TPair<NativeUInt,PTypeInfo>>);
|
constructor Create(AState:Plua_State);
|
||||||
//destructor Destroy;override;
|
destructor Destroy;override;
|
||||||
end;
|
end;
|
||||||
protected
|
protected
|
||||||
libs:TStringList;
|
libs:TStringList;
|
||||||
@@ -50,12 +49,12 @@ type
|
|||||||
FText:string;
|
FText:string;
|
||||||
//function GetIncLibs():string;
|
//function GetIncLibs():string;
|
||||||
function GetText:string;override;
|
function GetText:string;override;
|
||||||
procedure SetText(S:string);override;
|
procedure SetText(const S:string);override;
|
||||||
public
|
public
|
||||||
constructor Create(Compiler:TRTBLuaCompiler);
|
constructor Create(Compiler:TRTBLuaCompiler);
|
||||||
|
|
||||||
procedure LoadLib(Name:string);override;
|
procedure LoadLib(const Name:string);override;
|
||||||
procedure UnLoadLib(Name:string);override;
|
procedure UnLoadLib(const Name:string);override;
|
||||||
|
|
||||||
//procedure AddNameSpace(Name:string);override;
|
//procedure AddNameSpace(Name:string);override;
|
||||||
//procedure DelNameSpace(Name:string);override;
|
//procedure DelNameSpace(Name:string);override;
|
||||||
@@ -86,10 +85,16 @@ type
|
|||||||
function GenNewSrc():TRTBSource;override;
|
function GenNewSrc():TRTBSource;override;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
const
|
||||||
|
cLuaLangName='Lua';
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
uses System.SysUtils;
|
uses System.SysUtils;
|
||||||
|
|
||||||
|
const
|
||||||
|
cCurLang=cLuaLangName;
|
||||||
|
|
||||||
(*constructor TRTBLuaCompiler.TRTBLuaSource.TRTBLuaModule.TRTBLuaFunc.Create(p:Pointer);
|
(*constructor TRTBLuaCompiler.TRTBLuaSource.TRTBLuaModule.TRTBLuaFunc.Create(p:Pointer);
|
||||||
begin
|
begin
|
||||||
inherited Create();
|
inherited Create();
|
||||||
@@ -361,37 +366,51 @@ begin
|
|||||||
FreeLibrary(Lib);
|
FreeLibrary(Lib);
|
||||||
end;*)
|
end;*)
|
||||||
|
|
||||||
|
constructor TRTBLuaCompiler.TRTBLuaSource.TRTBLuaModule.TRTBLuaFunc.Create(s:string);
|
||||||
|
begin
|
||||||
|
Name:=s;
|
||||||
|
end;
|
||||||
|
|
||||||
|
function TRTBLuaCompiler.TRTBLuaSource.TRTBLuaModule.TRTBLuaFunc.Call(OutType:PTypeInfo;args:TArray<TValue>;CallType:TRTBCallType=CRTBCallTypeDefault):TValue;
|
||||||
|
var
|
||||||
|
i:TValue;
|
||||||
|
begin
|
||||||
|
//for i in args do
|
||||||
|
// TRTBLuaCompiler.TRTBLuaSource.AddToStack();
|
||||||
|
end;
|
||||||
|
|
||||||
|
destructor TRTBLuaCompiler.TRTBLuaSource.TRTBLuaModule.TRTBLuaFunc.Destroy;
|
||||||
|
begin
|
||||||
|
end;
|
||||||
|
|
||||||
|
function TRTBLuaCompiler.TRTBLuaSource.TRTBLuaModule.GetFuntion(Name:string):TRTBFunc;
|
||||||
|
begin
|
||||||
|
//lua
|
||||||
|
//lua_getglobal();
|
||||||
|
//lua_call();
|
||||||
|
//Result:=TRTBLuaFunc.Create();
|
||||||
|
end;
|
||||||
|
|
||||||
|
constructor TRTBLuaCompiler.TRTBLuaSource.TRTBLuaModule.Create(AState:Plua_State);
|
||||||
|
begin
|
||||||
|
State:=AState;
|
||||||
|
end;
|
||||||
|
|
||||||
|
destructor TRTBLuaCompiler.TRTBLuaSource.TRTBLuaModule.Destroy;
|
||||||
|
begin
|
||||||
|
lua_close(State);
|
||||||
|
end;
|
||||||
|
|
||||||
function TRTBLuaCompiler.TRTBLuaSource.GetText:string;
|
function TRTBLuaCompiler.TRTBLuaSource.GetText:string;
|
||||||
begin
|
begin
|
||||||
Result:=FText;
|
Result:=FText;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TRTBLuaCompiler.TRTBLuaSource.SetText(S:string);
|
procedure TRTBLuaCompiler.TRTBLuaSource.SetText(const S:string);
|
||||||
begin
|
begin
|
||||||
FText:=S;
|
FText:=S;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{constructor TRTBLuaCompiler.TRTBLuaSource.Create(Compiler:TRTBLuaCompiler);
|
|
||||||
begin
|
|
||||||
inherited Create(Compiler);
|
|
||||||
FText:='';
|
|
||||||
end;
|
|
||||||
|
|
||||||
function TRTBLuaCompiler.TRTBLuaSource.CompilateAsFunc:TRTBFunc;
|
|
||||||
begin
|
|
||||||
//lua_(lua_tocfunction());
|
|
||||||
//(Compiler as TRTBLuaCompiler).Lua.RegisterFunction();
|
|
||||||
end;*)
|
|
||||||
|
|
||||||
{function TRTBLuaCompiler.GetIncLibs():string;
|
|
||||||
var
|
|
||||||
i:integer;
|
|
||||||
begin
|
|
||||||
Result:='';
|
|
||||||
for i:=0 to libs.count-1 do
|
|
||||||
Result:=Result+sLineBreak+'include '+#39+libs.Strings[i]+#39;
|
|
||||||
end;}
|
|
||||||
|
|
||||||
constructor TRTBLuaCompiler.TRTBLuaSource.Create(Compiler:TRTBLuaCompiler);
|
constructor TRTBLuaCompiler.TRTBLuaSource.Create(Compiler:TRTBLuaCompiler);
|
||||||
begin
|
begin
|
||||||
inherited Create(Compiler);
|
inherited Create(Compiler);
|
||||||
@@ -402,12 +421,12 @@ regvars:=TList<TPair<string,PTypeInfo>>.Create;
|
|||||||
consts:=TList<TPair<string,TValue>>.Create;
|
consts:=TList<TPair<string,TValue>>.Create;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TRTBLuaCompiler.TRTBLuaSource.LoadLib(Name:string);
|
procedure TRTBLuaCompiler.TRTBLuaSource.LoadLib(const Name:string);
|
||||||
begin
|
begin
|
||||||
libs.Add(Name);
|
libs.Add(Name);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TRTBLuaCompiler.TRTBLuaSource.UnLoadLib(Name:string);
|
procedure TRTBLuaCompiler.TRTBLuaSource.UnLoadLib(const Name:string);
|
||||||
begin
|
begin
|
||||||
with libs do
|
with libs do
|
||||||
Delete(IndexOf(Name));
|
Delete(IndexOf(Name));
|
||||||
@@ -602,6 +621,7 @@ var
|
|||||||
i,sb:NativeUInt;
|
i,sb:NativeUInt;
|
||||||
RegVarDict:TDictionary<string,TPair<NativeUInt,PTypeInfo>>;
|
RegVarDict:TDictionary<string,TPair<NativeUInt,PTypeInfo>>;
|
||||||
p:pointer;
|
p:pointer;
|
||||||
|
State:Plua_State;
|
||||||
begin
|
begin
|
||||||
PreDecl:='';
|
PreDecl:='';
|
||||||
for s in libs do
|
for s in libs do
|
||||||
@@ -620,8 +640,12 @@ with consts do
|
|||||||
for i:=0 to Count-1 do
|
for i:=0 to Count-1 do
|
||||||
with Items[i] do
|
with Items[i] do
|
||||||
ConstParse(Key,Value,PreDecl,base);}
|
ConstParse(Key,Value,PreDecl,base);}
|
||||||
|
State:=luaL_newstate();
|
||||||
//Result:=TRTBLuaModule.Create(FText,funcs);
|
if State=nil then
|
||||||
|
ERTBError.Create(RTBBuildError,cCurLang,self);
|
||||||
|
luaL_openlibs(State);
|
||||||
|
luaL_loadbuffer(State,PAnsiChar(FText),length(s),'code');
|
||||||
|
Result:=TRTBLuaModule.Create(State);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
destructor TRTBLuaCompiler.TRTBLuaSource.Destroy;
|
destructor TRTBLuaCompiler.TRTBLuaSource.Destroy;
|
||||||
@@ -635,7 +659,6 @@ end;
|
|||||||
constructor TRTBLuaCompiler.Create();
|
constructor TRTBLuaCompiler.Create();
|
||||||
begin
|
begin
|
||||||
inherited Create();
|
inherited Create();
|
||||||
//Lua:=luaL_newstate;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TRTBLuaCompiler.GenNewSrc():TRTBSource;
|
function TRTBLuaCompiler.GenNewSrc():TRTBSource;
|
||||||
|
|||||||
Binary file not shown.
@@ -1,7 +1,7 @@
|
|||||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<ProjectGuid>{9AAE7B65-2AD0-4F89-A429-D4F55BD17FB4}</ProjectGuid>
|
<ProjectGuid>{9AAE7B65-2AD0-4F89-A429-D4F55BD17FB4}</ProjectGuid>
|
||||||
<ProjectVersion>17.2</ProjectVersion>
|
<ProjectVersion>18.2</ProjectVersion>
|
||||||
<MainSource>Project2.dpr</MainSource>
|
<MainSource>Project2.dpr</MainSource>
|
||||||
<Base>True</Base>
|
<Base>True</Base>
|
||||||
<Config Condition="'$(Config)'==''">Debug</Config>
|
<Config Condition="'$(Config)'==''">Debug</Config>
|
||||||
@@ -13,6 +13,26 @@
|
|||||||
<PropertyGroup Condition="'$(Config)'=='Base' or '$(Base)'!=''">
|
<PropertyGroup Condition="'$(Config)'=='Base' or '$(Base)'!=''">
|
||||||
<Base>true</Base>
|
<Base>true</Base>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="('$(Platform)'=='Android' and '$(Base)'=='true') or '$(Base_Android)'!=''">
|
||||||
|
<Base_Android>true</Base_Android>
|
||||||
|
<CfgParent>Base</CfgParent>
|
||||||
|
<Base>true</Base>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="('$(Platform)'=='iOSDevice32' and '$(Base)'=='true') or '$(Base_iOSDevice32)'!=''">
|
||||||
|
<Base_iOSDevice32>true</Base_iOSDevice32>
|
||||||
|
<CfgParent>Base</CfgParent>
|
||||||
|
<Base>true</Base>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="('$(Platform)'=='iOSDevice64' and '$(Base)'=='true') or '$(Base_iOSDevice64)'!=''">
|
||||||
|
<Base_iOSDevice64>true</Base_iOSDevice64>
|
||||||
|
<CfgParent>Base</CfgParent>
|
||||||
|
<Base>true</Base>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="('$(Platform)'=='iOSSimulator' and '$(Base)'=='true') or '$(Base_iOSSimulator)'!=''">
|
||||||
|
<Base_iOSSimulator>true</Base_iOSSimulator>
|
||||||
|
<CfgParent>Base</CfgParent>
|
||||||
|
<Base>true</Base>
|
||||||
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="('$(Platform)'=='OSX32' and '$(Base)'=='true') or '$(Base_OSX32)'!=''">
|
<PropertyGroup Condition="('$(Platform)'=='OSX32' and '$(Base)'=='true') or '$(Base_OSX32)'!=''">
|
||||||
<Base_OSX32>true</Base_OSX32>
|
<Base_OSX32>true</Base_OSX32>
|
||||||
<CfgParent>Base</CfgParent>
|
<CfgParent>Base</CfgParent>
|
||||||
@@ -58,6 +78,85 @@
|
|||||||
<DCC_F>false</DCC_F>
|
<DCC_F>false</DCC_F>
|
||||||
<DCC_K>false</DCC_K>
|
<DCC_K>false</DCC_K>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Base_Android)'!=''">
|
||||||
|
<VerInfo_Keys>package=com.embarcadero.$(MSBuildProjectName);label=$(MSBuildProjectName);versionCode=1;versionName=1.0.0;persistent=False;restoreAnyVersion=False;installLocation=auto;largeHeap=False;theme=TitleBar;hardwareAccelerated=true;apiKey=</VerInfo_Keys>
|
||||||
|
<BT_BuildType>Debug</BT_BuildType>
|
||||||
|
<Android_LauncherIcon36>$(BDS)\bin\Artwork\Android\FM_LauncherIcon_36x36.png</Android_LauncherIcon36>
|
||||||
|
<Android_LauncherIcon48>$(BDS)\bin\Artwork\Android\FM_LauncherIcon_48x48.png</Android_LauncherIcon48>
|
||||||
|
<Android_LauncherIcon72>$(BDS)\bin\Artwork\Android\FM_LauncherIcon_72x72.png</Android_LauncherIcon72>
|
||||||
|
<Android_LauncherIcon96>$(BDS)\bin\Artwork\Android\FM_LauncherIcon_96x96.png</Android_LauncherIcon96>
|
||||||
|
<Android_LauncherIcon144>$(BDS)\bin\Artwork\Android\FM_LauncherIcon_144x144.png</Android_LauncherIcon144>
|
||||||
|
<Android_SplashImage426>$(BDS)\bin\Artwork\Android\FM_SplashImage_426x320.png</Android_SplashImage426>
|
||||||
|
<Android_SplashImage470>$(BDS)\bin\Artwork\Android\FM_SplashImage_470x320.png</Android_SplashImage470>
|
||||||
|
<Android_SplashImage640>$(BDS)\bin\Artwork\Android\FM_SplashImage_640x480.png</Android_SplashImage640>
|
||||||
|
<Android_SplashImage960>$(BDS)\bin\Artwork\Android\FM_SplashImage_960x720.png</Android_SplashImage960>
|
||||||
|
<AUP_ACCESS_COARSE_LOCATION>true</AUP_ACCESS_COARSE_LOCATION>
|
||||||
|
<AUP_ACCESS_FINE_LOCATION>true</AUP_ACCESS_FINE_LOCATION>
|
||||||
|
<AUP_CALL_PHONE>true</AUP_CALL_PHONE>
|
||||||
|
<AUP_CAMERA>true</AUP_CAMERA>
|
||||||
|
<AUP_INTERNET>true</AUP_INTERNET>
|
||||||
|
<AUP_READ_CALENDAR>true</AUP_READ_CALENDAR>
|
||||||
|
<AUP_READ_EXTERNAL_STORAGE>true</AUP_READ_EXTERNAL_STORAGE>
|
||||||
|
<AUP_WRITE_CALENDAR>true</AUP_WRITE_CALENDAR>
|
||||||
|
<AUP_WRITE_EXTERNAL_STORAGE>true</AUP_WRITE_EXTERNAL_STORAGE>
|
||||||
|
<AUP_READ_PHONE_STATE>true</AUP_READ_PHONE_STATE>
|
||||||
|
<EnabledSysJars>android-support-v4.dex.jar;cloud-messaging.dex.jar;fmx.dex.jar;google-analytics-v2.dex.jar;google-play-billing.dex.jar;google-play-licensing.dex.jar;google-play-services.dex.jar</EnabledSysJars>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Base_iOSDevice32)'!=''">
|
||||||
|
<VerInfo_Keys>CFBundleName=$(MSBuildProjectName);CFBundleDevelopmentRegion=en;CFBundleDisplayName=$(MSBuildProjectName);CFBundleIdentifier=$(MSBuildProjectName);CFBundleInfoDictionaryVersion=7.1;CFBundleVersion=1.0.0.0;CFBundlePackageType=APPL;CFBundleSignature=????;LSRequiresIPhoneOS=true;CFBundleAllowMixedLocalizations=YES;CFBundleExecutable=$(MSBuildProjectName);UIDeviceFamily=iPhone & iPad;CFBundleResourceSpecification=ResourceRules.plist;NSLocationAlwaysUsageDescription=The reason for accessing the location information of the user;NSLocationWhenInUseUsageDescription=The reason for accessing the location information of the user;FMLocalNotificationPermission=false;UIBackgroundModes=;NSContactsUsageDescription=The reason for accessing the contacts;NSPhotoLibraryUsageDescription=The reason for accessing the photo library;NSCameraUsageDescription=The reason for accessing the camera</VerInfo_Keys>
|
||||||
|
<VerInfo_UIDeviceFamily>iPhoneAndiPad</VerInfo_UIDeviceFamily>
|
||||||
|
<VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo>
|
||||||
|
<BT_BuildType>Debug</BT_BuildType>
|
||||||
|
<VerInfo_BundleId>$(MSBuildProjectName)</VerInfo_BundleId>
|
||||||
|
<iPhone_AppIcon60>$(BDS)\bin\Artwork\iOS\iPhone\FM_ApplicationIcon_60x60.png</iPhone_AppIcon60>
|
||||||
|
<iPhone_AppIcon120>$(BDS)\bin\Artwork\iOS\iPhone\FM_ApplicationIcon_120x120.png</iPhone_AppIcon120>
|
||||||
|
<iPhone_Spotlight40>$(BDS)\bin\Artwork\iOS\iPhone\FM_SpotlightSearchIcon_40x40.png</iPhone_Spotlight40>
|
||||||
|
<iPhone_Spotlight80>$(BDS)\bin\Artwork\iOS\iPhone\FM_SpotlightSearchIcon_80x80.png</iPhone_Spotlight80>
|
||||||
|
<iPad_SpotLight40>$(BDS)\bin\Artwork\iOS\iPad\FM_SpotlightSearchIcon_40x40.png</iPad_SpotLight40>
|
||||||
|
<iPad_SpotLight80>$(BDS)\bin\Artwork\iOS\iPad\FM_SpotlightSearchIcon_80x80.png</iPad_SpotLight80>
|
||||||
|
<iPad_AppIcon76>$(BDS)\bin\Artwork\iOS\iPad\FM_ApplicationIcon_76x76.png</iPad_AppIcon76>
|
||||||
|
<iPad_AppIcon152>$(BDS)\bin\Artwork\iOS\iPad\FM_ApplicationIcon_152x152.png</iPad_AppIcon152>
|
||||||
|
<iPad_Launch768x1024>$(BDS)\bin\Artwork\iOS\iPad\FM_LaunchImagePortrait_768x1024.png</iPad_Launch768x1024>
|
||||||
|
<iPad_Launch1024x768>$(BDS)\bin\Artwork\iOS\iPad\FM_LaunchImageLandscape_1024x768.png</iPad_Launch1024x768>
|
||||||
|
<iPad_Launch1536x2048>$(BDS)\bin\Artwork\iOS\iPad\FM_LaunchImagePortrait_1536x2048.png</iPad_Launch1536x2048>
|
||||||
|
<iPad_Launch2048x1536>$(BDS)\bin\Artwork\iOS\iPad\FM_LaunchImageLandscape_2048x1536.png</iPad_Launch2048x1536>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Base_iOSDevice64)'!=''">
|
||||||
|
<VerInfo_Keys>CFBundleName=$(MSBuildProjectName);CFBundleDevelopmentRegion=en;CFBundleDisplayName=$(MSBuildProjectName);CFBundleIdentifier=$(MSBuildProjectName);CFBundleInfoDictionaryVersion=7.1;CFBundleVersion=1.0.0.0;CFBundlePackageType=APPL;CFBundleSignature=????;LSRequiresIPhoneOS=true;CFBundleAllowMixedLocalizations=YES;CFBundleExecutable=$(MSBuildProjectName);UIDeviceFamily=iPhone & iPad;CFBundleResourceSpecification=ResourceRules.plist;NSLocationAlwaysUsageDescription=The reason for accessing the location information of the user;NSLocationWhenInUseUsageDescription=The reason for accessing the location information of the user;FMLocalNotificationPermission=false;UIBackgroundModes=;NSContactsUsageDescription=The reason for accessing the contacts;NSPhotoLibraryUsageDescription=The reason for accessing the photo library;NSCameraUsageDescription=The reason for accessing the camera</VerInfo_Keys>
|
||||||
|
<VerInfo_UIDeviceFamily>iPhoneAndiPad</VerInfo_UIDeviceFamily>
|
||||||
|
<VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo>
|
||||||
|
<BT_BuildType>Debug</BT_BuildType>
|
||||||
|
<VerInfo_BundleId>$(MSBuildProjectName)</VerInfo_BundleId>
|
||||||
|
<iPhone_AppIcon60>$(BDS)\bin\Artwork\iOS\iPhone\FM_ApplicationIcon_60x60.png</iPhone_AppIcon60>
|
||||||
|
<iPhone_AppIcon120>$(BDS)\bin\Artwork\iOS\iPhone\FM_ApplicationIcon_120x120.png</iPhone_AppIcon120>
|
||||||
|
<iPhone_Spotlight40>$(BDS)\bin\Artwork\iOS\iPhone\FM_SpotlightSearchIcon_40x40.png</iPhone_Spotlight40>
|
||||||
|
<iPhone_Spotlight80>$(BDS)\bin\Artwork\iOS\iPhone\FM_SpotlightSearchIcon_80x80.png</iPhone_Spotlight80>
|
||||||
|
<iPad_SpotLight40>$(BDS)\bin\Artwork\iOS\iPad\FM_SpotlightSearchIcon_40x40.png</iPad_SpotLight40>
|
||||||
|
<iPad_SpotLight80>$(BDS)\bin\Artwork\iOS\iPad\FM_SpotlightSearchIcon_80x80.png</iPad_SpotLight80>
|
||||||
|
<iPad_AppIcon76>$(BDS)\bin\Artwork\iOS\iPad\FM_ApplicationIcon_76x76.png</iPad_AppIcon76>
|
||||||
|
<iPad_AppIcon152>$(BDS)\bin\Artwork\iOS\iPad\FM_ApplicationIcon_152x152.png</iPad_AppIcon152>
|
||||||
|
<iPad_Launch768x1024>$(BDS)\bin\Artwork\iOS\iPad\FM_LaunchImagePortrait_768x1024.png</iPad_Launch768x1024>
|
||||||
|
<iPad_Launch1024x768>$(BDS)\bin\Artwork\iOS\iPad\FM_LaunchImageLandscape_1024x768.png</iPad_Launch1024x768>
|
||||||
|
<iPad_Launch1536x2048>$(BDS)\bin\Artwork\iOS\iPad\FM_LaunchImagePortrait_1536x2048.png</iPad_Launch1536x2048>
|
||||||
|
<iPad_Launch2048x1536>$(BDS)\bin\Artwork\iOS\iPad\FM_LaunchImageLandscape_2048x1536.png</iPad_Launch2048x1536>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Base_iOSSimulator)'!=''">
|
||||||
|
<VerInfo_Keys>CFBundleName=$(MSBuildProjectName);CFBundleDevelopmentRegion=en;CFBundleDisplayName=$(MSBuildProjectName);CFBundleIdentifier=$(MSBuildProjectName);CFBundleInfoDictionaryVersion=7.1;CFBundleVersion=1.0.0.0;CFBundlePackageType=APPL;CFBundleSignature=????;LSRequiresIPhoneOS=true;CFBundleAllowMixedLocalizations=YES;CFBundleExecutable=$(MSBuildProjectName);UIDeviceFamily=iPhone & iPad;CFBundleResourceSpecification=ResourceRules.plist;NSLocationAlwaysUsageDescription=The reason for accessing the location information of the user;NSLocationWhenInUseUsageDescription=The reason for accessing the location information of the user;FMLocalNotificationPermission=false;UIBackgroundModes=;NSContactsUsageDescription=The reason for accessing the contacts;NSPhotoLibraryUsageDescription=The reason for accessing the photo library;NSCameraUsageDescription=The reason for accessing the camera</VerInfo_Keys>
|
||||||
|
<VerInfo_UIDeviceFamily>iPhoneAndiPad</VerInfo_UIDeviceFamily>
|
||||||
|
<VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo>
|
||||||
|
<iPhone_AppIcon60>$(BDS)\bin\Artwork\iOS\iPhone\FM_ApplicationIcon_60x60.png</iPhone_AppIcon60>
|
||||||
|
<iPhone_AppIcon120>$(BDS)\bin\Artwork\iOS\iPhone\FM_ApplicationIcon_120x120.png</iPhone_AppIcon120>
|
||||||
|
<iPhone_Spotlight40>$(BDS)\bin\Artwork\iOS\iPhone\FM_SpotlightSearchIcon_40x40.png</iPhone_Spotlight40>
|
||||||
|
<iPhone_Spotlight80>$(BDS)\bin\Artwork\iOS\iPhone\FM_SpotlightSearchIcon_80x80.png</iPhone_Spotlight80>
|
||||||
|
<iPad_SpotLight40>$(BDS)\bin\Artwork\iOS\iPad\FM_SpotlightSearchIcon_40x40.png</iPad_SpotLight40>
|
||||||
|
<iPad_SpotLight80>$(BDS)\bin\Artwork\iOS\iPad\FM_SpotlightSearchIcon_80x80.png</iPad_SpotLight80>
|
||||||
|
<iPad_AppIcon76>$(BDS)\bin\Artwork\iOS\iPad\FM_ApplicationIcon_76x76.png</iPad_AppIcon76>
|
||||||
|
<iPad_AppIcon152>$(BDS)\bin\Artwork\iOS\iPad\FM_ApplicationIcon_152x152.png</iPad_AppIcon152>
|
||||||
|
<iPad_Launch768x1024>$(BDS)\bin\Artwork\iOS\iPad\FM_LaunchImagePortrait_768x1024.png</iPad_Launch768x1024>
|
||||||
|
<iPad_Launch1024x768>$(BDS)\bin\Artwork\iOS\iPad\FM_LaunchImageLandscape_1024x768.png</iPad_Launch1024x768>
|
||||||
|
<iPad_Launch1536x2048>$(BDS)\bin\Artwork\iOS\iPad\FM_LaunchImagePortrait_1536x2048.png</iPad_Launch1536x2048>
|
||||||
|
<iPad_Launch2048x1536>$(BDS)\bin\Artwork\iOS\iPad\FM_LaunchImageLandscape_2048x1536.png</iPad_Launch2048x1536>
|
||||||
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Base_OSX32)'!=''">
|
<PropertyGroup Condition="'$(Base_OSX32)'!=''">
|
||||||
<DCC_UsePackage>FireDACTDataDriver;FireDACSqliteDriver;FireDACDSDriver;DBXSqliteDriver;FireDACPgDriver;fmx;IndySystem;tethering;DBXInterBaseDriver;DataSnapClient;DataSnapCommon;DataSnapServer;DataSnapProviderClient;DbxCommonDriver;dbxcds;fmxFireDAC;DBXOracleDriver;CustomIPTransport;dsnap;IndyIPServer;fmxase;IndyCore;CloudService;IndyIPCommon;FmxTeeUI;FireDACIBDriver;DataSnapFireDAC;FireDACDBXDriver;soapserver;inetdbxpress;dsnapxml;FireDACASADriver;bindcompfmx;FireDACODBCDriver;RESTBackendComponents;emsclientfiredac;rtl;dbrtl;DbxClientDriver;FireDACCommon;bindcomp;inetdb;ibmonitor;xmlrtl;DataSnapNativeClient;ibxpress;IndyProtocols;DBXMySQLDriver;FireDACCommonDriver;bindcompdbx;bindengine;FMXTee;soaprtl;emsclient;FireDAC;DBXInformixDriver;FireDACMSSQLDriver;DataSnapServerMidas;DBXFirebirdDriver;inet;fmxobj;FireDACMySQLDriver;soapmidas;DBXSybaseASADriver;FireDACOracleDriver;fmxdae;RESTComponents;dbexpress;DataSnapIndy10ServerTransport;IndyIPClient;$(DCC_UsePackage)</DCC_UsePackage>
|
<DCC_UsePackage>FireDACTDataDriver;FireDACSqliteDriver;FireDACDSDriver;DBXSqliteDriver;FireDACPgDriver;fmx;IndySystem;tethering;DBXInterBaseDriver;DataSnapClient;DataSnapCommon;DataSnapServer;DataSnapProviderClient;DbxCommonDriver;dbxcds;fmxFireDAC;DBXOracleDriver;CustomIPTransport;dsnap;IndyIPServer;fmxase;IndyCore;CloudService;IndyIPCommon;FmxTeeUI;FireDACIBDriver;DataSnapFireDAC;FireDACDBXDriver;soapserver;inetdbxpress;dsnapxml;FireDACASADriver;bindcompfmx;FireDACODBCDriver;RESTBackendComponents;emsclientfiredac;rtl;dbrtl;DbxClientDriver;FireDACCommon;bindcomp;inetdb;ibmonitor;xmlrtl;DataSnapNativeClient;ibxpress;IndyProtocols;DBXMySQLDriver;FireDACCommonDriver;bindcompdbx;bindengine;FMXTee;soaprtl;emsclient;FireDAC;DBXInformixDriver;FireDACMSSQLDriver;DataSnapServerMidas;DBXFirebirdDriver;inet;fmxobj;FireDACMySQLDriver;soapmidas;DBXSybaseASADriver;FireDACOracleDriver;fmxdae;RESTComponents;dbexpress;DataSnapIndy10ServerTransport;IndyIPClient;$(DCC_UsePackage)</DCC_UsePackage>
|
||||||
<UsingDelphiRTL>true</UsingDelphiRTL>
|
<UsingDelphiRTL>true</UsingDelphiRTL>
|
||||||
@@ -66,12 +165,12 @@
|
|||||||
<DCC_Namespace>Winapi;System.Win;Data.Win;Datasnap.Win;Web.Win;Soap.Win;Xml.Win;Bde;$(DCC_Namespace)</DCC_Namespace>
|
<DCC_Namespace>Winapi;System.Win;Data.Win;Datasnap.Win;Web.Win;Soap.Win;Xml.Win;Bde;$(DCC_Namespace)</DCC_Namespace>
|
||||||
<VerInfo_Locale>1033</VerInfo_Locale>
|
<VerInfo_Locale>1033</VerInfo_Locale>
|
||||||
<DCC_UsePackage>FireDACTDataDriver;FireDACSqliteDriver;FireDACDSDriver;DBXSqliteDriver;FireDACPgDriver;fmx;IndySystem;TeeDB;tethering;vclib;DBXInterBaseDriver;DataSnapClient;DataSnapCommon;DataSnapServer;DataSnapProviderClient;DBXSybaseASEDriver;DbxCommonDriver;vclimg;DUnitXRuntime;dbxcds;DatasnapConnectorsFreePascal;appanalytics;vcldb;vcldsnap;fmxFireDAC;DBXDb2Driver;DBXOracleDriver;CustomIPTransport;vclribbon;dsnap;IndyIPServer;fmxase;vcl;IndyCore;DBXMSSQLDriver;CloudService;IndyIPCommon;FmxTeeUI;FireDACIBDriver;DataSnapFireDAC;FireDACDBXDriver;soapserver;inetdbxpress;dsnapxml;FireDACInfxDriver;FireDACDb2Driver;adortl;FireDACASADriver;bindcompfmx;FireDACODBCDriver;RESTBackendComponents;emsclientfiredac;rtl;dbrtl;DbxClientDriver;FireDACCommon;bindcomp;inetdb;Tee;DBXOdbcDriver;ibmonitor;vclFireDAC;xmlrtl;DataSnapNativeClient;ibxpress;svnui;IndyProtocols;DBXMySQLDriver;FireDACCommonDriver;bindcompdbx;bindengine;vclactnband;FMXTee;soaprtl;TeeUI;bindcompvcl;vclie;FireDACADSDriver;vcltouch;emsclient;VCLRESTComponents;FireDAC;DBXInformixDriver;FireDACMSSQLDriver;Intraweb;VclSmp;DataSnapConnectors;DataSnapServerMidas;DBXFirebirdDriver;dsnapcon;inet;fmxobj;FireDACMySQLDriver;soapmidas;vclx;svn;DBXSybaseASADriver;FireDACOracleDriver;fmxdae;RESTComponents;dbexpress;FireDACMSAccDriver;DataSnapIndy10ServerTransport;IndyIPClient;$(DCC_UsePackage)</DCC_UsePackage>
|
<DCC_UsePackage>FireDACTDataDriver;FireDACSqliteDriver;FireDACDSDriver;DBXSqliteDriver;FireDACPgDriver;fmx;IndySystem;TeeDB;tethering;vclib;DBXInterBaseDriver;DataSnapClient;DataSnapCommon;DataSnapServer;DataSnapProviderClient;DBXSybaseASEDriver;DbxCommonDriver;vclimg;DUnitXRuntime;dbxcds;DatasnapConnectorsFreePascal;appanalytics;vcldb;vcldsnap;fmxFireDAC;DBXDb2Driver;DBXOracleDriver;CustomIPTransport;vclribbon;dsnap;IndyIPServer;fmxase;vcl;IndyCore;DBXMSSQLDriver;CloudService;IndyIPCommon;FmxTeeUI;FireDACIBDriver;DataSnapFireDAC;FireDACDBXDriver;soapserver;inetdbxpress;dsnapxml;FireDACInfxDriver;FireDACDb2Driver;adortl;FireDACASADriver;bindcompfmx;FireDACODBCDriver;RESTBackendComponents;emsclientfiredac;rtl;dbrtl;DbxClientDriver;FireDACCommon;bindcomp;inetdb;Tee;DBXOdbcDriver;ibmonitor;vclFireDAC;xmlrtl;DataSnapNativeClient;ibxpress;svnui;IndyProtocols;DBXMySQLDriver;FireDACCommonDriver;bindcompdbx;bindengine;vclactnband;FMXTee;soaprtl;TeeUI;bindcompvcl;vclie;FireDACADSDriver;vcltouch;emsclient;VCLRESTComponents;FireDAC;DBXInformixDriver;FireDACMSSQLDriver;Intraweb;VclSmp;DataSnapConnectors;DataSnapServerMidas;DBXFirebirdDriver;dsnapcon;inet;fmxobj;FireDACMySQLDriver;soapmidas;vclx;svn;DBXSybaseASADriver;FireDACOracleDriver;fmxdae;RESTComponents;dbexpress;FireDACMSAccDriver;DataSnapIndy10ServerTransport;IndyIPClient;$(DCC_UsePackage)</DCC_UsePackage>
|
||||||
<VerInfo_Keys>CompanyName=;FileDescription=;FileVersion=1.0.0.0;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProductName=;ProductVersion=1.0.0.0;Comments=</VerInfo_Keys>
|
<VerInfo_Keys>CompanyName=;FileVersion=1.0.0.0;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProductVersion=1.0.0.0;Comments=;ProgramID=com.embarcadero.$(MSBuildProjectName);FileDescription=$(MSBuildProjectName);ProductName=$(MSBuildProjectName)</VerInfo_Keys>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Base_Win64)'!=''">
|
<PropertyGroup Condition="'$(Base_Win64)'!=''">
|
||||||
<VerInfo_Locale>1033</VerInfo_Locale>
|
<VerInfo_Locale>1033</VerInfo_Locale>
|
||||||
<DCC_Namespace>Winapi;System.Win;Data.Win;Datasnap.Win;Web.Win;Soap.Win;Xml.Win;$(DCC_Namespace)</DCC_Namespace>
|
<DCC_Namespace>Winapi;System.Win;Data.Win;Datasnap.Win;Web.Win;Soap.Win;Xml.Win;$(DCC_Namespace)</DCC_Namespace>
|
||||||
<VerInfo_Keys>CompanyName=;FileDescription=;FileVersion=1.0.0.0;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProductName=;ProductVersion=1.0.0.0;Comments=</VerInfo_Keys>
|
<VerInfo_Keys>CompanyName=;FileVersion=1.0.0.0;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProductVersion=1.0.0.0;Comments=;ProgramID=com.embarcadero.$(MSBuildProjectName);FileDescription=$(MSBuildProjectName);ProductName=$(MSBuildProjectName)</VerInfo_Keys>
|
||||||
<DCC_UsePackage>FireDACTDataDriver;FireDACSqliteDriver;FireDACDSDriver;DBXSqliteDriver;FireDACPgDriver;fmx;IndySystem;TeeDB;tethering;vclib;DBXInterBaseDriver;DataSnapClient;DataSnapCommon;DataSnapServer;DataSnapProviderClient;DBXSybaseASEDriver;DbxCommonDriver;vclimg;dbxcds;DatasnapConnectorsFreePascal;appanalytics;vcldb;vcldsnap;fmxFireDAC;DBXDb2Driver;DBXOracleDriver;CustomIPTransport;vclribbon;dsnap;IndyIPServer;fmxase;vcl;IndyCore;DBXMSSQLDriver;CloudService;IndyIPCommon;FmxTeeUI;FireDACIBDriver;DataSnapFireDAC;FireDACDBXDriver;soapserver;inetdbxpress;dsnapxml;FireDACInfxDriver;FireDACDb2Driver;adortl;FireDACASADriver;bindcompfmx;FireDACODBCDriver;RESTBackendComponents;emsclientfiredac;rtl;dbrtl;DbxClientDriver;FireDACCommon;bindcomp;inetdb;Tee;DBXOdbcDriver;ibmonitor;vclFireDAC;xmlrtl;DataSnapNativeClient;ibxpress;IndyProtocols;DBXMySQLDriver;FireDACCommonDriver;bindcompdbx;bindengine;vclactnband;FMXTee;soaprtl;TeeUI;bindcompvcl;vclie;FireDACADSDriver;vcltouch;emsclient;VCLRESTComponents;FireDAC;DBXInformixDriver;FireDACMSSQLDriver;Intraweb;VclSmp;DataSnapConnectors;DataSnapServerMidas;DBXFirebirdDriver;dsnapcon;inet;fmxobj;FireDACMySQLDriver;soapmidas;vclx;DBXSybaseASADriver;FireDACOracleDriver;fmxdae;RESTComponents;dbexpress;FireDACMSAccDriver;DataSnapIndy10ServerTransport;IndyIPClient;$(DCC_UsePackage)</DCC_UsePackage>
|
<DCC_UsePackage>FireDACTDataDriver;FireDACSqliteDriver;FireDACDSDriver;DBXSqliteDriver;FireDACPgDriver;fmx;IndySystem;TeeDB;tethering;vclib;DBXInterBaseDriver;DataSnapClient;DataSnapCommon;DataSnapServer;DataSnapProviderClient;DBXSybaseASEDriver;DbxCommonDriver;vclimg;dbxcds;DatasnapConnectorsFreePascal;appanalytics;vcldb;vcldsnap;fmxFireDAC;DBXDb2Driver;DBXOracleDriver;CustomIPTransport;vclribbon;dsnap;IndyIPServer;fmxase;vcl;IndyCore;DBXMSSQLDriver;CloudService;IndyIPCommon;FmxTeeUI;FireDACIBDriver;DataSnapFireDAC;FireDACDBXDriver;soapserver;inetdbxpress;dsnapxml;FireDACInfxDriver;FireDACDb2Driver;adortl;FireDACASADriver;bindcompfmx;FireDACODBCDriver;RESTBackendComponents;emsclientfiredac;rtl;dbrtl;DbxClientDriver;FireDACCommon;bindcomp;inetdb;Tee;DBXOdbcDriver;ibmonitor;vclFireDAC;xmlrtl;DataSnapNativeClient;ibxpress;IndyProtocols;DBXMySQLDriver;FireDACCommonDriver;bindcompdbx;bindengine;vclactnband;FMXTee;soaprtl;TeeUI;bindcompvcl;vclie;FireDACADSDriver;vcltouch;emsclient;VCLRESTComponents;FireDAC;DBXInformixDriver;FireDACMSSQLDriver;Intraweb;VclSmp;DataSnapConnectors;DataSnapServerMidas;DBXFirebirdDriver;dsnapcon;inet;fmxobj;FireDACMySQLDriver;soapmidas;vclx;DBXSybaseASADriver;FireDACOracleDriver;fmxdae;RESTComponents;dbexpress;FireDACMSAccDriver;DataSnapIndy10ServerTransport;IndyIPClient;$(DCC_UsePackage)</DCC_UsePackage>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Cfg_1)'!=''">
|
<PropertyGroup Condition="'$(Cfg_1)'!=''">
|
||||||
@@ -150,186 +249,29 @@ begin
|
|||||||
<Source Name="MainSource">Project2.dpr</Source>
|
<Source Name="MainSource">Project2.dpr</Source>
|
||||||
</Source>
|
</Source>
|
||||||
</Delphi.Personality>
|
</Delphi.Personality>
|
||||||
<Deployment Version="1">
|
<Deployment Version="3">
|
||||||
<DeployFile LocalName="Win32\Debug\Project2.exe" Configuration="Debug" Class="ProjectOutput">
|
|
||||||
<Platform Name="Win32">
|
|
||||||
<RemoteName>Project2.exe</RemoteName>
|
|
||||||
<Overwrite>true</Overwrite>
|
|
||||||
</Platform>
|
|
||||||
</DeployFile>
|
|
||||||
<DeployFile LocalName="$(BDS)\Redist\osx32\libcgunwind.1.0.dylib" Class="DependencyModule">
|
<DeployFile LocalName="$(BDS)\Redist\osx32\libcgunwind.1.0.dylib" Class="DependencyModule">
|
||||||
<Platform Name="OSX32">
|
<Platform Name="OSX32">
|
||||||
<Overwrite>true</Overwrite>
|
<Overwrite>true</Overwrite>
|
||||||
</Platform>
|
</Platform>
|
||||||
</DeployFile>
|
</DeployFile>
|
||||||
<DeployFile LocalName="$(BDS)\Redist\iossim32\libcgunwind.1.0.dylib" Class="DependencyModule">
|
<DeployFile LocalName="$(BDS)\Redist\iossim32\libcgunwind.1.0.dylib" Class="DependencyModule"/>
|
||||||
|
<DeployFile LocalName="$(BDS)\Redist\iossimulator\libcgunwind.1.0.dylib" Class="DependencyModule">
|
||||||
<Platform Name="iOSSimulator">
|
<Platform Name="iOSSimulator">
|
||||||
<Overwrite>true</Overwrite>
|
<Overwrite>true</Overwrite>
|
||||||
</Platform>
|
</Platform>
|
||||||
</DeployFile>
|
</DeployFile>
|
||||||
<DeployClass Required="true" Name="DependencyPackage">
|
<DeployFile LocalName="Win32\Debug\Project2.exe" Configuration="Debug" Class="ProjectOutput"/>
|
||||||
<Platform Name="iOSDevice64">
|
<DeployFile LocalName="$(BDS)\Redist\iossimulator\libPCRE.dylib" Class="DependencyModule">
|
||||||
<Operation>1</Operation>
|
<Platform Name="iOSSimulator">
|
||||||
<Extensions>.dylib</Extensions>
|
<Overwrite>true</Overwrite>
|
||||||
</Platform>
|
|
||||||
<Platform Name="Win32">
|
|
||||||
<Operation>0</Operation>
|
|
||||||
<Extensions>.bpl</Extensions>
|
|
||||||
</Platform>
|
</Platform>
|
||||||
|
</DeployFile>
|
||||||
|
<DeployFile LocalName="$(BDS)\Redist\osx32\libcgsqlite3.dylib" Class="DependencyModule">
|
||||||
<Platform Name="OSX32">
|
<Platform Name="OSX32">
|
||||||
<Operation>1</Operation>
|
<Overwrite>true</Overwrite>
|
||||||
<Extensions>.dylib</Extensions>
|
|
||||||
</Platform>
|
</Platform>
|
||||||
<Platform Name="iOSSimulator">
|
</DeployFile>
|
||||||
<Operation>1</Operation>
|
|
||||||
<Extensions>.dylib</Extensions>
|
|
||||||
</Platform>
|
|
||||||
<Platform Name="iOSDevice32">
|
|
||||||
<Operation>1</Operation>
|
|
||||||
<Extensions>.dylib</Extensions>
|
|
||||||
</Platform>
|
|
||||||
</DeployClass>
|
|
||||||
<DeployClass Name="DependencyModule">
|
|
||||||
<Platform Name="OSX32">
|
|
||||||
<Operation>1</Operation>
|
|
||||||
<Extensions>.dylib</Extensions>
|
|
||||||
</Platform>
|
|
||||||
<Platform Name="Win32">
|
|
||||||
<Operation>0</Operation>
|
|
||||||
<Extensions>.dll;.bpl</Extensions>
|
|
||||||
</Platform>
|
|
||||||
</DeployClass>
|
|
||||||
<DeployClass Name="iPad_Launch2048">
|
|
||||||
<Platform Name="iOSDevice64">
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
<Platform Name="iOSSimulator">
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
<Platform Name="iOSDevice32">
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
</DeployClass>
|
|
||||||
<DeployClass Name="ProjectOSXInfoPList"/>
|
|
||||||
<DeployClass Name="ProjectiOSDeviceDebug">
|
|
||||||
<Platform Name="iOSDevice64">
|
|
||||||
<RemoteDir>..\$(PROJECTNAME).app.dSYM\Contents\Resources\DWARF</RemoteDir>
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
<Platform Name="iOSDevice32">
|
|
||||||
<RemoteDir>..\$(PROJECTNAME).app.dSYM\Contents\Resources\DWARF</RemoteDir>
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
</DeployClass>
|
|
||||||
<DeployClass Name="Android_SplashImage470">
|
|
||||||
<Platform Name="Android">
|
|
||||||
<RemoteDir>res\drawable-normal</RemoteDir>
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
</DeployClass>
|
|
||||||
<DeployClass Name="AndroidLibnativeX86File">
|
|
||||||
<Platform Name="Android">
|
|
||||||
<RemoteDir>library\lib\x86</RemoteDir>
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
</DeployClass>
|
|
||||||
<DeployClass Name="ProjectiOSResource">
|
|
||||||
<Platform Name="iOSDevice64">
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
<Platform Name="iOSSimulator">
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
<Platform Name="iOSDevice32">
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
</DeployClass>
|
|
||||||
<DeployClass Name="ProjectOSXEntitlements"/>
|
|
||||||
<DeployClass Name="AndroidGDBServer">
|
|
||||||
<Platform Name="Android">
|
|
||||||
<RemoteDir>library\lib\armeabi-v7a</RemoteDir>
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
</DeployClass>
|
|
||||||
<DeployClass Name="iPhone_Launch640">
|
|
||||||
<Platform Name="iOSDevice64">
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
<Platform Name="iOSSimulator">
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
<Platform Name="iOSDevice32">
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
</DeployClass>
|
|
||||||
<DeployClass Name="Android_SplashImage960">
|
|
||||||
<Platform Name="Android">
|
|
||||||
<RemoteDir>res\drawable-xlarge</RemoteDir>
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
</DeployClass>
|
|
||||||
<DeployClass Name="Android_LauncherIcon96">
|
|
||||||
<Platform Name="Android">
|
|
||||||
<RemoteDir>res\drawable-xhdpi</RemoteDir>
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
</DeployClass>
|
|
||||||
<DeployClass Name="iPhone_Launch320">
|
|
||||||
<Platform Name="iOSDevice64">
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
<Platform Name="iOSSimulator">
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
<Platform Name="iOSDevice32">
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
</DeployClass>
|
|
||||||
<DeployClass Name="Android_LauncherIcon144">
|
|
||||||
<Platform Name="Android">
|
|
||||||
<RemoteDir>res\drawable-xxhdpi</RemoteDir>
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
</DeployClass>
|
|
||||||
<DeployClass Name="AndroidLibnativeMipsFile">
|
|
||||||
<Platform Name="Android">
|
|
||||||
<RemoteDir>library\lib\mips</RemoteDir>
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
</DeployClass>
|
|
||||||
<DeployClass Name="AndroidSplashImageDef">
|
|
||||||
<Platform Name="Android">
|
|
||||||
<RemoteDir>res\drawable</RemoteDir>
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
</DeployClass>
|
|
||||||
<DeployClass Name="DebugSymbols">
|
|
||||||
<Platform Name="OSX32">
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
<Platform Name="iOSSimulator">
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
<Platform Name="Win32">
|
|
||||||
<Operation>0</Operation>
|
|
||||||
</Platform>
|
|
||||||
</DeployClass>
|
|
||||||
<DeployClass Name="DependencyFramework">
|
|
||||||
<Platform Name="OSX32">
|
|
||||||
<Operation>1</Operation>
|
|
||||||
<Extensions>.framework</Extensions>
|
|
||||||
</Platform>
|
|
||||||
<Platform Name="Win32">
|
|
||||||
<Operation>0</Operation>
|
|
||||||
</Platform>
|
|
||||||
</DeployClass>
|
|
||||||
<DeployClass Name="Android_SplashImage426">
|
|
||||||
<Platform Name="Android">
|
|
||||||
<RemoteDir>res\drawable-small</RemoteDir>
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
</DeployClass>
|
|
||||||
<DeployClass Name="ProjectiOSEntitlements"/>
|
|
||||||
<DeployClass Name="AdditionalDebugSymbols">
|
<DeployClass Name="AdditionalDebugSymbols">
|
||||||
<Platform Name="OSX32">
|
<Platform Name="OSX32">
|
||||||
<Operation>1</Operation>
|
<Operation>1</Operation>
|
||||||
@@ -345,62 +287,11 @@ begin
|
|||||||
<Operation>1</Operation>
|
<Operation>1</Operation>
|
||||||
</Platform>
|
</Platform>
|
||||||
</DeployClass>
|
</DeployClass>
|
||||||
<DeployClass Name="ProjectiOSInfoPList"/>
|
<DeployClass Name="AndroidGDBServer">
|
||||||
<DeployClass Name="iPad_Launch1024">
|
|
||||||
<Platform Name="iOSDevice64">
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
<Platform Name="iOSSimulator">
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
<Platform Name="iOSDevice32">
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
</DeployClass>
|
|
||||||
<DeployClass Name="Android_DefaultAppIcon">
|
|
||||||
<Platform Name="Android">
|
|
||||||
<RemoteDir>res\drawable</RemoteDir>
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
</DeployClass>
|
|
||||||
<DeployClass Name="ProjectOSXResource">
|
|
||||||
<Platform Name="OSX32">
|
|
||||||
<RemoteDir>Contents\Resources</RemoteDir>
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
</DeployClass>
|
|
||||||
<DeployClass Name="ProjectiOSDeviceResourceRules"/>
|
|
||||||
<DeployClass Name="iPad_Launch768">
|
|
||||||
<Platform Name="iOSDevice64">
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
<Platform Name="iOSSimulator">
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
<Platform Name="iOSDevice32">
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
</DeployClass>
|
|
||||||
<DeployClass Required="true" Name="ProjectOutput">
|
|
||||||
<Platform Name="Android">
|
<Platform Name="Android">
|
||||||
<RemoteDir>library\lib\armeabi-v7a</RemoteDir>
|
<RemoteDir>library\lib\armeabi-v7a</RemoteDir>
|
||||||
<Operation>1</Operation>
|
<Operation>1</Operation>
|
||||||
</Platform>
|
</Platform>
|
||||||
<Platform Name="iOSDevice64">
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
<Platform Name="Win32">
|
|
||||||
<Operation>0</Operation>
|
|
||||||
</Platform>
|
|
||||||
<Platform Name="OSX32">
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
<Platform Name="iOSSimulator">
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
<Platform Name="iOSDevice32">
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
</DeployClass>
|
</DeployClass>
|
||||||
<DeployClass Name="AndroidLibnativeArmeabiFile">
|
<DeployClass Name="AndroidLibnativeArmeabiFile">
|
||||||
<Platform Name="Android">
|
<Platform Name="Android">
|
||||||
@@ -408,46 +299,21 @@ begin
|
|||||||
<Operation>1</Operation>
|
<Operation>1</Operation>
|
||||||
</Platform>
|
</Platform>
|
||||||
</DeployClass>
|
</DeployClass>
|
||||||
<DeployClass Name="Android_SplashImage640">
|
<DeployClass Name="AndroidLibnativeMipsFile">
|
||||||
<Platform Name="Android">
|
<Platform Name="Android">
|
||||||
<RemoteDir>res\drawable-large</RemoteDir>
|
<RemoteDir>library\lib\mips</RemoteDir>
|
||||||
<Operation>1</Operation>
|
<Operation>1</Operation>
|
||||||
</Platform>
|
</Platform>
|
||||||
</DeployClass>
|
</DeployClass>
|
||||||
<DeployClass Name="File">
|
<DeployClass Name="AndroidServiceOutput">
|
||||||
<Platform Name="Android">
|
<Platform Name="Android">
|
||||||
<Operation>0</Operation>
|
<RemoteDir>library\lib\armeabi-v7a</RemoteDir>
|
||||||
</Platform>
|
|
||||||
<Platform Name="iOSDevice64">
|
|
||||||
<Operation>0</Operation>
|
|
||||||
</Platform>
|
|
||||||
<Platform Name="Win32">
|
|
||||||
<Operation>0</Operation>
|
|
||||||
</Platform>
|
|
||||||
<Platform Name="OSX32">
|
|
||||||
<Operation>0</Operation>
|
|
||||||
</Platform>
|
|
||||||
<Platform Name="iOSSimulator">
|
|
||||||
<Operation>0</Operation>
|
|
||||||
</Platform>
|
|
||||||
<Platform Name="iOSDevice32">
|
|
||||||
<Operation>0</Operation>
|
|
||||||
</Platform>
|
|
||||||
</DeployClass>
|
|
||||||
<DeployClass Name="iPhone_Launch640x1136">
|
|
||||||
<Platform Name="iOSDevice64">
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
<Platform Name="iOSSimulator">
|
|
||||||
<Operation>1</Operation>
|
|
||||||
</Platform>
|
|
||||||
<Platform Name="iOSDevice32">
|
|
||||||
<Operation>1</Operation>
|
<Operation>1</Operation>
|
||||||
</Platform>
|
</Platform>
|
||||||
</DeployClass>
|
</DeployClass>
|
||||||
<DeployClass Name="Android_LauncherIcon36">
|
<DeployClass Name="AndroidSplashImageDef">
|
||||||
<Platform Name="Android">
|
<Platform Name="Android">
|
||||||
<RemoteDir>res\drawable-ldpi</RemoteDir>
|
<RemoteDir>res\drawable</RemoteDir>
|
||||||
<Operation>1</Operation>
|
<Operation>1</Operation>
|
||||||
</Platform>
|
</Platform>
|
||||||
</DeployClass>
|
</DeployClass>
|
||||||
@@ -457,14 +323,21 @@ begin
|
|||||||
<Operation>1</Operation>
|
<Operation>1</Operation>
|
||||||
</Platform>
|
</Platform>
|
||||||
</DeployClass>
|
</DeployClass>
|
||||||
<DeployClass Name="iPad_Launch1536">
|
<DeployClass Name="Android_DefaultAppIcon">
|
||||||
<Platform Name="iOSDevice64">
|
<Platform Name="Android">
|
||||||
|
<RemoteDir>res\drawable</RemoteDir>
|
||||||
<Operation>1</Operation>
|
<Operation>1</Operation>
|
||||||
</Platform>
|
</Platform>
|
||||||
<Platform Name="iOSSimulator">
|
</DeployClass>
|
||||||
|
<DeployClass Name="Android_LauncherIcon144">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<RemoteDir>res\drawable-xxhdpi</RemoteDir>
|
||||||
<Operation>1</Operation>
|
<Operation>1</Operation>
|
||||||
</Platform>
|
</Platform>
|
||||||
<Platform Name="iOSDevice32">
|
</DeployClass>
|
||||||
|
<DeployClass Name="Android_LauncherIcon36">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<RemoteDir>res\drawable-ldpi</RemoteDir>
|
||||||
<Operation>1</Operation>
|
<Operation>1</Operation>
|
||||||
</Platform>
|
</Platform>
|
||||||
</DeployClass>
|
</DeployClass>
|
||||||
@@ -480,20 +353,289 @@ begin
|
|||||||
<Operation>1</Operation>
|
<Operation>1</Operation>
|
||||||
</Platform>
|
</Platform>
|
||||||
</DeployClass>
|
</DeployClass>
|
||||||
|
<DeployClass Name="Android_LauncherIcon96">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<RemoteDir>res\drawable-xhdpi</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="Android_SplashImage426">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<RemoteDir>res\drawable-small</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="Android_SplashImage470">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<RemoteDir>res\drawable-normal</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="Android_SplashImage640">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<RemoteDir>res\drawable-large</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="Android_SplashImage960">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<RemoteDir>res\drawable-xlarge</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="DebugSymbols">
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="OSX32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="Win32">
|
||||||
|
<Operation>0</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="DependencyFramework">
|
||||||
|
<Platform Name="OSX32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
<Extensions>.framework</Extensions>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="Win32">
|
||||||
|
<Operation>0</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="DependencyModule">
|
||||||
|
<Platform Name="OSX32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
<Extensions>.dylib</Extensions>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="Win32">
|
||||||
|
<Operation>0</Operation>
|
||||||
|
<Extensions>.dll;.bpl</Extensions>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Required="true" Name="DependencyPackage">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
<Extensions>.dylib</Extensions>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
<Extensions>.dylib</Extensions>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
<Extensions>.dylib</Extensions>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="OSX32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
<Extensions>.dylib</Extensions>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="Win32">
|
||||||
|
<Operation>0</Operation>
|
||||||
|
<Extensions>.bpl</Extensions>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="File">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<Operation>0</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>0</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>0</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>0</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="OSX32">
|
||||||
|
<Operation>0</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="Win32">
|
||||||
|
<Operation>0</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="iPad_Launch1024">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="iPad_Launch1536">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="iPad_Launch2048">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="iPad_Launch768">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="iPhone_Launch320">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="iPhone_Launch640">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="iPhone_Launch640x1136">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
<DeployClass Name="ProjectAndroidManifest">
|
<DeployClass Name="ProjectAndroidManifest">
|
||||||
<Platform Name="Android">
|
<Platform Name="Android">
|
||||||
<Operation>1</Operation>
|
<Operation>1</Operation>
|
||||||
</Platform>
|
</Platform>
|
||||||
</DeployClass>
|
</DeployClass>
|
||||||
<ProjectRoot Platform="iOSDevice32" Name="$(PROJECTNAME).app"/>
|
<DeployClass Name="ProjectiOSDeviceDebug">
|
||||||
<ProjectRoot Platform="Android" Name="$(PROJECTNAME)"/>
|
<Platform Name="iOSDevice32">
|
||||||
<ProjectRoot Platform="Win32" Name="$(PROJECTNAME)"/>
|
<RemoteDir>..\$(PROJECTNAME).app.dSYM\Contents\Resources\DWARF</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<RemoteDir>..\$(PROJECTNAME).app.dSYM\Contents\Resources\DWARF</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="ProjectiOSDeviceResourceRules"/>
|
||||||
|
<DeployClass Name="ProjectiOSEntitlements"/>
|
||||||
|
<DeployClass Name="ProjectiOSInfoPList"/>
|
||||||
|
<DeployClass Name="ProjectiOSResource">
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="ProjectOSXEntitlements"/>
|
||||||
|
<DeployClass Name="ProjectOSXInfoPList"/>
|
||||||
|
<DeployClass Name="ProjectOSXResource">
|
||||||
|
<Platform Name="OSX32">
|
||||||
|
<RemoteDir>Contents\Resources</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Required="true" Name="ProjectOutput">
|
||||||
|
<Platform Name="Android">
|
||||||
|
<RemoteDir>library\lib\armeabi-v7a</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSDevice64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="iOSSimulator">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="Linux64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="OSX32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="Win32">
|
||||||
|
<Operation>0</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="ProjectUWPManifest">
|
||||||
|
<Platform Name="Win32">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="Win64">
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="UWP_DelphiLogo150">
|
||||||
|
<Platform Name="Win32">
|
||||||
|
<RemoteDir>Assets</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="Win64">
|
||||||
|
<RemoteDir>Assets</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
|
<DeployClass Name="UWP_DelphiLogo44">
|
||||||
|
<Platform Name="Win32">
|
||||||
|
<RemoteDir>Assets</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
<Platform Name="Win64">
|
||||||
|
<RemoteDir>Assets</RemoteDir>
|
||||||
|
<Operation>1</Operation>
|
||||||
|
</Platform>
|
||||||
|
</DeployClass>
|
||||||
<ProjectRoot Platform="iOSDevice64" Name="$(PROJECTNAME).app"/>
|
<ProjectRoot Platform="iOSDevice64" Name="$(PROJECTNAME).app"/>
|
||||||
<ProjectRoot Platform="OSX32" Name="$(PROJECTNAME)"/>
|
|
||||||
<ProjectRoot Platform="Win64" Name="$(PROJECTNAME)"/>
|
<ProjectRoot Platform="Win64" Name="$(PROJECTNAME)"/>
|
||||||
|
<ProjectRoot Platform="iOSDevice32" Name="$(PROJECTNAME).app"/>
|
||||||
|
<ProjectRoot Platform="Win32" Name="$(PROJECTNAME)"/>
|
||||||
|
<ProjectRoot Platform="Linux64" Name="$(PROJECTNAME)"/>
|
||||||
|
<ProjectRoot Platform="OSX32" Name="$(PROJECTNAME)"/>
|
||||||
|
<ProjectRoot Platform="Android" Name="$(PROJECTNAME)"/>
|
||||||
<ProjectRoot Platform="iOSSimulator" Name="$(PROJECTNAME).app"/>
|
<ProjectRoot Platform="iOSSimulator" Name="$(PROJECTNAME).app"/>
|
||||||
</Deployment>
|
</Deployment>
|
||||||
<Platforms>
|
<Platforms>
|
||||||
|
<Platform value="Android">False</Platform>
|
||||||
|
<Platform value="iOSDevice32">False</Platform>
|
||||||
|
<Platform value="iOSDevice64">False</Platform>
|
||||||
|
<Platform value="iOSSimulator">False</Platform>
|
||||||
|
<Platform value="Linux64">False</Platform>
|
||||||
<Platform value="OSX32">False</Platform>
|
<Platform value="OSX32">False</Platform>
|
||||||
<Platform value="Win32">True</Platform>
|
<Platform value="Win32">True</Platform>
|
||||||
<Platform value="Win64">True</Platform>
|
<Platform value="Win64">True</Platform>
|
||||||
|
|||||||
@@ -22,59 +22,53 @@ var
|
|||||||
Fasm:TRTBFasmCompiler;
|
Fasm:TRTBFasmCompiler;
|
||||||
Src:TRTBSource;
|
Src:TRTBSource;
|
||||||
Module:TRTBModule;
|
Module:TRTBModule;
|
||||||
Func1,Func2:TRTBFunc;
|
Func1,Func2,Func3:TRTBFunc;
|
||||||
Var1:TRTBVar;
|
Var1:TRTBVar;
|
||||||
begin
|
begin
|
||||||
Fasm:=TRTBFasmCompiler.Create('..\..\..\lib\FasmOnDelphi\fasmw172\fasm');
|
Fasm:=TRTBFasmCompiler.Create('..\..\..\lib\FasmOnDelphi\fasmw172\fasm');
|
||||||
Src:=Fasm.GenNewSrc;
|
Src:=Fasm.GenNewSrc;
|
||||||
with Src do
|
with Src do
|
||||||
begin
|
begin
|
||||||
Text:='use32'+sLineBreak+
|
Text:='main:'+sLineBreak+
|
||||||
'main:'+sLineBreak+
|
|
||||||
'pop ecx'+sLineBreak+
|
'pop ecx'+sLineBreak+
|
||||||
'pop eax'+sLineBreak+
|
'pop eax'+sLineBreak+
|
||||||
'jmp ecx'+sLineBreak+
|
'jmp ecx'+sLineBreak+
|
||||||
'Pmain dd 0'+sLineBreak+
|
'Pmain dd 0'+sLineBreak+
|
||||||
'varmain:'+sLineBreak+
|
'varmain:'+sLineBreak+
|
||||||
'mov eax,[Pmain]'+sLineBreak+
|
'mov eax,[Pmain]'+sLineBreak+
|
||||||
|
'ret'+sLineBreak+
|
||||||
|
'callbacktest:'+sLineBreak+
|
||||||
|
'push 80'+sLineBreak+
|
||||||
|
'call CallBack'+sLineBreak+
|
||||||
'ret';
|
'ret';
|
||||||
RegisterFunction('','main');
|
RegisterFunction('','main');
|
||||||
RegisterFunction('','varmain');
|
RegisterFunction('','varmain');
|
||||||
|
RegisterFunction('','callbacktest');
|
||||||
|
AddCallBack('','CallBack',function(arg:array of const):TRTBCallBackOut
|
||||||
|
begin
|
||||||
|
Result:=arg[0];
|
||||||
|
end);
|
||||||
Register('','Pmain',TypeInfo(integer));
|
Register('','Pmain',TypeInfo(integer));
|
||||||
end;
|
end;
|
||||||
Module:=Src.Compilate;
|
Module:=Src.Compilate;
|
||||||
Func1:=Module.Funtion['main'];
|
Func1:=Module.Funtion['main'];
|
||||||
Func2:=Module.Funtion['varmain'];
|
Func2:=Module.Funtion['varmain'];
|
||||||
|
Func3:=Module.Funtion['callbacktest'];
|
||||||
if 454<>Func1.Call(TypeInfo(integer),[454],CRTBCallTypeStdCall).AsInteger then
|
if 454<>Func1.Call(TypeInfo(integer),[454],CRTBCallTypeStdCall).AsInteger then
|
||||||
raise Exception.Create('Error in FasmTest');
|
raise Exception.Create('Error in FasmTest');
|
||||||
Var1:=Module.&Var['Pmain'];
|
Var1:=Module.&Var['Pmain'];
|
||||||
Var1.Val:=424;
|
Var1.Val:=424;
|
||||||
if Var1.Val.AsInteger<>Func2.Call(TypeInfo(integer),[],CRTBCallTypeStdCall).AsInteger then
|
if Var1.Val.AsInteger<>Func2.Call(TypeInfo(integer),[],CRTBCallTypeStdCall).AsInteger then
|
||||||
raise Exception.Create('Error in FasmTest');
|
raise Exception.Create('Error in FasmTest');
|
||||||
|
if PByte(Func3.Call(TypeInfo(integer),[],CRTBCallTypeStdCall).AsInteger)^<>80 then
|
||||||
|
raise Exception.Create('Error in FasmTest');
|
||||||
FreeAndNil(Var1);
|
FreeAndNil(Var1);
|
||||||
|
FreeAndNil(Func3);
|
||||||
FreeAndNil(Func2);
|
FreeAndNil(Func2);
|
||||||
FreeAndNil(Func1);
|
FreeAndNil(Func1);
|
||||||
FreeAndNil(module);
|
FreeAndNil(module);
|
||||||
FreeAndNil(Src);
|
FreeAndNil(Src);
|
||||||
FreeAndNil(Fasm);
|
FreeAndNil(Fasm);
|
||||||
{var
|
|
||||||
Fasm:TRTBFasmCompiler;
|
|
||||||
Src:TRTBSource;
|
|
||||||
Func1:TRTBFunc;
|
|
||||||
begin
|
|
||||||
{Fasm:=TRTBFasmCompiler.Create('..\..\..\FasmOnDelphi\fasmw172\fasm');
|
|
||||||
Src:=Fasm.GenNewSrc;
|
|
||||||
Src.LoadFromFile('..\..\testlib.fasm');
|
|
||||||
Fasm.LoadLib('W:\RuntimeBuilder\FasmOnDelphi\fasmw172\INCLUDE\win32a.inc');
|
|
||||||
lib:=Src.CompilateAsLib;
|
|
||||||
Func1:=lib.Funtion['MyEcho'];
|
|
||||||
if 234665<>Func1.Call(TypeInfo(integer),[234665],CRTBCallTypeStdCall).AsInteger then
|
|
||||||
begin
|
|
||||||
raise Exception.Create('Error in test2');
|
|
||||||
end;
|
|
||||||
FreeAndNil(Func1);
|
|
||||||
FreeAndNil(Src);
|
|
||||||
FreeAndNil(Fasm);}
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TRuntimeBuilderTestObject.LuaTest();
|
procedure TRuntimeBuilderTestObject.LuaTest();
|
||||||
@@ -83,26 +77,26 @@ var
|
|||||||
Src:TRTBSource;
|
Src:TRTBSource;
|
||||||
Module:TRTBModule;
|
Module:TRTBModule;
|
||||||
Func1,Func2:TRTBFunc;
|
Func1,Func2:TRTBFunc;
|
||||||
Var1:TRTBVar;
|
//Var1:TRTBVar;
|
||||||
begin
|
begin
|
||||||
Lua:=TRTBLuaCompiler.Create();
|
Lua:=TRTBLuaCompiler.Create();
|
||||||
Src:=Lua.GenNewSrc;
|
Src:=Lua.GenNewSrc;
|
||||||
Src.Text:='function main(n)'+sLineBreak+' return 1'+sLineBreak+'end';
|
Src.Text:='function main(n)'+sLineBreak+' return n'+sLineBreak+'end';
|
||||||
Src.RegisterFunction('','main');
|
//Src.RegisterFunction('','main');
|
||||||
//Src.RegisterFunction('','varmain');
|
//Src.RegisterFunction('','varmain');
|
||||||
//Src.Register('','Pmain',TypeInfo(integer));
|
//Src.Register('','Pmain',TypeInfo(integer));
|
||||||
Module:=Src.Compilate;
|
Module:=Src.Compilate;
|
||||||
Func1:=Module.Funtion['main'];
|
//Func1:=Module.Funtion['main'];
|
||||||
//Func2:=Module.Funtion['varmain'];
|
//Func2:=Module.Funtion['varmain'];
|
||||||
if 1<>Func1.Call(TypeInfo(integer),[454],CRTBCallTypeStdCall).AsInteger then
|
//if 1<>Func1.Call(TypeInfo(integer),[454],CRTBCallTypeStdCall).AsInteger then
|
||||||
raise Exception.Create('Error in LuaTest');
|
// raise Exception.Create('Error in LuaTest');
|
||||||
//Var1:=Module.&Var['Pmain'];
|
//Var1:=Module.&Var['Pmain'];
|
||||||
//Var1.Val:=424;
|
//Var1.Val:=424;
|
||||||
//if Var1.Val.AsInteger<>Func2.Call(TypeInfo(integer),[],CRTBCallTypeStdCall).AsInteger then
|
//if Var1.Val.AsInteger<>Func2.Call(TypeInfo(integer),[],CRTBCallTypeStdCall).AsInteger then
|
||||||
// raise Exception.Create('Error in LuaTest');
|
// raise Exception.Create('Error in LuaTest');
|
||||||
FreeAndNil(Var1);
|
//FreeAndNil(Var1);
|
||||||
FreeAndNil(Func2);
|
//FreeAndNil(Func2);
|
||||||
FreeAndNil(Func1);
|
//FreeAndNil(Func1);
|
||||||
FreeAndNil(module);
|
FreeAndNil(module);
|
||||||
FreeAndNil(Src);
|
FreeAndNil(Src);
|
||||||
FreeAndNil(Lua);
|
FreeAndNil(Lua);
|
||||||
|
|||||||
Submodule lib/FasmOnDelphi updated: 11ee2b8985...a29d2216b4
Reference in New Issue
Block a user