murgatroid99 | 2d6d330 | 2015-09-21 13:29:40 -0700 | [diff] [blame] | 1 | %YAML 1.2 |
| 2 | --- | |
murgatroid99 | fd994f1 | 2015-10-09 14:02:28 -0700 | [diff] [blame] | 3 | # GRPC Node gyp file |
| 4 | # This currently builds the Node extension and dependencies |
murgatroid99 | 2d6d330 | 2015-09-21 13:29:40 -0700 | [diff] [blame] | 5 | # This file has been automatically generated from a template file. |
| 6 | # Please look at the templates directory instead. |
| 7 | # This file can be regenerated from the template by running |
| 8 | # tools/buildgen/generate_projects.sh |
| 9 | |
Craig Tiller | 6169d5f | 2016-03-31 07:46:18 -0700 | [diff] [blame] | 10 | # Copyright 2015, Google Inc. |
murgatroid99 | 2d6d330 | 2015-09-21 13:29:40 -0700 | [diff] [blame] | 11 | # All rights reserved. |
| 12 | # |
| 13 | # Redistribution and use in source and binary forms, with or without |
| 14 | # modification, are permitted provided that the following conditions are |
| 15 | # met: |
| 16 | # |
| 17 | # * Redistributions of source code must retain the above copyright |
| 18 | # notice, this list of conditions and the following disclaimer. |
| 19 | # * Redistributions in binary form must reproduce the above |
| 20 | # copyright notice, this list of conditions and the following disclaimer |
| 21 | # in the documentation and/or other materials provided with the |
| 22 | # distribution. |
| 23 | # * Neither the name of Google Inc. nor the names of its |
| 24 | # contributors may be used to endorse or promote products derived from |
| 25 | # this software without specific prior written permission. |
| 26 | # |
| 27 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 28 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 29 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 30 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 31 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 32 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 33 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 34 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 35 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 36 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 37 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 38 | |
| 39 | # Some of this file is built with the help of |
| 40 | # https://n8.io/converting-a-c-library-to-gyp/ |
| 41 | { |
murgatroid99 | dc23046 | 2016-10-25 14:12:42 -0700 | [diff] [blame] | 42 | 'variables': { |
murgatroid99 | 1191b72 | 2017-02-08 11:56:52 -0800 | [diff] [blame] | 43 | 'runtime%': 'node', |
| 44 | # UV integration in C core is disabled by default while bugs are ironed |
| 45 | # out. It can be re-enabled for one build by setting the npm config |
| 46 | # variable grpc_uv to true, and it can be re-enabled permanently by |
| 47 | # setting it to true here. |
| 48 | 'grpc_uv%': 'false' |
murgatroid99 | dc23046 | 2016-10-25 14:12:42 -0700 | [diff] [blame] | 49 | }, |
murgatroid99 | 2d6d330 | 2015-09-21 13:29:40 -0700 | [diff] [blame] | 50 | 'target_defaults': { |
murgatroid99 | 2d6d330 | 2015-09-21 13:29:40 -0700 | [diff] [blame] | 51 | 'include_dirs': [ |
murgatroid99 | ca9db40 | 2015-09-21 14:39:09 -0700 | [diff] [blame] | 52 | '.', |
murgatroid99 | 5c56c92 | 2016-01-25 13:32:52 -0800 | [diff] [blame] | 53 | 'include' |
murgatroid99 | a89d9e7 | 2015-10-13 16:03:16 -0700 | [diff] [blame] | 54 | ], |
murgatroid99 | dc23046 | 2016-10-25 14:12:42 -0700 | [diff] [blame] | 55 | 'defines': [ |
murgatroid99 | cb4b2b5 | 2016-10-27 11:30:50 -0700 | [diff] [blame] | 56 | 'GPR_BACKWARDS_COMPATIBILITY_MODE' |
murgatroid99 | dc23046 | 2016-10-25 14:12:42 -0700 | [diff] [blame] | 57 | ], |
murgatroid99 | a89d9e7 | 2015-10-13 16:03:16 -0700 | [diff] [blame] | 58 | 'conditions': [ |
murgatroid99 | 1191b72 | 2017-02-08 11:56:52 -0800 | [diff] [blame] | 59 | ['runtime=="node" and grpc_uv=="true"', { |
murgatroid99 | cb4b2b5 | 2016-10-27 11:30:50 -0700 | [diff] [blame] | 60 | 'defines': [ |
murgatroid99 | 6f62c0a | 2017-02-06 17:31:15 -0800 | [diff] [blame] | 61 | # Disabling this while bugs are ironed out. Uncomment this to |
| 62 | # re-enable libuv integration in C core. |
murgatroid99 | 1191b72 | 2017-02-08 11:56:52 -0800 | [diff] [blame] | 63 | 'GRPC_UV' |
murgatroid99 | cb4b2b5 | 2016-10-27 11:30:50 -0700 | [diff] [blame] | 64 | ] |
| 65 | }], |
murgatroid99 | e8ec16d | 2017-01-13 11:00:53 -0800 | [diff] [blame] | 66 | ['OS!="win" and runtime=="electron"', { |
Michael Lumish | 88162f8 | 2017-01-12 17:37:58 -0800 | [diff] [blame] | 67 | "defines": [ |
| 68 | 'OPENSSL_NO_THREADS' |
| 69 | ] |
| 70 | }], |
murgatroid99 | dc23046 | 2016-10-25 14:12:42 -0700 | [diff] [blame] | 71 | # This is the condition for using boringssl |
| 72 | ['OS=="win" or runtime=="electron"', { |
| 73 | "include_dirs": [ |
| 74 | "third_party/boringssl/include" |
| 75 | ], |
| 76 | "defines": [ |
Michael Lumish | 88162f8 | 2017-01-12 17:37:58 -0800 | [diff] [blame] | 77 | 'OPENSSL_NO_ASM' |
murgatroid99 | dc23046 | 2016-10-25 14:12:42 -0700 | [diff] [blame] | 78 | ] |
| 79 | }, { |
murgatroid99 | 1191b72 | 2017-02-08 11:56:52 -0800 | [diff] [blame] | 80 | # As of the beginning of 2017, we only support versions of Node with |
| 81 | # embedded versions of OpenSSL that support ALPN |
murgatroid99 | dc23046 | 2016-10-25 14:12:42 -0700 | [diff] [blame] | 82 | 'defines': [ |
murgatroid99 | 1191b72 | 2017-02-08 11:56:52 -0800 | [diff] [blame] | 83 | 'TSI_OPENSSL_ALPN_SUPPORT=1' |
murgatroid99 | dc23046 | 2016-10-25 14:12:42 -0700 | [diff] [blame] | 84 | ], |
| 85 | 'include_dirs': [ |
| 86 | '<(node_root_dir)/deps/openssl/openssl/include', |
| 87 | ], |
| 88 | 'conditions': [ |
| 89 | ["target_arch=='ia32'", { |
| 90 | "include_dirs": [ "<(node_root_dir)/deps/openssl/config/piii" ] |
| 91 | }], |
| 92 | ["target_arch=='x64'", { |
| 93 | "include_dirs": [ "<(node_root_dir)/deps/openssl/config/k8" ] |
| 94 | }], |
| 95 | ["target_arch=='arm'", { |
| 96 | "include_dirs": [ "<(node_root_dir)/deps/openssl/config/arm" ] |
| 97 | }] |
| 98 | ] |
| 99 | }], |
murgatroid99 | 5c56c92 | 2016-01-25 13:32:52 -0800 | [diff] [blame] | 100 | ['OS == "win"', { |
murgatroid99 | 673f65b | 2016-02-01 11:19:07 -0800 | [diff] [blame] | 101 | "include_dirs": [ |
murgatroid99 | 673f65b | 2016-02-01 11:19:07 -0800 | [diff] [blame] | 102 | "third_party/zlib" |
| 103 | ], |
murgatroid99 | af6c178 | 2016-01-28 13:14:24 -0800 | [diff] [blame] | 104 | "defines": [ |
| 105 | '_WIN32_WINNT=0x0600', |
| 106 | 'WIN32_LEAN_AND_MEAN', |
| 107 | '_HAS_EXCEPTIONS=0', |
| 108 | 'UNICODE', |
| 109 | '_UNICODE', |
| 110 | 'NOMINMAX', |
murgatroid99 | af6c178 | 2016-01-28 13:14:24 -0800 | [diff] [blame] | 111 | ], |
| 112 | "msvs_settings": { |
| 113 | 'VCCLCompilerTool': { |
| 114 | 'RuntimeLibrary': 1, # static debug |
| 115 | } |
| 116 | }, |
| 117 | "libraries": [ |
| 118 | "ws2_32" |
| 119 | ] |
| 120 | }, { # OS != "win" |
murgatroid99 | 673f65b | 2016-02-01 11:19:07 -0800 | [diff] [blame] | 121 | 'variables': { |
| 122 | 'config': '<!(echo $CONFIG)', |
murgatroid99 | 673f65b | 2016-02-01 11:19:07 -0800 | [diff] [blame] | 123 | }, |
murgatroid99 | 5c56c92 | 2016-01-25 13:32:52 -0800 | [diff] [blame] | 124 | 'include_dirs': [ |
murgatroid99 | 5c56c92 | 2016-01-25 13:32:52 -0800 | [diff] [blame] | 125 | '<(node_root_dir)/deps/zlib' |
| 126 | ], |
murgatroid99 | a89d9e7 | 2015-10-13 16:03:16 -0700 | [diff] [blame] | 127 | 'conditions': [ |
| 128 | ['config=="gcov"', { |
| 129 | 'cflags': [ |
| 130 | '-ftest-coverage', |
| 131 | '-fprofile-arcs', |
| 132 | '-O0' |
| 133 | ], |
| 134 | 'ldflags': [ |
| 135 | '-ftest-coverage', |
| 136 | '-fprofile-arcs' |
| 137 | ] |
| 138 | } |
murgatroid99 | dc23046 | 2016-10-25 14:12:42 -0700 | [diff] [blame] | 139 | ] |
murgatroid99 | a89d9e7 | 2015-10-13 16:03:16 -0700 | [diff] [blame] | 140 | ] |
murgatroid99 | afe4698 | 2015-10-23 10:17:26 -0700 | [diff] [blame] | 141 | }] |
murgatroid99 | fd994f1 | 2015-10-09 14:02:28 -0700 | [diff] [blame] | 142 | ] |
murgatroid99 | 2d6d330 | 2015-09-21 13:29:40 -0700 | [diff] [blame] | 143 | }, |
murgatroid99 | 5c56c92 | 2016-01-25 13:32:52 -0800 | [diff] [blame] | 144 | 'conditions': [ |
murgatroid99 | dc23046 | 2016-10-25 14:12:42 -0700 | [diff] [blame] | 145 | ['OS=="win" or runtime=="electron"', { |
| 146 | 'targets': [ |
| 147 | % for module in node_modules: |
| 148 | % for lib in libs: |
| 149 | % if lib.name in module.transitive_deps and lib.name == 'boringssl': |
| 150 | { |
| 151 | 'cflags': [ |
| 152 | '-std=c99', |
| 153 | '-Wall', |
| 154 | '-Werror' |
| 155 | ], |
| 156 | 'target_name': '${lib.name}', |
| 157 | 'product_prefix': 'lib', |
| 158 | 'type': 'static_library', |
| 159 | 'dependencies': [ |
| 160 | % for dep in getattr(lib, 'deps', []): |
| 161 | '${dep}', |
| 162 | % endfor |
| 163 | ], |
| 164 | 'sources': [ |
| 165 | % for source in lib.src: |
| 166 | '${source}', |
| 167 | % endfor |
| 168 | ] |
| 169 | }, |
| 170 | % endif |
| 171 | % endfor |
| 172 | % endfor |
| 173 | ] |
| 174 | }], |
murgatroid99 | 5c56c92 | 2016-01-25 13:32:52 -0800 | [diff] [blame] | 175 | ['OS == "win"', { |
| 176 | 'targets': [ |
murgatroid99 | af6c178 | 2016-01-28 13:14:24 -0800 | [diff] [blame] | 177 | { |
| 178 | # IMPORTANT WINDOWS BUILD INFORMATION |
| 179 | # This library does not build on Windows without modifying the Node |
| 180 | # development packages that node-gyp downloads in order to build. |
| 181 | # Due to https://github.com/nodejs/node/issues/4932, the headers for |
| 182 | # BoringSSL conflict with the OpenSSL headers included by default |
| 183 | # when including the Node headers. The remedy for this is to remove |
| 184 | # the OpenSSL headers, from the downloaded Node development package, |
| 185 | # which is typically located in `.node-gyp` in your home directory. |
murgatroid99 | 8e4103e | 2016-01-28 14:53:33 -0800 | [diff] [blame] | 186 | 'target_name': 'WINDOWS_BUILD_WARNING', |
murgatroid99 | af6c178 | 2016-01-28 13:14:24 -0800 | [diff] [blame] | 187 | 'actions': [ |
| 188 | { |
murgatroid99 | 8e4103e | 2016-01-28 14:53:33 -0800 | [diff] [blame] | 189 | 'action_name': 'WINDOWS_BUILD_WARNING', |
| 190 | 'inputs': [ |
| 191 | 'package.json' |
| 192 | ], |
| 193 | 'outputs': [ |
| 194 | 'ignore_this_part' |
| 195 | ], |
| 196 | 'action': ['echo', 'IMPORTANT: Due to https://github.com/nodejs/node/issues/4932, to build this library on Windows, you must first remove <(node_root_dir)/include/node/openssl/'] |
murgatroid99 | af6c178 | 2016-01-28 13:14:24 -0800 | [diff] [blame] | 197 | } |
| 198 | ] |
| 199 | }, |
murgatroid99 | dc23046 | 2016-10-25 14:12:42 -0700 | [diff] [blame] | 200 | # Only want to compile zlib under Windows |
murgatroid99 | 5c56c92 | 2016-01-25 13:32:52 -0800 | [diff] [blame] | 201 | % for module in node_modules: |
| 202 | % for lib in libs: |
murgatroid99 | dc23046 | 2016-10-25 14:12:42 -0700 | [diff] [blame] | 203 | % if lib.name in module.transitive_deps and lib.name == 'z': |
murgatroid99 | 5c56c92 | 2016-01-25 13:32:52 -0800 | [diff] [blame] | 204 | { |
| 205 | 'cflags': [ |
| 206 | '-std=c99', |
| 207 | '-Wall', |
| 208 | '-Werror' |
| 209 | ], |
| 210 | 'target_name': '${lib.name}', |
| 211 | 'product_prefix': 'lib', |
| 212 | 'type': 'static_library', |
| 213 | 'dependencies': [ |
| 214 | % for dep in getattr(lib, 'deps', []): |
| 215 | '${dep}', |
| 216 | % endfor |
| 217 | ], |
| 218 | 'sources': [ |
| 219 | % for source in lib.src: |
| 220 | '${source}', |
| 221 | % endfor |
murgatroid99 | af6c178 | 2016-01-28 13:14:24 -0800 | [diff] [blame] | 222 | ] |
murgatroid99 | 5c56c92 | 2016-01-25 13:32:52 -0800 | [diff] [blame] | 223 | }, |
| 224 | % endif |
| 225 | % endfor |
| 226 | % endfor |
| 227 | ] |
| 228 | }] |
| 229 | ], |
murgatroid99 | 2d6d330 | 2015-09-21 13:29:40 -0700 | [diff] [blame] | 230 | 'targets': [ |
murgatroid99 | 879bc4f | 2015-11-05 10:35:04 -0800 | [diff] [blame] | 231 | % for module in node_modules: |
murgatroid99 | 2d6d330 | 2015-09-21 13:29:40 -0700 | [diff] [blame] | 232 | % for lib in libs: |
murgatroid99 | 5c56c92 | 2016-01-25 13:32:52 -0800 | [diff] [blame] | 233 | % if lib.name in module.transitive_deps and lib.name not in ('boringssl', 'z'): |
murgatroid99 | 2d6d330 | 2015-09-21 13:29:40 -0700 | [diff] [blame] | 234 | { |
murgatroid99 | 3abed31 | 2016-01-07 17:16:46 -0800 | [diff] [blame] | 235 | 'cflags': [ |
| 236 | '-std=c99', |
| 237 | '-Wall', |
| 238 | '-Werror' |
| 239 | ], |
murgatroid99 | 2d6d330 | 2015-09-21 13:29:40 -0700 | [diff] [blame] | 240 | 'target_name': '${lib.name}', |
| 241 | 'product_prefix': 'lib', |
| 242 | 'type': 'static_library', |
| 243 | 'dependencies': [ |
| 244 | % for dep in getattr(lib, 'deps', []): |
| 245 | '${dep}', |
| 246 | % endfor |
| 247 | ], |
| 248 | 'sources': [ |
| 249 | % for source in lib.src: |
murgatroid99 | ca9db40 | 2015-09-21 14:39:09 -0700 | [diff] [blame] | 250 | '${source}', |
murgatroid99 | 2d6d330 | 2015-09-21 13:29:40 -0700 | [diff] [blame] | 251 | % endfor |
murgatroid99 | ca9db40 | 2015-09-21 14:39:09 -0700 | [diff] [blame] | 252 | ], |
murgatroid99 | 6ffdb94 | 2015-10-22 16:10:05 -0700 | [diff] [blame] | 253 | "conditions": [ |
| 254 | ['OS == "mac"', { |
| 255 | 'xcode_settings': { |
murgatroid99 | 22c448b | 2015-10-23 10:25:30 -0700 | [diff] [blame] | 256 | 'MACOSX_DEPLOYMENT_TARGET': '10.9' |
murgatroid99 | 6ffdb94 | 2015-10-22 16:10:05 -0700 | [diff] [blame] | 257 | } |
| 258 | }] |
murgatroid99 | 5c56c92 | 2016-01-25 13:32:52 -0800 | [diff] [blame] | 259 | ] |
murgatroid99 | 2d6d330 | 2015-09-21 13:29:40 -0700 | [diff] [blame] | 260 | }, |
murgatroid99 | ca9db40 | 2015-09-21 14:39:09 -0700 | [diff] [blame] | 261 | % endif |
murgatroid99 | 2d6d330 | 2015-09-21 13:29:40 -0700 | [diff] [blame] | 262 | % endfor |
murgatroid99 | fd994f1 | 2015-10-09 14:02:28 -0700 | [diff] [blame] | 263 | { |
| 264 | 'include_dirs': [ |
| 265 | "<!(node -e \"require('nan')\")" |
| 266 | ], |
| 267 | 'cflags': [ |
murgatroid99 | 3abed31 | 2016-01-07 17:16:46 -0800 | [diff] [blame] | 268 | '-std=c++11', |
murgatroid99 | fd994f1 | 2015-10-09 14:02:28 -0700 | [diff] [blame] | 269 | '-Wall', |
| 270 | '-pthread', |
| 271 | '-g', |
| 272 | '-zdefs', |
| 273 | '-Werror', |
| 274 | '-Wno-error=deprecated-declarations' |
| 275 | ], |
| 276 | 'ldflags': [ |
| 277 | '-g' |
| 278 | ], |
| 279 | "conditions": [ |
murgatroid99 | dc23046 | 2016-10-25 14:12:42 -0700 | [diff] [blame] | 280 | ['OS=="win" or runtime=="electron"', { |
| 281 | 'dependencies': [ |
| 282 | % for dep in getattr(module, 'deps', []): |
| 283 | % if dep == 'boringssl': |
| 284 | "${dep}", |
| 285 | % endif |
| 286 | % endfor |
| 287 | ] |
| 288 | }], |
murgatroid99 | 5c56c92 | 2016-01-25 13:32:52 -0800 | [diff] [blame] | 289 | ['OS=="mac"', { |
murgatroid99 | fd994f1 | 2015-10-09 14:02:28 -0700 | [diff] [blame] | 290 | 'xcode_settings': { |
| 291 | 'MACOSX_DEPLOYMENT_TARGET': '10.9', |
| 292 | 'OTHER_CFLAGS': [ |
murgatroid99 | 673f65b | 2016-02-01 11:19:07 -0800 | [diff] [blame] | 293 | '-stdlib=libc++', |
| 294 | '-std=c++11' |
murgatroid99 | fd994f1 | 2015-10-09 14:02:28 -0700 | [diff] [blame] | 295 | ] |
| 296 | } |
murgatroid99 | 5c56c92 | 2016-01-25 13:32:52 -0800 | [diff] [blame] | 297 | }], |
| 298 | ['OS=="win"', { |
| 299 | 'dependencies': [ |
| 300 | % for dep in getattr(module, 'deps', []): |
murgatroid99 | dc23046 | 2016-10-25 14:12:42 -0700 | [diff] [blame] | 301 | % if dep == 'z': |
murgatroid99 | 5c56c92 | 2016-01-25 13:32:52 -0800 | [diff] [blame] | 302 | "${dep}", |
| 303 | % endif |
| 304 | % endfor |
| 305 | ] |
Craig Tiller | 4bef7ce | 2016-02-02 08:38:43 -0800 | [diff] [blame] | 306 | }], |
| 307 | ['OS=="linux"', { |
| 308 | 'ldflags': [ |
| 309 | '-Wl,-wrap,memcpy' |
| 310 | ] |
murgatroid99 | fd994f1 | 2015-10-09 14:02:28 -0700 | [diff] [blame] | 311 | }] |
| 312 | ], |
murgatroid99 | 879bc4f | 2015-11-05 10:35:04 -0800 | [diff] [blame] | 313 | "target_name": "${module.name}", |
murgatroid99 | fd994f1 | 2015-10-09 14:02:28 -0700 | [diff] [blame] | 314 | "sources": [ |
murgatroid99 | 879bc4f | 2015-11-05 10:35:04 -0800 | [diff] [blame] | 315 | % for source in module.src: |
| 316 | "${source}", |
| 317 | % endfor |
murgatroid99 | fd994f1 | 2015-10-09 14:02:28 -0700 | [diff] [blame] | 318 | ], |
| 319 | "dependencies": [ |
murgatroid99 | 879bc4f | 2015-11-05 10:35:04 -0800 | [diff] [blame] | 320 | % for dep in getattr(module, 'deps', []): |
murgatroid99 | 5c56c92 | 2016-01-25 13:32:52 -0800 | [diff] [blame] | 321 | % if dep not in ('boringssl', 'z'): |
murgatroid99 | 879bc4f | 2015-11-05 10:35:04 -0800 | [diff] [blame] | 322 | "${dep}", |
murgatroid99 | 5c56c92 | 2016-01-25 13:32:52 -0800 | [diff] [blame] | 323 | % endif |
murgatroid99 | 879bc4f | 2015-11-05 10:35:04 -0800 | [diff] [blame] | 324 | % endfor |
murgatroid99 | fd994f1 | 2015-10-09 14:02:28 -0700 | [diff] [blame] | 325 | ] |
murgatroid99 | 879bc4f | 2015-11-05 10:35:04 -0800 | [diff] [blame] | 326 | }, |
| 327 | % endfor |
murgatroid99 | e190f35 | 2016-01-20 13:52:08 -0800 | [diff] [blame] | 328 | { |
| 329 | "target_name": "action_after_build", |
| 330 | "type": "none", |
| 331 | "dependencies": [ "<(module_name)" ], |
| 332 | "copies": [ |
| 333 | { |
| 334 | "files": [ "<(PRODUCT_DIR)/<(module_name).node"], |
| 335 | "destination": "<(module_path)" |
| 336 | } |
| 337 | ] |
| 338 | } |
murgatroid99 | 2d6d330 | 2015-09-21 13:29:40 -0700 | [diff] [blame] | 339 | ] |
| 340 | } |