|
@@ -157,12 +157,13 @@ begin
|
|
// build
|
|
// build
|
|
CleanSources;
|
|
CleanSources;
|
|
|
|
|
|
- TargetOS:=lowercase({$i %FPCTargetOS%});
|
|
|
|
- TargetCPU:=lowercase({$i %FPCTargetCPU%});
|
|
|
|
|
|
+ TargetOS:=GetCompiledTargetOS;
|
|
|
|
+ TargetCPU:=GetCompiledTargetCPU;
|
|
CreateBuildSourceDir(TargetOS,TargetCPU);
|
|
CreateBuildSourceDir(TargetOS,TargetCPU);
|
|
- BuildTools(TargetOS,TargetCPU);
|
|
|
|
|
|
+ //BuildTools(TargetOS,TargetCPU);
|
|
CopySourceFolders;
|
|
CopySourceFolders;
|
|
CopyRTL;
|
|
CopyRTL;
|
|
|
|
+ { #todo -oMattias : zip }
|
|
|
|
|
|
// stop program loop
|
|
// stop program loop
|
|
Terminate;
|
|
Terminate;
|
|
@@ -270,6 +271,9 @@ begin
|
|
Pas2jsVersion:=IntToStr(Parts[vMajor])+'.'+IntToStr(Parts[vMinor])+'.'+IntToStr(Parts[vRelease]);
|
|
Pas2jsVersion:=IntToStr(Parts[vMajor])+'.'+IntToStr(Parts[vMinor])+'.'+IntToStr(Parts[vRelease]);
|
|
if Verbosity>=0 then
|
|
if Verbosity>=0 then
|
|
Log(etInfo,'Pas2js version is '+Pas2jsVersion);
|
|
Log(etInfo,'Pas2js version is '+Pas2jsVersion);
|
|
|
|
+
|
|
|
|
+ { #todo -oMattias : Read version in rtl.js }
|
|
|
|
+
|
|
finally
|
|
finally
|
|
sl.Free;
|
|
sl.Free;
|
|
end;
|
|
end;
|