-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into disable-georeferencing-option
- Loading branch information
Showing
25 changed files
with
467 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
name: 'CentOS 7 Build' | ||
description: 'Build Cesium for Omniverse in Docker container running a CentOS 7 image' | ||
name: "CentOS 7 Build" | ||
description: "Build Cesium for Omniverse in Docker container running a CentOS 7 image" | ||
inputs: | ||
build-type: | ||
description: 'Release or debug build' | ||
description: "Release or debug build" | ||
required: true | ||
runs: | ||
using: 'docker' | ||
image: '../../docker/CI.Dockerfile' | ||
using: "docker" | ||
image: "../../docker/CI.Dockerfile" | ||
# Tell Conan to look for or create its build folder (.conan) in the repository's root directory | ||
env: | ||
CONAN_USER_HOME: $GITHUB_WORKSPACE | ||
args: | ||
# Tell bash to run a command | ||
- '-c' | ||
- "-c" | ||
# Parallel 2 because github action limited to two cores | ||
# Linters are turned off because there is no pre-compiled C++20-capable LLVM toolset for CentOS 7. It won't affect the build, it just means there won't be code formatting or linting. It will build fine with GCC. | ||
# Make sure to configure without sanitizers and any other development options | ||
- 'cmake -B build -D CMAKE_BUILD_TYPE=${{ inputs.build-type }} -D CESIUM_OMNI_ENABLE_LINTERS=OFF -D CESIUM_OMNI_ENABLE_SANITIZERS=OFF && | ||
- "cmake -B build -D CMAKE_BUILD_TYPE=${{ inputs.build-type }} -D CESIUM_OMNI_ENABLE_LINTERS=OFF -D CESIUM_OMNI_ENABLE_SANITIZERS=OFF && | ||
cmake --build build --parallel 2 && | ||
ctest --test-dir build --output-on-failure && | ||
cmake --build build --target install && | ||
cmake --build build --target package' | ||
cmake --build build --target package" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[package] | ||
title = "Cesium For Omniverse Tests App" | ||
version = "0.0.0" | ||
app = true | ||
|
||
[dependencies] | ||
"cesium.omniverse.dev" = {} | ||
"cesium.omniverse.cpp.tests" = {} | ||
|
||
[settings] | ||
app.window.title = "Cesium for Omniverse Tests App" | ||
|
||
[settings.app.exts] | ||
folders.'++' = [ | ||
"${app}", # Find other applications in this folder | ||
"${app}/exts", # Find extensions in this folder | ||
"${app}/../exts", # Find cesium.omniverse and cesium.usd.schemas | ||
"${app}/../extern/nvidia/app/extscache" # Find omni.kit.window.material_graph | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
add_subdirectory(bindings) | ||
add_subdirectory(public) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
include(Macros) | ||
|
||
glob_files(SOURCES "${CMAKE_CURRENT_LIST_DIR}/*.cpp") | ||
|
||
# cmake-format: off | ||
setup_python_module( | ||
PYTHON_DIR | ||
# Use the same Python version as Omniverse (Python 3.10) | ||
"${PROJECT_SOURCE_DIR}/extern/nvidia/_build/target-deps/python" | ||
TARGET_NAME | ||
CesiumOmniverseCppTestsPythonBindings | ||
SOURCES | ||
${SOURCES} | ||
LIBRARIES | ||
cesium.omniverse.cpp.tests.plugin | ||
CXX_FLAGS | ||
${CESIUM_OMNI_CXX_FLAGS} | ||
CXX_FLAGS_DEBUG | ||
${CESIUM_OMNI_CXX_FLAGS_DEBUG} | ||
CXX_DEFINES | ||
${CESIUM_OMNI_CXX_DEFINES} | ||
CXX_DEFINES_DEBUG | ||
${CESIUM_OMNI_CXX_DEFINES_DEBUG} | ||
) | ||
# cmake-format: on |
22 changes: 22 additions & 0 deletions
22
cesiumOmniverseCppTestsExtension/bindings/PythonBindings.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#include "CesiumOmniverseCppTests.h" | ||
|
||
#include <carb/BindingsPythonUtils.h> | ||
|
||
// NOLINTNEXTLINE | ||
CARB_BINDINGS("cesium.omniverse.cpp.tests.python") | ||
DISABLE_PYBIND11_DYNAMIC_CAST(cesium::omniverse::tests::ICesiumOmniverseCppTestsInterface) | ||
|
||
PYBIND11_MODULE(CesiumOmniverseCppTestsPythonBindings, m) { | ||
|
||
using namespace cesium::omniverse::tests; | ||
|
||
m.doc() = "pybind11 cesium.omniverse.cpp.tests bindings"; | ||
|
||
// clang-format off | ||
carb::defineInterfaceClass<ICesiumOmniverseCppTestsInterface>( | ||
m, "ICesiumOmniverseCppTestsInterface", "acquire_cesium_omniverse_tests_interface", "release_cesium_omniverse_tests_interface") | ||
.def("run_all_tests", &ICesiumOmniverseCppTestsInterface::run_all_tests) | ||
.def("on_startup", &ICesiumOmniverseCppTestsInterface::onStartup) | ||
.def("on_shutdown", &ICesiumOmniverseCppTestsInterface::onShutdown); | ||
// clang-format on | ||
} |
24 changes: 24 additions & 0 deletions
24
cesiumOmniverseCppTestsExtension/include/CesiumOmniverseCppTests.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#pragma once | ||
#include <carb/Interface.h> | ||
|
||
namespace cesium::omniverse::tests { | ||
|
||
class ICesiumOmniverseCppTestsInterface { | ||
public: | ||
CARB_PLUGIN_INTERFACE("cesium::omniverse::tests::ICesiumOmniverseCppTestsInterface", 0, 0); | ||
/** | ||
* @brief Call this on extension startup. | ||
* | ||
* @param cesiumExtensionLocation Path to the Cesium Omniverse extension location. | ||
*/ | ||
virtual void onStartup(const char* cesiumExtensionLocation) noexcept = 0; | ||
|
||
/** | ||
* @brief Call this on extension shutdown. | ||
*/ | ||
virtual void onShutdown() noexcept = 0; | ||
|
||
virtual void run_all_tests(long int stage_id) noexcept = 0; | ||
}; | ||
|
||
} // namespace cesium::omniverse::tests |
Oops, something went wrong.