forked from PazerOP/TF2Vulkan
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Junk commit so that I don't lose my work
- Loading branch information
Showing
15 changed files
with
126 additions
and
21 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
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,44 @@ | ||
project(tf2vulkan) | ||
cmake_minimum_required(VERSION 3.13) | ||
|
||
set(CMAKE_C_STANDARD 11) | ||
set(CMAKE_CXX_STANDARD 11) | ||
|
||
if(UNIX) | ||
add_compile_definitions(PLATFORM_POSIX POSIX _POSIX) | ||
add_compile_definitions(GNUC) # Not sure what this does, but is required | ||
endif() | ||
if(UNIX AND NOT APPLE AND NOT CYGWIN) | ||
add_compile_definitions(PLATFORM_LINUX LINUX _LINUX) | ||
endif() | ||
if(APPLE) | ||
add_compile_definitions(OSX _OSX) | ||
endif() | ||
if(WIN32) | ||
add_compile_definitions(PLATFORM_WINDOWS_PC PLATFORM_WINDOWS WIN32 _WIN32) | ||
endif() | ||
|
||
|
||
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") | ||
add_compile_definitions(COMPILER_GCC) # IDK why but clang == gcc | ||
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") | ||
add_compile_definitions(COMPILER_GCC) | ||
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") | ||
add_compile_definitions(COMPILER_MSVC) | ||
|
||
endif() | ||
|
||
set(CMAKE_POSITION_INDEPENDENT_CODE True) | ||
|
||
set(CMAKE_C_FLAGS_DEBUG_INIT -DDEBUG -D_DEBUG -O0 -ggdb -g3) | ||
set(CMAKE_CXX_FLAGS_DEBUG_INIT -DDEBUG -D_DEBUG -O0 -ggdb -g3) | ||
|
||
set(CMAKE_C_FLAGS_RELEASE_INIT -DNDEBUG -O3 -ggdb -g1) | ||
set(CMAKE_CXX_FLAGS_RELEASE_INIT -DNDEBUG -O3 -ggdb -g1) | ||
|
||
set(CMAKE_C_FLAGS "-w -m32") | ||
set(CMAKE_CXX_FLAGS "-w -m32") | ||
|
||
|
||
add_subdirectory(TF2VulkanUtil) | ||
add_subdirectory(stdshader_vulkan) |
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,16 @@ | ||
project(tf2vulkanutil) | ||
set(CMAKE_CXX_STANDARD 20) | ||
|
||
add_library(tf2vulkanutil STATIC) | ||
|
||
target_sources(tf2vulkanutil PUBLIC | ||
include/TF2Vulkan/Util/ImageManip.cpp | ||
include/TF2Vulkan/Util/Threads.cpp | ||
src/TF2Vulkan/Util/Macros.cpp | ||
src/TF2Vulkan/Util/interface.cpp | ||
src/TF2Vulkan/Util/KeyValues.cpp | ||
src/TF2Vulkan/Util/std_string.cpp | ||
src/TF2Vulkan/Util/std_utility.cpp | ||
src/TF2Vulkan/Util/utlsymbol.cpp) | ||
|
||
target_include_directories(tf2vulkanutil PUBLIC include ../sdk2013/mp/src/public/) |
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
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
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
Submodule sdk2013
updated
from 9d7acd to 460a7a
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 @@ | ||
PROJECT(stdshader_vulkan) | ||
|
||
file(GLOB SHADERS ${CMAKE_CURRENT_SOURCE_DIR}/src/shaders/HLSL/*.hlsl) | ||
foreach(SHADER ${SHADERS}) | ||
get_filename_component(SHADER_NAME ${SHADER} NAME_WLE) | ||
list(APPEND COMPILED_SHADERS ${CMAKE_CURRENT_SOURCE_DIR}/src/shaders/generated/${SHADER_NAME}.h) | ||
endforeach() | ||
add_custom_command( OUTPUT ${COMPILED_SHADERS} | ||
COMMAND make | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/src/shaders/HLSL) | ||
add_custom_target(shaders DEPENDS ${COMPILED_SHADERS}) | ||
|
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