# HG changeset patch # User Liam Donovan # Date 1466371714 -3600 # Node ID d2dfa1718edb790aaa41fc69763b48f127ee2685 # Parent 5e79364c9b1d54d665497442017aa668aae2dd31 Added core example project, which allows editing of the core Bela source in the IDE. It requires 'building' in update_board diff -r 5e79364c9b1d -r d2dfa1718edb examples/core/link_core.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/core/link_core.sh Sun Jun 19 22:28:34 2016 +0100 @@ -0,0 +1,2 @@ +ln -s /root/Bela/core/ /root/Bela/examples/core/source +ln -s /root/Bela/include/ /root/Bela/examples/core/include \ No newline at end of file diff -r 5e79364c9b1d -r d2dfa1718edb examples/core/render.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/core/render.cpp Sun Jun 19 22:28:34 2016 +0100 @@ -0,0 +1,16 @@ +#include + +bool setup(BelaContext *context, void *userData) +{ + return true; +} + +void render(BelaContext *context, void *userData) +{ + +} + +void cleanup(BelaContext *context, void *userData) +{ + +} \ No newline at end of file diff -r 5e79364c9b1d -r d2dfa1718edb scripts/update_board --- a/scripts/update_board Sun Jun 19 21:52:07 2016 +0100 +++ b/scripts/update_board Sun Jun 19 22:28:34 2016 +0100 @@ -1,4 +1,4 @@ -#!/bin/sh +\#!/bin/sh # # This script copies the core Bela files to the BeagleBone Black # in preparation for building projects. It will remove any existing @@ -150,6 +150,10 @@ #ssh $BBB_ADDRESS "cd $BBB_BELA_HOME; doxygen &> /dev/null" error_handler $? "\nError while generating Doxygen documentation\n" +printf "Building example projects..." +ssh $BBB_ADDRESS "sh $BBB_BELA_HOME/examples/core/link_core.sh" +error_handler $? "\nError while building example projects\n" + #------------- #Installing IDE [ $ALWAYS_YES -eq 0 ] && ALWAYS_YES_FLAG= || ALWAYS_YES_FLAG="-y"