mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
2925fcd4bc
... instead of shamelessly stealing its sources.
33 lines
787 B
CMake
33 lines
787 B
CMake
set(SOURCES
|
|
Image.cpp
|
|
Validation.cpp
|
|
)
|
|
|
|
serenity_install_headers("LibELF")
|
|
serenity_install_sources("Userland/Libraries/LibELF")
|
|
|
|
if (SERENITYOS)
|
|
list(APPEND SOURCES
|
|
Arch/${SERENITY_ARCH}/entry.S
|
|
Arch/${SERENITY_ARCH}/plt_trampoline.S
|
|
Arch/${SERENITY_ARCH}/tls.cpp
|
|
DynamicLinker.cpp
|
|
DynamicLoader.cpp
|
|
DynamicObject.cpp
|
|
ELFBuild.cpp
|
|
Relocation.cpp
|
|
)
|
|
|
|
if (SERENITY_ARCH STREQUAL "aarch64")
|
|
list(APPEND SOURCES
|
|
Arch/aarch64/tls.S
|
|
)
|
|
endif()
|
|
|
|
add_library(DynamicLoader_LibELF STATIC ${SOURCES})
|
|
target_link_libraries(DynamicLoader_LibELF PUBLIC DynamicLoader_CompileOptions)
|
|
endif()
|
|
|
|
serenity_lib(LibELF elf ${SOURCES})
|
|
target_link_libraries(LibELF PRIVATE LibSystem)
|