Mercurial > games > semicongine
comparison src/glslang/glslang_c_interface.nim @ 10:0660ba9d1930
did: make it work on windows
author | sam <sam@basx.dev> |
---|---|
date | Sat, 24 Dec 2022 22:32:46 +0700 |
parents | 213fdf8d31dd |
children |
comparison
equal
deleted
inserted
replaced
8:1134f41a49e9 | 10:0660ba9d1930 |
---|---|
11 else: | 11 else: |
12 const libversion = "debug" | 12 const libversion = "debug" |
13 | 13 |
14 | 14 |
15 # required to link the GLSL compiler | 15 # required to link the GLSL compiler |
16 {.passl: &"-Lthirdparty/lib/glslang/{platform}_{libversion}" .} | 16 when defined(linux): |
17 {.passl: &"-Lthirdparty/lib/spirv-tools/{platform}_{libversion}" .} | 17 {.passl: &"-Lthirdparty/lib/glslang/{platform}_{libversion}" .} |
18 | 18 {.passl: &"-Lthirdparty/lib/spirv-tools/{platform}_{libversion}" .} |
19 {.passl: "-lglslang" .} | 19 {.passl: "-lglslang" .} |
20 {.passl: "-lglslang-default-resource-limits" .} | 20 {.passl: "-lglslang-default-resource-limits" .} |
21 {.passl: "-lHLSL" .} | 21 {.passl: "-lHLSL" .} |
22 {.passl: "-lMachineIndependent" .} | 22 {.passl: "-lMachineIndependent" .} |
23 {.passl: "-lGenericCodeGen" .} | 23 {.passl: "-lGenericCodeGen" .} |
24 {.passl: "-lOSDependent" .} | 24 {.passl: "-lOSDependent" .} |
25 {.passl: "-lOGLCompiler" .} | 25 {.passl: "-lOGLCompiler" .} |
26 {.passl: "-lSPIRV" .} | 26 {.passl: "-lSPIRV" .} |
27 {.passl: "-lSPIRV-Tools-opt" .} | 27 {.passl: "-lSPIRV-Tools-opt" .} |
28 {.passl: "-lSPIRV-Tools" .} | 28 {.passl: "-lSPIRV-Tools" .} |
29 {.passl: "-lSPIRV-Tools-diff" .} | 29 {.passl: "-lSPIRV-Tools-diff" .} |
30 {.passl: "-lSPIRV-Tools-fuzz" .} | 30 {.passl: "-lSPIRV-Tools-fuzz" .} |
31 {.passl: "-lSPIRV-Tools-link" .} | 31 {.passl: "-lSPIRV-Tools-link" .} |
32 {.passl: "-lSPIRV-Tools-lint" .} | 32 {.passl: "-lSPIRV-Tools-lint" .} |
33 {.passl: "-lSPIRV-Tools-opt" .} | 33 {.passl: "-lSPIRV-Tools-opt" .} |
34 {.passl: "-lSPIRV-Tools-reduce" .} | 34 {.passl: "-lSPIRV-Tools-reduce" .} |
35 | 35 |
36 {.passl: "-lstdc++" .} | 36 {.passl: "-lstdc++" .} |
37 {.passl: "-lm" .} | 37 {.passl: "-lm" .} |
38 when defined(windows): | |
39 when libversion == "release": | |
40 const LIB_POSTFIX = ".lib" | |
41 when libversion == "debug": | |
42 const LIB_POSTFIX = "d.lib" | |
43 | |
44 {.passl: "/link" .} | |
45 {.passl: &"/LIBPATH:./thirdparty/lib/glslang/{platform}_{libversion}" .} | |
46 {.passl: &"/LIBPATH:./thirdparty/lib/spirv-tools/{platform}_{libversion}" .} | |
47 {.passl: "glslang" & LIB_POSTFIX .} | |
48 {.passl: "glslang-default-resource-limits" & LIB_POSTFIX .} | |
49 {.passl: "HLSL" & LIB_POSTFIX .} | |
50 {.passl: "MachineIndependent" & LIB_POSTFIX .} | |
51 {.passl: "GenericCodeGen" & LIB_POSTFIX .} | |
52 {.passl: "OSDependent" & LIB_POSTFIX .} | |
53 {.passl: "OGLCompiler" & LIB_POSTFIX .} | |
54 {.passl: "SPIRV" & LIB_POSTFIX .} | |
55 {.passl: "SPIRV-Tools-opt.lib" .} | |
56 {.passl: "SPIRV-Tools.lib" .} | |
57 {.passl: "SPIRV-Tools-diff.lib" .} | |
58 {.passl: "SPIRV-Tools-fuzz.lib" .} | |
59 {.passl: "SPIRV-Tools-link.lib" .} | |
60 {.passl: "SPIRV-Tools-lint.lib" .} | |
61 {.passl: "SPIRV-Tools-opt.lib" .} | |
62 {.passl: "SPIRV-Tools-reduce.lib" .} | |
63 | |
64 | |
38 | 65 |
39 import | 66 import |
40 glslang_c_shader_types | 67 glslang_c_shader_types |
41 | 68 |
42 type | 69 type |