1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 12:45:06 +00:00
serenity/Userland/Applications/Browser/CMakeLists.txt
Timothy Flynn 565a880ce5 Userland: Link directly against LibUnicodeData where needed
This is partially a revert of commits:
    10a8b6d411
    561b67a1ad

Rather than adding the prot_exec pledge requried to use dlopen(), we can
link directly against LibUnicodeData in applications that we know need
that library.

This might make the dlopen() dance a bit unnecessary. The same purpose
might now be fulfilled with weak symbols. That can be revisted next, but
for now, this at least removes the potential security risk of apps like
the Browser having prot_exec privileges.
2021-12-30 14:18:12 +01:00

30 lines
734 B
CMake

serenity_component(
Browser
RECOMMENDED
TARGETS Browser
DEPENDS ImageDecoder RequestServer WebContent WebSocket
)
compile_gml(BrowserWindow.gml BrowserWindowGML.h browser_window_gml)
compile_gml(EditBookmark.gml EditBookmarkGML.h edit_bookmark_gml)
compile_gml(Tab.gml TabGML.h tab_gml)
set(SOURCES
BookmarksBarWidget.cpp
BrowserWindow.cpp
BrowserWindowGML.h
ConsoleWidget.cpp
CookieJar.cpp
DownloadWidget.cpp
EditBookmarkGML.h
History.cpp
InspectorWidget.cpp
Tab.cpp
TabGML.h
WindowActions.cpp
main.cpp
)
serenity_app(Browser ICON app-browser)
target_link_libraries(Browser LibWeb LibProtocol LibGUI LibDesktop LibConfig LibMain)
link_with_unicode_data(Browser)