1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 15:35:06 +00:00
serenity/Userland/Applications/Spreadsheet/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

50 lines
1.3 KiB
CMake

serenity_component(
Spreadsheet
TARGETS Spreadsheet
)
compile_gml(CondFormatting.gml CondFormattingGML.h cond_fmt_gml)
compile_gml(CondView.gml CondFormattingViewGML.h cond_fmt_view_gml)
compile_gml(csv_import.gml CSVImportGML.h csv_import_gml)
compile_gml(csv_export.gml CSVExportGML.h csv_export_gml)
compile_gml(select_format_page.gml FormatSelectionPageGML.h select_format_page_gml)
set(SOURCES
Cell.cpp
CellSyntaxHighlighter.cpp
CellType/Date.cpp
CellType/Format.cpp
CellType/Identity.cpp
CellType/Numeric.cpp
CellType/String.cpp
CellType/Type.cpp
CellTypeDialog.cpp
CondFormattingGML.h
CondFormattingViewGML.h
ExportDialog.cpp
HelpWindow.cpp
ImportDialog.cpp
JSIntegration.cpp
Readers/XSV.cpp
Spreadsheet.cpp
SpreadsheetModel.cpp
SpreadsheetView.cpp
SpreadsheetWidget.cpp
Workbook.cpp
main.cpp
)
set(GENERATED_SOURCES
CSVExportGML.h
CSVImportGML.h
FormatSelectionPageGML.h
)
serenity_app(Spreadsheet ICON app-spreadsheet)
target_link_libraries(Spreadsheet LibGUI LibJS LibWeb)
link_with_unicode_data(Spreadsheet)
serenity_test(Writers/Test/TestXSVWriter.cpp Spreadsheet)
serenity_test(Readers/Test/TestXSV.cpp Spreadsheet)
target_sources(TestXSV PRIVATE Readers/XSV.cpp)