LCL: use as default widgettype the IDE value

git-svn-id: trunk@37392 -
This commit is contained in:
mattias 2012-05-22 13:50:34 +00:00
parent b7deaffd70
commit 08fb6b919a

View File

@ -12,14 +12,22 @@
</SearchPaths>
<Conditionals Value="// LCLWidgetType
if undefined(LCLWidgetType) then begin
if (TargetOS='win32') or (TargetOS='win64') then
LCLWidgetType := 'win32'
else if TargetOS='wince' then
LCLWidgetType := 'wince'
else if TargetOS='darwin' then
LCLWidgetType := 'carbon'
else
LCLWidgetType := 'gtk2';
if GetIDEValue('OS')=TargetOS then begin
// use the same widgettype as the IDE
LCLWidgetType := GetIDEValue('LCLWidgetType');
if LCLWidgetType='nogui' then
LCLWidgetType:='';
end;
if LCLWidgetType='' then begin
if (TargetOS='win32') or (TargetOS='win64') then
LCLWidgetType := 'win32'
else if TargetOS='wince' then
LCLWidgetType := 'wince'
else if TargetOS='darwin' then
LCLWidgetType := 'carbon'
else
LCLWidgetType:='gtk2';
end;
end;
// widget set specific options