mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-05 11:17:45 +02:00
fpmake build: fixed paths in installed pas2js.cfg
This commit is contained in:
parent
0273024739
commit
cccbb9891d
@ -179,7 +179,6 @@ end;
|
||||
Var
|
||||
P : TPackage;
|
||||
UnitDir,DemoDir,BD, TmpCfg, TmpCfg2: String;
|
||||
T: TTarget;
|
||||
FPCSrcDir, Pas2jsOFilename, RTLJSFilename: String;
|
||||
|
||||
begin
|
||||
@ -293,11 +292,13 @@ begin
|
||||
UnitDir:=ExcludeTrailingPathDelimiter(ExtractFilePath(UnitDir));
|
||||
UnitDir:=ExtractFilePath(UnitDir);
|
||||
UnitDir:=UnitDir+'pas2js'+PathDelim;
|
||||
RTLJSFilename:=ExtractRelativePath(IncludeTrailingPathDelimiter(Defaults.BinInstallDir),
|
||||
UnitDir+'rtl'+PathDelim);
|
||||
// Config file
|
||||
// Create config file
|
||||
CreateConfigFile(TmpCfg,
|
||||
ExtractRelativePath(IncludeTrailingPathDelimiter(Defaults.BinInstallDir),
|
||||
IncludeTrailingPathDelimiter(UnitDir)));
|
||||
UnitDir),RTLJSFilename);
|
||||
CreateNamespacedConfigFile(TmpCfg2);
|
||||
P.InstallFiles.Add(TmpCfg,Defaults.BinInstallDir);
|
||||
P.InstallFiles.Add(TmpCfg2,Defaults.BinInstallDir);
|
||||
|
Loading…
Reference in New Issue
Block a user