Skip to content

Commit

Permalink
Add dawn as a submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiashienzsch committed May 20, 2024
1 parent f2e69a4 commit 78e9c6f
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@
path = 3rd_party/cmake-conan
url = https://github.com/conan-io/cmake-conan.git
branch = develop2
[submodule "3rd_party/dawn"]
path = 3rd_party/dawn
url = https://dawn.googlesource.com/dawn
1 change: 1 addition & 0 deletions 3rd_party/dawn
Submodule dawn added at 7ffb6e
24 changes: 24 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,30 @@ include(CodeCoverage)
find_package(Catch2 REQUIRED)
include(Catch)

option(DAWN_FETCH_DEPENDENCIES "Use fetch_dawn_dependencies.py as an alternative to using depot_tools" ON)
option(DAWN_USE_GLFW "Enables building glfw samples" OFF)
option(DAWN_BUILD_SAMPLES "Enables building Dawn's samples" OFF)
option(DAWN_ENABLE_DESKTOP_GL "Enable OpenGL" OFF)
option(DAWN_ENABLE_OPENGLES "Enable OpenGLES" OFF)
option(TINT_BUILD_CMD_TOOLS "Build the Tint command line tools" OFF)
option(TINT_BUILD_DOCS "Build documentation" OFF)
option(TINT_BUILD_TESTS "Build tests" OFF)

if (NOT APPLE)
option(TINT_BUILD_MSL_WRITER "Build the MSL output writer" OFF)
endif()

if(WIN32)
option(TINT_BUILD_SPV_READER "Build the SPIR-V input reader" OFF)
option(TINT_BUILD_WGSL_READER "Build the WGSL input reader" ON)
option(TINT_BUILD_GLSL_WRITER "Build the GLSL output writer" OFF)
option(TINT_BUILD_GLSL_VALIDATOR "Build the GLSL output validator" OFF)
option(TINT_BUILD_SPV_WRITER "Build the SPIR-V output writer" OFF)
option(TINT_BUILD_WGSL_WRITER "Build the WGSL output writer" ON)
endif()

add_subdirectory(3rd_party/dawn EXCLUDE_FROM_ALL)
add_subdirectory(3rd_party/JUCE EXCLUDE_FROM_ALL)

add_subdirectory(src)
add_subdirectory(src/ra/raum_akustik)
3 changes: 3 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ target_link_libraries(${PROJECT_NAME}
juce::juce_recommended_warning_flags
PUBLIC
mp-units::mp-units
webgpu_cpp
webgpu_dawn

juce::juce_recommended_config_flags
juce::juce_recommended_lto_flags
ra::compiler_options
Expand Down

0 comments on commit 78e9c6f

Please sign in to comment.