mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-12 10:09:08 +02:00
* only add resext if no extension was specified
* default resext for windows changed to .res git-svn-id: trunk@5193 -
This commit is contained in:
parent
658c46b903
commit
55f9758c25
@ -916,9 +916,11 @@ implementation
|
|||||||
if Assigned(Current_Module) then
|
if Assigned(Current_Module) then
|
||||||
begin
|
begin
|
||||||
delete(S,1,1);
|
delete(S,1,1);
|
||||||
insert(ExtractFileName(ChangeFileExt(current_module.mainsource^,'')),S,1 );
|
insert(ChangeFileExt(ExtractFileName(current_module.mainsource^),''),S,1 );
|
||||||
end;
|
end;
|
||||||
s:=ChangeFileExt(FixFileName(s),target_info.resext);
|
s:=FixFileName(s);
|
||||||
|
if ExtractFileExt(s)='' then
|
||||||
|
s:=ChangeFileExt(s,target_info.resext);
|
||||||
if target_info.res<>res_none then
|
if target_info.res<>res_none then
|
||||||
begin
|
begin
|
||||||
current_module.flags:=current_module.flags or uf_has_resourcefiles;
|
current_module.flags:=current_module.flags or uf_has_resourcefiles;
|
||||||
|
@ -45,7 +45,7 @@ unit i_win;
|
|||||||
unitlibext : '.ppl';
|
unitlibext : '.ppl';
|
||||||
asmext : '.s';
|
asmext : '.s';
|
||||||
objext : '.o';
|
objext : '.o';
|
||||||
resext : '.rc';
|
resext : '.res';
|
||||||
resobjext : '.or';
|
resobjext : '.or';
|
||||||
sharedlibext : '.dll';
|
sharedlibext : '.dll';
|
||||||
staticlibext : '.a';
|
staticlibext : '.a';
|
||||||
@ -104,7 +104,7 @@ unit i_win;
|
|||||||
unitlibext : '.ppl';
|
unitlibext : '.ppl';
|
||||||
asmext : '.s';
|
asmext : '.s';
|
||||||
objext : '.o';
|
objext : '.o';
|
||||||
resext : '.rc';
|
resext : '.res';
|
||||||
resobjext : '.or';
|
resobjext : '.or';
|
||||||
sharedlibext : '.dll';
|
sharedlibext : '.dll';
|
||||||
staticlibext : '.a';
|
staticlibext : '.a';
|
||||||
@ -163,7 +163,7 @@ unit i_win;
|
|||||||
unitlibext : '.ppl';
|
unitlibext : '.ppl';
|
||||||
asmext : '.s';
|
asmext : '.s';
|
||||||
objext : '.o';
|
objext : '.o';
|
||||||
resext : '.rc';
|
resext : '.res';
|
||||||
resobjext : '.or';
|
resobjext : '.or';
|
||||||
sharedlibext : '.dll';
|
sharedlibext : '.dll';
|
||||||
staticlibext : '.a';
|
staticlibext : '.a';
|
||||||
@ -222,7 +222,7 @@ unit i_win;
|
|||||||
unitlibext : '.ppl';
|
unitlibext : '.ppl';
|
||||||
asmext : '.s';
|
asmext : '.s';
|
||||||
objext : '.o';
|
objext : '.o';
|
||||||
resext : '.rc';
|
resext : '.res';
|
||||||
resobjext : '.or';
|
resobjext : '.or';
|
||||||
sharedlibext : '.dll';
|
sharedlibext : '.dll';
|
||||||
staticlibext : '.a';
|
staticlibext : '.a';
|
||||||
|
Loading…
Reference in New Issue
Block a user