-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #302 from yuchen0cc/main
untar: support pax xattr header
- Loading branch information
Showing
24 changed files
with
115 additions
and
3,330 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
if(NOT ORIGIN_EXT2FS) | ||
message("Add and build standalone libext2fs") | ||
include(FetchContent) | ||
FetchContent_Declare( | ||
e2fsprogs | ||
GIT_REPOSITORY https://github.com/data-accelerator/e2fsprogs.git | ||
GIT_TAG f8664ddfd662b1664104e0bbd5ac202a6e3b1da6 | ||
) | ||
FetchContent_GetProperties(e2fsprogs) | ||
|
||
if(NOT TARGET libext2fs_build) | ||
if (NOT e2fsprogs_POPULATED) | ||
FetchContent_Populate(e2fsprogs) | ||
endif() | ||
set(LIBEXT2FS_INSTALL_DIR ${e2fsprogs_SOURCE_DIR}/build/libext2fs CACHE STRING "") | ||
|
||
add_custom_command( | ||
OUTPUT ${LIBEXT2FS_INSTALL_DIR}/lib | ||
WORKING_DIRECTORY ${e2fsprogs_SOURCE_DIR} | ||
COMMAND chmod 755 build.sh && ./build.sh | ||
) | ||
add_custom_target(libext2fs_build DEPENDS ${LIBEXT2FS_INSTALL_DIR}/lib) | ||
endif() | ||
|
||
set(E2FS_FOUND yes) | ||
set(E2FS_LIBRARY ${LIBEXT2FS_INSTALL_DIR}/lib/libext2fs.so) | ||
set(E2FS_LIBRARIES ${E2FS_LIBRARY}) | ||
set(E2FS_INCLUDE_DIR ${LIBEXT2FS_INSTALL_DIR}/include) | ||
set(E2FS_INCLUDE_DIRS ${E2FS_INCLUDE_DIR}) | ||
|
||
if(NOT TARGET libext2fs) | ||
add_library(libext2fs UNKNOWN IMPORTED) | ||
endif() | ||
add_dependencies(libext2fs libext2fs_build) | ||
|
||
else() | ||
find_path(E2FS_INCLUDE_DIRS ext2fs/ext2fs.h) | ||
find_library(E2FS_LIBRARIES ext2fs) | ||
endif() | ||
|
||
find_package_handle_standard_args(e2fs DEFAULT_MSG E2FS_LIBRARIES E2FS_INCLUDE_DIRS) | ||
|
||
mark_as_advanced(E2FS_INCLUDE_DIRS E2FS_LIBRARIES) |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.