Add option WITH_GCC_VISIBILITY.

Fix building with hidden visibility.
Add missing definitions to config.h.cmake.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/10/head
Slávek Banko 3 years ago
parent c3d0b8b21f
commit 762bfec2c8
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -42,6 +42,7 @@ tde_setup_paths( )
##### optional stuff ############################ ##### optional stuff ############################
option( WITH_ALL_OPTIONS "Enable all sane optional stuff" OFF ) option( WITH_ALL_OPTIONS "Enable all sane optional stuff" OFF )
option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} )
option( WITH_ARTS "Enable aRts support" ${WITH_ALL_OPTIONS} ) option( WITH_ARTS "Enable aRts support" ${WITH_ALL_OPTIONS} )
option( WITH_SDL "Enable SDL support" ${WITH_ALL_OPTIONS} ) option( WITH_SDL "Enable SDL support" ${WITH_ALL_OPTIONS} )
option( WITH_BERKELEY_DB "Enable Berkeley DB support" ${WITH_ALL_OPTIONS} ) option( WITH_BERKELEY_DB "Enable Berkeley DB support" ${WITH_ALL_OPTIONS} )

@ -1,3 +1,11 @@
#define VERSION "@VERSION@"
// Defined if you have fvisibility and fvisibility-inlines-hidden support.
#cmakedefine __KDE_HAVE_GCC_VISIBILITY 1
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */
#cmakedefine WORDS_BIGENDIAN @WORDS_BIGENDIAN@
// kicker-applets // kicker-applets
#cmakedefine HAVE_FCNTL_H 1 #cmakedefine HAVE_FCNTL_H 1

@ -81,7 +81,7 @@ class PluginView : public KXMLGUIClient
extern "C" extern "C"
{ {
void* init_katefiletemplates() KDE_EXPORT void* init_katefiletemplates()
{ {
TDEGlobal::locale()->insertCatalogue("katefiletemplates"); TDEGlobal::locale()->insertCatalogue("katefiletemplates");
return new KatePluginFactory; return new KatePluginFactory;

@ -38,7 +38,7 @@ class PluginView : public KXMLGUIClient
extern "C" extern "C"
{ {
void* init_katesortplugin() KDE_EXPORT void* init_katesortplugin()
{ {
TDEGlobal::locale()->insertCatalogue("katesort"); TDEGlobal::locale()->insertCatalogue("katesort");
return new KatePluginFactory; return new KatePluginFactory;

@ -55,7 +55,7 @@ class PluginView : public KXMLGUIClient
extern "C" extern "C"
{ {
void* init_libkatetabbarextensionplugin() KDE_EXPORT void* init_libkatetabbarextensionplugin()
{ {
TDEGlobal::locale()->insertCatalogue("katetabbarextension"); TDEGlobal::locale()->insertCatalogue("katetabbarextension");
return new KatePluginFactory; return new KatePluginFactory;

@ -36,8 +36,10 @@ void Metabar::handlePreview(const KFileItemList &items)
} }
extern "C" { extern "C"
bool add_konqsidebar_metabar(TQString* fn, TQString* param, TQMap<TQString,TQString> *map) { {
KDE_EXPORT bool add_konqsidebar_metabar(TQString* fn, TQString* param, TQMap<TQString,TQString> *map)
{
Q_UNUSED(param); Q_UNUSED(param);
map->insert("Type", "Link"); map->insert("Type", "Link");
@ -52,7 +54,7 @@ extern "C" {
extern "C" extern "C"
{ {
void* create_konqsidebar_metabar(TDEInstance *instance,TQObject *par,TQWidget *widp,TQString &desktopname,const char *name) KDE_EXPORT void* create_konqsidebar_metabar(TDEInstance *instance,TQObject *par,TQWidget *widp,TQString &desktopname,const char *name)
{ {
return new Metabar(instance,par,widp,desktopname,name); return new Metabar(instance,par,widp,desktopname,name);
} }

@ -32,7 +32,7 @@
extern "C" extern "C"
{ {
ThumbCreator * KDE_EXPORT new_creator() KDE_EXPORT ThumbCreator* KDE_EXPORT new_creator()
{ {
return new WebArchiveCreator; return new WebArchiveCreator;
} }

@ -39,11 +39,14 @@
#include "kminutespinbox.h" #include "kminutespinbox.h"
#include "kpercentspinbox.h" #include "kpercentspinbox.h"
extern "C" Plugin *create_plugin() extern "C"
{
KDE_EXPORT Plugin* create_plugin()
{ {
TDEGlobal::locale()->insertCatalogue("wakeup"); TDEGlobal::locale()->insertCatalogue("wakeup");
return new Wakeup(); return new Wakeup();
} }
}
Wakeup *Wakeup::wakeme = 0; Wakeup *Wakeup::wakeme = 0;

@ -25,7 +25,7 @@
extern "C" extern "C"
{ {
Plugin * create_plugin() KDE_EXPORT Plugin* create_plugin()
{ {
TDEGlobal::locale()->insertCatalogue("alsaplayerui"); TDEGlobal::locale()->insertCatalogue("alsaplayerui");
return new AlsaPlayer; return new AlsaPlayer;

@ -29,7 +29,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
extern "C" extern "C"
{ {
Plugin *create_plugin() KDE_EXPORT Plugin* create_plugin()
{ {
return new SDLScope(); return new SDLScope();
} }

@ -25,7 +25,7 @@
extern "C" extern "C"
{ {
Plugin * create_plugin() KDE_EXPORT Plugin* create_plugin()
{ {
TDEGlobal::locale()->insertCatalogue("charlatanui"); TDEGlobal::locale()->insertCatalogue("charlatanui");
return new Charlatan; return new Charlatan;

@ -24,12 +24,15 @@
#include "dubplaylist.h" #include "dubplaylist.h"
// plugin interface // plugin interface
extern "C" Plugin *create_plugin() extern "C"
{
KDE_EXPORT Plugin* create_plugin()
{ {
TDEGlobal::locale()->insertCatalogue("dub"); TDEGlobal::locale()->insertCatalogue("dub");
DubPlaylist* dub = new DubPlaylist; DubPlaylist* dub = new DubPlaylist;
return dub; return dub;
} }
}
/** Construct playlist object */ /** Construct playlist object */
DubPlaylist::DubPlaylist() DubPlaylist::DubPlaylist()

@ -14,11 +14,14 @@
#include "ffrs.h" #include "ffrs.h"
extern "C" Plugin *create_plugin() extern "C"
{
KDE_EXPORT Plugin* create_plugin()
{ {
TDEGlobal::locale()->insertCatalogue("ffrs"); TDEGlobal::locale()->insertCatalogue("ffrs");
return new FFRS(); return new FFRS();
} }
}
View::View(int width, int height, int block, int unblock, TQColor front, TQColor back, int channel) View::View(int width, int height, int block, int unblock, TQColor front, TQColor back, int channel)

@ -23,10 +23,13 @@
#include "luckytag.h" #include "luckytag.h"
#include "parsedmp3filename.h" #include "parsedmp3filename.h"
extern "C" Plugin *create_plugin() extern "C"
{
KDE_EXPORT Plugin* create_plugin()
{ {
return new LuckyTagger; return new LuckyTagger;
} }
}
LuckyTagger::LuckyTagger(void) : Tags(-10) LuckyTagger::LuckyTagger(void) : Tags(-10)
{ {

@ -14,7 +14,7 @@
extern "C" extern "C"
{ {
Plugin *create_plugin() KDE_EXPORT Plugin* create_plugin()
{ {
TDEGlobal::locale()->insertCatalogue("lyrics"); TDEGlobal::locale()->insertCatalogue("lyrics");
return new Lyrics(); return new Lyrics();

@ -8,7 +8,7 @@
extern "C" extern "C"
{ {
Plugin *create_plugin() KDE_EXPORT Plugin* create_plugin()
{ {
TDEGlobal::locale()->insertCatalogue("nexscope"); TDEGlobal::locale()->insertCatalogue("nexscope");
return new NexPlugin(); return new NexPlugin();

@ -21,7 +21,7 @@ RMS's novel that I'm supposed to put at the top of every story. He's insane.
extern "C" extern "C"
{ {
Plugin *create_plugin() KDE_EXPORT Plugin* create_plugin()
{ {
return new Madness(); return new Madness();
} }

@ -17,11 +17,13 @@
#include <tqtimer.h> #include <tqtimer.h>
extern "C" Plugin *create_plugin() extern "C"
{
KDE_EXPORT Plugin* create_plugin()
{ {
return new Oblique(); return new Oblique();
} }
}
Oblique::Oblique() Oblique::Oblique()

@ -25,7 +25,7 @@
extern "C" extern "C"
{ {
Plugin *create_plugin() KDE_EXPORT Plugin* create_plugin()
{ {
TDEGlobal::locale()->insertCatalogue("pitchablespeed"); TDEGlobal::locale()->insertCatalogue("pitchablespeed");
return new PitchableSpeed(); return new PitchableSpeed();

@ -15,7 +15,7 @@
extern "C" extern "C"
{ {
Plugin *create_plugin() KDE_EXPORT Plugin* create_plugin()
{ {
TDEGlobal::locale()->insertCatalogue("synaescope"); TDEGlobal::locale()->insertCatalogue("synaescope");
return new SynaeScope(); return new SynaeScope();

@ -19,11 +19,14 @@
#include "syna.h" #include "syna.h"
#include "synaescope.h" #include "synaescope.h"
extern "C" Plugin *create_plugin() extern "C"
{
KDE_EXPORT Plugin* create_plugin()
{ {
TDEGlobal::locale()->insertCatalogue("tippecanoe"); TDEGlobal::locale()->insertCatalogue("tippecanoe");
return new SynaeScope(); return new SynaeScope();
} }
}
SynaeScope::SynaeScope() SynaeScope::SynaeScope()
: TQWidget(0, 0, WType_TopLevel | WStyle_DialogBorder | WRepaintNoErase | WMouseNoMask) : TQWidget(0, 0, WType_TopLevel | WStyle_DialogBorder | WRepaintNoErase | WMouseNoMask)

@ -39,24 +39,35 @@ static TQString getSavePath(void)
return dirs.saveLocation("data", "noatun/") + "tylerstates"; return dirs.saveLocation("data", "noatun/") + "tylerstates";
} }
extern "C" void save_effect(t_effect *effect) extern "C"
{
KDE_EXPORT void save_effect(t_effect *effect)
{ {
TQFile file(getSavePath()); TQFile file(getSavePath());
if(!file.open(IO_WriteOnly)) if(!file.open(IO_WriteOnly))
{
return; return;
}
for(unsigned i = 0; i < sizeof(t_effect); i++) for(unsigned i = 0; i < sizeof(t_effect); i++)
{
file.putch( *((byte *)effect + i) ); file.putch( *((byte *)effect + i) );
} }
}
}
t_effect effects[100]; t_effect effects[100];
int nb_effects=0; int nb_effects=0;
extern "C" void load_effects() extern "C"
{
KDE_EXPORT void load_effects()
{ {
TQFile file(getDataPath()); TQFile file(getDataPath());
if(!file.open(IO_ReadOnly)) if(!file.open(IO_ReadOnly))
{
exit(1); exit(1);
}
unsigned int i; unsigned int i;
nb_effects = 0; nb_effects = 0;
@ -64,11 +75,16 @@ extern "C" void load_effects()
{ {
byte* ptr_effect = (byte *)&effects[nb_effects++]; byte* ptr_effect = (byte *)&effects[nb_effects++];
for(i = 0; i < sizeof(t_effect); i++) for(i = 0; i < sizeof(t_effect); i++)
{
ptr_effect[i] = file.getch(); ptr_effect[i] = file.getch();
} }
} }
}
}
extern "C" void load_random_effect(t_effect *effect) extern "C"
{
KDE_EXPORT void load_random_effect(t_effect *effect)
{ {
if(nb_effects > 0) if(nb_effects > 0)
{ {
@ -76,6 +92,9 @@ extern "C" void load_random_effect(t_effect *effect)
unsigned int i; unsigned int i;
for(i = 0; i < sizeof(t_effect) ; i++) for(i = 0; i < sizeof(t_effect) ; i++)
{
*((byte*)effect+i) = *((byte*)(&effects[num_effect])+i); *((byte*)effect+i) = *((byte*)(&effects[num_effect])+i);
} }
} }
}
}

@ -12,11 +12,14 @@
#include <noatun/app.h> #include <noatun/app.h>
#include <kdebug.h> #include <kdebug.h>
extern "C" Plugin *create_plugin() extern "C"
{
KDE_EXPORT Plugin* create_plugin()
{ {
TDEGlobal::locale()->insertCatalogue("tyler"); TDEGlobal::locale()->insertCatalogue("tyler");
return new Tyler(); return new Tyler();
} }
}
const int Tyler::bufferSize = 512; const int Tyler::bufferSize = 512;

@ -42,7 +42,7 @@
extern "C" extern "C"
{ {
Plugin *create_plugin() KDE_EXPORT Plugin* create_plugin()
{ {
TDEGlobal::locale()->insertCatalogue("wavecapture"); TDEGlobal::locale()->insertCatalogue("wavecapture");
return new WaveCapture(); return new WaveCapture();

Loading…
Cancel
Save