Skip to content

Commit

Permalink
pyktx (Python bindings for libktx) (KhronosGroup#698)
Browse files Browse the repository at this point in the history
Add Python bindings, documentation and tests. Add to CI.

Adds a manual Publish step for publishing to PyPl. See KhronosGroup#663 for details.

Fixes KhronosGroup#663.

Co-authored-by: Mark Callow <[email protected]>
  • Loading branch information
ShukantPal and MarkCallow authored Nov 29, 2023
1 parent 20611f4 commit b0bae2e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cmake/docs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,17 @@ function( CreateDocJSWrappers )
add_docs_cmake_plus( jswrappers.doc pkgdoc/jswrappersDoxyLayout.xml )
endfunction()

# pyktxwrappers.doc
function( CreateDocPyktxWrappers )
add_custom_command(
TARGET libktx.doc
POST_BUILD
COMMAND
${CMAKE_COMMAND} -E copy_directory ${KTX_BUILD_DIR}/interface/python_binding/docs/html/pyktx/html ${KTX_BUILD_DIR}/docs/html/pyktx
)
add_dependencies( libktx.doc pyktx )
endfunction()

# ktxpkg.doc
function( CreateDocKTX )
set( DOXYGEN_PROJECT_NAME "Khronos Texture Software" )
Expand All @@ -215,6 +226,9 @@ endfunction()
CreateDocLibKTX()
CreateDocTools()
CreateDocJSWrappers()
if (KTX_FEATURE_PY)
CreateDocPyktxWrappers()
endif()
CreateDocKTX()

add_dependencies( libktx.doc ktxpkg.doc ktx_version )
Expand Down

0 comments on commit b0bae2e

Please sign in to comment.