Extend element registry and migrate all tests to semantic selectors
Phase 2 of element registry migration - eliminate hardcoded coordinates: Element tracker additions: - wxTreeCtrl items (clickTreeItem, findTreeItem) - wxDataViewCtrl items and column headers - wxPropertyGrid rows - wxListBox items - wxSpinButton arrows - wxSlider thumb/track - wxTextCtrl area - wxSearchCtrl field - wxAuiManager pane content areas - wxCalendarCtrl dates Test migrations: - 24 test files updated to use element registry helpers - Replaced coordinate-based clicks with semantic selectors - Added find-hardcoded-coords.sh script for auditing Remaining coordinates are legitimate (scroll positioning, drawing, test.fail blocks). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
04eebab024
commit
64142aa8de
27 changed files with 1710 additions and 839 deletions
|
|
@ -96,6 +96,11 @@ LDFLAGS_PTHREAD = $(DEBUG_LDFLAGS) $(BASE_LDFLAGS) -pthread \
|
|||
JS = $(TOOLS_ROOT)/wx.js
|
||||
HTML = $(TOOLS_ROOT)/template.html
|
||||
|
||||
# wxWidgets library directory - used as dependency to rebuild when libs change
|
||||
WX_LIB_DIR = ../../build-wasm/wxwidgets-universal/lib
|
||||
# Key library that changes when wxWidgets is rebuilt
|
||||
WX_CORE_LIB = $(WX_LIB_DIR)/libwx_wasmunivu_core-3.2-emscripten.a
|
||||
|
||||
# Standalone directories
|
||||
S = standalone
|
||||
|
||||
|
|
@ -147,301 +152,301 @@ all: minimal_test.html \
|
|||
minimal_test.o: minimal_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
minimal_test.html: minimal_test.o
|
||||
minimal_test.html: minimal_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_GL) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# Menu test (no GL)
|
||||
$(S)/menu/menu_test.o: $(S)/menu/menu_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/menu/menu_test.html: $(S)/menu/menu_test.o
|
||||
$(S)/menu/menu_test.html: $(S)/menu/menu_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_NOGL) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# Clipboard test (no GL)
|
||||
$(S)/clipboard/clipboard_test.o: $(S)/clipboard/clipboard_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/clipboard/clipboard_test.html: $(S)/clipboard/clipboard_test.o
|
||||
$(S)/clipboard/clipboard_test.html: $(S)/clipboard/clipboard_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_NOGL) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# FileDialog test (no GL)
|
||||
$(S)/filedialog/filedialog_test.o: $(S)/filedialog/filedialog_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/filedialog/filedialog_test.html: $(S)/filedialog/filedialog_test.o
|
||||
$(S)/filedialog/filedialog_test.html: $(S)/filedialog/filedialog_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_NOGL) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# Layout test (no GL)
|
||||
$(S)/layout/layout_test.o: $(S)/layout/layout_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/layout/layout_test.html: $(S)/layout/layout_test.o
|
||||
$(S)/layout/layout_test.html: $(S)/layout/layout_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_NOGL) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# AUI test (no GL)
|
||||
$(S)/aui/aui_test.o: $(S)/aui/aui_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/aui/aui_test.html: $(S)/aui/aui_test.o
|
||||
$(S)/aui/aui_test.html: $(S)/aui/aui_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_NOGL) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# Toolbar test (no GL)
|
||||
$(S)/toolbar/toolbar_test.o: $(S)/toolbar/toolbar_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/toolbar/toolbar_test.html: $(S)/toolbar/toolbar_test.o
|
||||
$(S)/toolbar/toolbar_test.html: $(S)/toolbar/toolbar_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_NOGL) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# Grid test (no GL)
|
||||
$(S)/grid/grid_test.o: $(S)/grid/grid_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/grid/grid_test.html: $(S)/grid/grid_test.o
|
||||
$(S)/grid/grid_test.html: $(S)/grid/grid_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_NOGL) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# Dialog test (no GL)
|
||||
$(S)/dialog/dialog_test.o: $(S)/dialog/dialog_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/dialog/dialog_test.html: $(S)/dialog/dialog_test.o
|
||||
$(S)/dialog/dialog_test.html: $(S)/dialog/dialog_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_NOGL) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# Timer test (no GL)
|
||||
$(S)/timer/timer_test.o: $(S)/timer/timer_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/timer/timer_test.html: $(S)/timer/timer_test.o
|
||||
$(S)/timer/timer_test.html: $(S)/timer/timer_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_NOGL) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# Tree test (no GL)
|
||||
$(S)/tree/tree_test.o: $(S)/tree/tree_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/tree/tree_test.html: $(S)/tree/tree_test.o
|
||||
$(S)/tree/tree_test.html: $(S)/tree/tree_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_NOGL) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# DataView test (no GL)
|
||||
$(S)/dataview/dataview_test.o: $(S)/dataview/dataview_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/dataview/dataview_test.html: $(S)/dataview/dataview_test.o
|
||||
$(S)/dataview/dataview_test.html: $(S)/dataview/dataview_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_NOGL) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# HtmlWindow test (needs HTML library)
|
||||
$(S)/htmlwin/htmlwin_test.o: $(S)/htmlwin/htmlwin_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/htmlwin/htmlwin_test.html: $(S)/htmlwin/htmlwin_test.o
|
||||
$(S)/htmlwin/htmlwin_test.html: $(S)/htmlwin/htmlwin_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_HTML) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# StyledTextCtrl test (needs STC library)
|
||||
$(S)/stc/stc_test.o: $(S)/stc/stc_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/stc/stc_test.html: $(S)/stc/stc_test.o
|
||||
$(S)/stc/stc_test.html: $(S)/stc/stc_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_STC) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# Print test (no GL)
|
||||
$(S)/print/print_test.o: $(S)/print/print_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/print/print_test.html: $(S)/print/print_test.o
|
||||
$(S)/print/print_test.html: $(S)/print/print_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_NOGL) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# DragDrop test (no GL)
|
||||
$(S)/dnd/dnd_test.o: $(S)/dnd/dnd_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/dnd/dnd_test.html: $(S)/dnd/dnd_test.o
|
||||
$(S)/dnd/dnd_test.html: $(S)/dnd/dnd_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_NOGL) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# PropertyGrid test (needs propgrid library)
|
||||
$(S)/propgrid/propgrid_test.o: $(S)/propgrid/propgrid_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/propgrid/propgrid_test.html: $(S)/propgrid/propgrid_test.o
|
||||
$(S)/propgrid/propgrid_test.html: $(S)/propgrid/propgrid_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_PROPGRID) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# Pickers test (colour/font pickers, no GL)
|
||||
$(S)/pickers/pickers_test.o: $(S)/pickers/pickers_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/pickers/pickers_test.html: $(S)/pickers/pickers_test.o
|
||||
$(S)/pickers/pickers_test.html: $(S)/pickers/pickers_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_NOGL) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# Collapsible pane test (no GL)
|
||||
$(S)/collapsible/collapsible_test.o: $(S)/collapsible/collapsible_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/collapsible/collapsible_test.html: $(S)/collapsible/collapsible_test.o
|
||||
$(S)/collapsible/collapsible_test.html: $(S)/collapsible/collapsible_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_NOGL) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# ListCtrl virtual mode test (no GL)
|
||||
$(S)/listctrl/listctrl_test.o: $(S)/listctrl/listctrl_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/listctrl/listctrl_test.html: $(S)/listctrl/listctrl_test.o
|
||||
$(S)/listctrl/listctrl_test.html: $(S)/listctrl/listctrl_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_NOGL) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# InfoBar test (no GL)
|
||||
$(S)/infobar/infobar_test.o: $(S)/infobar/infobar_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/infobar/infobar_test.html: $(S)/infobar/infobar_test.o
|
||||
$(S)/infobar/infobar_test.html: $(S)/infobar/infobar_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_NOGL) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# DataViewCtrl Virtual Mode test (no GL, uses base dataview)
|
||||
$(S)/dataviewvirtual/dataviewvirtual_test.o: $(S)/dataviewvirtual/dataviewvirtual_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/dataviewvirtual/dataviewvirtual_test.html: $(S)/dataviewvirtual/dataviewvirtual_test.o
|
||||
$(S)/dataviewvirtual/dataviewvirtual_test.html: $(S)/dataviewvirtual/dataviewvirtual_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_NOGL) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# AuiNotebook test (needs aui)
|
||||
$(S)/auinotebook/auinotebook_test.o: $(S)/auinotebook/auinotebook_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/auinotebook/auinotebook_test.html: $(S)/auinotebook/auinotebook_test.o
|
||||
$(S)/auinotebook/auinotebook_test.html: $(S)/auinotebook/auinotebook_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_AUI) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# Wizard test (needs adv)
|
||||
$(S)/wizard/wizard_test.o: $(S)/wizard/wizard_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/wizard/wizard_test.html: $(S)/wizard/wizard_test.o
|
||||
$(S)/wizard/wizard_test.html: $(S)/wizard/wizard_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_ADV) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# Grid Edit test (cell editing, no GL)
|
||||
$(S)/gridedit/gridedit_test.o: $(S)/gridedit/gridedit_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/gridedit/gridedit_test.html: $(S)/gridedit/gridedit_test.o
|
||||
$(S)/gridedit/gridedit_test.html: $(S)/gridedit/gridedit_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_NOGL) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# Calendar test (needs adv)
|
||||
$(S)/calendar/calendar_test.o: $(S)/calendar/calendar_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/calendar/calendar_test.html: $(S)/calendar/calendar_test.o
|
||||
$(S)/calendar/calendar_test.html: $(S)/calendar/calendar_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_ADV) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# Grid Renderers test (no GL)
|
||||
$(S)/gridrenderers/gridrenderers_test.o: $(S)/gridrenderers/gridrenderers_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/gridrenderers/gridrenderers_test.html: $(S)/gridrenderers/gridrenderers_test.o
|
||||
$(S)/gridrenderers/gridrenderers_test.html: $(S)/gridrenderers/gridrenderers_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_NOGL) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# Print Preview test (no GL)
|
||||
$(S)/printpreview/printpreview_test.o: $(S)/printpreview/printpreview_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/printpreview/printpreview_test.html: $(S)/printpreview/printpreview_test.o
|
||||
$(S)/printpreview/printpreview_test.html: $(S)/printpreview/printpreview_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_NOGL) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# Bitmap Buttons test (no GL)
|
||||
$(S)/bitmapbuttons/bitmapbuttons_test.o: $(S)/bitmapbuttons/bitmapbuttons_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/bitmapbuttons/bitmapbuttons_test.html: $(S)/bitmapbuttons/bitmapbuttons_test.o
|
||||
$(S)/bitmapbuttons/bitmapbuttons_test.html: $(S)/bitmapbuttons/bitmapbuttons_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_NOGL) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# Specialized Controls test (needs adv for treebook)
|
||||
$(S)/specialized/specialized_test.o: $(S)/specialized/specialized_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/specialized/specialized_test.html: $(S)/specialized/specialized_test.o
|
||||
$(S)/specialized/specialized_test.html: $(S)/specialized/specialized_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_ADV) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# Validators test (no GL)
|
||||
$(S)/validators/validators_test.o: $(S)/validators/validators_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/validators/validators_test.html: $(S)/validators/validators_test.o
|
||||
$(S)/validators/validators_test.html: $(S)/validators/validators_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_NOGL) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# Owner-drawn ComboBox test (no GL)
|
||||
$(S)/ownerdrawn/ownerdrawn_test.o: $(S)/ownerdrawn/ownerdrawn_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/ownerdrawn/ownerdrawn_test.html: $(S)/ownerdrawn/ownerdrawn_test.o
|
||||
$(S)/ownerdrawn/ownerdrawn_test.html: $(S)/ownerdrawn/ownerdrawn_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_NOGL) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# Popup Window test (no GL)
|
||||
$(S)/popup/popup_test.o: $(S)/popup/popup_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/popup/popup_test.html: $(S)/popup/popup_test.o
|
||||
$(S)/popup/popup_test.html: $(S)/popup/popup_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_NOGL) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# XML Document test (needs xml library)
|
||||
$(S)/xml/xml_test.o: $(S)/xml/xml_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/xml/xml_test.html: $(S)/xml/xml_test.o
|
||||
$(S)/xml/xml_test.html: $(S)/xml/xml_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_XML) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# WASM Edge Cases test (no GL)
|
||||
$(S)/wasmedge/wasmedge_test.o: $(S)/wasmedge/wasmedge_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/wasmedge/wasmedge_test.html: $(S)/wasmedge/wasmedge_test.o
|
||||
$(S)/wasmedge/wasmedge_test.html: $(S)/wasmedge/wasmedge_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_NOGL) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# Font Enumeration test (no GL)
|
||||
$(S)/fontenum/fontenum_test.o: $(S)/fontenum/fontenum_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/fontenum/fontenum_test.html: $(S)/fontenum/fontenum_test.o
|
||||
$(S)/fontenum/fontenum_test.html: $(S)/fontenum/fontenum_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_NOGL) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# Text Decorations test (no GL)
|
||||
$(S)/textdecor/textdecor_test.o: $(S)/textdecor/textdecor_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/textdecor/textdecor_test.html: $(S)/textdecor/textdecor_test.o
|
||||
$(S)/textdecor/textdecor_test.html: $(S)/textdecor/textdecor_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_NOGL) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# Bitmask test (no GL)
|
||||
$(S)/bitmask/bitmask_test.o: $(S)/bitmask/bitmask_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/bitmask/bitmask_test.html: $(S)/bitmask/bitmask_test.o
|
||||
$(S)/bitmask/bitmask_test.html: $(S)/bitmask/bitmask_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_NOGL) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# Regions test (no GL)
|
||||
$(S)/regions/regions_test.o: $(S)/regions/regions_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/regions/regions_test.html: $(S)/regions/regions_test.o
|
||||
$(S)/regions/regions_test.html: $(S)/regions/regions_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_NOGL) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# Maximize test (no GL) - reproduces KiCad startup maximize issue
|
||||
$(S)/maximize/maximize_test.o: $(S)/maximize/maximize_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/maximize/maximize_test.html: $(S)/maximize/maximize_test.o
|
||||
$(S)/maximize/maximize_test.html: $(S)/maximize/maximize_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_NOGL) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# Early size test (no GL) - tests GetClientSize() before Show()
|
||||
$(S)/earlysize/earlysize_test.o: $(S)/earlysize/earlysize_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/earlysize/earlysize_test.html: $(S)/earlysize/earlysize_test.o
|
||||
$(S)/earlysize/earlysize_test.html: $(S)/earlysize/earlysize_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_NOGL) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# Thread Pool test (pthread) - reproduces KiCad deadlock when hardware_concurrency() > PTHREAD_POOL_SIZE
|
||||
$(S)/threadpool/threadpool_test.o: $(S)/threadpool/threadpool_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) -pthread $< -o $@
|
||||
|
||||
$(S)/threadpool/threadpool_test.html: $(S)/threadpool/threadpool_test.o
|
||||
$(S)/threadpool/threadpool_test.html: $(S)/threadpool/threadpool_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_PTHREAD) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# Log Error test (no GL) - reproduces KiCad's kiface error dialog
|
||||
$(S)/logerror/logerror_test.o: $(S)/logerror/logerror_test.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $< -o $@
|
||||
|
||||
$(S)/logerror/logerror_test.html: $(S)/logerror/logerror_test.o
|
||||
$(S)/logerror/logerror_test.html: $(S)/logerror/logerror_test.o $(WX_CORE_LIB)
|
||||
$(CXX) $< $(LDFLAGS_NOGL) --pre-js $(JS) --shell-file $(HTML) -o $@
|
||||
|
||||
# Convenience targets
|
||||
|
|
|
|||
Loading…
Reference in a new issue