build win32-DLLs properly
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1047 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
AUTOMAKE_OPTIONS = foreign 1.4
|
||||
|
||||
PLUGIN_NAME = bassbooster
|
||||
|
||||
|
||||
INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/src/gui
|
||||
|
||||
|
||||
AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="bassbooster"
|
||||
AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="$(PLUGIN_NAME)"
|
||||
|
||||
|
||||
%.moc: ./%.h
|
||||
@@ -13,7 +15,20 @@ AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="bassbooster"
|
||||
|
||||
MOC_FILES = ./bassbooster_controls.moc
|
||||
|
||||
BUILT_SOURCES = $(MOC_FILES) ./embedded_resources.h
|
||||
if BUILD_WIN32
|
||||
DLL=$(PLUGIN_NAME).dll
|
||||
|
||||
$(DLL): lib$(PLUGIN_NAME).la
|
||||
$(CXX) *.o -L$(top_srcdir) -llmms-imp -shared -Wl,-no-undefined -o $@ $(QT_LDADD) && $(STRIP) $@
|
||||
|
||||
install-exec-hook: $(DLL)
|
||||
cp $< $(pkglibdir)
|
||||
rm $(pkglibdir)/lib$(PLUGIN_NAME).a $(pkglibdir)/lib$(PLUGIN_NAME).la
|
||||
else
|
||||
DLL=
|
||||
endif
|
||||
|
||||
BUILT_SOURCES = $(MOC_FILES) ./embedded_resources.h $(DLL)
|
||||
EMBEDDED_RESOURCES = $(wildcard *png)
|
||||
|
||||
./embedded_resources.h: $(EMBEDDED_RESOURCES)
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
extern "C"
|
||||
{
|
||||
|
||||
plugin::descriptor bassbooster_plugin_descriptor =
|
||||
plugin::descriptor PLUGIN_EXPORT bassbooster_plugin_descriptor =
|
||||
{
|
||||
STRINGIFY_PLUGIN_NAME( PLUGIN_NAME ),
|
||||
"BassBooster Effect",
|
||||
@@ -104,7 +104,7 @@ extern "C"
|
||||
{
|
||||
|
||||
// neccessary for getting instance out of shared lib
|
||||
plugin * lmms_plugin_main( model * _parent, void * _data )
|
||||
plugin * PLUGIN_EXPORT lmms_plugin_main( model * _parent, void * _data )
|
||||
{
|
||||
return( new bassBoosterEffect( _parent,
|
||||
static_cast<const plugin::descriptor::subPluginFeatures::key *>(
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
AUTOMAKE_OPTIONS = foreign 1.4
|
||||
|
||||
PLUGIN_NAME = bitinvader
|
||||
|
||||
|
||||
INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/src/gui -I.
|
||||
|
||||
|
||||
AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="bitinvader"
|
||||
AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="$(PLUGIN_NAME)"
|
||||
|
||||
|
||||
%.moc: ./%.h
|
||||
@@ -13,7 +15,20 @@ AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="bitinvader"
|
||||
|
||||
MOC_FILES = ./bit_invader.moc
|
||||
|
||||
BUILT_SOURCES = $(MOC_FILES) ./embedded_resources.h
|
||||
if BUILD_WIN32
|
||||
DLL=$(PLUGIN_NAME).dll
|
||||
|
||||
$(DLL): lib$(PLUGIN_NAME).la
|
||||
$(CXX) *.o -L$(top_srcdir) -llmms-imp -shared -Wl,-no-undefined -o $@ $(QT_LDADD) && $(STRIP) $@
|
||||
|
||||
install-exec-hook: $(DLL)
|
||||
cp $< $(pkglibdir)
|
||||
rm $(pkglibdir)/lib$(PLUGIN_NAME).a $(pkglibdir)/lib$(PLUGIN_NAME).la
|
||||
else
|
||||
DLL=
|
||||
endif
|
||||
|
||||
BUILT_SOURCES = $(MOC_FILES) ./embedded_resources.h $(DLL)
|
||||
EMBEDDED_RESOURCES = $(wildcard *png)
|
||||
|
||||
./embedded_resources.h: $(EMBEDDED_RESOURCES)
|
||||
|
||||
@@ -51,7 +51,7 @@ using namespace std;
|
||||
extern "C"
|
||||
{
|
||||
|
||||
plugin::descriptor bitinvader_plugin_descriptor =
|
||||
plugin::descriptor PLUGIN_EXPORT bitinvader_plugin_descriptor =
|
||||
{
|
||||
STRINGIFY_PLUGIN_NAME( PLUGIN_NAME ),
|
||||
"BitInvader",
|
||||
@@ -550,7 +550,7 @@ extern "C"
|
||||
{
|
||||
|
||||
// neccessary for getting instance out of shared lib
|
||||
plugin * lmms_plugin_main( void * _data )
|
||||
plugin * PLUGIN_EXPORT lmms_plugin_main( void * _data )
|
||||
{
|
||||
return( new bitInvader( static_cast<instrumentTrack *>( _data ) ) );
|
||||
}
|
||||
|
||||
@@ -1,12 +1,28 @@
|
||||
AUTOMAKE_OPTIONS = foreign 1.4
|
||||
|
||||
PLUGIN_NAME = flpimport
|
||||
|
||||
|
||||
INCLUDES = -I$(top_srcdir)/include -I. -I./unrtf
|
||||
|
||||
EXTRA_DIST = $(wildcard unrtf/*.c unrtf/*.h)
|
||||
|
||||
AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="flpimport"
|
||||
AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="$(PLUGIN_NAME)"
|
||||
|
||||
if BUILD_WIN32
|
||||
DLL=$(PLUGIN_NAME).dll
|
||||
|
||||
$(DLL): lib$(PLUGIN_NAME).la
|
||||
$(CXX) *.o -L$(top_srcdir) -llmms-imp -shared -Wl,-no-undefined -o $@ $(QT_LDADD) && $(STRIP) $@
|
||||
|
||||
install-exec-hook: $(DLL)
|
||||
cp $< $(pkglibdir)
|
||||
rm $(pkglibdir)/lib$(PLUGIN_NAME).a $(pkglibdir)/lib$(PLUGIN_NAME).la
|
||||
else
|
||||
DLL=
|
||||
endif
|
||||
|
||||
BUILT_SOURCES = $(DLL)
|
||||
|
||||
pkglib_LTLIBRARIES= libflpimport.la
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
extern "C"
|
||||
{
|
||||
|
||||
plugin::descriptor flpimport_plugin_descriptor =
|
||||
plugin::descriptor PLUGIN_EXPORT flpimport_plugin_descriptor =
|
||||
{
|
||||
STRINGIFY_PLUGIN_NAME( PLUGIN_NAME ),
|
||||
"FLP Import",
|
||||
@@ -929,7 +929,7 @@ extern "C"
|
||||
{
|
||||
|
||||
// neccessary for getting instance out of shared lib
|
||||
plugin * lmms_plugin_main( model *, void * _data )
|
||||
plugin * PLUGIN_EXPORT lmms_plugin_main( model *, void * _data )
|
||||
{
|
||||
return( new flpImport( static_cast<const char *>( _data ) ) );
|
||||
}
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
AUTOMAKE_OPTIONS = foreign 1.4
|
||||
|
||||
PLUGIN_NAME = kicker
|
||||
|
||||
|
||||
INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/src/gui -I.
|
||||
|
||||
|
||||
AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="kicker"
|
||||
AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="$(PLUGIN_NAME)"
|
||||
|
||||
|
||||
%.moc: ./%.h
|
||||
@@ -13,7 +15,20 @@ AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="kicker"
|
||||
|
||||
MOC_FILES = ./kicker.moc
|
||||
|
||||
BUILT_SOURCES = $(MOC_FILES) ./embedded_resources.h
|
||||
if BUILD_WIN32
|
||||
DLL=$(PLUGIN_NAME).dll
|
||||
|
||||
$(DLL): lib$(PLUGIN_NAME).la
|
||||
$(CXX) *.o -L$(top_srcdir) -llmms-imp -shared -Wl,-no-undefined -o $@ $(QT_LDADD) && $(STRIP) $@
|
||||
|
||||
install-exec-hook: $(DLL)
|
||||
cp $< $(pkglibdir)
|
||||
rm $(pkglibdir)/lib$(PLUGIN_NAME).a $(pkglibdir)/lib$(PLUGIN_NAME).la
|
||||
else
|
||||
DLL=
|
||||
endif
|
||||
|
||||
BUILT_SOURCES = $(MOC_FILES) ./embedded_resources.h $(DLL)
|
||||
EMBEDDED_RESOURCES = $(wildcard *png)
|
||||
|
||||
./embedded_resources.h: $(EMBEDDED_RESOURCES)
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
extern "C"
|
||||
{
|
||||
|
||||
plugin::descriptor kicker_plugin_descriptor =
|
||||
plugin::descriptor PLUGIN_EXPORT kicker_plugin_descriptor =
|
||||
{
|
||||
STRINGIFY_PLUGIN_NAME( PLUGIN_NAME ),
|
||||
"Kicker",
|
||||
@@ -261,7 +261,7 @@ extern "C"
|
||||
{
|
||||
|
||||
// neccessary for getting instance out of shared lib
|
||||
plugin * lmms_plugin_main( model *, void * _data )
|
||||
plugin * PLUGIN_EXPORT lmms_plugin_main( model *, void * _data )
|
||||
{
|
||||
return( new kickerInstrument(
|
||||
static_cast<instrumentTrack *>( _data ) ) );
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
AUTOMAKE_OPTIONS = foreign 1.4
|
||||
|
||||
PLUGIN_NAME = ladspabrowser
|
||||
|
||||
|
||||
INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/src/gui -I.
|
||||
|
||||
|
||||
AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="ladspa_browser"
|
||||
AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="$(PLUGIN_NAME)"
|
||||
|
||||
|
||||
%.moc: ./%.h
|
||||
@@ -15,7 +17,20 @@ MOC_FILES = ./ladspa_browser.moc \
|
||||
./ladspa_description.moc \
|
||||
./ladspa_port_dialog.moc
|
||||
|
||||
BUILT_SOURCES = $(MOC_FILES) ./embedded_resources.h
|
||||
if BUILD_WIN32
|
||||
DLL=$(PLUGIN_NAME).dll
|
||||
|
||||
$(DLL): lib$(PLUGIN_NAME).la
|
||||
$(CXX) *.o -L$(top_srcdir) -llmms-imp -shared -Wl,-no-undefined -o $@ $(QT_LDADD) && $(STRIP) $@
|
||||
|
||||
install-exec-hook: $(DLL)
|
||||
cp $< $(pkglibdir)
|
||||
rm $(pkglibdir)/lib$(PLUGIN_NAME).a $(pkglibdir)/lib$(PLUGIN_NAME).la
|
||||
else
|
||||
DLL=
|
||||
endif
|
||||
|
||||
BUILT_SOURCES = $(MOC_FILES) ./embedded_resources.h $(DLL)
|
||||
EMBEDDED_RESOURCES = $(wildcard *png)
|
||||
|
||||
./embedded_resources.h: $(EMBEDDED_RESOURCES)
|
||||
@@ -28,13 +43,13 @@ CLEANFILES = $(MOC_FILES) ./embedded_resources.h
|
||||
|
||||
|
||||
|
||||
pkglib_LTLIBRARIES = libladspa_browser.la
|
||||
pkglib_LTLIBRARIES = libladspabrowser.la
|
||||
|
||||
libladspa_browser_la_SOURCES = ladspa_browser.cpp \
|
||||
libladspabrowser_la_SOURCES = ladspa_browser.cpp \
|
||||
ladspa_browser.h \
|
||||
ladspa_description.cpp \
|
||||
ladspa_description.h \
|
||||
ladspa_port_dialog.cpp \
|
||||
ladspa_port_dialog.h
|
||||
|
||||
$(libladspa_browser_la_SOURCES): ./embedded_resources.h
|
||||
$(libladspabrowser_la_SOURCES): ./embedded_resources.h
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
extern "C"
|
||||
{
|
||||
|
||||
plugin::descriptor ladspa_browser_plugin_descriptor =
|
||||
plugin::descriptor PLUGIN_EXPORT ladspabrowser_plugin_descriptor =
|
||||
{
|
||||
STRINGIFY_PLUGIN_NAME( PLUGIN_NAME ),
|
||||
"LADSPA Plugin Browser",
|
||||
@@ -62,7 +62,7 @@ plugin::descriptor ladspa_browser_plugin_descriptor =
|
||||
|
||||
|
||||
// neccessary for getting instance out of shared lib
|
||||
plugin * lmms_plugin_main( void * _data )
|
||||
plugin * PLUGIN_EXPORT lmms_plugin_main( model * _parent, void * _data )
|
||||
{
|
||||
return( new ladspaBrowser );
|
||||
}
|
||||
@@ -73,7 +73,7 @@ plugin * lmms_plugin_main( void * _data )
|
||||
|
||||
|
||||
ladspaBrowser::ladspaBrowser( void ) :
|
||||
tool( &ladspa_browser_plugin_descriptor, NULL )
|
||||
tool( &ladspabrowser_plugin_descriptor, NULL )
|
||||
{
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@ ladspaBrowser::~ladspaBrowser()
|
||||
|
||||
QString ladspaBrowser::nodeName( void ) const
|
||||
{
|
||||
return( ladspa_browser_plugin_descriptor.name );
|
||||
return( ladspabrowser_plugin_descriptor.name );
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -45,7 +45,6 @@ public:
|
||||
|
||||
public slots:
|
||||
void showPorts( const ladspa_key_t & _key );
|
||||
void displayHelp( void );
|
||||
|
||||
|
||||
private:
|
||||
|
||||
@@ -4,11 +4,13 @@ if SHIP_CAPS
|
||||
SUBDIRS = caps
|
||||
endif
|
||||
|
||||
PLUGIN_NAME = ladspaeffect
|
||||
|
||||
|
||||
INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/src/gui -I.
|
||||
|
||||
|
||||
AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="ladspaeffect"
|
||||
AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="$(PLUGIN_NAME)"
|
||||
|
||||
|
||||
%.moc: ./%.h
|
||||
@@ -17,8 +19,20 @@ AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="ladspaeffect"
|
||||
|
||||
MOC_FILES = ./ladspa_effect.moc ./ladspa_controls.moc ./ladspa_control_dialog.moc
|
||||
|
||||
if BUILD_WIN32
|
||||
DLL=$(PLUGIN_NAME).dll
|
||||
|
||||
BUILT_SOURCES = $(MOC_FILES) ./embedded_resources.h
|
||||
$(DLL): lib$(PLUGIN_NAME).la
|
||||
$(CXX) *.o -L$(top_srcdir) -llmms-imp -shared -Wl,-no-undefined -o $@ $(QT_LDADD) && $(STRIP) $@
|
||||
|
||||
install-exec-hook: $(DLL)
|
||||
cp $< $(pkglibdir)
|
||||
rm $(pkglibdir)/lib$(PLUGIN_NAME).a $(pkglibdir)/lib$(PLUGIN_NAME).la
|
||||
else
|
||||
DLL=
|
||||
endif
|
||||
|
||||
BUILT_SOURCES = $(MOC_FILES) ./embedded_resources.h $(DLL)
|
||||
EMBEDDED_RESOURCES = $(wildcard *png)
|
||||
|
||||
./embedded_resources.h: $(EMBEDDED_RESOURCES)
|
||||
|
||||
@@ -8,16 +8,24 @@ SOURCES = $(wildcard *.cc)
|
||||
HDRS = $(wildcard *.h) $(wildcard dsp/*.h)
|
||||
OBJECTS = $(SOURCES:.cc=.o)
|
||||
|
||||
caps.so: $(OBJECTS) depend
|
||||
$(CXX) -nostartfiles $(AM_CXXFLAGS) -shared -o $@ $(OBJECTS)
|
||||
if BUILD_WIN32
|
||||
CAPS_SHARED=caps.dll
|
||||
CAPS_LINKFLAGS=
|
||||
else
|
||||
CAPS_SHARED=caps.so
|
||||
CAPS_LINKFLAGS=-nostartfiles
|
||||
endif
|
||||
|
||||
$(CAPS_SHARED): $(OBJECTS) depend
|
||||
$(CXX) $(AM_CXXFLAGS) $(CAPS_LINKFLAGS) -shared -Wl,-no-undefined -o $@ $(OBJECTS)
|
||||
|
||||
clean:
|
||||
rm -f *.o *.so *.s depend
|
||||
rm -f *.o *.so *.s *.dll depend
|
||||
|
||||
install: all
|
||||
# strip caps.so
|
||||
install -d $(DEST)
|
||||
install -m 644 caps.so $(DEST)
|
||||
install -m 644 $(CAPS_SHARED) $(DEST)
|
||||
|
||||
uninstall:
|
||||
-rm $(DEST)/caps.so
|
||||
@@ -28,6 +36,6 @@ depend: $(SOURCES)
|
||||
.cc.o:
|
||||
$(CXX) $(CXXFLAGS) $(AM_CXXFLAGS) -c $<
|
||||
|
||||
all: caps.so
|
||||
all: $(CAPS_SHARED)
|
||||
|
||||
EXTRA_DIST = $(SOURCES) $(HDRS) $(wildcard README*)
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
extern "C"
|
||||
{
|
||||
|
||||
plugin::descriptor ladspaeffect_plugin_descriptor =
|
||||
plugin::descriptor PLUGIN_EXPORT ladspaeffect_plugin_descriptor =
|
||||
{
|
||||
STRINGIFY_PLUGIN_NAME( PLUGIN_NAME ),
|
||||
"LADSPA Effect",
|
||||
@@ -552,7 +552,7 @@ extern "C"
|
||||
{
|
||||
|
||||
// neccessary for getting instance out of shared lib
|
||||
plugin * lmms_plugin_main( model * _parent, void * _data )
|
||||
plugin * PLUGIN_EXPORT lmms_plugin_main( model * _parent, void * _data )
|
||||
{
|
||||
return( new ladspaEffect( _parent,
|
||||
static_cast<const plugin::descriptor::subPluginFeatures::key *>(
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
AUTOMAKE_OPTIONS = foreign 1.4
|
||||
|
||||
PLUGIN_NAME = lb302
|
||||
|
||||
|
||||
INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/src/gui -I.
|
||||
|
||||
|
||||
AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="lb302"
|
||||
AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="$(PLUGIN_NAME)"
|
||||
|
||||
|
||||
%.moc: ./%.h
|
||||
@@ -13,7 +15,20 @@ AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="lb302"
|
||||
|
||||
MOC_FILES = ./lb302.moc
|
||||
|
||||
BUILT_SOURCES = $(MOC_FILES) ./embedded_resources.h
|
||||
if BUILD_WIN32
|
||||
DLL=$(PLUGIN_NAME).dll
|
||||
|
||||
$(DLL): lib$(PLUGIN_NAME).la
|
||||
$(CXX) *.o -L$(top_srcdir) -llmms-imp -shared -Wl,-no-undefined -o $@ $(QT_LDADD) && $(STRIP) $@
|
||||
|
||||
install-exec-hook: $(DLL)
|
||||
cp $< $(pkglibdir)
|
||||
rm $(pkglibdir)/lib$(PLUGIN_NAME).a $(pkglibdir)/lib$(PLUGIN_NAME).la
|
||||
else
|
||||
DLL=
|
||||
endif
|
||||
|
||||
BUILT_SOURCES = $(MOC_FILES) ./embedded_resources.h $(DLL)
|
||||
EMBEDDED_RESOURCES = $(wildcard *png)
|
||||
|
||||
./embedded_resources.h: $(EMBEDDED_RESOURCES)
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
extern "C"
|
||||
{
|
||||
|
||||
plugin::descriptor lb302_plugin_descriptor =
|
||||
plugin::descriptor PLUGIN_EXPORT lb302_plugin_descriptor =
|
||||
{
|
||||
STRINGIFY_PLUGIN_NAME( PLUGIN_NAME ),
|
||||
"LB302",
|
||||
@@ -1070,7 +1070,7 @@ extern "C"
|
||||
{
|
||||
|
||||
// neccessary for getting instance out of shared lib
|
||||
plugin * lmms_plugin_main( model *, void * _data )
|
||||
plugin * PLUGIN_EXPORT lmms_plugin_main( model *, void * _data )
|
||||
{
|
||||
|
||||
return( new lb302Synth(
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
AUTOMAKE_OPTIONS = foreign 1.4
|
||||
|
||||
PLUGIN_NAME = livetool
|
||||
|
||||
|
||||
INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/src/gui -I.
|
||||
|
||||
|
||||
AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="live_tool"
|
||||
AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="$(PLUGIN_NAME)"
|
||||
|
||||
|
||||
%.moc: ./%.h
|
||||
@@ -13,7 +15,20 @@ AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="live_tool"
|
||||
|
||||
MOC_FILES = ./live_tool.moc
|
||||
|
||||
BUILT_SOURCES = $(MOC_FILES) ./embedded_resources.h
|
||||
if BUILD_WIN32
|
||||
DLL=$(PLUGIN_NAME).dll
|
||||
|
||||
$(DLL): lib$(PLUGIN_NAME).la
|
||||
$(CXX) *.o -L$(top_srcdir) -llmms-imp -shared -Wl,-no-undefined -o $@ $(QT_LDADD) && $(STRIP) $@
|
||||
|
||||
install-exec-hook: $(DLL)
|
||||
cp $< $(pkglibdir)
|
||||
rm $(pkglibdir)/lib$(PLUGIN_NAME).a $(pkglibdir)/lib$(PLUGIN_NAME).la
|
||||
else
|
||||
DLL=
|
||||
endif
|
||||
|
||||
BUILT_SOURCES = $(MOC_FILES) ./embedded_resources.h $(DLL)
|
||||
EMBEDDED_RESOURCES = $(wildcard *png)
|
||||
|
||||
./embedded_resources.h: $(EMBEDDED_RESOURCES)
|
||||
@@ -26,8 +41,8 @@ CLEANFILES = $(MOC_FILES) ./embedded_resources.h
|
||||
|
||||
|
||||
|
||||
pkglib_LTLIBRARIES = liblive_tool.la
|
||||
pkglib_LTLIBRARIES = liblivetool.la
|
||||
|
||||
liblive_tool_la_SOURCES = live_tool.cpp live_tool.h
|
||||
liblivetool_la_SOURCES = live_tool.cpp live_tool.h
|
||||
|
||||
$(liblive_tool_la_SOURCES): ./embedded_resources.h
|
||||
$(liblivetool_la_SOURCES): ./embedded_resources.h
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
extern "C"
|
||||
{
|
||||
|
||||
plugin::descriptor live_tool_plugin_descriptor =
|
||||
plugin::descriptor PLUGIN_EXPORT livetool_plugin_descriptor =
|
||||
{
|
||||
STRINGIFY_PLUGIN_NAME( PLUGIN_NAME ),
|
||||
"LiveTool",
|
||||
@@ -61,7 +61,7 @@ plugin::descriptor live_tool_plugin_descriptor =
|
||||
|
||||
|
||||
// neccessary for getting instance out of shared lib
|
||||
plugin * lmms_plugin_main( model * _parent, void * _data )
|
||||
plugin * PLUGIN_EXPORT lmms_plugin_main( model * _parent, void * _data )
|
||||
{
|
||||
return( new liveTool( _parent ) );
|
||||
}
|
||||
@@ -72,7 +72,7 @@ plugin * lmms_plugin_main( model * _parent, void * _data )
|
||||
|
||||
|
||||
liveTool::liveTool( model * _parent ) :
|
||||
tool( &live_tool_plugin_descriptor, _parent )
|
||||
tool( &livetool_plugin_descriptor, _parent )
|
||||
{
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ liveTool::~liveTool()
|
||||
|
||||
QString liveTool::nodeName( void ) const
|
||||
{
|
||||
return( live_tool_plugin_descriptor.name );
|
||||
return( livetool_plugin_descriptor.name );
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,11 +1,27 @@
|
||||
AUTOMAKE_OPTIONS = foreign 1.4
|
||||
|
||||
PLUGIN_NAME = midiimport
|
||||
|
||||
|
||||
INCLUDES = -I$(top_srcdir)/include -I.
|
||||
|
||||
|
||||
AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="midiimport"
|
||||
AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="$(PLUGIN_NAME)"
|
||||
|
||||
if BUILD_WIN32
|
||||
DLL=$(PLUGIN_NAME).dll
|
||||
|
||||
$(DLL): lib$(PLUGIN_NAME).la
|
||||
$(CXX) *.o -L$(top_srcdir) -llmms-imp -shared -Wl,-no-undefined -o $@ $(QT_LDADD) && $(STRIP) $@
|
||||
|
||||
install-exec-hook: $(DLL)
|
||||
cp $< $(pkglibdir)
|
||||
rm $(pkglibdir)/lib$(PLUGIN_NAME).a $(pkglibdir)/lib$(PLUGIN_NAME).la
|
||||
else
|
||||
DLL=
|
||||
endif
|
||||
|
||||
BUILT_SOURCES = $(DLL)
|
||||
|
||||
pkglib_LTLIBRARIES= libmidiimport.la
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* midi_import.cpp - support for importing MIDI-files
|
||||
*
|
||||
* Copyright (c) 2005-2007 Tobias Doerffel <tobydox/at/users.sourceforge.net>
|
||||
* Copyright (c) 2005-2008 Tobias Doerffel <tobydox/at/users.sourceforge.net>
|
||||
*
|
||||
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
|
||||
*
|
||||
@@ -46,7 +46,7 @@
|
||||
extern "C"
|
||||
{
|
||||
|
||||
plugin::descriptor midiimport_plugin_descriptor =
|
||||
plugin::descriptor PLUGIN_EXPORT midiimport_plugin_descriptor =
|
||||
{
|
||||
STRINGIFY_PLUGIN_NAME( PLUGIN_NAME ),
|
||||
"MIDI Import",
|
||||
@@ -620,7 +620,7 @@ extern "C"
|
||||
{
|
||||
|
||||
// neccessary for getting instance out of shared lib
|
||||
plugin * lmms_plugin_main( model *, void * _data )
|
||||
plugin * PLUGIN_EXPORT lmms_plugin_main( model *, void * _data )
|
||||
{
|
||||
return( new midiImport( static_cast<const char *>( _data ) ) );
|
||||
}
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
AUTOMAKE_OPTIONS = foreign 1.4
|
||||
|
||||
PLUGIN_NAME = organic
|
||||
|
||||
|
||||
INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/src/gui -I.
|
||||
|
||||
|
||||
AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="organic"
|
||||
AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="$(PLUGIN_NAME)"
|
||||
|
||||
|
||||
%.moc: ./%.h
|
||||
@@ -13,7 +15,20 @@ AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="organic"
|
||||
|
||||
MOC_FILES = ./organic.moc
|
||||
|
||||
BUILT_SOURCES = $(MOC_FILES) ./embedded_resources.h
|
||||
if BUILD_WIN32
|
||||
DLL=$(PLUGIN_NAME).dll
|
||||
|
||||
$(DLL): lib$(PLUGIN_NAME).la
|
||||
$(CXX) *.o -L$(top_srcdir) -llmms-imp -shared -Wl,-no-undefined -o $@ $(QT_LDADD) && $(STRIP) $@
|
||||
|
||||
install-exec-hook: $(DLL)
|
||||
cp $< $(pkglibdir)
|
||||
rm $(pkglibdir)/lib$(PLUGIN_NAME).a $(pkglibdir)/lib$(PLUGIN_NAME).la
|
||||
else
|
||||
DLL=
|
||||
endif
|
||||
|
||||
BUILT_SOURCES = $(MOC_FILES) ./embedded_resources.h $(DLL)
|
||||
EMBEDDED_RESOURCES = $(wildcard *png)
|
||||
|
||||
./embedded_resources.h: $(EMBEDDED_RESOURCES)
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
extern "C"
|
||||
{
|
||||
|
||||
plugin::descriptor organic_plugin_descriptor =
|
||||
plugin::descriptor PLUGIN_EXPORT organic_plugin_descriptor =
|
||||
{
|
||||
STRINGIFY_PLUGIN_NAME( PLUGIN_NAME ),
|
||||
"Organic",
|
||||
@@ -569,7 +569,7 @@ extern "C"
|
||||
{
|
||||
|
||||
// neccessary for getting instance out of shared lib
|
||||
plugin * lmms_plugin_main( model *, void * _data )
|
||||
plugin * PLUGIN_EXPORT lmms_plugin_main( model *, void * _data )
|
||||
{
|
||||
return( new organicInstrument( static_cast<instrumentTrack *>( _data ) ) );
|
||||
}
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
AUTOMAKE_OPTIONS = foreign 1.4
|
||||
|
||||
PLUGIN_NAME = patman
|
||||
|
||||
|
||||
INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/src/gui -I.
|
||||
|
||||
|
||||
AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="patman"
|
||||
AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="$(PLUGIN_NAME)"
|
||||
|
||||
|
||||
%.moc: ./%.h
|
||||
@@ -13,7 +15,20 @@ AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="patman"
|
||||
|
||||
MOC_FILES = ./patman.moc
|
||||
|
||||
BUILT_SOURCES = $(MOC_FILES) ./embedded_resources.h
|
||||
if BUILD_WIN32
|
||||
DLL=$(PLUGIN_NAME).dll
|
||||
|
||||
$(DLL): lib$(PLUGIN_NAME).la
|
||||
$(CXX) *.o -L$(top_srcdir) -llmms-imp -shared -Wl,-no-undefined -o $@ $(QT_LDADD) && $(STRIP) $@
|
||||
|
||||
install-exec-hook: $(DLL)
|
||||
cp $< $(pkglibdir)
|
||||
rm $(pkglibdir)/lib$(PLUGIN_NAME).a $(pkglibdir)/lib$(PLUGIN_NAME).la
|
||||
else
|
||||
DLL=
|
||||
endif
|
||||
|
||||
BUILT_SOURCES = $(MOC_FILES) ./embedded_resources.h $(DLL)
|
||||
EMBEDDED_RESOURCES = $(wildcard *png)
|
||||
|
||||
./embedded_resources.h: $(EMBEDDED_RESOURCES)
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
extern "C"
|
||||
{
|
||||
|
||||
plugin::descriptor patman_plugin_descriptor =
|
||||
plugin::descriptor PLUGIN_EXPORT patman_plugin_descriptor =
|
||||
{
|
||||
STRINGIFY_PLUGIN_NAME( PLUGIN_NAME ),
|
||||
"PatMan",
|
||||
@@ -63,7 +63,7 @@ plugin::descriptor patman_plugin_descriptor =
|
||||
|
||||
|
||||
// necessary for getting instance out of shared lib
|
||||
plugin * lmms_plugin_main( model *, void * _data )
|
||||
plugin * PLUGIN_EXPORT lmms_plugin_main( model *, void * _data )
|
||||
{
|
||||
return( new patmanInstrument( static_cast<instrumentTrack *>( _data ) ) );
|
||||
}
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
AUTOMAKE_OPTIONS = foreign 1.4
|
||||
|
||||
PLUGIN_NAME = sf2player
|
||||
|
||||
|
||||
INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/src/gui -I.
|
||||
|
||||
|
||||
AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="sf2player"
|
||||
AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="$(PLUGIN_NAME)"
|
||||
|
||||
|
||||
%.moc: ./%.h
|
||||
@@ -18,7 +20,20 @@ MOC_FILES = ./sf2_player.moc ./patches_dialog.moc
|
||||
|
||||
UIC_FILES = ./ui_patches_dialog.h
|
||||
|
||||
BUILT_SOURCES = $(MOC_FILES) ${UIC_FILES} ./embedded_resources.h
|
||||
if BUILD_WIN32
|
||||
DLL=$(PLUGIN_NAME).dll
|
||||
|
||||
$(DLL): lib$(PLUGIN_NAME).la
|
||||
$(CXX) *.o -L$(top_srcdir) -llmms-imp -shared -Wl,-no-undefined -o $@ $(QT_LDADD) -lfluidsynth-1 && $(STRIP) $@
|
||||
|
||||
install-exec-hook: $(DLL)
|
||||
cp $< $(pkglibdir)
|
||||
rm $(pkglibdir)/lib$(PLUGIN_NAME).a $(pkglibdir)/lib$(PLUGIN_NAME).la
|
||||
else
|
||||
DLL=
|
||||
endif
|
||||
|
||||
BUILT_SOURCES = $(MOC_FILES) $(UIC_FILES) ./embedded_resources.h $(DLL)
|
||||
EMBEDDED_RESOURCES = $(wildcard *png)
|
||||
|
||||
./embedded_resources.h: $(EMBEDDED_RESOURCES)
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
#include "patches_dialog.h"
|
||||
|
||||
#include <QHeaderView>
|
||||
#include <QtGui/QHeaderView>
|
||||
//#include <QFileInfo>
|
||||
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#include "lcd_spinbox.h"
|
||||
|
||||
#include <fluidsynth.h>
|
||||
#include <QWidget>
|
||||
#include <QtGui/QWidget>
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
// qsynthPresetForm -- UI wrapper form.
|
||||
|
||||
@@ -22,8 +22,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <QTextStream>
|
||||
|
||||
#include <QtCore/QTextStream>
|
||||
#include <QtGui/QLayout>
|
||||
#include <QtGui/QLabel>
|
||||
#include <QtGui/QFileDialog>
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
AUTOMAKE_OPTIONS = foreign 1.4
|
||||
|
||||
PLUGIN_NAME = stereoenhancer
|
||||
|
||||
|
||||
INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/src/gui
|
||||
|
||||
|
||||
AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="stereoenhancer"
|
||||
AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="$(PLUGIN_NAME)"
|
||||
|
||||
|
||||
%.moc: ./%.h
|
||||
@@ -13,7 +15,20 @@ AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="stereoenhancer"
|
||||
|
||||
MOC_FILES = ./stereoenhancer_controls.moc
|
||||
|
||||
BUILT_SOURCES = $(MOC_FILES) ./embedded_resources.h
|
||||
if BUILD_WIN32
|
||||
DLL=$(PLUGIN_NAME).dll
|
||||
|
||||
$(DLL): lib$(PLUGIN_NAME).la
|
||||
$(CXX) *.o -L$(top_srcdir) -llmms-imp -shared -Wl,-no-undefined -o $@ $(QT_LDADD) && $(STRIP) $@
|
||||
|
||||
install-exec-hook: $(DLL)
|
||||
cp $< $(pkglibdir)
|
||||
rm $(pkglibdir)/lib$(PLUGIN_NAME).a $(pkglibdir)/lib$(PLUGIN_NAME).la
|
||||
else
|
||||
DLL=
|
||||
endif
|
||||
|
||||
BUILT_SOURCES = $(MOC_FILES) ./embedded_resources.h $(DLL)
|
||||
EMBEDDED_RESOURCES = $(wildcard *png)
|
||||
|
||||
./embedded_resources.h: $(EMBEDDED_RESOURCES)
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
extern "C"
|
||||
{
|
||||
|
||||
plugin::descriptor stereoenhancer_plugin_descriptor =
|
||||
plugin::descriptor PLUGIN_EXPORT stereoenhancer_plugin_descriptor =
|
||||
{
|
||||
STRINGIFY_PLUGIN_NAME( PLUGIN_NAME ),
|
||||
"StereoEnhancer Effect",
|
||||
@@ -165,7 +165,7 @@ extern "C"
|
||||
{
|
||||
|
||||
// neccessary for getting instance out of shared lib
|
||||
plugin * lmms_plugin_main( model * _parent, void * _data )
|
||||
plugin * PLUGIN_EXPORT lmms_plugin_main( model * _parent, void * _data )
|
||||
{
|
||||
return( new stereoEnhancerEffect( _parent,
|
||||
static_cast<const plugin::descriptor::subPluginFeatures::key *>(
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
AUTOMAKE_OPTIONS = foreign 1.4
|
||||
|
||||
PLUGIN_NAME = stereomatrix
|
||||
|
||||
INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/src/gui
|
||||
|
||||
|
||||
AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="stereomatrix"
|
||||
AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="$(PLUGIN_NAME)"
|
||||
|
||||
|
||||
%.moc: ./%.h
|
||||
@@ -13,7 +14,20 @@ AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="stereomatrix"
|
||||
|
||||
MOC_FILES = ./stereomatrix_controls.moc
|
||||
|
||||
BUILT_SOURCES = $(MOC_FILES) ./embedded_resources.h
|
||||
if BUILD_WIN32
|
||||
DLL=$(PLUGIN_NAME).dll
|
||||
|
||||
$(DLL): lib$(PLUGIN_NAME).la
|
||||
$(CXX) *.o -L$(top_srcdir) -llmms-imp -shared -Wl,-no-undefined -o $@ $(QT_LDADD) && $(STRIP) $@
|
||||
|
||||
install-exec-hook: $(DLL)
|
||||
cp $< $(pkglibdir)
|
||||
rm $(pkglibdir)/lib$(PLUGIN_NAME).a $(pkglibdir)/lib$(PLUGIN_NAME).la
|
||||
else
|
||||
DLL=
|
||||
endif
|
||||
|
||||
BUILT_SOURCES = $(MOC_FILES) ./embedded_resources.h $(DLL)
|
||||
EMBEDDED_RESOURCES = $(wildcard *png)
|
||||
|
||||
./embedded_resources.h: $(EMBEDDED_RESOURCES)
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
extern "C"
|
||||
{
|
||||
|
||||
plugin::descriptor stereomatrix_plugin_descriptor =
|
||||
plugin::descriptor PLUGIN_EXPORT stereomatrix_plugin_descriptor =
|
||||
{
|
||||
STRINGIFY_PLUGIN_NAME( PLUGIN_NAME ),
|
||||
"Stereophonic Matrix",
|
||||
@@ -114,7 +114,7 @@ extern "C"
|
||||
{
|
||||
|
||||
// neccessary for getting instance out of shared lib
|
||||
plugin * lmms_plugin_main( model * _parent, void * _data )
|
||||
plugin * PLUGIN_EXPORT lmms_plugin_main( model * _parent, void * _data )
|
||||
{
|
||||
return( new stereoMatrixEffect( _parent,
|
||||
static_cast<const plugin::descriptor::subPluginFeatures::key *>(
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
AUTOMAKE_OPTIONS = foreign 1.4
|
||||
|
||||
PLUGIN_NAME = vibedstrings
|
||||
|
||||
INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/src/gui -I.
|
||||
|
||||
|
||||
AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="vibedstrings"
|
||||
AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="$(PLUGIN_NAME)"
|
||||
|
||||
|
||||
%.moc: ./%.h
|
||||
@@ -13,7 +14,20 @@ AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS) -DPLUGIN_NAME="vibedstrings"
|
||||
|
||||
MOC_FILES = ./vibed.moc ./nine_button_selector.moc
|
||||
|
||||
BUILT_SOURCES = $(MOC_FILES) ./embedded_resources.h
|
||||
if BUILD_WIN32
|
||||
DLL=$(PLUGIN_NAME).dll
|
||||
|
||||
$(DLL): lib$(PLUGIN_NAME).la
|
||||
$(CXX) *.o -L$(top_srcdir) -llmms-imp -shared -Wl,-no-undefined -o $@ $(QT_LDADD) && $(STRIP) $@
|
||||
|
||||
install-exec-hook: $(DLL)
|
||||
cp $< $(pkglibdir)
|
||||
rm $(pkglibdir)/lib$(PLUGIN_NAME).a $(pkglibdir)/lib$(PLUGIN_NAME).la
|
||||
else
|
||||
DLL=
|
||||
endif
|
||||
|
||||
BUILT_SOURCES = $(MOC_FILES) ./embedded_resources.h $(DLL)
|
||||
EMBEDDED_RESOURCES = $(wildcard *png)
|
||||
|
||||
./embedded_resources.h: $(EMBEDDED_RESOURCES)
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
extern "C"
|
||||
{
|
||||
|
||||
plugin::descriptor vibedstrings_plugin_descriptor =
|
||||
plugin::descriptor PLUGIN_EXPORT vibedstrings_plugin_descriptor =
|
||||
{
|
||||
STRINGIFY_PLUGIN_NAME( PLUGIN_NAME ),
|
||||
"Vibed",
|
||||
@@ -756,7 +756,7 @@ extern "C"
|
||||
{
|
||||
|
||||
// neccessary for getting instance out of shared lib
|
||||
plugin * lmms_plugin_main( void * _data )
|
||||
plugin * PLUGIN_EXPORT lmms_plugin_main( void * _data )
|
||||
{
|
||||
return( new vibed( static_cast<instrumentTrack *>( _data ) ) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user