mirror of
https://github.com/libretro/beetle-psx-libretro.git
synced 2024-11-23 00:39:40 +00:00
Remove unused CMake build.
This commit is contained in:
parent
3e2a696d9f
commit
361112b6f0
@ -1,20 +0,0 @@
|
||||
cmake_minimum_required(VERSION 3.5)
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
project(parallel-PSX LANGUAGES CXX C)
|
||||
|
||||
if (CMAKE_COMPILER_IS_GNUCXX)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic -Wno-missing-field-initializers")
|
||||
endif()
|
||||
|
||||
option(VULKAN_WSI "Enable Vulkan WSI." ON)
|
||||
|
||||
add_subdirectory(vulkan)
|
||||
add_subdirectory(glsl)
|
||||
add_subdirectory(atlas)
|
||||
add_subdirectory(renderer)
|
||||
add_subdirectory(stb)
|
||||
|
||||
add_executable(rsx-player main.cpp)
|
||||
add_dependencies(rsx-player shaders)
|
||||
target_link_libraries(rsx-player renderer stb)
|
||||
|
@ -1,2 +0,0 @@
|
||||
add_library(atlas STATIC atlas.cpp)
|
||||
target_include_directories(atlas PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
@ -1,54 +0,0 @@
|
||||
add_custom_target(shaders)
|
||||
|
||||
set(GLSL_FLAGS -mfmt=c)
|
||||
function(add_shader OUTPUT INPUT)
|
||||
add_custom_command(
|
||||
OUTPUT ${CMAKE_BINARY_DIR}/glsl/${OUTPUT}.inc
|
||||
COMMAND glslc ${ARGN} -o ${CMAKE_BINARY_DIR}/glsl/${OUTPUT}.inc ${GLSL_FLAGS} ${CMAKE_CURRENT_SOURCE_DIR}/${INPUT}
|
||||
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${INPUT}
|
||||
IMPLICIT_DEPENDS CXX ${CMAKE_CURRENT_SOURCE_DIR}/${INPUT}
|
||||
)
|
||||
add_custom_target(${OUTPUT} DEPENDS ${CMAKE_BINARY_DIR}/glsl/${OUTPUT}.inc)
|
||||
set_source_files_properties(${CMAKE_BINARY_DIR}/glsl/${OUTPUT}.inc PROPERTIES GENERATED TRUE)
|
||||
add_dependencies(shaders ${OUTPUT})
|
||||
endfunction(add_shader)
|
||||
|
||||
add_shader(opaque.flat.vert primitive.vert -DFLAT)
|
||||
add_shader(opaque.flat.frag primitive.frag -DFLAT)
|
||||
add_shader(opaque.textured.vert primitive.vert -DTEXTURED -DOPAQUE)
|
||||
add_shader(opaque.textured.frag primitive.frag -DTEXTURED -DOPAQUE)
|
||||
add_shader(semitrans.opaque.textured.frag primitive.frag -DTEXTURED -DSEMI_TRANS_OPAQUE)
|
||||
add_shader(semitrans.trans.textured.frag primitive.frag -DTEXTURED -DSEMI_TRANS)
|
||||
add_shader(feedback.add.frag primitive_feedback.frag -DTEXTURED -DBLEND_ADD)
|
||||
add_shader(feedback.avg.frag primitive_feedback.frag -DTEXTURED -DBLEND_AVG)
|
||||
add_shader(feedback.sub.frag primitive_feedback.frag -DTEXTURED -DBLEND_SUB)
|
||||
add_shader(feedback.add_quarter.frag primitive_feedback.frag -DTEXTURED -DBLEND_ADD_QUARTER)
|
||||
add_shader(feedback.flat.add.frag primitive_feedback.frag -DBLEND_ADD)
|
||||
add_shader(feedback.flat.avg.frag primitive_feedback.frag -DBLEND_AVG)
|
||||
add_shader(feedback.flat.sub.frag primitive_feedback.frag -DBLEND_SUB)
|
||||
add_shader(feedback.flat.add_quarter.frag primitive_feedback.frag -DBLEND_ADD_QUARTER)
|
||||
add_shader(resolve.scaled.comp resolve.comp -DSCALED)
|
||||
add_shader(resolve.unscaled.2.comp resolve.comp -DUNSCALED -DSCALE=2)
|
||||
add_shader(resolve.unscaled.4.comp resolve.comp -DUNSCALED -DSCALE=4)
|
||||
add_shader(resolve.unscaled.8.comp resolve.comp -DUNSCALED -DSCALE=8)
|
||||
add_shader(quad.vert quad.vert)
|
||||
add_shader(unscaled.quad.frag quad.frag -DUNSCALED)
|
||||
add_shader(scaled.quad.frag quad.frag -DSCALED)
|
||||
add_shader(bpp24.quad.frag quad.frag -DUNSCALED -DBPP24)
|
||||
add_shader(copy_vram.comp copy_vram.comp)
|
||||
add_shader(copy_vram.masked.comp copy_vram.comp -DMASKED)
|
||||
add_shader(blit_vram.scaled.comp blit_vram.comp -DSCALED)
|
||||
add_shader(blit_vram.unscaled.comp blit_vram.comp -DUNSCALED)
|
||||
add_shader(blit_vram.masked.scaled.comp blit_vram.comp -DSCALED -DMASKED)
|
||||
add_shader(blit_vram.masked.unscaled.comp blit_vram.comp -DUNSCALED -DMASKED)
|
||||
add_shader(blit_vram.cached.scaled.comp blit_vram_cached.comp -DSCALED)
|
||||
add_shader(blit_vram.cached.unscaled.comp blit_vram_cached.comp -DUNSCALED)
|
||||
add_shader(blit_vram.cached.masked.scaled.comp blit_vram_cached.comp -DSCALED -DMASKED)
|
||||
add_shader(blit_vram.cached.masked.unscaled.comp blit_vram_cached.comp -DUNSCALED -DMASKED)
|
||||
add_shader(mipmap.vert mipmap.vert)
|
||||
add_shader(mipmap.shifted.vert mipmap.vert -DSHIFT_QUAD)
|
||||
add_shader(mipmap.resolve.frag mipmap_resolve.frag)
|
||||
add_shader(mipmap.energy.first.frag mipmap_energy.frag -DFIRST_PASS)
|
||||
add_shader(mipmap.energy.frag mipmap_energy.frag)
|
||||
add_shader(mipmap.energy.blur.frag mipmap_blur.frag)
|
||||
|
@ -1,14 +0,0 @@
|
||||
add_library(renderer STATIC renderer.cpp)
|
||||
|
||||
if (VULKAN_WSI)
|
||||
target_link_libraries(renderer vulkan-wsi atlas)
|
||||
else()
|
||||
target_link_libraries(renderer vulkan atlas)
|
||||
endif()
|
||||
target_include_directories(renderer PRIVATE ${CMAKE_BINARY_DIR}/glsl)
|
||||
target_include_directories(renderer PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
add_dependencies(renderer shaders)
|
||||
|
||||
if (VULKAN_WSI)
|
||||
target_compile_definitions(renderer PUBLIC VULKAN_WSI=1)
|
||||
endif()
|
@ -1,2 +0,0 @@
|
||||
add_library(stb STATIC stb.c)
|
||||
target_include_directories(stb PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
@ -1,4 +0,0 @@
|
||||
set(CMAKE_SYSTEM_NAME Linux)
|
||||
set(CMAKE_SYSTEM_PROCESSOR arm)
|
||||
set(CMAKE_C_COMPILER arm-linux-gnueabihf-gcc)
|
||||
set(CMAKE_CXX_COMPILER arm-linux-gnueabihf-g++)
|
@ -1,37 +0,0 @@
|
||||
add_library(vulkan-symbols
|
||||
vulkan_symbol_wrapper.cpp
|
||||
)
|
||||
target_link_libraries(vulkan-symbols)
|
||||
target_include_directories(vulkan-symbols PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/../khronos/include)
|
||||
|
||||
add_library(vulkan
|
||||
vulkan.cpp
|
||||
device.cpp
|
||||
image.cpp
|
||||
cookie.cpp
|
||||
sampler.cpp
|
||||
command_pool.cpp
|
||||
fence_manager.cpp
|
||||
descriptor_set.cpp
|
||||
semaphore_manager.cpp
|
||||
command_buffer.cpp
|
||||
shader.cpp
|
||||
render_pass.cpp
|
||||
buffer.cpp
|
||||
chain_allocator.cpp
|
||||
semaphore.cpp
|
||||
memory_allocator.cpp)
|
||||
|
||||
target_include_directories(vulkan PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/../khronos/include)
|
||||
target_compile_definitions(vulkan PUBLIC VULKAN_DEBUG)
|
||||
|
||||
add_subdirectory(wsi)
|
||||
|
||||
add_subdirectory(SPIRV-Cross EXCLUDE_FROM_ALL)
|
||||
target_link_libraries(vulkan spirv-cross-core)
|
||||
target_link_libraries(vulkan vulkan-symbols)
|
||||
|
||||
if (UNIX)
|
||||
target_link_libraries(vulkan dl)
|
||||
target_compile_definitions(vulkan PRIVATE HAVE_DYLIB)
|
||||
endif()
|
@ -1,61 +0,0 @@
|
||||
# Copyright 2016 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
cmake_minimum_required(VERSION 2.8)
|
||||
project(SPIRV-Cross)
|
||||
enable_testing()
|
||||
|
||||
if(${CMAKE_GENERATOR} MATCHES "Makefile")
|
||||
if(${CMAKE_CURRENT_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_BINARY_DIR})
|
||||
message(FATAL_ERROR "Build out of tree to avoid overwriting Makefile")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
add_executable(spirv-cross
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/GLSL.std.450.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/spirv_common.hpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/spirv_cpp.hpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/spirv_cross.hpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/spirv_glsl.hpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/spirv.hpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/spirv_msl.hpp
|
||||
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/main.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/spirv_cpp.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/spirv_cross.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/spirv_glsl.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/spirv_msl.cpp
|
||||
)
|
||||
|
||||
# To specify special debug or optimization options, use
|
||||
# -DCMAKE_CXX_COMPILE_FLAGS
|
||||
# However, we require the C++11 dialect.
|
||||
if (NOT "${MSVC}")
|
||||
target_compile_options(spirv-cross PRIVATE -std=c++11 -Wall -Wextra -Werror -Wshadow)
|
||||
endif(NOT "${MSVC}")
|
||||
|
||||
|
||||
# Set up tests, using only the simplest modes of the test_shaders
|
||||
# script. You have to invoke the script manually to:
|
||||
# - Update the reference files
|
||||
# - Get cycle counts from malisc
|
||||
# - Keep failing outputs
|
||||
find_program(PYTHON3_EXE python3)
|
||||
if(${PYTHON3_EXE} MATCHES "NOTFOUND")
|
||||
message(WARNING "Testing disabled. Could not find python3")
|
||||
else()
|
||||
add_test(NAME spirv-cross-test
|
||||
COMMAND ${PYTHON3_EXE} ${CMAKE_CURRENT_SOURCE_DIR}/test_shaders.py
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/shaders)
|
||||
endif()
|
@ -1,17 +0,0 @@
|
||||
add_library(vulkan-wsi STATIC wsi.cpp)
|
||||
target_link_libraries(vulkan-wsi vulkan)
|
||||
target_include_directories(vulkan-wsi PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
option(WSI "WSI backend" "GLFW")
|
||||
if (NOT WSI)
|
||||
set(WSI "GLFW")
|
||||
endif()
|
||||
|
||||
if (${WSI} MATCHES "GLFW")
|
||||
target_compile_definitions(vulkan-wsi PUBLIC HAVE_GLFW)
|
||||
find_package(glfw3)
|
||||
target_link_libraries(vulkan-wsi vulkan-symbols glfw)
|
||||
elseif (${WSI} MATCHES "DISPLAY")
|
||||
target_compile_definitions(vulkan-wsi PUBLIC HAVE_KHR_DISPLAY)
|
||||
target_link_libraries(vulkan-wsi vulkan-symbols -pthread)
|
||||
endif()
|
Loading…
Reference in New Issue
Block a user