diff --git a/src/helpers/languages.js b/src/helpers/languages.js index 4028ddc..fb1445f 100644 --- a/src/helpers/languages.js +++ b/src/helpers/languages.js @@ -65,6 +65,14 @@ module.exports = { ); }, + getProtocInfo: () => { + utils.log('trace', 'getProtocInfo'); + return Promise.all([ + utils.run('protoc --version').then(utils.findVersion), + utils.run('which protoc'), + ]).then(v => utils.determineFound('Protoc', v[0], v[1])); + }, + getPythonInfo: () => { utils.log('trace', 'getPythonInfo'); return Promise.all([ diff --git a/src/helpers/utilities.js b/src/helpers/utilities.js index 64a7531..c3b55e7 100644 --- a/src/helpers/utilities.js +++ b/src/helpers/utilities.js @@ -1,6 +1,14 @@ const utils = require('../utils'); module.exports = { + getBazelInfo: () => { + utils.log('trace', 'getBazelInfo'); + return Promise.all([ + utils.run('bazel --version').then(utils.findVersion), + utils.run('which bazel'), + ]).then(v => utils.determineFound('Bazel', v[0], v[1])); + }, + getCMakeInfo: () => { utils.log('trace', 'getCMakeInfo'); return Promise.all([ diff --git a/src/presets.js b/src/presets.js index b2045f2..a274fad 100644 --- a/src/presets.js +++ b/src/presets.js @@ -15,7 +15,17 @@ module.exports = { 'RubyGems', 'Yum', ], - Utilities: ['CMake', 'Make', 'GCC', 'Git', 'Clang', 'Mercurial', 'Subversion', 'FFmpeg'], + Utilities: [ + 'Bazel', + 'CMake', + 'Make', + 'GCC', + 'Git', + 'Clang', + 'Mercurial', + 'Subversion', + 'FFmpeg', + ], Servers: ['Apache', 'Nginx'], Virtualization: ['Docker', 'Parallels', 'VirtualBox', 'VMware Fusion'], SDKs: ['iOS SDK', 'Android SDK'], @@ -41,6 +51,7 @@ module.exports = { 'Java', 'Perl', 'PHP', + 'Protoc', 'Python', 'Python3', 'R',