Submodules BoringSSL and Curl with copy script (#8)

This commit is contained in:
norbis3 2022-12-30 10:15:58 +01:00 committed by GitHub
parent 76f81dd422
commit 77d68066a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 21 additions and 2 deletions

6
.gitmodules vendored Normal file
View File

@ -0,0 +1,6 @@
[submodule "curl_original"]
path = curl_original
url = https://github.com/curl/curl.git
[submodule "boringssl_original"]
path = boringssl_original
url = https://github.com/google/boringssl.git

View File

@ -16,8 +16,8 @@ MSYS2 is needed to build binaries. Steps:
3. Install additional packages: `pacman -S patch mingw-w64-x86_64-make mingw-w64-x86_64-cmake mingw-w64-x86_64-nasm mingw-w64-x86_64-gcc mingw-w64-x86_64-go`
# Build
1. Download and unpack curl and boringssl source code into according folders (see versions)
2. Run scripts `patch_curl.bat` and `patch_boringssl.bat` to patch source code
1. Clone this repository with --recursive attribute to get BoringSSL and Curl submodules.
2. Run script `copy_and_patch.bat` to copy original source codes to patchable directories and patch source code.
3. Run script `build.bat` to build binaries. Ready to use binaries are located within `curl\bin` folder.
In case if everything goes fine you should see this:

1
boringssl_original Submodule

@ -0,0 +1 @@
Subproject commit 3a667d10e94186fd503966f5638e134fe9fb4080

7
copy_and_patch.bat Normal file
View File

@ -0,0 +1,7 @@
xcopy .\boringssl_original\* .\boringssl\ /r /d /i /s /y /exclude:.\patch\excludecopy.txt
xcopy .\curl_original\* .\curl\ /r /d /i /s /y /exclude:.\patch\excludecopy.txt
start patch_boringssl.bat
start patch_curl.bat
pause

View File

1
curl_original Submodule

@ -0,0 +1 @@
Subproject commit 45ac4d019475df03562fe0ac54eb67e1d1de0ca7

4
patch/excludecopy.txt Normal file
View File

@ -0,0 +1,4 @@
.git
.gitignore
.gitattribute
.git-blame-ignore-revs