diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2009-04-01 21:13:09 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2009-04-01 21:13:09 +0000 |
commit | 0ed7a8b68dd73e2b0473b8127aeca99f3bac9061 (patch) | |
tree | 5c67818b38a5cc2f9caa5ca7f8640ca356adf02b /externals/grill/flext/tutorial/bind1 | |
parent | bb4c7f6a245394d09dac9adfb2efb093d3d98452 (diff) |
cleaned up grill externals - replaced with svn:externals to svn.grrrr.org/ext/trunk/
svn path=/trunk/; revision=10951
Diffstat (limited to 'externals/grill/flext/tutorial/bind1')
-rw-r--r-- | externals/grill/flext/tutorial/bind1/Makefile.am | 51 | ||||
-rwxr-xr-x | externals/grill/flext/tutorial/bind1/bind1.mcp | bin | 148873 -> 0 bytes | |||
-rw-r--r-- | externals/grill/flext/tutorial/bind1/bind1.vcproj | 177 | ||||
-rw-r--r-- | externals/grill/flext/tutorial/bind1/main.cpp | 134 | ||||
-rw-r--r-- | externals/grill/flext/tutorial/bind1/package.txt | 2 |
5 files changed, 0 insertions, 364 deletions
diff --git a/externals/grill/flext/tutorial/bind1/Makefile.am b/externals/grill/flext/tutorial/bind1/Makefile.am deleted file mode 100644 index 085de2d2..00000000 --- a/externals/grill/flext/tutorial/bind1/Makefile.am +++ /dev/null @@ -1,51 +0,0 @@ -# -# automake template -# added by tim blechmann -# - -NAME = bind1 - -BUILT_SOURCES = main.cpp - -EXTRA_DIST = main.cpp \ - $(NAME).mcp \ - $(NAME).vcproj - -CXXFLAGS = @CXXFLAGS@ \ - @OPT_FLAGS@ \ - @INCLUDEDIR@ \ - -I../../source \ - $(DEFS) \ - -DFLEXT_SHARED - -LDFLAGS = @DYNAMIC_LDFLAGS@ @LDFLAGS@ \ - $(patsubst %,-framework %,$(FRAMEWORKS)) - -LIBS = @LIBS@ -lflext-pd - -FRAMEWORKS = @FRAMEWORKS@ - -TARGETDIR = @TARGETDIR@ - -TARGET =$(NAME).@EXTENSION@ - -OBJECTS = $(patsubst %.cpp,./%.@OBJEXT@,$(BUILT_SOURCES)) - -SYSDIR = @SYSDIR@ - - -# ----------------------------- targets -------------------------------- - -all-local: $(OBJECTS) - $(CXX) $(LDFLAGS) ./*.@OBJEXT@ $(LIBS) -o ../$(TARGETDIR)/$(TARGET) - strip --strip-unneeded ../$(TARGETDIR)/$(TARGET) - -./%.@OBJEXT@ : %.cpp - $(CXX) -c $(CXXFLAGS) $< -o $@ - -clean-local: - rm -f ../$(TARGETDIR)/$(TARGET) - rm -f ./$(OBJECTS) - -install-exec-local: - install ../$(TARGET) $(SYSDIR)extra diff --git a/externals/grill/flext/tutorial/bind1/bind1.mcp b/externals/grill/flext/tutorial/bind1/bind1.mcp Binary files differdeleted file mode 100755 index 750d275b..00000000 --- a/externals/grill/flext/tutorial/bind1/bind1.mcp +++ /dev/null diff --git a/externals/grill/flext/tutorial/bind1/bind1.vcproj b/externals/grill/flext/tutorial/bind1/bind1.vcproj deleted file mode 100644 index b0a3a2da..00000000 --- a/externals/grill/flext/tutorial/bind1/bind1.vcproj +++ /dev/null @@ -1,177 +0,0 @@ -<?xml version="1.0" encoding="Windows-1252"?> -<VisualStudioProject - ProjectType="Visual C++" - Version="7.10" - Name="bind1" - SccProjectName="max/flext/tutorial/bind1" - SccAuxPath="" - SccLocalPath="." - SccProvider="MSSCCI:Jalindi Igloo"> - <Platforms> - <Platform - Name="Win32"/> - </Platforms> - <Configurations> - <Configuration - Name="Debug|Win32" - OutputDirectory=".\msvc-debug" - IntermediateDirectory=".\msvc-debug" - ConfigurationType="2" - UseOfMFC="0" - ATLMinimizesCRunTimeLibraryUsage="FALSE" - CharacterSet="2"> - <Tool - Name="VCCLCompilerTool" - Optimization="0" - AdditionalIncludeDirectories="c:\programme\audio\pd\src,..\..\source" - PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;PD" - BasicRuntimeChecks="3" - RuntimeLibrary="5" - UsePrecompiledHeader="2" - PrecompiledHeaderFile=".\msvc-debug/bind1.pch" - AssemblerListingLocation=".\msvc-debug/" - ObjectFile=".\msvc-debug/" - ProgramDataBaseFileName=".\msvc-debug/" - BrowseInformation="1" - BrowseInformationFile=".\msvc-debug/" - WarningLevel="3" - SuppressStartupBanner="TRUE" - DebugInformationFormat="4" - CompileAs="0"/> - <Tool - Name="VCCustomBuildTool"/> - <Tool - Name="VCLinkerTool" - AdditionalDependencies="pd.lib flext_d-pdwin.lib" - OutputFile="msvc-debug/bind1.dll" - LinkIncremental="1" - SuppressStartupBanner="TRUE" - AdditionalLibraryDirectories="..\..\pd-msvc" - GenerateDebugInformation="TRUE" - ProgramDatabaseFile=".\msvc-debug/bind1.pdb" - ImportLibrary=".\msvc-debug/bind1.lib" - TargetMachine="1"/> - <Tool - Name="VCMIDLTool" - PreprocessorDefinitions="_DEBUG" - MkTypLibCompatible="TRUE" - SuppressStartupBanner="TRUE" - TargetEnvironment="1" - TypeLibraryName=".\msvc-debug/bind1.tlb" - HeaderFileName=""/> - <Tool - Name="VCPostBuildEventTool"/> - <Tool - Name="VCPreBuildEventTool"/> - <Tool - Name="VCPreLinkEventTool"/> - <Tool - Name="VCResourceCompilerTool" - PreprocessorDefinitions="_DEBUG" - Culture="3079"/> - <Tool - Name="VCWebServiceProxyGeneratorTool"/> - <Tool - Name="VCXMLDataGeneratorTool"/> - <Tool - Name="VCWebDeploymentTool"/> - <Tool - Name="VCManagedWrapperGeneratorTool"/> - <Tool - Name="VCAuxiliaryManagedWrapperGeneratorTool"/> - </Configuration> - <Configuration - Name="Release|Win32" - OutputDirectory=".\msvc" - IntermediateDirectory=".\msvc" - ConfigurationType="2" - UseOfMFC="0" - ATLMinimizesCRunTimeLibraryUsage="FALSE" - CharacterSet="2"> - <Tool - Name="VCCLCompilerTool" - Optimization="2" - InlineFunctionExpansion="1" - AdditionalIncludeDirectories="c:\programme\audio\pd\src,..\..\source" - PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;PD" - StringPooling="TRUE" - RuntimeLibrary="4" - EnableFunctionLevelLinking="TRUE" - UsePrecompiledHeader="2" - PrecompiledHeaderFile=".\msvc/bind1.pch" - AssemblerListingLocation=".\msvc/" - ObjectFile=".\msvc/" - ProgramDataBaseFileName=".\msvc/" - WarningLevel="3" - SuppressStartupBanner="TRUE" - CompileAs="0"/> - <Tool - Name="VCCustomBuildTool"/> - <Tool - Name="VCLinkerTool" - AdditionalDependencies="pd.lib flext-pdwin.lib" - OutputFile="../pd-msvc/bind1.dll" - LinkIncremental="1" - SuppressStartupBanner="TRUE" - AdditionalLibraryDirectories="..\..\pd-msvc" - ProgramDatabaseFile=".\msvc/bind1.pdb" - ImportLibrary=".\msvc/bind1.lib" - TargetMachine="1"/> - <Tool - Name="VCMIDLTool" - PreprocessorDefinitions="NDEBUG" - MkTypLibCompatible="TRUE" - SuppressStartupBanner="TRUE" - TargetEnvironment="1" - TypeLibraryName=".\msvc/bind1.tlb" - HeaderFileName=""/> - <Tool - Name="VCPostBuildEventTool"/> - <Tool - Name="VCPreBuildEventTool"/> - <Tool - Name="VCPreLinkEventTool"/> - <Tool - Name="VCResourceCompilerTool" - PreprocessorDefinitions="NDEBUG" - Culture="3079"/> - <Tool - Name="VCWebServiceProxyGeneratorTool"/> - <Tool - Name="VCXMLDataGeneratorTool"/> - <Tool - Name="VCWebDeploymentTool"/> - <Tool - Name="VCManagedWrapperGeneratorTool"/> - <Tool - Name="VCAuxiliaryManagedWrapperGeneratorTool"/> - </Configuration> - </Configurations> - <References> - </References> - <Files> - <File - RelativePath="main.cpp"> - <FileConfiguration - Name="Debug|Win32"> - <Tool - Name="VCCLCompilerTool" - Optimization="0" - AdditionalIncludeDirectories="" - PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_MBCS;_USRDLL;PD;$(NoInherit)" - BasicRuntimeChecks="3" - BrowseInformation="1"/> - </FileConfiguration> - <FileConfiguration - Name="Release|Win32"> - <Tool - Name="VCCLCompilerTool" - Optimization="2" - AdditionalIncludeDirectories="" - PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_MBCS;_USRDLL;PD;$(NoInherit)"/> - </FileConfiguration> - </File> - </Files> - <Globals> - </Globals> -</VisualStudioProject> diff --git a/externals/grill/flext/tutorial/bind1/main.cpp b/externals/grill/flext/tutorial/bind1/main.cpp deleted file mode 100644 index debfa68a..00000000 --- a/externals/grill/flext/tutorial/bind1/main.cpp +++ /dev/null @@ -1,134 +0,0 @@ -/* -flext tutorial - bind 1 - -Copyright (c) 2003 Thomas Grill (xovo@gmx.net) -For information on usage and redistribution, and for a DISCLAIMER OF ALL -WARRANTIES, see the file, "license.txt," in this distribution. - -------------------------------------------------------------------------- - -This is an example of a simple object demonstrating method to symbol binding and message forwarding -*/ - - -// include flext header -#include <flext.h> - -// check for appropriate flext version -#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 400) -#error You need at least flext version 0.4.0 -#endif - - -// define the class that stands for a pd/Max object - -class bind1: - // inherit from basic flext class - public flext_base -{ - // obligatory flext header (class name,base class name) featuring a setup function - FLEXT_HEADER_S(bind1,flext_base,setup) - -public: - // constructor with no arguments - bind1() - { - // define inlets: - // first inlet must always be of type anything (or signal for dsp objects) - AddInAnything("message inlet"); // add one inlet for any message - AddInAnything("forwarding inlet"); // add one inlet for any message - - AddOutAnything("bound message"); // output received bound message - } - - /* - no destructor necessary here: - flext frees all eventually remaining bound symbols when the object is destroyed - (but NOT the data that can be passed via the FLEXT_BINDMETHOD call!) - */ - -protected: - const t_symbol *bufname; - buffer *buf; - - // bind object - void m_bind(const t_symbol *s) - { - if(!Bind(s)) { - post("%s (%s) - Binding failed",thisName(),GetString(thisTag())); - } - } - - // unbind object - void m_unbind(const t_symbol *s) - { - if(!Unbind(s)) { - post("%s (%s) - Binding failed",thisName(),GetString(thisTag())); - } - } - - // bind method - void m_bindmethod(const t_symbol *s) - { - if(!FLEXT_BINDMETHOD(s,m_bound,NULL)) { - post("%s (%s) - Binding failed",thisName(),GetString(thisTag())); - } - } - - // unbind method - void m_unbindmethod(const t_symbol *s) - { - if(!FLEXT_UNBINDMETHOD(s)) { - post("%s (%s) - Binding failed",thisName(),GetString(thisTag())); - } - } - - // forward message - void m_forward(const t_symbol *s,int argc,const t_atom *argv) - { - Forward(s,argc,argv); - } - - // method for symbol-bound messages - void m_bound(const t_symbol *sym,int argc,const t_atom *argv,void *data) - { - ToOutAnything(0,sym,argc,argv); - } - - // method for binding test - void m_test(float value) - { - post("%s - TEST METHOD: value %f",thisName(),value); - } - -private: - static void setup(t_classid c) - { - // register methods - - FLEXT_CADDMETHOD_(c,0,"bind",m_bind); // register method "bind" for inlet 0 - FLEXT_CADDMETHOD_(c,0,"unbind",m_unbind); // register method "unbind" for inlet 0 - FLEXT_CADDMETHOD_(c,0,"bindmethod",m_bindmethod); // register method "bindmethod" for inlet 0 - FLEXT_CADDMETHOD_(c,0,"unbindmethod",m_unbindmethod); // register method "unbindmethod" for inlet 0 - - FLEXT_CADDMETHOD_(c,0,"test",m_test); // register method m_test for inlet 0 - - FLEXT_CADDMETHOD(c,1,m_forward); // register method m_forward for inlet 1 - } - - FLEXT_CALLBACK_S(m_bind) // wrapper for method m_bind (with symbol argument) - FLEXT_CALLBACK_S(m_unbind) // wrapper for method m_unbind (with symbol argument) - FLEXT_CALLBACK_S(m_bindmethod) // wrapper for method m_bindmethod (with symbol argument) - FLEXT_CALLBACK_S(m_unbindmethod) // wrapper for method m_unbindmethod (with symbol argument) - - FLEXT_CALLBACK_A(m_forward) // wrapper for method m_forward (with anything argument) - - FLEXT_CALLBACK_AX(m_bound) // wrapper for method m_bound (anything+data arguments) - FLEXT_CALLBACK_F(m_test) // wrapper for method m_test (one float argument) -}; - -// instantiate the class -FLEXT_NEW("bind1",bind1) - - - diff --git a/externals/grill/flext/tutorial/bind1/package.txt b/externals/grill/flext/tutorial/bind1/package.txt deleted file mode 100644 index c7e82359..00000000 --- a/externals/grill/flext/tutorial/bind1/package.txt +++ /dev/null @@ -1,2 +0,0 @@ -NAME=bind1
-SRCS=main.cpp
|