mirror of
https://github.com/electron/node-gyp.git
synced 2025-09-15 13:43:40 +02:00
Clean the Debug and Release dirs on Windows.
This commit is contained in:
parent
b2ee4cf8bf
commit
9d23e05691
1 changed files with 4 additions and 1 deletions
|
@ -9,7 +9,7 @@ exports.usage = 'Removes any generated build files and the "out" dir'
|
||||||
|
|
||||||
var rm = require('rimraf')
|
var rm = require('rimraf')
|
||||||
, glob = require('glob')
|
, glob = require('glob')
|
||||||
, targets = [ 'out' ]
|
, targets = []
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add the platform-specific targets to remove.
|
* Add the platform-specific targets to remove.
|
||||||
|
@ -17,10 +17,13 @@ var rm = require('rimraf')
|
||||||
|
|
||||||
if (process.platform == 'win32') {
|
if (process.platform == 'win32') {
|
||||||
// Remove MSVC project files
|
// Remove MSVC project files
|
||||||
|
targets.push('Debug')
|
||||||
|
targets.push('Release')
|
||||||
targets.push('*.sln')
|
targets.push('*.sln')
|
||||||
targets.push('*.vcxproj*')
|
targets.push('*.vcxproj*')
|
||||||
} else {
|
} else {
|
||||||
// Remove Makefile project files
|
// Remove Makefile project files
|
||||||
|
targets.push('out')
|
||||||
targets.push('Makefile')
|
targets.push('Makefile')
|
||||||
targets.push('*.Makefile')
|
targets.push('*.Makefile')
|
||||||
targets.push('*.target.mk')
|
targets.push('*.target.mk')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue