-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathkincfile.js
77 lines (63 loc) · 2.6 KB
/
kincfile.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
let project = new Project('krafix');
project.useAsLibrary = () => {
project.addDefine('KRAFIX_LIBRARY');
project.cmd = false;
project.debugDir = null;
project.kore = true;
};
project.addDefine('SPIRV_CROSS_KRAFIX');
project.addDefine('ENABLE_HLSL');
// glslang defines to enable vendor-specific extensions
project.addDefine('NV_EXTENSIONS');
project.addDefine('AMD_EXTENSIONS');
project.setCmd();
project.setDebugDir('tests');
project.kore = false;
project.cpp11 = true;
project.addExclude('.git/**');
project.addExclude('glslang/.git/**');
project.addExclude('build/**');
project.addFile('Sources/**');
project.addFile('sourcemap.cpp/src/**.hpp');
project.addFile('sourcemap.cpp/deps/json/json.cpp');
project.addFile('sourcemap.cpp/deps/cencode/cencode.c');
project.addFile('sourcemap.cpp/deps/cencode/cdecode.c');
project.addFile('sourcemap.cpp/src/map_line.cpp');
project.addFile('sourcemap.cpp/src/map_col.cpp');
project.addFile('sourcemap.cpp/src/mappings.cpp');
project.addFile('sourcemap.cpp/src/pos_idx.cpp');
project.addFile('sourcemap.cpp/src/pos_txt.cpp');
project.addFile('sourcemap.cpp/src/format/v3.cpp');
project.addFile('sourcemap.cpp/src/document.cpp');
project.addFile('glslang/StandAlone/ResourceLimits.cpp');
project.addFile('glslang/glslang/GenericCodeGen/**');
project.addFile('glslang/glslang/MachineIndependent/**');
project.addFile('glslang/glslang/Include/**');
project.addFile('glslang/hlsl/**');
project.addFile('glslang/OGLCompilersDLL/**');
project.addFile('glslang/SPIRV/**');
project.addFiles('SPIRV-Cross/*.cpp', 'SPIRV-Cross/*.hpp', 'SPIRV-Cross/*.h');
project.addExclude('SPIRV-Cross/main.cpp');
project.addIncludeDir('glslang');
project.addIncludeDir('glslang/glslang');
project.addIncludeDir('glslang/glslang/MachineIndependent');
project.addIncludeDir('glslang/glslang/Include');
project.addIncludeDir('glslang/OGLCompilersDLL');
project.addFiles('SPIRV-Tools/source/*');
project.addFiles('SPIRV-Tools/source/opt/*');
project.addFiles('SPIRV-Tools/source/util/*');
project.addFiles('SPIRV-Tools/source/val/*');
project.addIncludeDir('SPIRV-Tools');
project.addIncludeDir('SPIRV-Tools/include');
project.addIncludeDir('SPIRV-Tools/generated');
project.addIncludeDir('SPIRV-Headers/include');
if (platform === Platform.Windows) {
project.addFile('glslang/glslang/OSDependent/Windows/**');
project.addIncludeDir('glslang/glslang/OSDependent/Windows');
project.addLib('d3dcompiler');
}
else {
project.addFile('glslang/glslang/OSDependent/Unix/**');
project.addIncludeDir('glslang/glslang/OSDependent/Unix');
}
resolve(project);