1{ 2 "folders": 3 [ 4 { 5 "follow_symlinks": true, 6 "path": "." 7 } 8 ], 9 10 "build_systems": 11 [ 12 { 13 "name": "[Hana] Build current file", 14 "selector": "source.c++", 15 "working_dir": "$project_path/build", 16 "cmd": ["ruby" 17 , "-r", "pathname" 18 , "-e", "project = Pathname.new('${project_path}')" 19 , "-e", "file = Pathname.new('${file}').relative_path_from(project)" 20 , "-e", "target = file.sub_ext('').to_s.gsub('/', '.')" 21 , "-e", "system('/usr/local/bin/cmake', '--build', '$project_path/build', '--target', target)" 22 ], 23 "variants": [ 24 { 25 "name": "Primary Quick Build", 26 "cmd": ["ruby" 27 , "-r", "pathname" 28 , "-e", "project = Pathname.new('${project_path}')" 29 , "-e", "file = Pathname.new('${file}').relative_path_from(project)" 30 , "-e", "target = file.sub_ext('').to_s.gsub('/', '.')" 31 , "-e", "system('/usr/local/bin/cmake', '--build', '$project_path/build', '--target', target)" 32 , "-e", "system('/usr/local/bin/ctest', '-V', '--output-on-failure', '-R', target)" 33 ] 34 } 35 ] 36 } 37 ] 38} 39