include(PanoPainterAutomation)

pp_add_powershell_automation_target(panopainter_package_readiness
    COMMENT "Report package readiness blockers."
    ARGUMENTS
        -File "${CMAKE_CURRENT_SOURCE_DIR}/scripts/automation/package-smoke.ps1"
        -ReadinessOnly)

pp_add_powershell_automation_target(panopainter_windows_app_package_smoke
    COMMENT "Build the Windows app artifact and report package readiness blockers."
    ARGUMENTS
        -File "${CMAKE_CURRENT_SOURCE_DIR}/scripts/automation/package-smoke.ps1"
        -Preset windows-msvc-default
        -Configuration Debug
        -Target PanoPainter
        -CMakeCommand "${CMAKE_COMMAND}")

pp_add_powershell_automation_target(panopainter_android_standard_native_package
    COMMENT "Build retained Android standard native package library."
    ARGUMENTS
        -File "${CMAKE_CURRENT_SOURCE_DIR}/scripts/automation/android-legacy-package-build.ps1"
        -Packages standard)

pp_add_powershell_automation_target(panopainter_android_vr_native_package_configure
    COMMENT "Configure retained Android Quest/Focus native package paths."
    ARGUMENTS
        -File "${CMAKE_CURRENT_SOURCE_DIR}/scripts/automation/android-legacy-package-build.ps1"
        -Packages quest,focus
        -ConfigureOnly)

pp_add_powershell_automation_target(panopainter_android_native_package_smoke
    COMMENT "Run retained Android native package checks through package-smoke."
    ARGUMENTS
        -File "${CMAKE_CURRENT_SOURCE_DIR}/scripts/automation/package-smoke.ps1"
        -ReadinessOnly
        -AndroidNativeChecks
        -PackageKinds android-standard-apk,android-quest-apk,android-focus-apk)

pp_add_powershell_automation_target(panopainter_linux_webgl_package_readiness
    COMMENT "Report retained Linux and WebGL package readiness blockers."
    ARGUMENTS
        -File "${CMAKE_CURRENT_SOURCE_DIR}/scripts/automation/package-smoke.ps1"
        -ReadinessOnly
        -PackageKinds linux-app,webgl)
