|
6 | 6 | "targets": [ |
7 | 7 | { |
8 | 8 | "target_name": "occ", |
9 | | - "cflags!": [ |
10 | | - "-fno-exceptions" |
11 | | - ], |
12 | | - "cflags_cc!": [ |
13 | | - "-fno-exceptions" |
14 | | - ], |
15 | | - "cflags": [ |
16 | | - "-O3", |
17 | | - "-frtti", |
18 | | - "-Wno-ignored-qualifiers", |
19 | | - "-Wno-unused-variable", |
20 | | - "-Wno-reorder", |
21 | | - "-Wno-extra" |
22 | | - ], |
23 | | - "cflags_cc": [ |
24 | | - "-Wl,-rpath,\${ORIGIN}", |
25 | | - "-O3", |
26 | | - "-frtti", |
27 | | - "-Wno-ignored-qualifiers", |
28 | | - "-Wno-unused-variable", |
29 | | - "-Wno-reorder", |
30 | | - "-Wno-extra" |
31 | | - ], |
| 9 | + |
| 10 | + "conditions": [ |
| 11 | + [ |
| 12 | + "OS=='linux'", { |
| 13 | + "cflags!": [ |
| 14 | + "-fno-exceptions" |
| 15 | + ], |
| 16 | + "cflags_cc!": [ |
| 17 | + "-fno-exceptions" |
| 18 | + ], |
| 19 | + "cflags": [ |
| 20 | + "-O3", |
| 21 | + "-frtti", |
| 22 | + "-Wno-ignored-qualifiers", |
| 23 | + "-Wno-unused-variable", |
| 24 | + "-Wno-reorder", |
| 25 | + "-Wno-extra" |
| 26 | + ], |
| 27 | + "cflags_cc": [ |
| 28 | + "-Wl,-rpath,\${ORIGIN}", |
| 29 | + "-O3", |
| 30 | + "-frtti", |
| 31 | + "-Wno-ignored-qualifiers", |
| 32 | + "-Wno-unused-variable", |
| 33 | + "-Wno-reorder", |
| 34 | + "-Wno-extra" |
| 35 | + ], |
| 36 | + |
| 37 | + "library_dirs": [ |
| 38 | + "<!(pwd)/occt-7.1.0/lib", |
| 39 | + ], |
| 40 | + "include_dirs": [ |
| 41 | + "<!(pwd)/occt-7.1.0/include/opencascade", |
| 42 | + "<!(node -e \"require('nan')\")" |
| 43 | + ], |
| 44 | + |
| 45 | + } |
| 46 | + ], |
| 47 | + [ |
| 48 | + "OS=='win'", { |
| 49 | + "library_dirs": [ |
| 50 | + "./occt-7.1.0/win64/vc14/lib", |
| 51 | + ], |
| 52 | + "include_dirs": [ |
| 53 | + "./occt-7.1.0/inc", |
| 54 | + "<!(node -e \"require('nan')\")" |
| 55 | + ], |
| 56 | + } |
| 57 | + ] |
| 58 | + ], |
| 59 | + |
32 | 60 | "xcode_settings": { |
33 | 61 | "GCC_ENABLE_CPP_EXCEPTIONS": "YES" |
34 | 62 | }, |
|
83 | 111 | "OCE_HAVE_IOSTREAM", |
84 | 112 | "OCE_HAVE_CLIMITS" |
85 | 113 | ], |
86 | | - "library_dirs": [ |
87 | | - "<!(pwd)/occt-7.1.0/lib", |
88 | | - ], |
89 | | - "include_dirs": [ |
90 | | - "<!(pwd)/occt-7.1.0/include/opencascade", |
91 | | - "<!(node -e \"require('nan')\")" |
92 | | - ], |
93 | 114 | "libraries+": [ |
94 | 115 | "-Wl,-rpath=<(OOO)", |
95 | 116 | "-lTKBO<(dbg)", |
|
115 | 136 | "-lTKSTEPAttr<(dbg)", |
116 | 137 | "-lTKSTEPBase<(dbg)", |
117 | 138 | "-lTKFillet<(dbg)", |
118 | | - "-lTKXSBase<(dbg)" |
| 139 | + "-lTKXSBase<(dbg)", |
| 140 | + "-lTKSTL<(dbg)", |
119 | 141 | ], |
120 | 142 | "other_libraries": [ |
121 | | - "-lTKSTL<(dbg)", |
122 | 143 | "-lTKTObj<(dbg)", |
123 | 144 | "-lTKLCAF<(dbg)" |
124 | 145 | ], |
|
205 | 226 | "OS=='win'", |
206 | 227 | { |
207 | 228 | "variables": { |
208 | | - "bin_folder": '<!(ECHO %PREFIX%)\<!(ECHO %ARCH%)/bin' |
| 229 | + "bin_folder": 'occt-7.1.0/win64/vc14/bin' |
209 | 230 | }, |
210 | 231 | "copies": [ |
211 | 232 | { |
|
0 commit comments