Last active
October 12, 2016 20:50
-
-
Save acarabott/11043968 to your computer and use it in GitHub Desktop.
openFrameworks Sublime Text Build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This lives in your project directory, alongside src/, bin/, config.make, etc | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
cd $DIR | |
make Debug && make RunDebug; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This can live your Packages folder | |
// e.g. Packaages/openFrameworks/openFrameworks.sublime-build | |
{ | |
"cmd": ["../buildAndRun.sh"], | |
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", | |
"selector": "ofApp.cpp" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you use a laptop with bumblebee, and want to use your gfx card it is optimal to use the line
make Debug && optirun make RunDebug;
instead ofmake Debug && make RunDebug;
Also if you put the build script in the same directory as the sublime-build and change the build script to:
you can avoid a couple of problems, like with starting new projects, permissions etc.