mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 05:17:34 +00:00
Meta: Rename Lagom library target names from LagomFoo to LibFoo
This matches the target names for the main serenity build, and will make simplifying the Lagom build much easier going forward. The LagomFoo name came from a time when we had both library builds in the same CMake generated project and needed to deconflict the names.
This commit is contained in:
parent
02e8f29560
commit
2b29e611fe
8 changed files with 136 additions and 138 deletions
|
@ -3,73 +3,73 @@ function(add_simple_fuzzer name)
|
|||
|
||||
if (ENABLE_FUZZERS_OSSFUZZ)
|
||||
target_link_libraries(${name}
|
||||
PUBLIC ${ARGN} LagomCore)
|
||||
PUBLIC ${ARGN} LibCore)
|
||||
elseif (ENABLE_FUZZERS_LIBFUZZER)
|
||||
target_compile_options(${name}
|
||||
PRIVATE $<$<CXX_COMPILER_ID:Clang>:-g -O1 -fsanitize=fuzzer>
|
||||
)
|
||||
target_link_libraries(${name}
|
||||
PUBLIC ${ARGN} LagomCore
|
||||
PUBLIC ${ARGN} LibCore
|
||||
PRIVATE $<$<CXX_COMPILER_ID:Clang>:-fsanitize=fuzzer>
|
||||
)
|
||||
else()
|
||||
target_sources(${name} PRIVATE "EntryShim.cpp")
|
||||
target_link_libraries(${name} PUBLIC ${ARGN} LagomCore)
|
||||
target_link_libraries(${name} PUBLIC ${ARGN} LibCore)
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
add_simple_fuzzer(FuzzBMPLoader LagomGfx)
|
||||
add_simple_fuzzer(FuzzBrotli LagomCompress)
|
||||
add_simple_fuzzer(FuzzCSSParser LagomWeb)
|
||||
add_simple_fuzzer(FuzzCyrillicDecoder LagomTextCodec)
|
||||
add_simple_fuzzer(FuzzDeflateCompression LagomCompress)
|
||||
add_simple_fuzzer(FuzzDeflateDecompression LagomCompress)
|
||||
add_simple_fuzzer(FuzzELF LagomELF)
|
||||
add_simple_fuzzer(FuzzFlacLoader LagomAudio)
|
||||
add_simple_fuzzer(FuzzGemini LagomGemini)
|
||||
add_simple_fuzzer(FuzzGIFLoader LagomGfx)
|
||||
add_simple_fuzzer(FuzzGzipCompression LagomCompress)
|
||||
add_simple_fuzzer(FuzzGzipDecompression LagomCompress)
|
||||
add_simple_fuzzer(FuzzICOLoader LagomGfx)
|
||||
add_simple_fuzzer(FuzzJPGLoader LagomGfx)
|
||||
add_simple_fuzzer(FuzzMD5 LagomCrypto)
|
||||
add_simple_fuzzer(FuzzMP3Loader LagomAudio)
|
||||
add_simple_fuzzer(FuzzPEM LagomCrypto)
|
||||
add_simple_fuzzer(FuzzPNGLoader LagomGfx)
|
||||
add_simple_fuzzer(FuzzPBMLoader LagomGfx)
|
||||
add_simple_fuzzer(FuzzPGMLoader LagomGfx)
|
||||
add_simple_fuzzer(FuzzPoly1305 LagomCrypto)
|
||||
add_simple_fuzzer(FuzzPPMLoader LagomGfx)
|
||||
add_simple_fuzzer(FuzzPDF LagomPDF)
|
||||
add_simple_fuzzer(FuzzQOILoader LagomGfx)
|
||||
add_simple_fuzzer(FuzzQuotedPrintableParser LagomIMAP)
|
||||
add_simple_fuzzer(FuzzHebrewDecoder LagomTextCodec)
|
||||
add_simple_fuzzer(FuzzHttpRequest LagomHTTP)
|
||||
add_simple_fuzzer(FuzzIMAPParser LagomIMAP)
|
||||
add_simple_fuzzer(FuzzJs LagomJS)
|
||||
add_simple_fuzzer(FuzzLatin1Decoder LagomTextCodec)
|
||||
add_simple_fuzzer(FuzzLatin2Decoder LagomTextCodec)
|
||||
add_simple_fuzzer(FuzzMarkdown LagomMarkdown)
|
||||
add_simple_fuzzer(FuzzRegexECMA262 LagomRegex)
|
||||
add_simple_fuzzer(FuzzRegexPosixBasic LagomRegex)
|
||||
add_simple_fuzzer(FuzzRegexPosixExtended LagomRegex)
|
||||
add_simple_fuzzer(FuzzASN1 LagomCrypto LagomTLS)
|
||||
add_simple_fuzzer(FuzzSHA1 LagomCrypto)
|
||||
add_simple_fuzzer(FuzzSHA256 LagomCrypto)
|
||||
add_simple_fuzzer(FuzzSHA384 LagomCrypto)
|
||||
add_simple_fuzzer(FuzzSHA512 LagomCrypto)
|
||||
add_simple_fuzzer(FuzzShell LagomShell)
|
||||
add_simple_fuzzer(FuzzSQLParser LagomSQL)
|
||||
add_simple_fuzzer(FuzzTTF LagomGfx)
|
||||
add_simple_fuzzer(FuzzBMPLoader LibGfx)
|
||||
add_simple_fuzzer(FuzzBrotli LibCompress)
|
||||
add_simple_fuzzer(FuzzCSSParser LibWeb)
|
||||
add_simple_fuzzer(FuzzCyrillicDecoder LibTextCodec)
|
||||
add_simple_fuzzer(FuzzDeflateCompression LibCompress)
|
||||
add_simple_fuzzer(FuzzDeflateDecompression LibCompress)
|
||||
add_simple_fuzzer(FuzzELF LibELF)
|
||||
add_simple_fuzzer(FuzzFlacLoader LibAudio)
|
||||
add_simple_fuzzer(FuzzGemini LibGemini)
|
||||
add_simple_fuzzer(FuzzGIFLoader LibGfx)
|
||||
add_simple_fuzzer(FuzzGzipCompression LibCompress)
|
||||
add_simple_fuzzer(FuzzGzipDecompression LibCompress)
|
||||
add_simple_fuzzer(FuzzICOLoader LibGfx)
|
||||
add_simple_fuzzer(FuzzJPGLoader LibGfx)
|
||||
add_simple_fuzzer(FuzzMD5 LibCrypto)
|
||||
add_simple_fuzzer(FuzzMP3Loader LibAudio)
|
||||
add_simple_fuzzer(FuzzPEM LibCrypto)
|
||||
add_simple_fuzzer(FuzzPNGLoader LibGfx)
|
||||
add_simple_fuzzer(FuzzPBMLoader LibGfx)
|
||||
add_simple_fuzzer(FuzzPGMLoader LibGfx)
|
||||
add_simple_fuzzer(FuzzPoly1305 LibCrypto)
|
||||
add_simple_fuzzer(FuzzPPMLoader LibGfx)
|
||||
add_simple_fuzzer(FuzzPDF LibPDF)
|
||||
add_simple_fuzzer(FuzzQOILoader LibGfx)
|
||||
add_simple_fuzzer(FuzzQuotedPrintableParser LibIMAP)
|
||||
add_simple_fuzzer(FuzzHebrewDecoder LibTextCodec)
|
||||
add_simple_fuzzer(FuzzHttpRequest LibHTTP)
|
||||
add_simple_fuzzer(FuzzIMAPParser LibIMAP)
|
||||
add_simple_fuzzer(FuzzJs LibJS)
|
||||
add_simple_fuzzer(FuzzLatin1Decoder LibTextCodec)
|
||||
add_simple_fuzzer(FuzzLatin2Decoder LibTextCodec)
|
||||
add_simple_fuzzer(FuzzMarkdown LibMarkdown)
|
||||
add_simple_fuzzer(FuzzRegexECMA262 LibRegex)
|
||||
add_simple_fuzzer(FuzzRegexPosixBasic LibRegex)
|
||||
add_simple_fuzzer(FuzzRegexPosixExtended LibRegex)
|
||||
add_simple_fuzzer(FuzzASN1 LibCrypto LibTLS)
|
||||
add_simple_fuzzer(FuzzSHA1 LibCrypto)
|
||||
add_simple_fuzzer(FuzzSHA256 LibCrypto)
|
||||
add_simple_fuzzer(FuzzSHA384 LibCrypto)
|
||||
add_simple_fuzzer(FuzzSHA512 LibCrypto)
|
||||
add_simple_fuzzer(FuzzShell LibShell)
|
||||
add_simple_fuzzer(FuzzSQLParser LibSQL)
|
||||
add_simple_fuzzer(FuzzTTF LibGfx)
|
||||
add_simple_fuzzer(FuzzURL)
|
||||
add_simple_fuzzer(FuzzUTF16BEDecoder LagomTextCodec)
|
||||
add_simple_fuzzer(FuzzRSAKeyParsing LagomCrypto)
|
||||
add_simple_fuzzer(FuzzWAVLoader LagomAudio)
|
||||
add_simple_fuzzer(FuzzWasmParser LagomWasm)
|
||||
add_simple_fuzzer(FuzzWOFF LagomGfx)
|
||||
add_simple_fuzzer(FuzzXML LagomXML)
|
||||
add_simple_fuzzer(FuzzZip LagomArchive)
|
||||
add_simple_fuzzer(FuzzZlibDecompression LagomCompress)
|
||||
add_simple_fuzzer(FuzzUTF16BEDecoder LibTextCodec)
|
||||
add_simple_fuzzer(FuzzRSAKeyParsing LibCrypto)
|
||||
add_simple_fuzzer(FuzzWAVLoader LibAudio)
|
||||
add_simple_fuzzer(FuzzWasmParser LibWasm)
|
||||
add_simple_fuzzer(FuzzWOFF LibGfx)
|
||||
add_simple_fuzzer(FuzzXML LibXML)
|
||||
add_simple_fuzzer(FuzzZip LibArchive)
|
||||
add_simple_fuzzer(FuzzZlibDecompression LibCompress)
|
||||
|
||||
if (ENABLE_FUZZERS_LIBFUZZER)
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${ORIGINAL_CMAKE_EXE_LINKER_FLAGS} -fsanitize=address")
|
||||
|
@ -80,7 +80,7 @@ target_compile_options(FuzzilliJs
|
|||
PRIVATE $<$<CXX_COMPILER_ID:Clang>:-g -O1 -fsanitize-coverage=trace-pc-guard>
|
||||
)
|
||||
target_link_libraries(FuzzilliJs
|
||||
PUBLIC LagomCore LagomJS
|
||||
PUBLIC LibCore LibJS
|
||||
PRIVATE $<$<CXX_COMPILER_ID:Clang>:-fsanitize-coverage=trace-pc-guard>
|
||||
)
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue