forked from Debian/apt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
370 additions
and
119 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
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,20 @@ | ||
find_path(ICONV_INCLUDE_DIR NAMES iconv.h) | ||
|
||
find_library(ICONV_LIBRARY NAMES iconv) | ||
if (ICONV_LIBRARY) | ||
set(ICONV_SYMBOL_FOUND "${ICONV_LIBRARY}") | ||
else() | ||
check_function_exists(iconv_open ICONV_SYMBOL_FOUND) | ||
endif() | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(Iconv DEFAULT_MESSAGE ICONV_INCLUDE_DIR ICONV_SYMBOL_FOUND) | ||
|
||
if(ICONV_LIBRARY) | ||
set(ICONV_LIBRARIES "${ICONV_LIBRARY}") | ||
else() | ||
set(ICONV_LIBRARIES) | ||
endif() | ||
set(ICONV_INCLUDE_DIRS "${ICONV_INCLUDE_DIR}") | ||
|
||
mark_as_advanced(ICONV_LIBRARY ICONV_INCLUDE_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# - Try to find LZ4 | ||
# Once done, this will define | ||
# | ||
# LZ4_FOUND - system has LZ4 | ||
# LZ4_INCLUDE_DIRS - the LZ4 include directories | ||
# LZ4_LIBRARIES - the LZ4 library | ||
find_package(PkgConfig) | ||
|
||
pkg_check_modules(LZ4_PKGCONF liblz4) | ||
|
||
find_path(LZ4_INCLUDE_DIRS | ||
NAMES lz4frame.h | ||
PATHS ${LZ4_PKGCONF_INCLUDE_DIRS} | ||
) | ||
|
||
|
||
find_library(LZ4_LIBRARIES | ||
NAMES lz4 | ||
PATHS ${LZ4_PKGCONF_LIBRARY_DIRS} | ||
) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(LZ4 DEFAULT_MSG LZ4_INCLUDE_DIRS LZ4_LIBRARIES) | ||
|
||
mark_as_advanced(LZ4_INCLUDE_DIRS LZ4_LIBRARIES) |
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,25 @@ | ||
# - Try to find LZMA | ||
# Once done, this will define | ||
# | ||
# LZMA_FOUND - system has LZMA | ||
# LZMA_INCLUDE_DIRS - the LZMA include directories | ||
# LZMA_LIBRARIES - the LZMA library | ||
find_package(PkgConfig) | ||
|
||
pkg_check_modules(LZMA_PKGCONF liblzma) | ||
|
||
find_path(LZMA_INCLUDE_DIRS | ||
NAMES lzma.h | ||
PATHS ${LZMA_PKGCONF_INCLUDE_DIRS} | ||
) | ||
|
||
|
||
find_library(LZMA_LIBRARIES | ||
NAMES lzma | ||
PATHS ${LZMA_PKGCONF_LIBRARY_DIRS} | ||
) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(LZMA DEFAULT_MSG LZMA_INCLUDE_DIRS LZMA_LIBRARIES) | ||
|
||
mark_as_advanced(LZMA_INCLUDE_DIRS LZMA_LIBRARIES) |
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,9 @@ | ||
#include <config.h> | ||
|
||
#ifdef HAVE_MACHINE_ENDIAN_H | ||
#include <machine/endian.h> | ||
#endif | ||
#ifdef HAVE_SYS_ENDIAN_H | ||
#include <sys/types.h> | ||
#include <sys/endian.h> | ||
#endif |
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.