2020-11-08 10:11:16 +08:00
|
|
|
CMAKE_MINIMUM_REQUIRED(VERSION 3.0)
|
2018-08-02 08:41:11 +08:00
|
|
|
|
2018-07-13 05:17:08 +08:00
|
|
|
PROJECT(UEFIExtract)
|
|
|
|
|
|
|
|
SET(PROJECT_SOURCES
|
|
|
|
uefiextract_main.cpp
|
|
|
|
ffsdumper.cpp
|
2018-08-02 09:10:39 +08:00
|
|
|
uefidump.cpp
|
2018-07-13 05:17:08 +08:00
|
|
|
../common/guiddatabase.cpp
|
|
|
|
../common/types.cpp
|
|
|
|
../common/descriptor.cpp
|
|
|
|
../common/ffs.cpp
|
|
|
|
../common/nvram.cpp
|
|
|
|
../common/nvramparser.cpp
|
2019-08-20 02:36:02 +08:00
|
|
|
../common/meparser.cpp
|
2018-07-13 05:17:08 +08:00
|
|
|
../common/ffsparser.cpp
|
|
|
|
../common/ffsreport.cpp
|
|
|
|
../common/peimage.cpp
|
|
|
|
../common/treeitem.cpp
|
|
|
|
../common/treemodel.cpp
|
|
|
|
../common/utility.cpp
|
|
|
|
../common/LZMA/LzmaDecompress.c
|
2020-03-07 04:54:20 +08:00
|
|
|
../common/LZMA/SDK/C/Bra86.c
|
2018-07-13 05:17:08 +08:00
|
|
|
../common/LZMA/SDK/C/LzmaDec.c
|
|
|
|
../common/Tiano/EfiTianoDecompress.c
|
|
|
|
../common/ustring.cpp
|
|
|
|
../common/sha256.c
|
|
|
|
../common/bstrlib/bstrlib.c
|
|
|
|
../common/bstrlib/bstrwrap.cpp
|
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-07-13 05:17:08 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
SET(PROJECT_HEADERS
|
|
|
|
ffsdumper.h
|
2018-08-02 09:10:39 +08:00
|
|
|
uefidump.h
|
2018-07-13 05:17:08 +08:00
|
|
|
../common/guiddatabase.h
|
|
|
|
../common/basetypes.h
|
|
|
|
../common/descriptor.h
|
|
|
|
../common/gbe.h
|
|
|
|
../common/me.h
|
|
|
|
../common/ffs.h
|
|
|
|
../common/nvram.h
|
|
|
|
../common/nvramparser.h
|
|
|
|
../common/ffsparser.h
|
|
|
|
../common/ffsreport.h
|
|
|
|
../common/peimage.h
|
|
|
|
../common/types.h
|
|
|
|
../common/treeitem.h
|
|
|
|
../common/treemodel.h
|
|
|
|
../common/utility.h
|
|
|
|
../common/LZMA/LzmaDecompress.h
|
|
|
|
../common/Tiano/EfiTianoDecompress.h
|
|
|
|
../common/ubytearray.h
|
|
|
|
../common/ustring.h
|
|
|
|
../common/bootguard.h
|
|
|
|
../common/sha256.h
|
|
|
|
../common/filesystem.h
|
|
|
|
../common/bstrlib/bstrlib.h
|
|
|
|
../common/bstrlib/bstrwrap.h
|
2018-11-11 21:33:13 +08:00
|
|
|
../common/zlib/zconf.h
|
|
|
|
../common/zlib/zlib.h
|
|
|
|
../common/zlib/crc32.h
|
|
|
|
../common/zlib/deflate.h
|
|
|
|
../common/zlib/gzguts.h
|
|
|
|
../common/zlib/inffast.h
|
|
|
|
../common/zlib/inffixed.h
|
|
|
|
../common/zlib/inflate.h
|
|
|
|
../common/zlib/inftrees.h
|
|
|
|
../common/zlib/trees.h
|
|
|
|
../common/zlib/zutil.h
|
2018-07-13 05:17:08 +08:00
|
|
|
../version.h
|
|
|
|
)
|
|
|
|
|
2019-08-20 02:36:02 +08:00
|
|
|
ADD_DEFINITIONS(-DU_ENABLE_NVRAM_PARSING_SUPPORT -DU_ENABLE_ME_PARSING_SUPPORT -DU_ENABLE_FIT_PARSING_SUPPORT -DU_ENABLE_GUID_DATABASE_SUPPORT)
|
2018-07-13 05:17:08 +08:00
|
|
|
|
2020-07-20 18:15:08 +08:00
|
|
|
ADD_EXECUTABLE(UEFIExtract ${PROJECT_SOURCES} ${PROJECT_HEADERS})
|
2020-11-08 10:11:16 +08:00
|
|
|
|
|
|
|
IF (${CMAKE_VERSION} VERSION_EQUAL "3.15.0" OR
|
|
|
|
${CMAKE_VERSION} VERSION_GREATER "3.15.0")
|
|
|
|
SET_PROPERTY(TARGET UEFIExtract PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
|
|
|
ENDIF()
|