-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git subrepo clone https://github.com/GPUOpen-LibrariesAndSDKs/VulkanM…
…emoryAllocator.git subrepo: subdir: "VulkanMemoryAllocator" merged: "f3f5a98ae" upstream: origin: "https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git" branch: "master" commit: "f3f5a98ae" git-subrepo: version: "0.4.9" origin: "https://github.com/ingydotnet/git-subrepo" commit: "cce3d93"
- Loading branch information
Showing
261 changed files
with
60,109 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/bin/* | ||
/build/* | ||
!/bin/VmaSample_Release_vs2019.exe | ||
!/bin/VmaSample_Release_vs2022.exe | ||
!/bin/Shader*.spv | ||
.vscode/ |
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,12 @@ | ||
; DO NOT EDIT (unless you know what you are doing) | ||
; | ||
; This subdirectory is a git "subrepo", and this file is maintained by the | ||
; git-subrepo command. See https://github.com/ingydotnet/git-subrepo#readme | ||
; | ||
[subrepo] | ||
remote = https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git | ||
branch = master | ||
commit = f3f5a98ae8570d8e8415992f22595047a095fb20 | ||
parent = 152ca3ba173546e6a6efe344e5e0746ceb19d334 | ||
method = merge | ||
cmdver = 0.4.9 |
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,37 @@ | ||
language: cpp | ||
sudo: required | ||
os: linux | ||
dist: bionic | ||
|
||
branches: | ||
only: | ||
- master | ||
|
||
compiler: | ||
- clang | ||
- gcc | ||
|
||
before_script: | ||
- sudo apt-get install | ||
- eval "${MATRIX_EVAL}" | ||
|
||
install: | ||
- sudo apt-get -qq update | ||
- sudo apt-get install -y libassimp-dev libglm-dev graphviz libxcb-dri3-0 libxcb-present0 libpciaccess0 cmake libpng-dev libxcb-dri3-dev libx11-dev libx11-xcb-dev libmirclient-dev libwayland-dev libxrandr-dev | ||
- export VK_VERSION=1.2.189.0 | ||
- wget -O vulkansdk-linux-x86_64-$VK_VERSION.tar.gz https://sdk.lunarg.com/sdk/download/$VK_VERSION/linux/vulkansdk-linux-x86_64-$VK_VERSION.tar.gz?Human=true | ||
- tar zxf vulkansdk-linux-x86_64-$VK_VERSION.tar.gz | ||
- export VULKAN_SDK=$TRAVIS_BUILD_DIR/$VK_VERSION/x86_64 | ||
|
||
script: | ||
- mkdir -p build | ||
- cd build | ||
- cmake .. | ||
- make | ||
|
||
notifications: | ||
email: | ||
recipients: | ||
- [email protected] | ||
on_success: change | ||
on_failure: always |
Large diffs are not rendered by default.
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,49 @@ | ||
cmake_minimum_required(VERSION 3.15...3.26) | ||
|
||
project(VMA VERSION 3.1.0 LANGUAGES CXX) | ||
|
||
add_library(VulkanMemoryAllocator INTERFACE) | ||
add_library(GPUOpen::VulkanMemoryAllocator ALIAS VulkanMemoryAllocator) | ||
|
||
target_include_directories(VulkanMemoryAllocator INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>) | ||
|
||
if (CMAKE_VERSION VERSION_LESS "3.21") | ||
# https://cmake.org/cmake/help/latest/variable/PROJECT_IS_TOP_LEVEL.html | ||
string(COMPARE EQUAL ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_SOURCE_DIR} PROJECT_IS_TOP_LEVEL) | ||
endif() | ||
|
||
option(VMA_ENABLE_INSTALL "Install VulkanMemoryAllocator" ${PROJECT_IS_TOP_LEVEL}) | ||
if (VMA_ENABLE_INSTALL) | ||
include(GNUInstallDirs) | ||
include(CMakePackageConfigHelpers) | ||
|
||
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include/" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) | ||
install(TARGETS VulkanMemoryAllocator EXPORT VulkanMemoryAllocatorConfig INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) | ||
install(EXPORT VulkanMemoryAllocatorConfig NAMESPACE "GPUOpen::" DESTINATION "share/cmake/VulkanMemoryAllocator") | ||
|
||
write_basic_package_version_file(VulkanMemoryAllocatorConfigVersion.cmake COMPATIBILITY SameMajorVersion ARCH_INDEPENDENT) | ||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/VulkanMemoryAllocatorConfigVersion.cmake" DESTINATION "share/cmake/VulkanMemoryAllocator") | ||
|
||
option(VMA_BUILD_DOCUMENTATION "Create and install the HTML based API documentation") | ||
if(VMA_BUILD_DOCUMENTATION) | ||
find_package(Doxygen REQUIRED) | ||
# set input and output files | ||
set(DOXYGEN_IN ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile) | ||
set(DOXYGEN_OUT ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile) | ||
# request to configure the file | ||
configure_file(${DOXYGEN_IN} ${DOXYGEN_OUT} @ONLY) | ||
# note the option ALL which allows to build the docs together with the application | ||
add_custom_target(doc_doxygen ALL | ||
COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_OUT} | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} | ||
COMMENT "Generating API documentation with Doxygen" | ||
VERBATIM | ||
) | ||
install(DIRECTORY docs/ DESTINATION "${CMAKE_INSTALL_DATADIR}/doc/VulkanMemoryAllocator" PATTERN ".nojekyll" EXCLUDE) | ||
endif() | ||
|
||
option(VMA_BUILD_SAMPLES "Build samples") | ||
if (VMA_BUILD_SAMPLES) | ||
add_subdirectory(src) | ||
endif() | ||
endif() |
Oops, something went wrong.