Skip to content

Commit

Permalink
feat: add bazel and protoc (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
kellycampbell authored Jun 15, 2020
1 parent e9d5320 commit d8715f1
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/helpers/languages.js
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down
8 changes: 8 additions & 0 deletions src/helpers/utilities.js
Original file line number Diff line number Diff line change
@@ -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([
Expand Down
13 changes: 12 additions & 1 deletion src/presets.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand All @@ -41,6 +51,7 @@ module.exports = {
'Java',
'Perl',
'PHP',
'Protoc',
'Python',
'Python3',
'R',
Expand Down

0 comments on commit d8715f1

Please sign in to comment.