-
Notifications
You must be signed in to change notification settings - Fork 0
/
krpm.config.js
41 lines (39 loc) · 1000 Bytes
/
krpm.config.js
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
36
37
38
39
40
41
module.exports = {
platforms: ['x86', 'x64', 'js'],
static: true,
files: [
'KR.props',
['KR3/kr3.natvis', 'kr3.natvis'],
['.', '.', ['batch/*', '**/*.h', '**/*.inl', '!tester/**/*', '!KRThird/**/*', '!packages']],
['KRThird/angle-bin', 'KRThird/angle-bin', ['**/*']]
],
each(krb)
{
krb.vsbuild('KEN.sln');
var bin;
if (krb.platform.shortName === 'js')
{
bin = [
[['KR3.bc', 'KRNew.bc'], 'KR3.bc'],
'KRApp.bc',
'KRGame.bc'
];
}
else
{
const libEGL = `../../../KRThird/angle/lib/${krb.platform.name}/${krb.config.name}/libEGL.lib`;
const libGLESv2 = `../../../KRThird/angle/lib/${krb.platform.name}/${krb.config.name}/libGLESv2.lib`;
bin = [
[['KR3.lib', 'KRNew.lib'], 'KR3.lib'],
[['KRApp.lib', libEGL, libGLESv2], 'KRApp.lib'],
'KRSound.lib',
'KRGame.lib',
'KRMySQL.lib',
'KRWin.lib',
];
}
krb.copy(
`bin/${krb.platform.shortName}/${krb.config.name}`,
`${krb.libExportDir}/${krb.config.name}`, bin);
}
};