Skip to content

Commit

Permalink
fetch slang by CPM
Browse files Browse the repository at this point in the history
  • Loading branch information
Kingstom committed Jan 29, 2024
1 parent 8fe8272 commit ecb477b
Show file tree
Hide file tree
Showing 25 changed files with 13 additions and 13,146 deletions.
8 changes: 7 additions & 1 deletion cmake/AphExternal.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ CPMAddPackage(
"MI_OVERRIDE ON"
)

CPMAddPackage(
NAME slang
URL https://github.com/shader-slang/slang/releases/download/v2024.0.0/slang-2024.0.0-linux-x86_64.tar.gz
VERSION 2024.0.0
DOWNLOAD_ONLY YES
)

CPMAddPackage(
NAME spirv-cross
GITHUB_REPOSITORY KhronosGroup/SPIRV-Cross
Expand All @@ -57,7 +64,6 @@ CPMAddPackage(

add_subdirectory(${APH_EXTERNAL_DIR}/volk EXCLUDE_FROM_ALL)
add_subdirectory(${APH_EXTERNAL_DIR}/imgui EXCLUDE_FROM_ALL)
add_subdirectory(${APH_EXTERNAL_DIR}/slang EXCLUDE_FROM_ALL)

# wsi backend
set(VALID_WSI_BACKENDS Auto GLFW SDL2)
Expand Down
8 changes: 6 additions & 2 deletions engine/resource/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@ add_library(resource STATIC ${API_RESOURCE_SRC})
aph_compiler_options(resource)
target_include_directories(resource PRIVATE
${APH_ENGINE_DIR}
${APH_EXTERNAL_DIR}/slang
${APH_EXTERNAL_DIR}/tinyktx
${APH_EXTERNAL_DIR}/stb/include
${tinygltf_SOURCE_DIR}

${slang_SOURCE_DIR}
)

target_link_libraries(resource PRIVATE slang aph_filesystem common api)
target_link_libraries(resource PRIVATE aph_filesystem common api)
target_link_libraries(resource PRIVATE
${slang_SOURCE_DIR}/bin/linux-x64/release/libslang.so
)
3 changes: 0 additions & 3 deletions external/slang/CMakeLists.txt

This file was deleted.

21 changes: 0 additions & 21 deletions external/slang/LICENSE

This file was deleted.

Binary file removed external/slang/bin/linux-x64/release/libgfx.so
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed external/slang/bin/linux-x64/release/libslang.so
Binary file not shown.
Binary file removed external/slang/bin/linux-x64/release/slangc
Binary file not shown.
Binary file removed external/slang/bin/linux-x64/release/slangd
Binary file not shown.
55 changes: 0 additions & 55 deletions external/slang/prelude/slang-cpp-host-prelude.h

This file was deleted.

Loading

0 comments on commit ecb477b

Please sign in to comment.