Kaydet (Commit) 50c5a4ce authored tarafından Matúš Kukan's avatar Matúš Kukan

Revert "Avoid duplicate symbols in libmerged for Windows too."

Forgot to test properly on Windows :-(.

This reverts commit fc27a685.
üst f9903a57
...@@ -12424,11 +12424,11 @@ if test -n "$enable_mergelibs" -a "$enable_mergelibs" != "no"; then ...@@ -12424,11 +12424,11 @@ if test -n "$enable_mergelibs" -a "$enable_mergelibs" != "no"; then
if test "$enable_mergelibs" = "all"; then if test "$enable_mergelibs" = "all"; then
MERGELIBS="ALL" MERGELIBS="ALL"
URELIBS="TRUE" URELIBS="TRUE"
AC_DEFINE(STATIC_LINKING)
else else
MERGELIBS="CORE" MERGELIBS="CORE"
fi fi
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])
AC_DEFINE(STATIC_LINKING)
else else
AC_MSG_RESULT([no]) AC_MSG_RESULT([no])
fi fi
......
...@@ -81,8 +81,6 @@ protected: ...@@ -81,8 +81,6 @@ protected:
aIFaceName = OString(); aIFaceName = OString();
} }
public: public:
OUString sSlotMapFile;
explicit SvIdlDataBase( const SvCommand& rCmd ); explicit SvIdlDataBase( const SvCommand& rCmd );
~SvIdlDataBase(); ~SvIdlDataBase();
static sal_Bool IsBinaryFormat( SvStream & rInStm ); static sal_Bool IsBinaryFormat( SvStream & rInStm );
......
...@@ -1398,7 +1398,7 @@ sal_uLong SvMetaType::MakeSfx( OStringBuffer& rAttrArray ) ...@@ -1398,7 +1398,7 @@ sal_uLong SvMetaType::MakeSfx( OStringBuffer& rAttrArray )
} }
void SvMetaType::WriteSfxItem( void SvMetaType::WriteSfxItem(
const OString& rItemName, SvIdlDataBase& rBase, SvStream& rOutStm ) const OString& rItemName, SvIdlDataBase &, SvStream & rOutStm )
{ {
WriteStars( rOutStm ); WriteStars( rOutStm );
OStringBuffer aVarName(" a"); OStringBuffer aVarName(" a");
...@@ -1411,35 +1411,14 @@ void SvMetaType::WriteSfxItem( ...@@ -1411,35 +1411,14 @@ void SvMetaType::WriteSfxItem(
OString::number(nAttrCount)); OString::number(nAttrCount));
aTypeName.append(aAttrCount); aTypeName.append(aAttrCount);
bool bExport = false, bReturn = false; rOutStm.WriteCharPtr( "extern " ).WriteCharPtr( aTypeName.getStr() )
// these are exported from sfx library
if (rItemName == "SfxBoolItem" ||
rItemName == "SfxStringItem" ||
rItemName == "SfxUInt16Item" ||
rItemName == "SfxUInt32Item" ||
rItemName == "SfxVoidItem")
{
if (rBase.sSlotMapFile.endsWith("sfxslots.hxx"))
bExport = true;
else
bReturn = true;
}
rOutStm.WriteCharPtr( "extern " );
if (bExport)
rOutStm.WriteCharPtr( "SFX2_DLLPUBLIC " );
rOutStm.WriteCharPtr( aTypeName.getStr() )
.WriteCharPtr( aVarName.getStr() ).WriteChar( ';' ) << endl; .WriteCharPtr( aVarName.getStr() ).WriteChar( ';' ) << endl;
if (bReturn)
return;
// write the implementation part // write the implementation part
rOutStm.WriteCharPtr( "#ifdef SFX_TYPEMAP" ) << endl; rOutStm.WriteCharPtr( "#ifdef SFX_TYPEMAP" ) << endl;
rOutStm.WriteCharPtr( "#if !defined(_WIN32) && ((defined(DISABLE_DYNLOADING) && (defined(ANDROID) || defined(IOS))) || STATIC_LINKING)" ) << endl; rOutStm.WriteCharPtr( "#if !defined(_WIN32) && ((defined(DISABLE_DYNLOADING) && (defined(ANDROID) || defined(IOS))) || STATIC_LINKING)" ) << endl;
rOutStm.WriteCharPtr( "__attribute__((__weak__))" ) << endl; rOutStm.WriteCharPtr( "__attribute__((__weak__))" ) << endl;
rOutStm.WriteCharPtr( "#endif" ) << endl; rOutStm.WriteCharPtr( "#endif" ) << endl;
if (bExport)
rOutStm.WriteCharPtr( "SFX2_DLLPUBLIC " );
rOutStm.WriteCharPtr( aTypeName.getStr() ).WriteCharPtr( aVarName.getStr() ) rOutStm.WriteCharPtr( aTypeName.getStr() ).WriteCharPtr( aVarName.getStr() )
.WriteCharPtr( " = " ) << endl; .WriteCharPtr( " = " ) << endl;
rOutStm.WriteChar( '{' ) << endl; rOutStm.WriteChar( '{' ) << endl;
......
...@@ -34,7 +34,6 @@ SvIdlDataBase::SvIdlDataBase( const SvCommand& rCmd ) ...@@ -34,7 +34,6 @@ SvIdlDataBase::SvIdlDataBase( const SvCommand& rCmd )
, aPersStream( *IDLAPP->pClassMgr, NULL ) , aPersStream( *IDLAPP->pClassMgr, NULL )
, pIdTable( NULL ) , pIdTable( NULL )
{ {
sSlotMapFile = rCmd.aSlotMapFile;
} }
SvIdlDataBase::~SvIdlDataBase() SvIdlDataBase::~SvIdlDataBase()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment