fix Windows NOMINMAX and _CRT_SECURE_NO_WARNINGS redefinitions
This commit is contained in:
5
external/imgui/CMakeLists.txt
vendored
5
external/imgui/CMakeLists.txt
vendored
@@ -14,11 +14,8 @@ add_library(imgui
|
||||
|
||||
add_compile_definitions(IMGUI_IMPL_VULKAN_NO_PROTOTYPES)
|
||||
|
||||
if(WIN32)
|
||||
target_compile_definitions(imgui PUBLIC NOMINMAX _CRT_SECURE_NO_WARNINGS)
|
||||
if(MSVC)
|
||||
if(MSVC)
|
||||
target_compile_options(imgui PUBLIC /EHa)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
target_include_directories(imgui PUBLIC ../parallel-rdp/parallel-rdp-standalone/volk
|
||||
|
||||
2
external/parallel-rdp/CMakeLists.txt
vendored
2
external/parallel-rdp/CMakeLists.txt
vendored
@@ -45,7 +45,7 @@ add_library(parallel-rdp
|
||||
)
|
||||
|
||||
if(WIN32)
|
||||
target_compile_definitions(parallel-rdp PUBLIC NOMINMAX _CRT_SECURE_NO_WARNINGS VK_USE_PLATFORM_WIN32_KHR)
|
||||
target_compile_definitions(parallel-rdp PUBLIC VK_USE_PLATFORM_WIN32_KHR)
|
||||
if(MSVC)
|
||||
target_compile_options(parallel-rdp PUBLIC /EHa)
|
||||
endif()
|
||||
|
||||
Submodule external/parallel-rdp/parallel-rdp-standalone updated: f07bbaf808...afac4af72c
@@ -39,6 +39,10 @@ include_directories(
|
||||
)
|
||||
|
||||
add_compile_definitions(SIMD_SUPPORT)
|
||||
if(WIN32)
|
||||
add_definitions(-DNOMINMAX)
|
||||
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
||||
endif ()
|
||||
add_compile_options(-mssse3 -msse4.1)
|
||||
if(${CMAKE_BUILD_TYPE} MATCHES Debug)
|
||||
#add_compile_options(-fsanitize=address -fsanitize=undefined)
|
||||
@@ -60,6 +64,10 @@ add_subdirectory(../external/parallel-rdp parallel-rdp)
|
||||
|
||||
add_executable(kaizen main.cpp)
|
||||
|
||||
if(MSVC)
|
||||
target_compile_options(parallel-rdp PUBLIC /EHa)
|
||||
endif()
|
||||
|
||||
file(COPY ${PROJECT_SOURCE_DIR}/../resources/ DESTINATION ${PROJECT_BINARY_DIR}/resources/)
|
||||
file(REMOVE
|
||||
${PROJECT_BINARY_DIR}/resources/mario.png
|
||||
@@ -68,10 +76,3 @@ file(REMOVE
|
||||
|
||||
target_link_libraries(kaizen PUBLIC frontend frontend-imgui
|
||||
discord-rpc imgui nfd parallel-rdp backend fmt::fmt nlohmann_json::nlohmann_json core registers interpreter mmio rsp SDL2::SDL2main SDL2::SDL2)
|
||||
|
||||
if(WIN32)
|
||||
target_compile_definitions(kaizen PUBLIC NOMINMAX _CRT_SECURE_NO_WARNINGS)
|
||||
if(MSVC)
|
||||
target_compile_options(parallel-rdp PUBLIC /EHa)
|
||||
endif()
|
||||
endif()
|
||||
@@ -65,7 +65,7 @@ void Core::Run(float volumeL, float volumeR) {
|
||||
|
||||
cycles += taken;
|
||||
frameCycles += taken;
|
||||
scheduler.tick(1, mem, regs);
|
||||
scheduler.tick(taken, mem, regs);
|
||||
}
|
||||
|
||||
cycles -= mmio.vi.cyclesPerHalfline;
|
||||
|
||||
Reference in New Issue
Block a user