From 4ff2429f71ad354673952fe633e7bd0683252d58 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 15 Jul 2014 09:29:41 -0700 Subject: [PATCH] Don't include .cc files from native modules --- build/tasks/build-task.coffee | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/build/tasks/build-task.coffee b/build/tasks/build-task.coffee index b70374040..310a58c1c 100644 --- a/build/tasks/build-task.coffee +++ b/build/tasks/build-task.coffee @@ -63,6 +63,17 @@ module.exports = (grunt) -> ignoredPaths.push "#{_.escapeRegExp(path.join('spellchecker', 'vendor', 'hunspell') + path.sep)}.*" ignoredPaths.push "#{_.escapeRegExp(path.join('build', 'Release') + path.sep)}.*\\.pdb" + # Ignore *.cc files from native modules + ignoredPaths.push "#{_.escapeRegExp(path.join('ctags', 'src') + path.sep)}.*\\.cc*" + ignoredPaths.push "#{_.escapeRegExp(path.join('git-utils', 'src') + path.sep)}.*\\.cc*" + ignoredPaths.push "#{_.escapeRegExp(path.join('keytar', 'src') + path.sep)}.*\\.cc*" + ignoredPaths.push "#{_.escapeRegExp(path.join('nslog', 'src') + path.sep)}.*\\.cc*" + ignoredPaths.push "#{_.escapeRegExp(path.join('oniguruma', 'src') + path.sep)}.*\\.cc*" + ignoredPaths.push "#{_.escapeRegExp(path.join('pathwatcher', 'src') + path.sep)}.*\\.cc*" + ignoredPaths.push "#{_.escapeRegExp(path.join('runas', 'src') + path.sep)}.*\\.cc*" + ignoredPaths.push "#{_.escapeRegExp(path.join('scrollbar-style', 'src') + path.sep)}.*\\.cc*" + ignoredPaths.push "#{_.escapeRegExp(path.join('spellchecker', 'src') + path.sep)}.*\\.cc*" + # Hunspell dictionaries are only not needed on OS X. if process.platform is 'darwin' ignoredPaths.push path.join('spellchecker', 'vendor', 'hunspell_dictionaries')