-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dependencies vendoring, part 2 #1232
Open
PetrShumilov
wants to merge
20
commits into
master
Choose a base branch
from
pshumilov/dependency_vendoring_part2
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,381
−318
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
c74e1bc
Add passing CFLAGS to third-parties
PetrShumilov 3fc1aef
Remove BUILD_IN_SOURCE to keep third-party directories clean
PetrShumilov 9d87bfb
Add patch applying for OpenSSL
PetrShumilov bc063a1
Add zlib vendoring
PetrShumilov 1c9a288
Add nghttp2 vendoring
PetrShumilov 82bf25e
Update source url for OpenSSL and Nghttp2
PetrShumilov 49f5837
Add zstd vendoring
PetrShumilov 196fdbc
Factorize runtime library into PIC and non-PIC versions
PetrShumilov df74c56
Fix order in unicode target build
PetrShumilov 9cfe22c
Ignore deprecation warning in gtest internals
PetrShumilov 11f4ca4
Replace vk_add_library into vk_add_library_pic and vk_add_library_no_pic
PetrShumilov e89b869
Introduce pic and no-pic build variants for zstd
PetrShumilov 3356ba8
Introduce pic and no-pic build variants for nghttp2
PetrShumilov c688744
Introduce pic and no-pic build variants for curl
PetrShumilov 4170aed
Introduce pic and no-pic build variants for OpenSSL
PetrShumilov 0d97b39
Remove useless cmake files
PetrShumilov c633d28
Remove unnecessary copying of third-party artifacts into objs/lib
PetrShumilov 4be82e5
Add re2 vendoring
PetrShumilov 0477f7e
Use target_compile_options instead of set_target_properties
PetrShumilov 365eca4
Add pcre vendoring
PetrShumilov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
function(apply_patches_from_series build_dir series_file patch_dir) | ||
# Check for the presence of the patch utility | ||
find_program(PATCH_EXECUTABLE patch) | ||
if(NOT PATCH_EXECUTABLE) | ||
message(FATAL_ERROR "The 'patch' utility is not found on this system.") | ||
endif() | ||
|
||
# Read the series file and apply each patch listed | ||
file(READ "${series_file}" series_content) | ||
string(REPLACE "\n" ";" series_list "${series_content}") | ||
|
||
foreach(patch IN LISTS series_list) | ||
if(NOT patch STREQUAL "") | ||
# Construct the full path to the patch file | ||
set(patch_file "${patch_dir}${patch}") | ||
|
||
# Apply the patch using GNU patch | ||
execute_process( | ||
COMMAND ${PATCH_EXECUTABLE} -p1 -i "${patch_file}" | ||
WORKING_DIRECTORY "${build_dir}" | ||
RESULT_VARIABLE result | ||
OUTPUT_VARIABLE output | ||
ERROR_VARIABLE error | ||
) | ||
|
||
if(NOT result EQUAL 0) | ||
message(FATAL_ERROR "Failed to apply patch: ${patch}\nOutput: ${output}\nError: ${error}") | ||
else() | ||
message(STATUS "Applied patch: ${patch}") | ||
endif() | ||
endif() | ||
endforeach() | ||
endfunction() | ||
|
||
apply_patches_from_series(${BUILD_DIR} ${PATCH_SERIES} ${PATCH_DIR}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, add a comment describing why is it needed