diff --git a/godot-git-plugin/src/gdlibrary.os b/godot-git-plugin/src/gdlibrary.os new file mode 100644 index 0000000..0ffd4ad Binary files /dev/null and b/godot-git-plugin/src/gdlibrary.os differ diff --git a/godot-git-plugin/src/git_api.os b/godot-git-plugin/src/git_api.os new file mode 100644 index 0000000..3a92ec1 Binary files /dev/null and b/godot-git-plugin/src/git_api.os differ diff --git a/godot-git-plugin/src/git_common.os b/godot-git-plugin/src/git_common.os new file mode 100644 index 0000000..348cd46 Binary files /dev/null and b/godot-git-plugin/src/git_common.os differ diff --git a/thirdparty/git2/SCsub b/thirdparty/git2/SCsub index a483aa0..7799e9e 100644 --- a/thirdparty/git2/SCsub +++ b/thirdparty/git2/SCsub @@ -91,7 +91,10 @@ if env_git["platform"] == "windows": ) if env_git["platform"] in ["linux", "osx"]: - libgit2_sources += Glob("libgit2/deps/ntlmclient/crypt_openssl.c") + libgit2_sources += [ + "libgit2/deps/ntlmclient/crypt_openssl.c", + "libgit2/deps/ntlmclient/unicode_builtin.c" + ] env_git.Prepend( CPPDEFINES=[ "HAVE_DIRENT_H", @@ -121,10 +124,9 @@ if env_git["platform"] in ["linux", "osx"]: "GIT_OPENSSL", "GIT_USE_FUTIMENS", "GIT_USE_STAT_MTIM", - "CRYPT_OPENSSL" + "CRYPT_OPENSSL", + "UNICODE_BUILTIN" ] ) -env.Append(LIBPATH=["../bin/"]) - env_git.StaticLibrary(target = "../bin/" + "git2", source = libgit2_sources) diff --git a/thirdparty/ssh2/SCsub b/thirdparty/ssh2/SCsub index 41fb6dd..a0e47e4 100644 --- a/thirdparty/ssh2/SCsub +++ b/thirdparty/ssh2/SCsub @@ -69,21 +69,57 @@ if env_ssh2["platform"] == "osx": "libssh2/os400/" ] ) - libssh2_sources += ["libssh2/os400/" + "*.c"] + libssh2_sources += ["libssh2/src/openssl.c"] env_ssh2.Append( - CPPDEFINES=[] + CPPDEFINES=[ + "LIBSSH2_OPENSSL", + "HAVE_SYS_UIO_H" + ] ) if env_ssh2["platform"] == "linux": env_ssh2.Append( CPPPATH=[ + ".", "libssh2/include/", - "libssh2/vms/" ] ) + libssh2_sources += ["libssh2/src/openssl.c"] env_ssh2.Append( CPPDEFINES=[ - "LIBSSH2_OPENSSL" + "LIBSSH2_CONFIG_H", + "HAVE_SYS_UIO_H", + ("HAVE_ALLOCA", 1), + ("HAVE_ALLOCA_H", 1), + ("HAVE_ARPA_INET_H", 1), + ("HAVE_ERRNO_H", 1), + ("HAVE_FCNTL_H", 1), + ("HAVE_GETTIMEOFDAY", 1), + ("HAVE_GETTIMEOFDAY", 1), + ("HAVE_INTTYPES_H", 1), + ("HAVE_LONGLONG", 1), + ("HAVE_NETINET_IN_H", 1), + ("HAVE_O_NONBLOCK", 1), + ("HAVE_SELECT", 1), + ("HAVE_STDINT_H", 1), + ("HAVE_STDIO_H", 1), + ("HAVE_STDLIB_H", 1), + ("HAVE_STRINGS_H", 1), + ("HAVE_STRING_H", 1), + ("HAVE_STRTOLL", 1), + ("HAVE_SYS_IOCTL_H", 1), + ("HAVE_SYS_SOCKET_H", 1), + ("HAVE_SYS_STAT_H", 1), + ("HAVE_SYS_TIME_H", 1), + ("HAVE_SYS_TYPES_H", 1), + ("HAVE_SYS_UIO_H", 1), + ("HAVE_SYS_UN_H", 1), + ("HAVE_UNISTD_H", 1), + ("LIBSSH2_CLEAR_MEMORY", 1), + ("LIBSSH2_DH_GEX_NEW", 1), + ("LIBSSH2_OPENSSL", 1), + ("LT_OBJDIR", ".libs/"), + ("STDC_HEADERS", 1) ] ) diff --git a/thirdparty/ssh2/libssh2_config.h b/thirdparty/ssh2/libssh2_config.h new file mode 100644 index 0000000..e69de29