libgit2.gyp 16.7 KB
Newer Older
Robo's avatar
Robo committed
1
{
Tim Branyen's avatar
Tim Branyen committed
2 3 4 5 6 7 8 9
  # Copyright (c) 2012 The Chromium Authors. All rights reserved.
  # Use of this source code is governed by a BSD-style license that can be
  # found in the LICENSE file.
  "variables": {
    "target_arch%": "x86",
    "library%": "static_library",
    "openssl_enable_asm%": 0, # only supported with the Visual Studio 2012 (VC11) toolchain.
    "gcc_version%": 0,
10
    "is_clang%": 0
Tim Branyen's avatar
Tim Branyen committed
11
  },
Robo's avatar
Robo committed
12 13 14 15 16 17
  "targets": [
    {
      "target_name": "libgit2",
      "type": "static_library",
      "defines": [
        "GIT_THREADS",
John Haley's avatar
John Haley committed
18
        "GIT_SSH",
19
        "GIT_SSH_MEMORY_CREDENTIALS",
20
        "LIBGIT2_NO_FEATURES_H",
Robo's avatar
Robo committed
21 22 23 24 25 26
        # Node's util.h may be accidentally included so use this to guard
        # against compilation error.
        "SRC_UTIL_H_",
      ],
      "dependencies": [
        "zlib",
27
        "http_parser/http_parser.gyp:http_parser",
28 29
        "openssl/openssl.gyp:openssl",
        "libssh2"
Robo's avatar
Robo committed
30 31
      ],
      "sources": [
32
        "libgit2/include/git2/sys/hashsig.h",
John Haley's avatar
John Haley committed
33
        "libgit2/include/git2/sys/merge.h",
34
        "libgit2/include/git2/sys/time.h",
35
        "libgit2/include/git2/worktree.h",
unknown's avatar
unknown committed
36
        "libgit2/src/annotated_commit.c",
37
        "libgit2/src/annotated_commit.h",
38 39
        "libgit2/src/apply.c",
        "libgit2/src/apply.h",
40
        "libgit2/src/array.h",
Tim Branyen's avatar
Tim Branyen committed
41 42
        "libgit2/src/attr_file.c",
        "libgit2/src/attr_file.h",
43 44
        "libgit2/src/attr.c",
        "libgit2/src/attr.h",
Tim Branyen's avatar
Tim Branyen committed
45
        "libgit2/src/attrcache.c",
Tim Branyen's avatar
Tim Branyen committed
46 47 48 49
        "libgit2/src/attrcache.h",
        "libgit2/src/bitvec.h",
        "libgit2/src/blame_git.c",
        "libgit2/src/blame_git.h",
50 51
        "libgit2/src/blame.c",
        "libgit2/src/blame.h",
Tim Branyen's avatar
Tim Branyen committed
52 53 54 55 56 57 58 59 60 61 62 63 64 65
        "libgit2/src/blob.c",
        "libgit2/src/blob.h",
        "libgit2/src/branch.c",
        "libgit2/src/branch.h",
        "libgit2/src/bswap.h",
        "libgit2/src/buf_text.c",
        "libgit2/src/buf_text.h",
        "libgit2/src/buffer.c",
        "libgit2/src/buffer.h",
        "libgit2/src/cache.c",
        "libgit2/src/cache.h",
        "libgit2/src/cc-compat.h",
        "libgit2/src/checkout.c",
        "libgit2/src/checkout.h",
Tim Branyen's avatar
Tim Branyen committed
66
        "libgit2/src/cherrypick.c",
Tim Branyen's avatar
Tim Branyen committed
67
        "libgit2/src/clone.c",
Tim Branyen's avatar
Tim Branyen committed
68
        "libgit2/src/clone.h",
Tim Branyen's avatar
Tim Branyen committed
69 70
        "libgit2/src/commit_list.c",
        "libgit2/src/commit_list.h",
71 72
        "libgit2/src/commit.c",
        "libgit2/src/commit.h",
Tim Branyen's avatar
Tim Branyen committed
73 74 75 76
        "libgit2/src/common.h",
        "libgit2/src/config_cache.c",
        "libgit2/src/config_file.c",
        "libgit2/src/config_file.h",
77 78
        "libgit2/src/config.c",
        "libgit2/src/config.h",
79
        "libgit2/src/crlf.c",
80 81
        "libgit2/src/curl_stream.c",
        "libgit2/src/curl_stream.h",
Tim Branyen's avatar
Tim Branyen committed
82 83 84 85 86 87 88
        "libgit2/src/date.c",
        "libgit2/src/delta.c",
        "libgit2/src/delta.h",
        "libgit2/src/diff_driver.c",
        "libgit2/src/diff_driver.h",
        "libgit2/src/diff_file.c",
        "libgit2/src/diff_file.h",
89 90 91 92
        "libgit2/src/diff_generate.c",
        "libgit2/src/diff_generate.h",
        "libgit2/src/diff_parse.c",
        "libgit2/src/diff_parse.h",
Tim Branyen's avatar
Tim Branyen committed
93
        "libgit2/src/diff_print.c",
Tim Branyen's avatar
Tim Branyen committed
94
        "libgit2/src/diff_stats.c",
Tim Branyen's avatar
Tim Branyen committed
95
        "libgit2/src/diff_tform.c",
96
        "libgit2/src/diff_tform.h",
Tim Branyen's avatar
Tim Branyen committed
97 98
        "libgit2/src/diff_xdiff.c",
        "libgit2/src/diff_xdiff.h",
99 100
        "libgit2/src/diff.c",
        "libgit2/src/diff.h",
Tim Branyen's avatar
Tim Branyen committed
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
        "libgit2/src/errors.c",
        "libgit2/src/fetch.c",
        "libgit2/src/fetch.h",
        "libgit2/src/fetchhead.c",
        "libgit2/src/fetchhead.h",
        "libgit2/src/filebuf.c",
        "libgit2/src/filebuf.h",
        "libgit2/src/fileops.c",
        "libgit2/src/fileops.h",
        "libgit2/src/filter.c",
        "libgit2/src/filter.h",
        "libgit2/src/fnmatch.c",
        "libgit2/src/fnmatch.h",
        "libgit2/src/global.c",
        "libgit2/src/global.h",
        "libgit2/src/graph.c",
        "libgit2/src/hash.c",
        "libgit2/src/hash.h",
119 120 121 122
        "libgit2/src/hash/sha1dc/sha1.c",
        "libgit2/src/hash/sha1dc/sha1.h",
        "libgit2/src/hash/sha1dc/ubc_check.c",
        "libgit2/src/hash/sha1dc/ubc_check.h",
Tim Branyen's avatar
Tim Branyen committed
123 124
        "libgit2/src/hashsig.c",
        "libgit2/src/ident.c",
125
        "libgit2/src/idxmap.c",
Tim Branyen's avatar
Tim Branyen committed
126 127 128 129 130
        "libgit2/src/ignore.c",
        "libgit2/src/ignore.h",
        "libgit2/src/index.c",
        "libgit2/src/index.h",
        "libgit2/src/indexer.c",
131
        "libgit2/src/indexer.h",
Tim Branyen's avatar
Tim Branyen committed
132 133 134 135
        "libgit2/src/iterator.c",
        "libgit2/src/iterator.h",
        "libgit2/src/khash.h",
        "libgit2/src/map.h",
136
        "libgit2/src/merge_driver.c",
Tim Branyen's avatar
Tim Branyen committed
137 138
        "libgit2/src/merge_file.c",
        "libgit2/src/merge_file.h",
139 140
        "libgit2/src/merge.c",
        "libgit2/src/merge.h",
Tim Branyen's avatar
Tim Branyen committed
141 142 143 144 145 146 147 148
        "libgit2/src/message.c",
        "libgit2/src/message.h",
        "libgit2/src/mwindow.c",
        "libgit2/src/mwindow.h",
        "libgit2/src/netops.c",
        "libgit2/src/netops.h",
        "libgit2/src/notes.c",
        "libgit2/src/notes.h",
149
        "libgit2/src/object_api.c",
Tim Branyen's avatar
Tim Branyen committed
150 151 152
        "libgit2/src/object.c",
        "libgit2/src/object.h",
        "libgit2/src/odb_loose.c",
Tim Branyen's avatar
Tim Branyen committed
153
        "libgit2/src/odb_mempack.c",
Tim Branyen's avatar
Tim Branyen committed
154
        "libgit2/src/odb_pack.c",
155 156
        "libgit2/src/odb.c",
        "libgit2/src/odb.h",
157
        "libgit2/src/offmap.c",
Tim Branyen's avatar
Tim Branyen committed
158 159 160
        "libgit2/src/offmap.h",
        "libgit2/src/oid.c",
        "libgit2/src/oid.h",
unknown's avatar
unknown committed
161 162
        "libgit2/src/oidarray.c",
        "libgit2/src/oidarray.h",
163
        "libgit2/src/oidmap.c",
Tim Branyen's avatar
Tim Branyen committed
164
        "libgit2/src/oidmap.h",
165 166
        "libgit2/src/openssl_stream.c",
        "libgit2/src/openssl_stream.h",
Tim Branyen's avatar
Tim Branyen committed
167 168 169 170
        "libgit2/src/pack-objects.c",
        "libgit2/src/pack-objects.h",
        "libgit2/src/pack.c",
        "libgit2/src/pack.h",
171 172 173 174
        "libgit2/src/patch_generate.c",
        "libgit2/src/patch_generate.h",
        "libgit2/src/patch_parse.c",
        "libgit2/src/patch_parse.h",
175 176 177 178
        "libgit2/src/patch.c",
        "libgit2/src/patch.h",
        "libgit2/src/path.c",
        "libgit2/src/path.h",
Tim Branyen's avatar
Tim Branyen committed
179 180 181 182 183 184 185 186
        "libgit2/src/pathspec.c",
        "libgit2/src/pathspec.h",
        "libgit2/src/pool.c",
        "libgit2/src/pool.h",
        "libgit2/src/posix.c",
        "libgit2/src/posix.h",
        "libgit2/src/pqueue.c",
        "libgit2/src/pqueue.h",
John Haley's avatar
John Haley committed
187
        "libgit2/src/proxy.c",
Tim Branyen's avatar
Tim Branyen committed
188 189
        "libgit2/src/push.c",
        "libgit2/src/push.h",
unknown's avatar
unknown committed
190
        "libgit2/src/rebase.c",
Tim Branyen's avatar
Tim Branyen committed
191 192
        "libgit2/src/refdb_fs.c",
        "libgit2/src/refdb_fs.h",
193 194
        "libgit2/src/refdb.c",
        "libgit2/src/refdb.h",
Tim Branyen's avatar
Tim Branyen committed
195 196 197 198 199 200 201 202 203 204 205 206
        "libgit2/src/reflog.c",
        "libgit2/src/reflog.h",
        "libgit2/src/refs.c",
        "libgit2/src/refs.h",
        "libgit2/src/refspec.c",
        "libgit2/src/refspec.h",
        "libgit2/src/remote.c",
        "libgit2/src/remote.h",
        "libgit2/src/repo_template.h",
        "libgit2/src/repository.c",
        "libgit2/src/repository.h",
        "libgit2/src/reset.c",
Tim Branyen's avatar
Tim Branyen committed
207
        "libgit2/src/revert.c",
Tim Branyen's avatar
Tim Branyen committed
208 209 210
        "libgit2/src/revparse.c",
        "libgit2/src/revwalk.c",
        "libgit2/src/revwalk.h",
Tim Branyen's avatar
Tim Branyen committed
211
        "libgit2/src/settings.c",
Tim Branyen's avatar
Tim Branyen committed
212 213 214 215
        "libgit2/src/sha1_lookup.c",
        "libgit2/src/sha1_lookup.h",
        "libgit2/src/signature.c",
        "libgit2/src/signature.h",
216 217
        "libgit2/src/socket_stream.c",
        "libgit2/src/socket_stream.h",
Tim Branyen's avatar
Tim Branyen committed
218 219 220 221 222 223 224
        "libgit2/src/sortedcache.c",
        "libgit2/src/sortedcache.h",
        "libgit2/src/stash.c",
        "libgit2/src/status.c",
        "libgit2/src/status.h",
        "libgit2/src/strmap.c",
        "libgit2/src/strmap.h",
Tim Branyen's avatar
Tim Branyen committed
225
        "libgit2/src/strnlen.h",
Tim Branyen's avatar
Tim Branyen committed
226 227
        "libgit2/src/submodule.c",
        "libgit2/src/submodule.h",
Tim Branyen's avatar
Tim Branyen committed
228 229
        "libgit2/src/sysdir.c",
        "libgit2/src/sysdir.h",
Tim Branyen's avatar
Tim Branyen committed
230 231 232 233 234 235
        "libgit2/src/tag.c",
        "libgit2/src/tag.h",
        "libgit2/src/thread-utils.c",
        "libgit2/src/thread-utils.h",
        "libgit2/src/trace.c",
        "libgit2/src/trace.h",
unknown's avatar
unknown committed
236
        "libgit2/src/transaction.c",
Tim Branyen's avatar
Tim Branyen committed
237
        "libgit2/src/transport.c",
238 239 240 241 242 243 244 245 246 247 248 249
        "libgit2/src/transports/auth.c",
        "libgit2/src/transports/auth.h",
        "libgit2/src/transports/cred_helpers.c",
        "libgit2/src/transports/cred.c",
        "libgit2/src/transports/git.c",
        "libgit2/src/transports/http.c",
        "libgit2/src/transports/local.c",
        "libgit2/src/transports/smart_pkt.c",
        "libgit2/src/transports/smart_protocol.c",
        "libgit2/src/transports/smart.c",
        "libgit2/src/transports/smart.h",
        "libgit2/src/transports/ssh.c",
Tim Branyen's avatar
Tim Branyen committed
250 251 252 253 254
        "libgit2/src/tree-cache.c",
        "libgit2/src/tree-cache.h",
        "libgit2/src/tree.c",
        "libgit2/src/tree.h",
        "libgit2/src/tsort.c",
Tim Branyen's avatar
Tim Branyen committed
255
        "libgit2/src/userdiff.h",
Tim Branyen's avatar
Tim Branyen committed
256 257
        "libgit2/src/util.c",
        "libgit2/src/util.h",
258 259
        "libgit2/src/varint.c",
        "libgit2/src/varint.h",
Tim Branyen's avatar
Tim Branyen committed
260 261
        "libgit2/src/vector.c",
        "libgit2/src/vector.h",
262 263
        "libgit2/src/worktree.c",
        "libgit2/src/worktree.h",
Tim Branyen's avatar
Tim Branyen committed
264 265 266 267 268 269 270 271 272 273 274 275 276 277
        "libgit2/src/xdiff/xdiff.h",
        "libgit2/src/xdiff/xdiffi.c",
        "libgit2/src/xdiff/xdiffi.h",
        "libgit2/src/xdiff/xemit.c",
        "libgit2/src/xdiff/xemit.h",
        "libgit2/src/xdiff/xhistogram.c",
        "libgit2/src/xdiff/xinclude.h",
        "libgit2/src/xdiff/xmacros.h",
        "libgit2/src/xdiff/xmerge.c",
        "libgit2/src/xdiff/xpatience.c",
        "libgit2/src/xdiff/xprepare.c",
        "libgit2/src/xdiff/xprepare.h",
        "libgit2/src/xdiff/xtypes.h",
        "libgit2/src/xdiff/xutils.c",
Tim Branyen's avatar
Tim Branyen committed
278
        "libgit2/src/xdiff/xutils.h",
279 280
        "libgit2/src/zstream.c",
        "libgit2/src/zstream.h"
Robo's avatar
Robo committed
281 282
      ],
      "conditions": [
Tyler Wanek's avatar
Tyler Wanek committed
283
        ["OS=='mac'", {
284
            "defines": [
John Haley's avatar
John Haley committed
285 286
                "GIT_SECURE_TRANSPORT",
                "GIT_USE_STAT_MTIMESPEC"
287
            ],
Tyler Wanek's avatar
Tyler Wanek committed
288 289
            "sources": [
                "libgit2/src/stransport_stream.c",
290
                "libgit2/src/stransport_stream.h"
Tyler Wanek's avatar
Tyler Wanek committed
291 292 293 294
            ],
            "link_settings": {
                "xcode_settings": {
                    "OTHER_LDFLAGS": [
Tyler Wanek's avatar
Tyler Wanek committed
295 296
                        "-framework Security",
                        "-framework CoreFoundation"
Tyler Wanek's avatar
Tyler Wanek committed
297
                    ],
298
                }
Tyler Wanek's avatar
Tyler Wanek committed
299
            }
300
        }],
301 302 303 304 305
        ["OS=='mac' or OS=='linux' or OS.endswith('bsd')", {
          "cflags": [
            "-DGIT_CURL"
          ],
          "defines": [
306
            "GIT_CURL",
307
            "GIT_SHA1_OPENSSL"
308 309
          ],
          "sources": [
310 311 312
            "libgit2/src/hash/hash_openssl.h",
            "libgit2/src/tls_stream.c",
            "libgit2/src/tls_stream.h"
313 314
          ]
        }],
315
        ["OS=='linux' or OS.endswith('bsd')" , {
Robo's avatar
Robo committed
316
          "cflags": [
317 318
            "-DGIT_SSH",
            "-DGIT_SSL",
Robo's avatar
Robo committed
319 320
            "-w",
          ],
Tyler Wanek's avatar
Tyler Wanek committed
321
          "defines": [
John Haley's avatar
John Haley committed
322
            "GIT_OPENSSL",
323
            "GIT_USE_STAT_MTIM"
Tyler Wanek's avatar
Tyler Wanek committed
324
          ]
Robo's avatar
Robo committed
325 326
        }],
        ["OS=='win'", {
Tim Branyen's avatar
Tim Branyen committed
327 328
          "defines": [
            "GIT_WINHTTP",
329
            "GIT_SHA1_WIN32"
Tim Branyen's avatar
Tim Branyen committed
330
          ],
Robo's avatar
Robo committed
331 332 333
          "msvs_settings": {
            "VCLinkerTool": {
              "AdditionalDependencies": [
Tyler Wanek's avatar
Tyler Wanek committed
334
                "ws2_32.lib"
Robo's avatar
Robo committed
335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366
              ],
            },
            # Workaround of a strange bug:
            # TargetMachine + static_library + x64 = nothing.
            "conditions": [
              ["target_arch=='x64'", {
                "VCLibrarianTool": {
                  "AdditionalOptions": [
                    "/MACHINE:X64",
                  ],
                },
              }, {
                "VCLibrarianTool": {
                  "AdditionalOptions": [
                    "/MACHINE:x86",
                  ],
                },
              }],
            ],
          },
          "msvs_disabled_warnings": [
            # Conversion from 'ssize_t' to 'int32_t', possible loss of data.
            4244,
            # Conversion from 'size_t' to 'int', possible loss of data.
            4267,
            # Different 'volatile' qualifiers.
            4090,
            # 'volatile void *' differs in levels of indirection from 'int'.
            4047,
            # 'InterlockedDecrement' undefined; assuming extern returning int.
            4013,
          ],
367 368 369
          "include_dirs": [
            "libgit2/deps/regex"
          ],
Robo's avatar
Robo committed
370
          "sources": [
371
            "libgit2/deps/regex/regex.c",
372 373
            "libgit2/src/hash/hash_win32.c",
            "libgit2/src/hash/hash_win32.h",
374
            "libgit2/src/transports/winhttp.c",
Tim Branyen's avatar
Tim Branyen committed
375 376 377 378 379 380 381 382 383 384
            "libgit2/src/win32/dir.c",
            "libgit2/src/win32/dir.h",
            "libgit2/src/win32/error.c",
            "libgit2/src/win32/error.h",
            "libgit2/src/win32/findfile.c",
            "libgit2/src/win32/findfile.h",
            "libgit2/src/win32/git2.rc",
            "libgit2/src/win32/map.c",
            "libgit2/src/win32/mingw-compat.h",
            "libgit2/src/win32/msvc-compat.h",
385 386
            "libgit2/src/win32/path_w32.c",
            "libgit2/src/win32/path_w32.h",
Tim Branyen's avatar
Tim Branyen committed
387
            "libgit2/src/win32/posix_w32.c",
388
            "libgit2/src/win32/posix.h",
Tim Branyen's avatar
Tim Branyen committed
389 390
            "libgit2/src/win32/precompiled.c",
            "libgit2/src/win32/precompiled.h",
391 392
            "libgit2/src/win32/thread.c",
            "libgit2/src/win32/thread.h",
Tim Branyen's avatar
Tim Branyen committed
393
            "libgit2/src/win32/reparse.h",
Tim Branyen's avatar
Tim Branyen committed
394 395 396
            "libgit2/src/win32/utf-conv.c",
            "libgit2/src/win32/utf-conv.h",
            "libgit2/src/win32/version.h",
397 398
            "libgit2/src/win32/w32_buffer.c",
            "libgit2/src/win32/w32_buffer.h",
Tim Branyen's avatar
Tim Branyen committed
399 400
            "libgit2/src/win32/w32_util.c",
            "libgit2/src/win32/w32_util.h",
Robo's avatar
Robo committed
401 402 403 404 405 406
          ],
        }, {
          "libraries": [
            "-lpthread",
          ],
          "sources": [
Tim Branyen's avatar
Tim Branyen committed
407 408
            "libgit2/src/unix/map.c",
            "libgit2/src/unix/posix.h",
409
            "libgit2/src/unix/pthread.h",
Tim Branyen's avatar
Tim Branyen committed
410
            "libgit2/src/unix/realpath.c",
Robo's avatar
Robo committed
411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428
          ],
          "cflags": [
            "-Wno-missing-field-initializers",
            "-Wno-unused-variable",
            "-Wno-deprecated-declarations",
          ],
          "xcode_settings": {
            "WARNING_CFLAGS": [
              "-Wno-missing-field-initializers",
              "-Wno-unused-variable",
              "-Wno-deprecated-declarations",
              "-Wno-uninitialized",
            ],
          },
        },
      ]
      ],
      "include_dirs": [
Tim Branyen's avatar
Tim Branyen committed
429
        "libgit2/include",
430
        "libgit2/src"
Robo's avatar
Robo committed
431 432 433
      ],
      "direct_dependent_settings": {
        "include_dirs": [
Tim Branyen's avatar
Tim Branyen committed
434
          "libgit2/include",
Robo's avatar
Robo committed
435 436 437 438 439 440 441
        ],
      },
    },
    {
      "target_name": "zlib",
      "type": "static_library",
      "sources": [
Tim Branyen's avatar
Tim Branyen committed
442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459
        "libgit2/deps/zlib/adler32.c",
        "libgit2/deps/zlib/crc32.c",
        "libgit2/deps/zlib/crc32.h",
        "libgit2/deps/zlib/deflate.c",
        "libgit2/deps/zlib/deflate.h",
        "libgit2/deps/zlib/inffast.c",
        "libgit2/deps/zlib/inffast.h",
        "libgit2/deps/zlib/inffixed.h",
        "libgit2/deps/zlib/inflate.c",
        "libgit2/deps/zlib/inflate.h",
        "libgit2/deps/zlib/inftrees.c",
        "libgit2/deps/zlib/inftrees.h",
        "libgit2/deps/zlib/trees.c",
        "libgit2/deps/zlib/trees.h",
        "libgit2/deps/zlib/zconf.h",
        "libgit2/deps/zlib/zlib.h",
        "libgit2/deps/zlib/zutil.c",
        "libgit2/deps/zlib/zutil.h",
Robo's avatar
Robo committed
460 461 462 463 464 465
      ],
      "defines": [
        "NO_VIZ",
        "STDC",
        "NO_GZIP",
      ],
466 467 468 469 470 471 472
      "conditions": [
        ["OS=='win'", {
          "include_dirs": [
            "libgit2/deps/regex"
          ]
        }]
      ],
Robo's avatar
Robo committed
473
      "include_dirs": [
474
        "libgit2/include"
Robo's avatar
Robo committed
475 476 477
      ],
      "direct_dependent_settings": {
        "include_dirs": [
Tim Branyen's avatar
Tim Branyen committed
478
          "libgit2/deps/zlib",
Robo's avatar
Robo committed
479 480 481
        ],
      },
    },
482 483 484
    {
      "target_name": "libssh2",
      "type": "static_library",
485 486 487
      "defines": [
        "NETSNMP_ENABLE_IPV6"
      ],
488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515
      "sources": [
        "libssh2/src/agent.c",
        "libssh2/src/crypt.c",
        "libssh2/src/keepalive.c",
        "libssh2/src/libgcrypt.c",
        "libssh2/src/openssl.c",
        "libssh2/src/publickey.c",
        "libssh2/src/sftp.c",
        "libssh2/src/version.c",
        "libssh2/src/channel.c",
        "libssh2/src/global.c",
        "libssh2/src/kex.c",
        "libssh2/src/mac.c",
        "libssh2/src/packet.c",
        "libssh2/src/scp.c",
        "libssh2/src/transport.c",
        "libssh2/src/comp.c",
        "libssh2/src/hostkey.c",
        "libssh2/src/knownhost.c",
        "libssh2/src/misc.c",
        "libssh2/src/pem.c",
        "libssh2/src/session.c",
        "libssh2/src/userauth.c",
      ],
      "include_dirs": [
        ".",
        "libssh2/include",
      ],
John Haley's avatar
John Haley committed
516
      "dependencies": [
517
        "openssl/openssl.gyp:openssl"
John Haley's avatar
John Haley committed
518 519 520 521 522 523
      ],
      "direct_dependent_settings": {
        "include_dirs": [
          "libssh2/include"
        ]
      },
524 525 526
      "conditions": [
        ["OS=='win'", {
          "include_dirs": [
527
            "libssh2/src",
528
            "libssh2/win32",
John Haley's avatar
John Haley committed
529
            "libssh2/include"
530
          ],
John Haley's avatar
John Haley committed
531 532 533
          "defines!": [
            "HAVE_POLL"
          ],
John Haley's avatar
John Haley committed
534 535
          "direct_dependent_settings": {
            "include_dirs": [
Tim Branyen's avatar
Tim Branyen committed
536 537 538
              "libssh2/src",
              "libssh2/win32",
              "libssh2/include"
John Haley's avatar
John Haley committed
539 540
            ]
          }
541 542
        }],
      ]
543
    }
Robo's avatar
Robo committed
544 545
  ]
}