mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 01:59:08 +02:00
IDE: default extension for target browser and nodejs is .js
git-svn-id: trunk@60612 -
This commit is contained in:
parent
b76c40b65e
commit
8518262eef
@ -325,6 +325,8 @@ begin
|
|||||||
if (CompareText(copy(TargetOS,1,3), 'win') = 0)
|
if (CompareText(copy(TargetOS,1,3), 'win') = 0)
|
||||||
or (CompareText(copy(TargetOS,1,3), 'dos') = 0) then
|
or (CompareText(copy(TargetOS,1,3), 'dos') = 0) then
|
||||||
Result:='.exe'
|
Result:='.exe'
|
||||||
|
else if SameText(TargetOS, 'browser') or SameText(TargetOS,'nodejs') then
|
||||||
|
Result:='.js'
|
||||||
else
|
else
|
||||||
Result:='';
|
Result:='';
|
||||||
end;
|
end;
|
||||||
@ -367,6 +369,8 @@ begin
|
|||||||
if TargetOS='' then
|
if TargetOS='' then
|
||||||
TargetOS:=GetCompiledTargetOS;
|
TargetOS:=GetCompiledTargetOS;
|
||||||
Result:='';
|
Result:='';
|
||||||
|
if SameText(TargetOS, 'browser') or SameText(TargetOS,'nodejs') then
|
||||||
|
exit('.js');
|
||||||
SrcOS:=GetDefaultSrcOSForTargetOS(TargetOS);
|
SrcOS:=GetDefaultSrcOSForTargetOS(TargetOS);
|
||||||
if CompareText(SrcOS, 'unix') = 0 then
|
if CompareText(SrcOS, 'unix') = 0 then
|
||||||
Result:='lib';
|
Result:='lib';
|
||||||
|
Loading…
Reference in New Issue
Block a user