-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgulpfile.ts
35 lines (30 loc) · 965 Bytes
/
gulpfile.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import * as gulp from 'gulp';
import * as msbuild from 'gulp-msbuild';
import * as message from 'gulp-message';
import * as path from 'path';
const vsProject = './skype-native.sln';
const paths = {
nativeLibs: 'lib/native/'
};
/**
* Build the native C# project components.
*/
gulp.task('compile:native', () => {
const build = () =>
gulp.src(vsProject)
.pipe(msbuild({
targets: ['Clean', 'Build'],
configuration: 'Release',
toolsVersion: 4.0,
properties: {
OutDir: path.join(__dirname, paths.nativeLibs, 'win32')
},
errorOnFail: true,
emitEndEvent: true,
stdout: true,
verbosity: 'minimal'
}));
const skip = () =>
message.warn('Unsupported build platform. Using prebuilt dll.');
return process.platform === 'win32' ? build() : skip();
});