reapack

Package manager for REAPER
Log | Files | Refs | Submodules | README | LICENSE

commit 2ffc4afc93fcc236949eeb00a4c267d69be7bf0b
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Sun, 22 Nov 2015 15:25:06 -0500

initial commit

Diffstat:
A.gitignore | 6++++++
AREADME.md | 27+++++++++++++++++++++++++++
ATupfile | 14++++++++++++++
ATupfile.ini | 0
Asrc/main.cpp | 11+++++++++++
Avendor/.gitkeep | 0
6 files changed, 58 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -0,0 +1,6 @@ +.DS_Store +.tup/ +bin/ +build/ +vendor/reaper*.h +vendor/WDL/ diff --git a/README.md b/README.md @@ -0,0 +1,27 @@ +# ReaPack: Package Manager for REAPER + +## Build Setup + +Download [reaper_plugin.h](http://www.reaper.fm/sdk/plugin/reaper_plugin.h), save reaper_plugin_functions.h ([developer] Write C++ API functions header) and clone [WDL](http://www-dev.cockos.com/wdl/WDL.git) in the `vendor` directory. + +The `vendor` directory structure should be as follow: + +``` +reapack> tree vendor +vendor +├── WDL/ +│   └── WDL/ +│   ├── MersenneTwister.h +│   ├── adpcm_decode.h +│   ├── adpcm_encode.h +│   ├── assocarray.h +│   └── ... +├── reaper_plugin.h +└── reaper_plugin_functions.h +``` + +### OS X + +1. Install [tup](http://gittup.org/tup/) and Xcode Command Line Tools +2. Run `tup` from this directory +3. Copy or link bin/reapack.dylib to REAPER's extension directory diff --git a/Tupfile b/Tupfile @@ -0,0 +1,14 @@ +CXX := c++ + +CXXFLAGS := -Wall -Wextra -Werror -Wno-unused-parameter -pipe -fPIC +CXXFLAGS += -fdiagnostics-color +CXXFLAGS += -O2 -std=c++14 +CXXFLAGS += -Ivendor/ -Ivendor/WDL/WDL/ + +LDFLAGS := -shared + +!build = |> $(CXX) $(CXXFLAGS) -c %f -o %o |> +!link = |> $(CXX) $(CXXFLAGS) %f $(LDFLAGS) -o %o |> + +: foreach src/*.cpp |> !build |> build/%B.o +: build/*.o |> !link |> bin/reapack.dylib diff --git a/Tupfile.ini b/Tupfile.ini diff --git a/src/main.cpp b/src/main.cpp @@ -0,0 +1,11 @@ +#include "reaper_plugin.h" + + +extern "C" REAPER_PLUGIN_DLL_EXPORT int REAPER_PLUGIN_ENTRYPOINT( + REAPER_PLUGIN_HINSTANCE instance, reaper_plugin_info_t *rec) +{ + if(!rec || rec->caller_version != REAPER_PLUGIN_VERSION || !rec->GetFunc) + return 0; + + return 1; +} diff --git a/vendor/.gitkeep b/vendor/.gitkeep