Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
udf: rework IFile and IFileDirectory implementation
This change allows using libcdio's libudf
- Loading branch information
Showing
12 changed files
with
225 additions
and
1,608 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 |
---|---|---|
|
@@ -154,6 +154,7 @@ set(optional_deps Alsa | |
SmbClient | ||
Sndio | ||
UDEV | ||
Udf | ||
XSLT | ||
${PLATFORM_OPTIONAL_DEPS}) | ||
|
||
|
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,36 @@ | ||
#.rst: | ||
# FindUdf | ||
# -------- | ||
# Finds the udf library | ||
# | ||
# This will define the following variables:: | ||
# | ||
# UDF_FOUND - system has udf | ||
# UDF_INCLUDE_DIRS - the udf include directory | ||
# UDF_LIBRARIES - the udf libraries | ||
# UDF_DEFINITIONS - the udf definitions | ||
|
||
if(PKG_CONFIG_FOUND) | ||
pkg_check_modules(PC_UDF libudf>=0.94 QUIET) | ||
endif() | ||
|
||
find_path(UDF_INCLUDE_DIR NAMES cdio/udf.h | ||
PATHS ${PC_UDF_INCLUDEDIR}) | ||
|
||
find_library(UDF_LIBRARY NAMES udf libudf | ||
PATHS ${PC_UDF_LIBDIR}) | ||
|
||
set(UDF_VERSION ${PC_UDF_VERSION}) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(Udf | ||
REQUIRED_VARS UDF_LIBRARY UDF_INCLUDE_DIR | ||
VERSION_VAR UDF_VERSION) | ||
|
||
if(UDF_FOUND) | ||
set(UDF_LIBRARIES ${UDF_LIBRARY}) | ||
set(UDF_INCLUDE_DIRS ${UDF_INCLUDE_DIR}) | ||
set(UDF_DEFINITIONS -DHAS_UDF=1) | ||
endif() | ||
|
||
mark_as_advanced(UDF_INCLUDE_DIR UDF_LIBRARY) |
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
Oops, something went wrong.