Skip to content

Commit

Permalink
Use CMake's FetchContent module to get AGS files
Browse files Browse the repository at this point in the history
Don't include the AGS files in the GFXR repo. Instead, attempt to fetch
them from the AGS GitHub.
  • Loading branch information
davidd-lunarg committed Oct 14, 2024
1 parent 7fd7cb1 commit 10d35bd
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 1,356 deletions.
17 changes: 16 additions & 1 deletion cmake/FindAGS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,22 @@ endif()

if(AGS_ARCH AND AGS_MSVC_TOOLSET AND AGS_MSVC_RUNTIME)

set(AGS_SEARCH_PATH "${CMAKE_SOURCE_DIR}/external/AGS_SDK/ags_lib")
set(AGS_SDK_DIR "${CMAKE_BINARY_DIR}/external/AGS_SDK")
set(AGS_SDK_GIT "https://github.com/GPUOpen-LibrariesAndSDKs/AGS_SDK.git")
set(AGS_SDK_COMMIT "f686755b60a18521eb2fe7b40d7b3e35125cf151") # Release 6.2.0

message(STATUS "Fetching AGS_SDK files from ${AGS_SDK_GIT}")
include(FetchContent)
FetchContent_Declare(
AGS_SDK
GIT_REPOSITORY ${AGS_SDK_GIT}
GIT_TAG ${AGS_SDK_COMMIT}
SOURCE_DIR ${AGS_SDK_DIR}
EXCLUDE_FROM_ALL TRUE
)
FetchContent_MakeAvailable(AGS_SDK)

set(AGS_SEARCH_PATH "${AGS_SDK_DIR}/ags_lib")

find_path(AGS_INCLUDE_DIR NAMES amd_ags.h PATHS ${AGS_SEARCH_PATH} PATH_SUFFIXES inc)
mark_as_advanced(AGS_INCLUDE_DIR)
Expand Down
1,355 changes: 0 additions & 1,355 deletions external/AGS_SDK/ags_lib/inc/amd_ags.h

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 10d35bd

Please sign in to comment.