2016-03-20 15:52:12 -04:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
#include "ardour/luabindings.h"
|
2016-03-21 14:06:51 -04:00
|
|
|
#include "ardour/revision.h"
|
2016-03-20 15:52:12 -04:00
|
|
|
#include "luainstance.h"
|
|
|
|
|
2016-03-21 14:06:51 -04:00
|
|
|
#ifdef WAF_BUILD
|
|
|
|
#include "gtk2ardour-version.h"
|
|
|
|
#endif
|
|
|
|
|
2016-03-20 15:52:12 -04:00
|
|
|
int main (int argc, char **argv)
|
|
|
|
{
|
|
|
|
luabridge::setPrintBindings (true);
|
|
|
|
LuaState lua;
|
|
|
|
lua_State* L = lua.getState ();
|
|
|
|
#ifdef LUADOCOUT
|
2016-03-21 14:06:51 -04:00
|
|
|
printf ("-- %s\n", ARDOUR::revision);
|
2016-03-20 15:52:12 -04:00
|
|
|
printf ("doc = {\n");
|
|
|
|
#else
|
|
|
|
printf ("[\n");
|
2016-03-21 14:06:51 -04:00
|
|
|
printf ("{\"version\" : \"%s\"},\n\n", ARDOUR::revision);
|
2016-03-20 15:52:12 -04:00
|
|
|
#endif
|
|
|
|
LuaInstance::register_classes (L);
|
|
|
|
ARDOUR::LuaBindings::dsp (L);
|
|
|
|
#ifdef LUADOCOUT
|
|
|
|
printf ("}\n");
|
|
|
|
#else
|
|
|
|
printf ("{} ]\n");
|
|
|
|
#endif
|
|
|
|
return 0;
|
|
|
|
}
|