[package]
# Semantic Versioning is used: https://semver.org/
version = "1.0.14"

# Lists people or organizations that are considered the "authors" of the package.
authors = ["NVIDIA"]

# The title and description fields are primarly for displaying extension info in UI
title = "Viewport Utility"
description="Utility functions to access [active] Viewport information"

# URL of the extension source repository.
repository = ""

# Keywords for the extension
keywords = ["kit", "viewport", "utility"]

# Location of change log file in target (final) folder of extension, relative to the root.
# More info on writing changelog: https://keepachangelog.com/en/1.0.0/
changelog="docs/CHANGELOG.rst"

# Path (relative to the root) or content of readme markdown file for UI.
readme  = "docs/README.md"

# Icon is shown in Extensions window, it is recommended to be square, of size 256x256.
icon = "data/icon.png"

category = "Viewport"

[dependencies]
"omni.kit.viewport.window" = { optional = true } # Viewport-Next
"omni.kit.window.viewport" = { optional = true } # Viewport-Legacy
"omni.ui" = { optional = true } # Required for Viewport-Legacy adapter

# Main python module this extension provides, it will be publicly available as "import omni.kit.viewport.registry".
[[python.module]]
name = "omni.kit.viewport.utility"

[settings]
# exts."omni.kit.viewport.registry".xxx = ""

[[test]]
args = [
    "--/renderer/enabled=pxr",
    "--/renderer/active=pxr",
    "--/pxr/rendermode=HdStormRendererPlugin",
    "--/renderer/multiGpu/enabled=false",
    "--/renderer/multiGpu/autoEnable=false", # Disable mGPU with PXR due to OM-51026, OM-53611
    "--/renderer/multiGpu/maxGpuCount=1",
    "--/app/asyncRendering=false",
    "--/app/window/dpiScaleOverride=1.0",
    "--/app/window/scaleToMonitor=false",
    "--/app/window/hideUi=true",
    "--/app/renderer/resolution/width=500",
    "--/app/renderer/resolution/height=500",
    "--/app/window/width=500",
    "--/app/window/height=500",
    "--/app/viewport/forceHideFps=true",
    "--no-window"
]
dependencies = [
    "omni.ui",
    "omni.kit.mainwindow",
    "omni.kit.test_helpers_gfx",
    "omni.kit.ui_test",
    "omni.kit.manipulator.selection",
    "omni.hydra.pxr",
    "omni.kit.window.viewport",
    "omni.kit.context_menu"
]
stdoutFailPatterns.exclude = [
	"*HydraRenderer failed to render this frame*",  # Can drop a frame or two rendering with OpenGL interop
]

[documentation]
pages = [
    "docs/Overview.md",
    "docs/CHANGELOG.md",
]
