feat: add headless Zoko source checks
This commit is contained in:
@@ -21,6 +21,7 @@ SWIFT_SOURCES += Sources/App/StreamResolver.swift
|
||||
SWIFT_SOURCES += Sources/App/MiruroMetadata.swift
|
||||
SWIFT_SOURCES += Sources/App/MiruroTransport.swift Sources/App/MiruroEmbed.swift Sources/App/ZokoResolver.swift
|
||||
CLI_SOURCES += Sources/App/StreamResolver.swift
|
||||
CLI_SOURCES += Sources/CLI/SourceCheck.swift Sources/App/ZokoResolver.swift Sources/App/MiruroTransport.swift Sources/App/MiruroEmbed.swift
|
||||
SWIFT_SOURCES += Sources/App/StreamQueue.swift
|
||||
SWIFT_SOURCES += Sources/App/SponsorBlock.swift
|
||||
CLI_SOURCES += Sources/App/StreamQueue.swift
|
||||
@@ -295,6 +296,19 @@ $(BUILD_DIR)/player-command-check: Checks/player-command.swift Sources/CLI/Playe
|
||||
check-cli: $(BUILD_DIR)/player-command-check
|
||||
$(BUILD_DIR)/player-command-check
|
||||
|
||||
# Source checking shares only Swift resolver/transport code, never native player objects.
|
||||
SOURCE_CHECK_SOURCES := $(filter-out Sources/CLI/TerebiCLI.swift $(RUNTIME_SOURCE),$(CLI_SOURCES))
|
||||
$(BUILD_DIR)/source-check-check: Checks/source-check.swift $(SOURCE_CHECK_SOURCES) Makefile | $(BUILD_DIR)
|
||||
$(SWIFT) -target $(ARCH)-apple-macosx15.0 -swift-version 6 -parse-as-library -O $(DEBUG_FLAGS) $< $(SOURCE_CHECK_SOURCES) -framework Foundation -o $@
|
||||
|
||||
.PHONY: check-source check-source-live
|
||||
check: check-source
|
||||
check-source: $(BUILD_DIR)/source-check-check $(CLI)
|
||||
$(BUILD_DIR)/source-check-check
|
||||
python3 Checks/source-check.py "$(CLI)"
|
||||
check-source-live: $(CLI)
|
||||
python3 Checks/source-check.py "$(CLI)" --live
|
||||
|
||||
$(BUILD_DIR)/external-subtitles-check: Checks/external-subtitles.swift Sources/App/ExternalSubtitles.swift Makefile | $(BUILD_DIR)
|
||||
$(SWIFT) -target $(ARCH)-apple-macosx15.0 -swift-version 6 -parse-as-library -O $(DEBUG_FLAGS) Checks/external-subtitles.swift Sources/App/ExternalSubtitles.swift -framework Foundation -o $@
|
||||
|
||||
|
||||
Reference in New Issue
Block a user