Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sublime Text 2 Build System for nomdev.rb
{
// nomdev.rb expects and needs to be executed from a project's root directory
"working_dir": "${project_path}",
// At the bare minimum, we need the executable paths to:
// a) Ruby v1.9.x interpreter; b) nomdev.rb; c) CMake v2.6.x+;
// d) build tools (make, clang, etc.)
"path": "${HOME}/Projects/nomdev.git:${HOME}/local/bin:/usr/local/bin:/usr/bin",
// Default build (Command + B)
"cmd": [ "nomdev.rb build --threads 6; nomdev.rb install" ],
// We need shell access in order to execute our build
"shell": true,
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"selector": "source.c, source.c++",
"variants":
[
{
"name": "Clean",
"cmd": [ "nomdev.rb clean; nomdev.rb uninstall; nomdev.rb wipe; nomdev.rb gen --dev --prefix ~/Library/Frameworks" ]
},
{
"name": "Install",
"cmd": [ "nomdev.rb install" ]
},
{
"name": "Uninstall",
"cmd": [ "nomdev.rb uninstall" ]
},
{
"name": "Run",
// Uses helper script at ~/local/bin/Terminal
"cmd": [ "Terminal ${project_path}/build/examples/debug/app" ]
//"cmd": [ "${project_path}/build/examples/debug/fonts" ]
//"cmd": [ "${project_path}/build/examples/debug/${file_base_name}" ]
//"cmd": [ "open -a Terminal ${project_path}/build/examples/debug/${file_base_name}" ]
//"cmd": [ "${project_path}/build/examples/debug/${file_base_name} > ${project_path}/build/examples/debug/${file_base_name}.log" ]
//"cmd": [ "open -a iTerm ${project_path}/build/examples/debug/${file_base_name}" ]
},
{
"name": "docs",
"cmd": [ "nomdev.rb docs" ]
},
{
// Requires Perl & cloc to be in your path
"name": "loc",
"cmd": [ "nomdev.rb loc" ]
},
{} // placeholder
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.