FIX: Compiling WDX plugins under Linux 64 bit

This commit is contained in:
Alexander Koblov 2009-02-26 17:32:10 +00:00
commit 5ae1da3851
7 changed files with 348 additions and 338 deletions

View file

@ -1,171 +1,175 @@
<?xml version="1.0"?>
<CONFIG>
<ProjectOptions>
<PathDelim Value="\"/>
<Version Value="7"/>
<General>
<MainUnit Value="0"/>
<TargetFileExt Value=".exe"/>
<Icon Value="0"/>
<UseXPManifest Value="True"/>
<ActiveEditorIndexAtStart Value="0"/>
</General>
<VersionInfo>
<ProjectVersion Value=""/>
</VersionInfo>
<PublishOptions>
<Version Value="2"/>
<IgnoreBinaries Value="False"/>
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
<ExcludeFileFilter Value="*.(bak|ppu|ppw|o|so);*~;backup"/>
</PublishOptions>
<RunParams>
<local>
<FormatVersion Value="1"/>
<LaunchingApplication PathPlusParams="\usr\X11R6\bin\xterm -T 'Lazarus Run Output' -e $(LazarusDir)\tools\runwait.sh $(TargetCmdLine)"/>
</local>
</RunParams>
<Units Count="8">
<Unit0>
<Filename Value="deb_wdx.dpr"/>
<IsPartOfProject Value="True"/>
<CursorPos X="1" Y="1"/>
<TopLine Value="1"/>
<EditorIndex Value="0"/>
<UsageCount Value="21"/>
<Loaded Value="True"/>
<SyntaxHighlighter Value="Delphi"/>
</Unit0>
<Unit1>
<Filename Value="gzip.pas"/>
<UnitName Value="gzip"/>
<CursorPos X="30" Y="11"/>
<TopLine Value="1"/>
<UsageCount Value="10"/>
<SyntaxHighlighter Value="Delphi"/>
</Unit1>
<Unit2>
<Filename Value="debunpak.pas"/>
<UnitName Value="debunpak"/>
<CursorPos X="1" Y="1"/>
<TopLine Value="1"/>
<UsageCount Value="10"/>
<SyntaxHighlighter Value="Delphi"/>
</Unit2>
<Unit3>
<Filename Value="minigzip.pas"/>
<UnitName Value="minigzip"/>
<CursorPos X="25" Y="16"/>
<TopLine Value="1"/>
<UsageCount Value="10"/>
<SyntaxHighlighter Value="Delphi"/>
</Unit3>
<Unit4>
<Filename Value="UnTar.pas"/>
<UnitName Value="UnTar"/>
<CursorPos X="31" Y="109"/>
<TopLine Value="1"/>
<UsageCount Value="10"/>
<SyntaxHighlighter Value="Delphi"/>
</Unit4>
<Unit5>
<Filename Value="deb_wdx_intf.pas"/>
<UnitName Value="deb_wdx_intf"/>
<CursorPos X="1" Y="1"/>
<TopLine Value="1"/>
<EditorIndex Value="1"/>
<UsageCount Value="10"/>
<Loaded Value="True"/>
<SyntaxHighlighter Value="Delphi"/>
</Unit5>
<Unit6>
<Filename Value="..\..\..\Alexx\Prog\FreePascal\FPC\2.2.2\src\rtl\objpas\sysutils\osutilsh.inc"/>
<CursorPos X="10" Y="32"/>
<TopLine Value="1"/>
<UsageCount Value="10"/>
</Unit6>
<Unit7>
<Filename Value="contplug.pas"/>
<UnitName Value="contplug"/>
<CursorPos X="32" Y="8"/>
<TopLine Value="1"/>
<UsageCount Value="10"/>
<SyntaxHighlighter Value="Delphi"/>
</Unit7>
</Units>
<JumpHistory Count="9" HistoryIndex="8">
<Position1>
<Filename Value="deb_wdx_intf.pas"/>
<Caret Line="1" Column="1" TopLine="1"/>
</Position1>
<Position2>
<Filename Value="deb_wdx.dpr"/>
<Caret Line="1" Column="1" TopLine="1"/>
</Position2>
<Position3>
<Filename Value="deb_wdx.dpr"/>
<Caret Line="26" Column="1" TopLine="1"/>
</Position3>
<Position4>
<Filename Value="deb_wdx.dpr"/>
<Caret Line="16" Column="9" TopLine="1"/>
</Position4>
<Position5>
<Filename Value="deb_wdx.dpr"/>
<Caret Line="7" Column="56" TopLine="1"/>
</Position5>
<Position6>
<Filename Value="deb_wdx_intf.pas"/>
<Caret Line="1" Column="1" TopLine="1"/>
</Position6>
<Position7>
<Filename Value="deb_wdx_intf.pas"/>
<Caret Line="36" Column="49" TopLine="21"/>
</Position7>
<Position8>
<Filename Value="deb_wdx_intf.pas"/>
<Caret Line="36" Column="49" TopLine="1"/>
</Position8>
<Position9>
<Filename Value="deb_wdx.dpr"/>
<Caret Line="13" Column="32" TopLine="1"/>
</Position9>
</JumpHistory>
</ProjectOptions>
<CompilerOptions>
<Version Value="8"/>
<PathDelim Value="\"/>
<SearchPaths>
<IncludeFiles Value="$(ProjOutDir)\"/>
<UnitOutputDirectory Value="..\lib"/>
</SearchPaths>
<Parsing>
<SyntaxOptions>
<SyntaxMode Value="Delphi"/>
<CStyleOperator Value="False"/>
<UseAnsiStrings Value="True"/>
</SyntaxOptions>
</Parsing>
<Linking>
<Options>
<ExecutableType Value="Library"/>
</Options>
</Linking>
<Other>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
<Debugging>
<Exceptions Count="3">
<Item1>
<Name Value="EAbort"/>
</Item1>
<Item2>
<Name Value="ECodetoolError"/>
</Item2>
<Item3>
<Name Value="EFOpenError"/>
</Item3>
</Exceptions>
</Debugging>
</CONFIG>
<?xml version="1.0"?>
<CONFIG>
<ProjectOptions>
<PathDelim Value="\"/>
<Version Value="7"/>
<General>
<MainUnit Value="0"/>
<TargetFileExt Value=".exe"/>
<Icon Value="0"/>
<UseXPManifest Value="True"/>
<ActiveEditorIndexAtStart Value="0"/>
</General>
<VersionInfo>
<ProjectVersion Value=""/>
</VersionInfo>
<PublishOptions>
<Version Value="2"/>
<IgnoreBinaries Value="False"/>
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
<ExcludeFileFilter Value="*.(bak|ppu|ppw|o|so);*~;backup"/>
</PublishOptions>
<RunParams>
<local>
<FormatVersion Value="1"/>
<LaunchingApplication PathPlusParams="\usr\X11R6\bin\xterm -T 'Lazarus Run Output' -e $(LazarusDir)\tools\runwait.sh $(TargetCmdLine)"/>
</local>
</RunParams>
<Units Count="8">
<Unit0>
<Filename Value="deb_wdx.dpr"/>
<IsPartOfProject Value="True"/>
<CursorPos X="1" Y="1"/>
<TopLine Value="1"/>
<EditorIndex Value="0"/>
<UsageCount Value="21"/>
<Loaded Value="True"/>
<SyntaxHighlighter Value="Delphi"/>
</Unit0>
<Unit1>
<Filename Value="gzip.pas"/>
<UnitName Value="gzip"/>
<CursorPos X="30" Y="11"/>
<TopLine Value="1"/>
<UsageCount Value="10"/>
<SyntaxHighlighter Value="Delphi"/>
</Unit1>
<Unit2>
<Filename Value="debunpak.pas"/>
<UnitName Value="debunpak"/>
<CursorPos X="1" Y="1"/>
<TopLine Value="1"/>
<UsageCount Value="10"/>
<SyntaxHighlighter Value="Delphi"/>
</Unit2>
<Unit3>
<Filename Value="minigzip.pas"/>
<UnitName Value="minigzip"/>
<CursorPos X="25" Y="16"/>
<TopLine Value="1"/>
<UsageCount Value="10"/>
<SyntaxHighlighter Value="Delphi"/>
</Unit3>
<Unit4>
<Filename Value="UnTar.pas"/>
<UnitName Value="UnTar"/>
<CursorPos X="31" Y="109"/>
<TopLine Value="1"/>
<UsageCount Value="10"/>
<SyntaxHighlighter Value="Delphi"/>
</Unit4>
<Unit5>
<Filename Value="deb_wdx_intf.pas"/>
<UnitName Value="deb_wdx_intf"/>
<CursorPos X="1" Y="1"/>
<TopLine Value="1"/>
<EditorIndex Value="1"/>
<UsageCount Value="10"/>
<Loaded Value="True"/>
<SyntaxHighlighter Value="Delphi"/>
</Unit5>
<Unit6>
<Filename Value="..\..\..\Alexx\Prog\FreePascal\FPC\2.2.2\src\rtl\objpas\sysutils\osutilsh.inc"/>
<CursorPos X="10" Y="32"/>
<TopLine Value="1"/>
<UsageCount Value="10"/>
</Unit6>
<Unit7>
<Filename Value="contplug.pas"/>
<UnitName Value="contplug"/>
<CursorPos X="32" Y="8"/>
<TopLine Value="1"/>
<UsageCount Value="10"/>
<SyntaxHighlighter Value="Delphi"/>
</Unit7>
</Units>
<JumpHistory Count="9" HistoryIndex="8">
<Position1>
<Filename Value="deb_wdx_intf.pas"/>
<Caret Line="1" Column="1" TopLine="1"/>
</Position1>
<Position2>
<Filename Value="deb_wdx.dpr"/>
<Caret Line="1" Column="1" TopLine="1"/>
</Position2>
<Position3>
<Filename Value="deb_wdx.dpr"/>
<Caret Line="26" Column="1" TopLine="1"/>
</Position3>
<Position4>
<Filename Value="deb_wdx.dpr"/>
<Caret Line="16" Column="9" TopLine="1"/>
</Position4>
<Position5>
<Filename Value="deb_wdx.dpr"/>
<Caret Line="7" Column="56" TopLine="1"/>
</Position5>
<Position6>
<Filename Value="deb_wdx_intf.pas"/>
<Caret Line="1" Column="1" TopLine="1"/>
</Position6>
<Position7>
<Filename Value="deb_wdx_intf.pas"/>
<Caret Line="36" Column="49" TopLine="21"/>
</Position7>
<Position8>
<Filename Value="deb_wdx_intf.pas"/>
<Caret Line="36" Column="49" TopLine="1"/>
</Position8>
<Position9>
<Filename Value="deb_wdx.dpr"/>
<Caret Line="13" Column="32" TopLine="1"/>
</Position9>
</JumpHistory>
</ProjectOptions>
<CompilerOptions>
<Version Value="8"/>
<PathDelim Value="\"/>
<SearchPaths>
<IncludeFiles Value="$(ProjOutDir)\"/>
<UnitOutputDirectory Value="..\lib"/>
</SearchPaths>
<Parsing>
<SyntaxOptions>
<SyntaxMode Value="Delphi"/>
<CStyleOperator Value="False"/>
<UseAnsiStrings Value="True"/>
</SyntaxOptions>
</Parsing>
<Linking>
<Options>
<ExecutableType Value="Library"/>
</Options>
</Linking>
<Other>
<ConfigFile>
<CustomConfigFile Value="True"/>
<ConfigFilePath Value="fpc-$(TargetCPU).cfg"/>
</ConfigFile>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
<Debugging>
<Exceptions Count="3">
<Item1>
<Name Value="EAbort"/>
</Item1>
<Item2>
<Name Value="ECodetoolError"/>
</Item2>
<Item3>
<Name Value="EFOpenError"/>
</Item3>
</Exceptions>
</Debugging>
</CONFIG>

View file

View file

@ -0,0 +1 @@
-fPIC

View file

View file

@ -0,0 +1 @@
-fPIC

View file

@ -1,31 +1,31 @@
library rpm_wdx;
{$MODE Delphi}
{ Important note about DLL memory management: ShareMem must be the
first unit in your library's USES clause AND your project's (select
Project-View Source) USES clause if your DLL exports any procedures or
functions that pass strings as parameters or function results. This
applies to all strings passed to and from your DLL--even those that
are nested in records and classes. ShareMem is the interface unit to
the BORLNDMM.DLL shared memory manager, which must be deployed along
with your DLL. To avoid using BORLNDMM.DLL, pass string information
using PChar or ShortString parameters. }
uses
SysUtils,
Classes,
rpm_io in 'rpm_io.pas',
rpm_wdx_intf in 'rpm_wdx_intf.pas',
rpm_def in 'rpm_def.pas';
{$E wdx}
{$R *.res}
exports
ContentGetDetectString name 'ContentGetDetectString',
ContentGetSupportedField name 'ContentGetSupportedField',
ContentGetValue name 'ContentGetValue';
begin
end.
{$MODE Delphi}
{ Important note about DLL memory management: ShareMem must be the
first unit in your library's USES clause AND your project's (select
Project-View Source) USES clause if your DLL exports any procedures or
functions that pass strings as parameters or function results. This
applies to all strings passed to and from your DLL--even those that
are nested in records and classes. ShareMem is the interface unit to
the BORLNDMM.DLL shared memory manager, which must be deployed along
with your DLL. To avoid using BORLNDMM.DLL, pass string information
using PChar or ShortString parameters. }
uses
SysUtils,
Classes,
rpm_io in 'rpm_io.pas',
rpm_wdx_intf in 'rpm_wdx_intf.pas',
rpm_def in 'rpm_def.pas';
{$E wdx}
{$IFDEF MSWINDOWS}{$R *.res}{$ENDIF}
exports
ContentGetDetectString name 'ContentGetDetectString',
ContentGetSupportedField name 'ContentGetSupportedField',
ContentGetValue name 'ContentGetValue';
begin
end.

View file

@ -1,138 +1,142 @@
<?xml version="1.0"?>
<CONFIG>
<ProjectOptions>
<PathDelim Value="\"/>
<Version Value="6"/>
<General>
<MainUnit Value="0"/>
<IconPath Value=".\"/>
<TargetFileExt Value=""/>
<ActiveEditorIndexAtStart Value="3"/>
</General>
<VersionInfo>
<ProjectVersion Value=""/>
<Language Value=""/>
<CharSet Value=""/>
</VersionInfo>
<PublishOptions>
<Version Value="2"/>
<DestinationDirectory Value="$(TestDir)\publishedproject\"/>
<IgnoreBinaries Value="False"/>
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
<ExcludeFileFilter Value="*.(bak|ppu|ppw|o|so);*~;backup"/>
</PublishOptions>
<RunParams>
<local>
<FormatVersion Value="1"/>
<LaunchingApplication PathPlusParams="\usr\X11R6\bin\xterm -T 'Lazarus Run Output' -e $(LazarusDir)\tools\runwait.sh $(TargetCmdLine)"/>
</local>
</RunParams>
<RequiredPackages Count="1">
<Item1>
<PackageName Value="LCL"/>
</Item1>
</RequiredPackages>
<Units Count="8">
<Unit0>
<Filename Value="rpm_wdx.dpr"/>
<IsPartOfProject Value="True"/>
<CursorPos X="6" Y="20"/>
<TopLine Value="1"/>
<EditorIndex Value="0"/>
<UsageCount Value="20"/>
<Loaded Value="True"/>
</Unit0>
<Unit1>
<Filename Value="rpm_io.pas"/>
<IsPartOfProject Value="True"/>
<UnitName Value="rpm_io"/>
<CursorPos X="1" Y="1"/>
<TopLine Value="1"/>
<EditorIndex Value="4"/>
<UsageCount Value="20"/>
<Loaded Value="True"/>
</Unit1>
<Unit2>
<Filename Value="rpm_wdx_intf.pas"/>
<IsPartOfProject Value="True"/>
<UnitName Value="rpm_wdx_intf"/>
<CursorPos X="35" Y="14"/>
<TopLine Value="1"/>
<EditorIndex Value="2"/>
<UsageCount Value="20"/>
<Loaded Value="True"/>
</Unit2>
<Unit3>
<Filename Value="rpm_def.pas"/>
<IsPartOfProject Value="True"/>
<UnitName Value="rpm_def"/>
<CursorPos X="13" Y="12"/>
<TopLine Value="1"/>
<EditorIndex Value="1"/>
<UsageCount Value="20"/>
<Loaded Value="True"/>
</Unit3>
<Unit4>
<Filename Value="contplug.pas"/>
<UnitName Value="contplug"/>
<CursorPos X="1" Y="1"/>
<TopLine Value="1"/>
<UsageCount Value="10"/>
</Unit4>
<Unit5>
<Filename Value="ucontplugin.pas"/>
<UnitName Value="ucontplugin"/>
<CursorPos X="15" Y="5"/>
<TopLine Value="1"/>
<EditorIndex Value="3"/>
<UsageCount Value="10"/>
<Loaded Value="True"/>
</Unit5>
<Unit6>
<Filename Value="uOSUtils.pas"/>
<UnitName Value="uOSUtils"/>
<CursorPos X="1" Y="35"/>
<TopLine Value="8"/>
<UsageCount Value="10"/>
</Unit6>
<Unit7>
<Filename Value="ufindex.pas"/>
<UnitName Value="ufindex"/>
<CursorPos X="5" Y="44"/>
<TopLine Value="29"/>
<UsageCount Value="10"/>
</Unit7>
</Units>
<JumpHistory Count="0" HistoryIndex="-1"/>
</ProjectOptions>
<CompilerOptions>
<Version Value="5"/>
<SearchPaths>
<UnitOutputDirectory Value="lib"/>
</SearchPaths>
<PathDelim Value="\"/>
<Parsing>
<SyntaxOptions>
<DelphiCompat Value="True"/>
</SyntaxOptions>
</Parsing>
<CodeGeneration>
<Generate Value="Faster"/>
</CodeGeneration>
<Linking>
<Options>
<ExecutableType Value="Library"/>
</Options>
</Linking>
<Other>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
<Debugging>
<Watches Count="1">
<Item1>
<Expression Value="CurrFileName"/>
</Item1>
</Watches>
</Debugging>
</CONFIG>
<?xml version="1.0"?>
<CONFIG>
<ProjectOptions>
<PathDelim Value="\"/>
<Version Value="6"/>
<General>
<MainUnit Value="0"/>
<IconPath Value=".\"/>
<TargetFileExt Value=""/>
<ActiveEditorIndexAtStart Value="3"/>
</General>
<VersionInfo>
<ProjectVersion Value=""/>
<Language Value=""/>
<CharSet Value=""/>
</VersionInfo>
<PublishOptions>
<Version Value="2"/>
<DestinationDirectory Value="$(TestDir)\publishedproject\"/>
<IgnoreBinaries Value="False"/>
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
<ExcludeFileFilter Value="*.(bak|ppu|ppw|o|so);*~;backup"/>
</PublishOptions>
<RunParams>
<local>
<FormatVersion Value="1"/>
<LaunchingApplication PathPlusParams="\usr\X11R6\bin\xterm -T 'Lazarus Run Output' -e $(LazarusDir)\tools\runwait.sh $(TargetCmdLine)"/>
</local>
</RunParams>
<RequiredPackages Count="1">
<Item1>
<PackageName Value="LCL"/>
</Item1>
</RequiredPackages>
<Units Count="8">
<Unit0>
<Filename Value="rpm_wdx.dpr"/>
<IsPartOfProject Value="True"/>
<CursorPos X="6" Y="20"/>
<TopLine Value="1"/>
<EditorIndex Value="0"/>
<UsageCount Value="20"/>
<Loaded Value="True"/>
</Unit0>
<Unit1>
<Filename Value="rpm_io.pas"/>
<IsPartOfProject Value="True"/>
<UnitName Value="rpm_io"/>
<CursorPos X="1" Y="1"/>
<TopLine Value="1"/>
<EditorIndex Value="4"/>
<UsageCount Value="20"/>
<Loaded Value="True"/>
</Unit1>
<Unit2>
<Filename Value="rpm_wdx_intf.pas"/>
<IsPartOfProject Value="True"/>
<UnitName Value="rpm_wdx_intf"/>
<CursorPos X="35" Y="14"/>
<TopLine Value="1"/>
<EditorIndex Value="2"/>
<UsageCount Value="20"/>
<Loaded Value="True"/>
</Unit2>
<Unit3>
<Filename Value="rpm_def.pas"/>
<IsPartOfProject Value="True"/>
<UnitName Value="rpm_def"/>
<CursorPos X="13" Y="12"/>
<TopLine Value="1"/>
<EditorIndex Value="1"/>
<UsageCount Value="20"/>
<Loaded Value="True"/>
</Unit3>
<Unit4>
<Filename Value="contplug.pas"/>
<UnitName Value="contplug"/>
<CursorPos X="1" Y="1"/>
<TopLine Value="1"/>
<UsageCount Value="10"/>
</Unit4>
<Unit5>
<Filename Value="ucontplugin.pas"/>
<UnitName Value="ucontplugin"/>
<CursorPos X="15" Y="5"/>
<TopLine Value="1"/>
<EditorIndex Value="3"/>
<UsageCount Value="10"/>
<Loaded Value="True"/>
</Unit5>
<Unit6>
<Filename Value="uOSUtils.pas"/>
<UnitName Value="uOSUtils"/>
<CursorPos X="1" Y="35"/>
<TopLine Value="8"/>
<UsageCount Value="10"/>
</Unit6>
<Unit7>
<Filename Value="ufindex.pas"/>
<UnitName Value="ufindex"/>
<CursorPos X="5" Y="44"/>
<TopLine Value="29"/>
<UsageCount Value="10"/>
</Unit7>
</Units>
<JumpHistory Count="0" HistoryIndex="-1"/>
</ProjectOptions>
<CompilerOptions>
<Version Value="5"/>
<SearchPaths>
<UnitOutputDirectory Value="lib"/>
</SearchPaths>
<PathDelim Value="\"/>
<Parsing>
<SyntaxOptions>
<DelphiCompat Value="True"/>
</SyntaxOptions>
</Parsing>
<CodeGeneration>
<Generate Value="Faster"/>
</CodeGeneration>
<Linking>
<Options>
<ExecutableType Value="Library"/>
</Options>
</Linking>
<Other>
<ConfigFile>
<CustomConfigFile Value="True"/>
<ConfigFilePath Value="fpc-$(TargetCPU).cfg"/>
</ConfigFile>
<CompilerPath Value="$(CompPath)"/>
</Other>
</CompilerOptions>
<Debugging>
<Watches Count="1">
<Item1>
<Expression Value="CurrFileName"/>
</Item1>
</Watches>
</Debugging>
</CONFIG>