Skip to content

Commit 23b98da

Browse files
committed
Copy libssh2 config headers straight into vendor/libssh2
1 parent b29ab01 commit 23b98da

File tree

3 files changed

+3
-13
lines changed

3 files changed

+3
-13
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
/vendor/libssh2/example/stamp-h2
3030
/vendor/libssh2/libssh2.pc
3131
/vendor/libssh2/libtool
32-
/vendor/libssh2/darwin/
3332
/vendor/libssh2/src/.deps/
3433
/vendor/libssh2/src/Makefile
3534
/vendor/libssh2/src/libssh2_config.h

utils/configureLibssh2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = function retrieveExternalDependencies() {
1313
if (process.platform === "win32" || process.platform === "darwin") {
1414
return fse.copy(
1515
path.join(libssh2StaticConfigDirectory, process.platform),
16-
path.join(libssh2VendorDirectory, process.platform)
16+
path.join(libssh2VendorDirectory, "src")
1717
);
1818
}
1919

vendor/libgit2.gyp

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -537,16 +537,9 @@
537537
]
538538
},
539539
"conditions": [
540-
["OS=='mac'", {
540+
["OS=='mac' and node_root_dir.split('/')[-1].startswith('iojs')", {
541541
"include_dirs": [
542-
"libssh2/darwin"
543-
],
544-
"conditions": [
545-
["node_root_dir.split('/')[-1].startswith('iojs')", {
546-
"include_dirs": [
547-
"openssl/include",
548-
]
549-
}]
542+
"openssl/include",
550543
]
551544
}],
552545
["OS=='win'", {
@@ -568,7 +561,6 @@
568561
],
569562
"include_dirs": [
570563
"libssh2/src",
571-
"libssh2/win32",
572564
"libssh2/include"
573565
],
574566
"defines!": [
@@ -577,7 +569,6 @@
577569
"direct_dependent_settings": {
578570
"include_dirs": [
579571
"libssh2/src",
580-
"libssh2/win32",
581572
"libssh2/include"
582573
]
583574
}

0 commit comments

Comments
 (0)