Willem Cazander
c13a26d6b5
All checks were successful
Run test asserts / Test-Asserts (push) Successful in -13s
62 lines
3.2 KiB
Makefile
62 lines
3.2 KiB
Makefile
|
||
MB_MSXPIPE_COLOR_FG_SAFE_CMD ?= 026
|
||
$(call mb_make_call,mb_doc_variable,MB_MSXPIPE_COLOR_FG_SAFE_CMD,"Foreground color of safe command session pipe.")
|
||
|
||
MB_MSXPIPE_COLOR_BG_SAFE_CMD ?= 000
|
||
$(call mb_make_call,mb_doc_variable,MB_MSXPIPE_COLOR_BG_SAFE_CMD,"Background color of safe command session pipe.")
|
||
|
||
MB_MSXPIPE_COLOR_FG_SAFE_ASSERT ?= 421
|
||
$(call mb_make_call,mb_doc_variable,MB_MSXPIPE_COLOR_FG_SAFE_ASSERT,"Foreground color of safe assert session pipe.")
|
||
|
||
MB_MSXPIPE_COLOR_BG_SAFE_ASSERT ?= 000
|
||
$(call mb_make_call,mb_doc_variable,MB_MSXPIPE_COLOR_BG_SAFE_ASSERT,"Background color of safe assert session pipe.")
|
||
|
||
MB_MSXPIPE_COLOR_FG_RUN_GUI ?= 141
|
||
$(call mb_make_call,mb_doc_variable,MB_MSXPIPE_COLOR_FG_RUN_GUI,"Foreground color of run gui session pipe.")
|
||
|
||
MB_MSXPIPE_COLOR_BG_RUN_GUI ?= 000
|
||
$(call mb_make_call,mb_doc_variable,MB_MSXPIPE_COLOR_BG_RUN_GUI,"Background color of run gui session pipe.")
|
||
|
||
|
||
define mb_msxpipe_safe_cmd
|
||
$(MB_ᕽᕽᕽ )$(call mb_make_call,mb_autoexec_write_default,$(1),$(MB_MSXPIPE_COLOR_FG_SAFE_CMD),$(MB_MSXPIPE_COLOR_BG_SAFE_CMD))
|
||
$(MB_ᕽᕽᕽ )$(call mb_make_call,mb_autoexec_append_safe_cmd,$(1),$(2))
|
||
$(MB_ᕽᕽᕽ )$(call mb_make_call,mb_autoexec_append_exit,$(1))
|
||
$(MB_ᕽᕽᕽ )$(call mb_make_call,mb_openmsx_dosctl,$(1),$(3))
|
||
endef
|
||
$(call mb_make_call,mb_doc_function,mb_msxpipe_safe_cmd,"Runs openMSX and safely executes one command.","<dir> <cmd> [machine]")
|
||
|
||
|
||
define mb_msxpipe_safe_assert
|
||
$(MB_ᕽᕽᕽ )$(call mb_make_call,mb_autoexec_write_default,$(1),$(MB_MSXPIPE_COLOR_FG_SAFE_ASSERT),$(MB_MSXPIPE_COLOR_BG_SAFE_ASSERT))
|
||
$(MB_ᕽᕽᕽ )$(call mb_make_call,mb_autoexec_append_safe_assert,$(1),$(2))
|
||
$(MB_ᕽᕽᕽ )$(call mb_make_call,mb_autoexec_append_exit,$(1))
|
||
$(MB_ᕽᕽᕽ )$(call mb_make_call,mb_openmsx_dosctl,$(1),$(3))
|
||
endef
|
||
$(call mb_make_call,mb_doc_function,mb_msxpipe_safe_assert,"Runs openMSX and safely executes one assert.","<dir> <cmd> [machine]")
|
||
|
||
|
||
define _mb_msxpipe_run_gui
|
||
$(MB_ᕽᕽᕽ )$(call mb_make_call,mb_autoexec_write_default,$(1),$(MB_MSXPIPE_COLOR_FG_RUN_GUI),$(MB_MSXPIPE_COLOR_BG_RUN_GUI))
|
||
$(MB_ᕽᕽᕽ )$(if $(filter mouse,$(4)),$(call mb_make_call,mb_autoexec_append_plug_porta,$(1),$(4)))
|
||
$(MB_ᕽᕽᕽ )$(call mb_make_call,mb_autoexec_append_stop_fail,$(1))
|
||
$(MB_ᕽᕽᕽ )$(call mb_make_call,mb_autoexec_append_show_gui,$(1))
|
||
$(MB_ᕽᕽᕽ )$(call mb_make_call,mb_autoexec_append_echo,$(1),mb::help Run shutdown to exit)
|
||
$(MB_ᕽᕽᕽ )$(if $(2),$(call mb_make_call,mb_autoexec_append_echo,$(1),mb::auto command $(2)))
|
||
$(MB_ᕽᕽᕽ )$(if $(2),$(call mb_make_call,mb_autoexec_append_cmd,$(1),$(2)))
|
||
$(MB_ᕽᕽᕽ )$(call mb_make_call,mb_openmsx_dosctl,$(1),$(3))
|
||
endef
|
||
|
||
|
||
define mb_msxpipe_run_gui
|
||
$(MB_ᕽᕽᕽ )$(call mb_make_call,_mb_msxpipe_run_gui,$(1),$(2),$(3))
|
||
endef
|
||
$(call mb_make_call,mb_doc_function,mb_msxpipe_run_gui,"Runs openMSX forever with renderer and optionals.","<dir> [cmd] [machine]")
|
||
|
||
|
||
define mb_msxpipe_run_gui_mouse
|
||
$(MB_ᕽᕽᕽ )$(call mb_make_call,_mb_msxpipe_run_gui,$(1),$(2),$(3),mouse)
|
||
endef
|
||
$(call mb_make_call,mb_doc_function,mb_msxpipe_run_gui_mouse,"Runs openMSX forever with renderer and mouse and optionals.","<dir> [cmd] [machine]")
|
||
|