gems: ABI and depot recipe for dialog API

This exposes makes the dialog API usable for users of Goa. It turns the
former static dialog library to a shared object and accompanied symbols
file, and adds depot recipes for the library and API.

Issue #5409
This commit is contained in:
Norman Feske 2025-01-03 14:04:58 +01:00 committed by Christian Helmuth
parent c978df4186
commit 1b0829e8a9
10 changed files with 77 additions and 3 deletions

View File

@ -2,3 +2,5 @@ SRC_CC += sandboxed_runtime.cc text_area_widget.cc
LIBS += sandbox
vpath %.cc $(REP_DIR)/src/lib/dialog
SHARED_LIB = yes

View File

@ -0,0 +1,44 @@
_ZN6Dialog16Text_area_widget10_handle_upEv T
_ZN6Dialog16Text_area_widget11_handle_endEv T
_ZN6Dialog16Text_area_widget12_handle_downEv T
_ZN6Dialog16Text_area_widget12_handle_homeEv T
_ZN6Dialog16Text_area_widget12_handle_leftEv T
_ZN6Dialog16Text_area_widget12handle_eventERKNS_5EventERNS0_6ActionE T
_ZN6Dialog16Text_area_widget13_handle_rightEv T
_ZN6Dialog16Text_area_widget14_handle_deleteEv T
_ZN6Dialog16Text_area_widget14_handle_pageupEv T
_ZN6Dialog16Text_area_widget14move_cursor_toERKNS_2AtE T
_ZN6Dialog16Text_area_widget15_handle_newlineEv T
_ZN6Dialog16Text_area_widget16_handle_pagedownEv T
_ZN6Dialog16Text_area_widget16_move_charactersERN6Genode13Dynamic_arrayINS0_9CharacterEEES5_ T
_ZN6Dialog16Text_area_widget16append_characterEN6Genode9CodepointE T
_ZN6Dialog16Text_area_widget17_delete_selectionEv T
_ZN6Dialog16Text_area_widget17_handle_backspaceEv T
_ZN6Dialog16Text_area_widget17_handle_printableEN6Genode9CodepointE T
_ZN6Dialog16Text_area_widget17_insert_printableEN6Genode9CodepointE T
_ZN6Dialog16Text_area_widget25_sanitize_scroll_positionEv T
_ZN6Dialog16Text_area_widget25insert_at_cursor_positionEN6Genode9CodepointE T
_ZN6Dialog16Text_area_widget4dragERKNS_10Dragged_atE T
_ZN6Dialog16Text_area_widget5clackERKNS_10Clacked_atERNS0_6ActionE T
_ZN6Dialog16Text_area_widget5clearEv T
_ZN6Dialog16Text_area_widget5clickERKNS_10Clicked_atE T
_ZN6Dialog17Sandboxed_runtime13_handle_hoverEv T
_ZN6Dialog17Sandboxed_runtime19_handle_gui_serviceEv T
_ZN6Dialog17Sandboxed_runtime19_handle_rom_serviceEv T
_ZN6Dialog17Sandboxed_runtime19apply_sandbox_stateERKN6Genode8Xml_nodeE T
_ZN6Dialog17Sandboxed_runtime22_handle_report_serviceEv T
_ZN6Dialog17Sandboxed_runtime4View13_handle_hoverEv T
_ZN6Dialog17Sandboxed_runtime4View19_handle_input_eventERKN5Input5EventE T
_ZN6Dialog17Sandboxed_runtime4View27_try_handle_click_and_clackEv T
_ZN6Dialog17Sandboxed_runtime4View6_leaveEv T
_ZN6Dialog17Sandboxed_runtime4ViewD1Ev T
_ZN6Dialog17Sandboxed_runtime4ViewD2Ev T
_ZN6Dialog17Sandboxed_runtimeC1ERN6Genode3EnvERNS1_9AllocatorERNS1_7SandboxERKNS0_4AttrE T
_ZN6Dialog17Sandboxed_runtimeC2ERN6Genode3EnvERNS1_9AllocatorERNS1_7SandboxERKNS0_4AttrE T
_ZNK6Dialog16Text_area_widget21gen_clipboard_contentERN6Genode13Xml_generatorE T
_ZNK6Dialog16Text_area_widget4viewERNS_5ScopeIJNS_4VboxEEEE T
_ZNK6Dialog16Text_area_widget9Selection18view_selected_lineERNS_5ScopeIJNS_4HboxENS_5FloatENS_5LabelEEEEN6Genode13Dynamic_arrayINS9_INS0_9CharacterEEEE5IndexERKSB_ T
_ZNK6Dialog17Sandboxed_runtime15Menu_view_state14gen_start_nodeERN6Genode13Xml_generatorERKNS2_10DictionaryINS0_4ViewENS2_6StringILm20EEEEE T
_ZNK6Dialog17Sandboxed_runtime15gen_start_nodesERN6Genode13Xml_generatorE T
_ZNK6Dialog17Sandboxed_runtime4View21_gen_menu_view_dialogERN6Genode13Xml_generatorE T
_ZNK6Dialog17Sandboxed_runtime4View21_gen_menu_view_routesERN6Genode13Xml_generatorE T

View File

@ -0,0 +1,10 @@
MIRROR_FROM_REP_DIR := include/dialog lib/symbols/dialog
content: $(MIRROR_FROM_REP_DIR) LICENSE
$(MIRROR_FROM_REP_DIR):
$(mirror_from_rep_dir)
LICENSE:
cp $(GENODE_DIR)/LICENSE $@

View File

@ -0,0 +1 @@
2025-01-03 57d2347a8300897aa8a5175ebb976232dafe4e7b

View File

@ -0,0 +1,7 @@
SRC_DIR = src/lib/dialog
include $(GENODE_DIR)/repos/base/recipes/src/content.inc
content: lib/mk/dialog.mk
lib/mk/dialog.mk:
$(mirror_from_rep_dir)

View File

@ -0,0 +1 @@
2025-01-03 2bb7885b49ed39d7aef08fea9d9ce82c88d47fd9

View File

@ -0,0 +1,9 @@
base
os
gems
framebuffer_session
input_session
gui_session
report_session
dialog
sandbox

View File

@ -109,7 +109,7 @@ set fd [open [run_dir]/genode/focus w]
puts $fd "<focus label=\"test-dialog -> \"/>"
close $fd
build { test/dialog app/menu_view }
build { test/dialog app/menu_view lib/dialog }
build_boot_image [build_artifacts]

View File

@ -1,6 +1,6 @@
TARGET = file_vault_gui
SRC_CC = main.cc
LIBS += base dialog
LIBS += base dialog sandbox
INC_DIR += $(call select_from_repositories,/src/app/file_vault/include)
INC_DIR += $(call select_from_repositories,/src/lib/tresor/include)

View File

@ -1,3 +1,3 @@
TARGET = test-dialog
SRC_CC = main.cc
LIBS += base dialog
LIBS += base dialog sandbox