-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
118 changed files
with
1,417 additions
and
518 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 |
---|---|---|
|
@@ -14,7 +14,7 @@ jobs: | |
name : Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
submodules: 'recursive' | ||
- | ||
name: Install dependencies | ||
uses: crazy-max/ghaction-chocolatey@v2 | ||
|
@@ -36,7 +36,7 @@ jobs: | |
$Env:Path += ";C:/VulkanSDK/Bin" | ||
mkdir "build" | ||
cd "build" | ||
cmake .. -A x64 | ||
cmake -DOMM_VIEWER_INSTALL=OFF -A x64 .. | ||
cd .. | ||
- | ||
name: Build Debug | ||
|
@@ -58,12 +58,10 @@ jobs: | |
name : Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
submodules: 'recursive' | ||
- | ||
name: Setup CMake | ||
uses: jwlawson/[email protected] | ||
with: | ||
cmake-version: '3.16.x' | ||
- | ||
name: Setup Ninja | ||
uses: seanmiddleditch/gha-setup-ninja@master | ||
|
@@ -75,14 +73,20 @@ jobs: | |
wget -qO- https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo tee /etc/apt/trusted.gpg.d/lunarg.asc | ||
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-jammy.list http://packages.lunarg.com/vulkan/lunarg-vulkan-jammy.list | ||
sudo apt update | ||
sudo apt install libwayland-dev wayland-protocols | ||
sudo apt install libxkbcommon-dev | ||
sudo apt install libxrandr-dev | ||
sudo apt install libxinerama-dev | ||
sudo apt install libxcursor-dev | ||
sudo apt install libxi-dev | ||
sudo apt install -y vulkan-sdk | ||
- | ||
name: CMake Generate | ||
run: | | ||
mkdir "build" | ||
cd "build" | ||
cmake -G Ninja .. | ||
cmake -G Ninja -DOMM_VIEWER_INSTALL=OFF .. | ||
cd .. | ||
- | ||
name: Build Debug | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ cmake_install.cmake | |
Makefile | ||
|
||
# ShaderMake | ||
shaders.cfg | ||
omm-lib/shaders.cfg | ||
|
||
# VS | ||
*.vcxproj* | ||
|
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,18 +1,18 @@ | ||
[submodule "thirdparty/glm"] | ||
path = thirdparty/glm | ||
url = https://github.com/g-truc/glm.git | ||
[submodule "benchmark/thirdparty/gbenchmark"] | ||
path = benchmark/thirdparty/gbenchmark | ||
url = https://github.com/google/benchmark.git | ||
[submodule "thirdparty/xxHash"] | ||
path = thirdparty/xxHash | ||
path = external/xxHash | ||
url = https://github.com/Cyan4973/xxHash.git | ||
[submodule "thirdparty/stb"] | ||
path = thirdparty/stb | ||
path = external/stb | ||
url = https://github.com/nothings/stb.git | ||
[submodule "thirdparty/ShaderMake"] | ||
path = thirdparty/ShaderMake | ||
url = https://github.com/NVIDIAGameWorks/ShaderMake.git | ||
[submodule "thirdparty/lz4"] | ||
path = thirdparty/lz4 | ||
[submodule "external/glm"] | ||
path = external/glm | ||
url = https://github.com/g-truc/glm.git | ||
[submodule "external/lz4"] | ||
path = external/lz4 | ||
url = https://github.com/lz4/lz4.git | ||
[submodule "external/ShaderMake"] | ||
path = external/ShaderMake | ||
url = https://github.com/NVIDIA-RTX/ShaderMake.git |
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,109 @@ | ||
|
||
option(NVRHI_INSTALL OFF) | ||
set (SHADERMAKE_BIN_OUTPUT_PATH "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}" CACHE STRING "") | ||
option(BUILD_SHARED_LIBS "" OFF) | ||
option(LZ4_BUILD_CLI "" OFF) | ||
|
||
# donut & nvrhi & lz4 | ||
if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/donut) | ||
|
||
option(DONUT_WITH_AUDIO "" OFF) | ||
option(DONUT_WITH_ASSIMP "" OFF) | ||
option(DONUT_WITH_DX11 "" OFF) | ||
option(DONUT_WITH_LZ4 "" OFF) | ||
option(DONUT_WITH_MINIZ "" OFF) | ||
option(DONUT_WITH_STATIC_SHADERS "" ON) | ||
option(DONUT_WITH_TASKFLOW "" OFF) | ||
option(DONUT_WITH_TINYEXR "" OFF) | ||
option(DONUT_WITH_STREAMLINE "" OFF) | ||
|
||
set(DONUT_SHADERS_OUTPUT_DIR "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/shaders/framework") | ||
add_subdirectory(donut) | ||
|
||
set_property(TARGET donut_app PROPERTY FOLDER "External/Donut") | ||
set_property(TARGET donut_core PROPERTY FOLDER "External/Donut") | ||
set_property(TARGET donut_engine PROPERTY FOLDER "External/Donut") | ||
set_property(TARGET donut_render PROPERTY FOLDER "External/Donut") | ||
set_property(TARGET donut_shaders PROPERTY FOLDER "External/Donut") | ||
set_property(TARGET update_mappings PROPERTY FOLDER "External/GLFW3") | ||
|
||
if (TARGET nvrhi) | ||
set_property(TARGET nvrhi PROPERTY FOLDER "External") | ||
endif() | ||
|
||
if (TARGET nvrhi_d3d12) | ||
set_property(TARGET nvrhi_d3d12 PROPERTY FOLDER "External") | ||
endif() | ||
if (TARGET nvrhi_vk) | ||
set_property(TARGET nvrhi_vk PROPERTY FOLDER "External") | ||
endif() | ||
|
||
set_property(TARGET imgui PROPERTY FOLDER "External") | ||
set_property(TARGET jsoncpp_static PROPERTY FOLDER "External") | ||
set_property(TARGET glfw PROPERTY FOLDER "External") | ||
endif() | ||
|
||
# GLM | ||
add_subdirectory("glm") | ||
set_property(TARGET glm PROPERTY FOLDER "External") | ||
|
||
if(BUILD_STATIC_LIBS) | ||
set_property(TARGET glm_static PROPERTY FOLDER "External") | ||
endif() | ||
|
||
if(BUILD_SHARED_LIBS) | ||
set_property(TARGET glm_shared PROPERTY FOLDER "External") | ||
endif() | ||
|
||
# lz4 | ||
set(LZ4_BUILD_CLI OFF) | ||
set(LZ4_BUILD_LEGACY_LZ4C OFF) | ||
add_subdirectory("lz4/build/cmake") | ||
set_property(TARGET lz4_static PROPERTY FOLDER "External") | ||
|
||
# ShaderMake | ||
if (NOT TARGET ShaderMake) | ||
add_subdirectory("ShaderMake") | ||
set_property(TARGET ShaderMake PROPERTY FOLDER "External") | ||
set_property(TARGET ShaderMakeBlob PROPERTY FOLDER "External") | ||
endif() | ||
|
||
# xxHash | ||
set(XXHASH_BUILD_XXHSUM OFF) | ||
add_subdirectory("xxHash/cmake_unofficial") | ||
set_property(TARGET xxhash PROPERTY FOLDER "External") | ||
|
||
# stb | ||
add_library(stb_lib INTERFACE) | ||
target_include_directories(stb_lib INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/stb>) | ||
|
||
# lz4 | ||
if (TARGET lz4) | ||
set_property(TARGET lz4 PROPERTY FOLDER "External") | ||
endif() | ||
if (TARGET lz4_static) | ||
set_property(TARGET lz4_static PROPERTY FOLDER "External") | ||
endif() | ||
|
||
if (TARGET ShaderMake) | ||
set_property(TARGET ShaderMake PROPERTY FOLDER "External") | ||
set_property(TARGET ShaderMakeBlob PROPERTY FOLDER "External") | ||
endif() | ||
|
||
# nvrhi | ||
if (TARGET nvrhi) | ||
set_target_properties(nvrhi PROPERTIES FOLDER "External") | ||
endif() | ||
|
||
if (TARGET nvrhi_d3d12) | ||
set_target_properties(nvrhi_d3d12 PROPERTIES FOLDER "External") | ||
endif() | ||
|
||
# gtest | ||
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/gtest AND OMM_ENABLE_TESTS) | ||
set(BUILD_GMOCK OFF) | ||
set(INSTALL_GTEST OFF) | ||
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) | ||
add_subdirectory("gtest") | ||
set_target_properties("gtest_main" "gtest" PROPERTIES FOLDER "External") | ||
endif() |
Submodule ShaderMake
added at
809711
This file was deleted.
Oops, something went wrong.
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,18 @@ | ||
|
||
if (WIN32 AND TARGET nvrhi) | ||
option(OMM_INTEGRATION_LAYER_NVRHI "Build nvrhi integration layer" ON) | ||
set(EXTRA_LIBS nvrhi_d3d12 d3d12.lib dxgi.lib) | ||
else() | ||
option(OMM_INTEGRATION_LAYER_NVRHI "Build nvrhi integration layer" OFF) | ||
set(EXTRA_LIBS ) | ||
endif() | ||
|
||
if (OMM_INTEGRATION_LAYER_NVRHI) | ||
set(OMM_LIB_NVRHI_HEADERS omm-gpu-nvrhi.h) | ||
set(OMM_LIB_NVRHI_SOURCE omm-gpu-nvrhi.cpp) | ||
add_library(omm-gpu-nvrhi STATIC ${OMM_LIB_NVRHI_HEADERS} ${OMM_LIB_NVRHI_SOURCE}) | ||
target_include_directories(omm-gpu-nvrhi PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) | ||
target_link_libraries(omm-gpu-nvrhi ${OMM_LIB_TARGET_NAME} nvrhi ${EXTRA_LIBS}) | ||
set_target_properties(omm-gpu-nvrhi PROPERTIES FOLDER "${OMM_PROJECT_FOLDER}") | ||
endif() | ||
|
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
File renamed without changes.
Oops, something went wrong.