2022-08-29 14:23:38 +08:00
|
|
|
CMAKE_MINIMUM_REQUIRED(VERSION 3.1.0 FATAL_ERROR)
|
2018-08-02 09:10:39 +08:00
|
|
|
|
|
|
|
PROJECT(UEFIFind)
|
|
|
|
|
2022-08-29 14:23:38 +08:00
|
|
|
SET(CMAKE_CXX_STANDARD 11)
|
|
|
|
SET(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
SET(CMAKE_CXX_EXTENSIONS OFF)
|
|
|
|
|
2018-08-02 09:10:39 +08:00
|
|
|
SET(PROJECT_SOURCES
|
|
|
|
uefifind_main.cpp
|
|
|
|
uefifind.cpp
|
|
|
|
../common/guiddatabase.cpp
|
|
|
|
../common/types.cpp
|
|
|
|
../common/descriptor.cpp
|
|
|
|
../common/ffs.cpp
|
|
|
|
../common/nvram.cpp
|
|
|
|
../common/nvramparser.cpp
|
|
|
|
../common/ffsparser.cpp
|
2022-08-29 14:23:38 +08:00
|
|
|
../common/fitparser.cpp
|
2018-08-02 09:10:39 +08:00
|
|
|
../common/ffsreport.cpp
|
2019-01-20 18:23:28 +08:00
|
|
|
../common/ffsutils.cpp
|
2018-08-02 09:10:39 +08:00
|
|
|
../common/peimage.cpp
|
|
|
|
../common/treeitem.cpp
|
|
|
|
../common/treemodel.cpp
|
|
|
|
../common/utility.cpp
|
|
|
|
../common/LZMA/LzmaDecompress.c
|
2022-08-29 14:23:38 +08:00
|
|
|
../common/LZMA/SDK/C/Bra.c
|
2020-03-07 04:54:20 +08:00
|
|
|
../common/LZMA/SDK/C/Bra86.c
|
2022-08-29 14:23:38 +08:00
|
|
|
../common/LZMA/SDK/C/CpuArch.c
|
2018-08-02 09:10:39 +08:00
|
|
|
../common/LZMA/SDK/C/LzmaDec.c
|
|
|
|
../common/Tiano/EfiTianoDecompress.c
|
|
|
|
../common/ustring.cpp
|
|
|
|
../common/bstrlib/bstrlib.c
|
|
|
|
../common/bstrlib/bstrwrap.cpp
|
2022-08-29 14:23:38 +08:00
|
|
|
../common/generated/intel_acbp_v1.cpp
|
|
|
|
../common/generated/intel_acbp_v2.cpp
|
|
|
|
../common/generated/intel_keym_v1.cpp
|
|
|
|
../common/generated/intel_keym_v2.cpp
|
|
|
|
../common/generated/intel_acm.cpp
|
|
|
|
../common/kaitai/kaitaistream.cpp
|
|
|
|
../common/digest/sha1.c
|
|
|
|
../common/digest/sha256.c
|
|
|
|
../common/digest/sha512.c
|
|
|
|
../common/digest/sm3.c
|
2018-11-11 21:33:13 +08:00
|
|
|
../common/zlib/adler32.c
|
|
|
|
../common/zlib/compress.c
|
|
|
|
../common/zlib/crc32.c
|
|
|
|
../common/zlib/deflate.c
|
|
|
|
../common/zlib/gzclose.c
|
|
|
|
../common/zlib/gzlib.c
|
|
|
|
../common/zlib/gzread.c
|
|
|
|
../common/zlib/gzwrite.c
|
|
|
|
../common/zlib/inflate.c
|
|
|
|
../common/zlib/infback.c
|
|
|
|
../common/zlib/inftrees.c
|
|
|
|
../common/zlib/inffast.c
|
|
|
|
../common/zlib/trees.c
|
|
|
|
../common/zlib/uncompr.c
|
|
|
|
../common/zlib/zutil.c
|
2018-08-02 09:10:39 +08:00
|
|
|
)
|
|
|
|
|
2018-08-02 10:37:09 +08:00
|
|
|
ADD_DEFINITIONS(-DU_ENABLE_NVRAM_PARSING_SUPPORT -DU_ENABLE_FIT_PARSING_SUPPORT -DU_ENABLE_GUID_DATABASE_SUPPORT)
|
2018-08-02 09:10:39 +08:00
|
|
|
|
2022-08-29 14:23:38 +08:00
|
|
|
ADD_EXECUTABLE(UEFIFind ${PROJECT_SOURCES})
|
2020-11-08 10:11:16 +08:00
|
|
|
|
2023-02-13 05:08:35 +08:00
|
|
|
IF(UNIX)
|
|
|
|
SET_TARGET_PROPERTIES(UEFIFind PROPERTIES OUTPUT_NAME uefifind)
|
|
|
|
ENDIF()
|
|
|
|
|
2023-02-16 08:28:21 +08:00
|
|
|
INSTALL(
|
|
|
|
TARGETS UEFIFind
|
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
)
|