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

# 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 = "OmniUI OpenGL Widget"
description="A simple widget for drawing in omni.ui with OpenGL"

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

# Keywords for the extension
keywords = ["kit", "ui", "widget", "opengl"]

# 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.md"

# 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 = "Rendering"

[[native.library]]
path = "bin/${lib_prefix}omni.kit.widget.opengl${lib_ext}"

[dependencies]
"omni.ui" = {}
"omni.gpu_foundation" = {}
"omni.kit.pip_archive" = {}

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

# [python.pipapi]
# requirements = ["PyOpenGL"]
# use_online_index = true

[settings]
# exts."omni.kit.widget.opengl".xxx = ""

[[test]]
args = [
    "--/app/docks/disabled=true",
    "--/app/window/width=512",
    "--/app/window/height=512",
    "--/app/window/dpiScaleOverride=1.0",
    "--/app/window/scaleToMonitor=false",
    "--no-window",
]
dependencies = [
    "omni.kit.renderer.capture",
    "omni.kit.widget.opengl",
]
cppTests.libraries = [
    "bin/${lib_prefix}omni.kit.widget.opengl.tests${lib_ext}"
]
