2024-07-02 01:27:14 +00:00
|
|
|
|
|
2024-07-02 02:11:13 +00:00
|
|
|
|
MB_FLIGHT_SCREEN ?= off
|
2024-07-16 17:32:08 +00:00
|
|
|
|
$(call mb-make-call,mb-doc-variable,MB_FLIGHT_SCREEN,Creates screenshots on exit of openMSX.)
|
2024-07-02 01:27:14 +00:00
|
|
|
|
|
2024-07-02 02:11:13 +00:00
|
|
|
|
MB_FLIGHT_VIDEO ?= off
|
2024-07-16 17:32:08 +00:00
|
|
|
|
$(call mb-make-call,mb-doc-variable,MB_FLIGHT_VIDEO,Create video of every build pipe session.)
|
2024-07-02 01:27:14 +00:00
|
|
|
|
|
2024-07-02 02:11:13 +00:00
|
|
|
|
MB_FLIGHT_PREFIX ?= msxbuild
|
2024-07-16 17:32:08 +00:00
|
|
|
|
$(call mb-make-call,mb-doc-variable,MB_FLIGHT_PREFIX,Prefix for video and screenshot flight files.)
|
2024-07-02 01:27:14 +00:00
|
|
|
|
|
2024-07-02 02:11:13 +00:00
|
|
|
|
MB_FLIGHT_SEPERATOR ?= -
|
2024-07-16 17:32:08 +00:00
|
|
|
|
$(call mb-make-call,mb-doc-variable,MB_FLIGHT_SEPERATOR,File and index number seperator for flight files.)
|
2024-07-02 01:27:14 +00:00
|
|
|
|
|
|
|
|
|
MB_FLIGHT_RECORD_FLAG ?= -doublesize
|
2024-07-16 17:32:08 +00:00
|
|
|
|
$(call mb-make-call,mb-doc-variable,MB_FLIGHT_RECORD_FLAG,Command parameter flag of the video recorder.)
|
2024-07-02 01:27:14 +00:00
|
|
|
|
|
2024-07-02 20:56:17 +00:00
|
|
|
|
MB_FLIGHT_VIDEO_NAME ?= night-flight
|
2024-07-16 17:32:08 +00:00
|
|
|
|
$(call mb-make-call,mb-doc-variable,MB_FLIGHT_VIDEO_NAME,Video file name of the final result merged video.)
|
2024-07-02 01:27:14 +00:00
|
|
|
|
|
2024-07-02 21:18:20 +00:00
|
|
|
|
|
2024-07-16 14:45:37 +00:00
|
|
|
|
define mb-flight-video-merge
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(call mb-make-call,mb-make-check-arg1,$(0),$(1))
|
2024-07-16 23:33:54 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$(call mb-make-call,mb-os-echo-command,Indexing flight videos)
|
2024-07-14 18:53:44 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )find $(1) -type f -name '*.avi' -printf '%T@ %Tc %p\n' | sort -n | awk -F "$(1)/" -v s="file '" -v e="'" '{print s$$2e}' > $(1)/$(MB_FLIGHT_VIDEO_NAME).lst
|
2024-07-15 00:34:29 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )ffmpeg -v quiet -y -f concat -safe 0 -i $(1)/$(MB_FLIGHT_VIDEO_NAME).lst -c copy $(1)/$(MB_FLIGHT_VIDEO_NAME).avi
|
2024-07-16 14:45:37 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$(call mb-make-call,mb-os-echo-remark,Flight video completed)
|
2024-07-02 01:27:14 +00:00
|
|
|
|
endef
|
2024-07-16 17:32:08 +00:00
|
|
|
|
$(call mb-make-call,mb-doc-function-deep,mb-flight-video-merge,Merged all flight videos to one.,<dir>)
|
2024-07-07 14:33:49 +00:00
|
|
|
|
|
2024-07-07 16:13:48 +00:00
|
|
|
|
|
2024-07-16 14:45:37 +00:00
|
|
|
|
define __mb-flight-proj-flow-video
|
2024-07-12 15:59:26 +00:00
|
|
|
|
.RECIPEPREFIX := $(MB_@RECIPE)
|
2024-07-10 12:05:38 +00:00
|
|
|
|
|
2024-07-07 16:13:48 +00:00
|
|
|
|
@@flight-video-build: @build
|
2024-07-16 14:45:37 +00:00
|
|
|
|
$(MB_@RECIPE)$$(if $$(filter on,$$(MB_FLIGHT_VIDEO)),$$(call mb-make-call,mb-flight-video-merge,$(1)))
|
2024-07-07 16:13:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@flight-video-build: @clean
|
2024-07-16 14:45:37 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb-make-call,_mb-proj-flow-step-before)
|
2024-07-12 15:59:26 +00:00
|
|
|
|
$(MB_@RECIPE)MB_OPENMSX_HEADLESS$(MB_MAKE_EQUALS)off MB_FLIGHT_VIDEO$(MB_MAKE_EQUALS)on $$(MAKE) -s @@flight-video-build
|
2024-07-16 14:45:37 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb-make-call,_mb-proj-flow-step-done)
|
2024-07-16 17:32:08 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb-make-call,mb-doc-target-help,@flight-video-build,Runs @clean and @build with recorder and merges flight videos to one.)
|
2024-07-16 14:45:37 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb-make-call,mb-make-target-phony,@flight-video-build)
|
2024-07-07 16:13:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@flight-video-test: @test
|
2024-07-16 14:45:37 +00:00
|
|
|
|
$(MB_@RECIPE)$$(if $$(filter on,$$(MB_FLIGHT_VIDEO)),$$(call mb-make-call,mb-flight-video-merge,$(1)))
|
2024-07-07 16:13:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@flight-video-test: @clean
|
2024-07-16 14:45:37 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb-make-call,_mb-proj-flow-step-before)
|
2024-07-14 18:53:44 +00:00
|
|
|
|
$(MB_@RECIPE)MB_OPENMSX_HEADLESS$(MB_MAKE_EQUALS)off MB_FLIGHT_VIDEO$(MB_MAKE_EQUALS)on $$(MAKE) @@flight-video-test
|
2024-07-16 14:45:37 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb-make-call,_mb-proj-flow-step-done)
|
2024-07-16 17:32:08 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb-make-call,mb-doc-target-help,@flight-video-test,Runs @clean and @test with recorder and merges flight videos to one.)
|
2024-07-16 14:45:37 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb-make-call,mb-make-target-phony,@flight-video-test)
|
2024-07-07 16:13:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@flight-video-package-qa: @package-qa
|
2024-07-16 14:45:37 +00:00
|
|
|
|
$(MB_@RECIPE)$$(if $$(filter on,$$(MB_FLIGHT_VIDEO)),$$(call mb-make-call,mb-flight-video-merge,$(1)))
|
2024-07-07 16:13:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@flight-video-package-qa: @clean
|
2024-07-16 14:45:37 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb-make-call,_mb-proj-flow-step-before)
|
2024-07-14 18:53:44 +00:00
|
|
|
|
$(MB_@RECIPE)MB_OPENMSX_HEADLESS$(MB_MAKE_EQUALS)off MB_FLIGHT_VIDEO$(MB_MAKE_EQUALS)on $$(MAKE) @@flight-video-package-qa
|
2024-07-16 14:45:37 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb-make-call,_mb-proj-flow-step-done)
|
2024-07-16 17:32:08 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb-make-call,mb-doc-target-help,@flight-video-package-qa,Runs @clean and @package-qa with recorder and merges flight videos to one.)
|
2024-07-16 14:45:37 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb-make-call,mb-make-target-phony,@flight-video-package-qa)
|
2024-07-10 12:05:38 +00:00
|
|
|
|
|
2024-07-14 18:53:44 +00:00
|
|
|
|
|
|
|
|
|
@@flight-video-all: @all
|
2024-07-16 14:45:37 +00:00
|
|
|
|
$(MB_@RECIPE)$$(if $$(filter on,$$(MB_FLIGHT_VIDEO)),$$(call mb-make-call,mb-flight-video-merge,$(1)))
|
2024-07-14 18:53:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@flight-video-all: @clean
|
2024-07-16 14:45:37 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb-make-call,_mb-proj-flow-step-before)
|
2024-07-14 18:53:44 +00:00
|
|
|
|
$(MB_@RECIPE)MB_OPENMSX_HEADLESS$(MB_MAKE_EQUALS)off MB_FLIGHT_VIDEO$(MB_MAKE_EQUALS)on $$(MAKE) @@flight-video-all
|
2024-07-16 14:45:37 +00:00
|
|
|
|
$(MB_@RECIPE)$$(call mb-make-call,_mb-proj-flow-step-done)
|
2024-07-16 17:32:08 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb-make-call,mb-doc-target-help,@flight-video-all,Runs @clean and @all with recorder and merges flight videos to one.)
|
2024-07-16 14:45:37 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$$(call mb-make-call,mb-make-target-phony,@flight-video-all)
|
2024-07-14 18:53:44 +00:00
|
|
|
|
|
2024-07-12 15:59:26 +00:00
|
|
|
|
.RECIPEPREFIX := $(MB_@RECIPEPREFIX)
|
2024-07-07 16:13:48 +00:00
|
|
|
|
endef
|
2024-07-16 14:45:37 +00:00
|
|
|
|
define mb-flight-proj-flow-video
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(call mb-make-call,mb-make-check-arg1,$(0),$(1))
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(eval $(call mb-make-call,__$(0),$(1)))
|
2024-07-07 21:26:47 +00:00
|
|
|
|
endef
|
2024-07-16 17:32:08 +00:00
|
|
|
|
$(call mb-make-call,mb-doc-function-flow,mb-flight-proj-flow-video,Prints flow for adding flight video targets in project build cycle.,<path-bin>)
|
2024-07-07 16:13:48 +00:00
|
|
|
|
|