mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Merge branch 'Kingcom-cmake'
This commit is contained in:
commit
a5b6f8cb02
9 changed files with 35 additions and 28 deletions
|
@ -27,7 +27,7 @@ charset = utf-8-bom
|
|||
charset = utf-8-bom
|
||||
|
||||
[Windows/{aboutbox.rc,version.rc}]
|
||||
charset = utf-16le
|
||||
charset = utf-8
|
||||
|
||||
[libretro/**.{cpp,h}]
|
||||
indent_style = space
|
||||
|
|
|
@ -311,7 +311,9 @@ if(NOT MSVC)
|
|||
else()
|
||||
# Disable warnings about MS-specific _s variants of libc functions
|
||||
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
||||
add_definitions(-MP)
|
||||
if (NOT CLANG)
|
||||
add_compile_options(-MP)
|
||||
endif()
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -D_NDEBUG")
|
||||
endif()
|
||||
|
@ -914,6 +916,7 @@ if(WIN32)
|
|||
set(THIN3D_PLATFORMS ${THIN3D_PLATFORMS}
|
||||
ext/native/thin3d/thin3d_d3d9.cpp
|
||||
ext/native/thin3d/thin3d_d3d11.cpp
|
||||
ext/native/thin3d/d3d9_d3dcompiler_loader.cpp
|
||||
ext/native/thin3d/d3dx9_loader.cpp
|
||||
ext/native/thin3d/d3dx9_loader.h
|
||||
ext/native/thin3d/d3d11_loader.cpp
|
||||
|
@ -1846,8 +1849,6 @@ if(USE_MINIUPNPC)
|
|||
if (NOT WIN32)
|
||||
add_definitions (-DMINIUPNPC_SET_SOCKET_TIMEOUT)
|
||||
add_definitions (-D_BSD_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112L)
|
||||
else()
|
||||
add_definitions (-D_WIN32_WINNT=0x0501) # XP or higher for getnameinfo and friends
|
||||
endif()
|
||||
if (MACOSX)
|
||||
add_definitions (-D_DARWIN_C_SOURCE)
|
||||
|
@ -1895,25 +1896,31 @@ if(USE_MINIUPNPC)
|
|||
# find_library (RESOLV_LIBRARY NAMES resolv)
|
||||
# set (LDLIBS ${SOCKET_LIBRARY} ${NSL_LIBRARY} ${RESOLV_LIBRARY} ${LDLIBS})
|
||||
endif()
|
||||
if (MSVC)
|
||||
# Suppress noise warnings
|
||||
target_compile_definitions(miniupnpc _CRT_SECURE_NO_WARNINGS _WINSOCK_DEPRECATED_NO_WARNINGS)
|
||||
endif()
|
||||
if (UPNPC_BUILD_STATIC)
|
||||
add_library(miniupnpc STATIC ${MINIUPNPC_SOURCES})
|
||||
target_link_libraries(${CoreLibName} miniupnpc ${LDLIBS})
|
||||
set(UPNPC_LIBRARY miniupnpc)
|
||||
if (MSVC)
|
||||
# Suppress noise warnings
|
||||
target_compile_definitions(miniupnpc PRIVATE _CRT_SECURE_NO_WARNINGS _WINSOCK_DEPRECATED_NO_WARNINGS)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
setup_target_project(${CoreLibName} Core)
|
||||
|
||||
# Generate git-version.cpp at build time.
|
||||
add_custom_target(GitVersion ALL
|
||||
DEPENDS something_that_never_exists)
|
||||
# Generate git-version at build time.
|
||||
add_custom_target(GitVersion DEPENDS something_that_never_exists)
|
||||
|
||||
set(WIN_VERSION_CMD "")
|
||||
if (WIN32)
|
||||
set(WIN_VERSION_CMD COMMAND ${CMAKE_SOURCE_DIR}/Windows/git-version-gen.cmd PPSSPPWindows)
|
||||
endif()
|
||||
|
||||
add_custom_command(OUTPUT something_that_never_exists
|
||||
COMMAND ${CMAKE_COMMAND} -DSOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR}
|
||||
-P ${CMAKE_CURRENT_SOURCE_DIR}/git-version.cmake)
|
||||
-P ${CMAKE_CURRENT_SOURCE_DIR}/git-version.cmake
|
||||
${WIN_VERSION_CMD})
|
||||
|
||||
set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/git-version.cpp
|
||||
PROPERTIES GENERATED TRUE
|
||||
|
|
|
@ -70,18 +70,16 @@
|
|||
#define __forceinline inline __attribute__((always_inline))
|
||||
#endif
|
||||
|
||||
#if !defined(__GNUC__) && (defined(_M_X64) || defined(_M_IX86))
|
||||
#if defined __SSE4_2__
|
||||
# define _M_SSE 0x402
|
||||
#elif defined __SSE4_1__
|
||||
# define _M_SSE 0x401
|
||||
#elif defined __SSSE3__
|
||||
# define _M_SSE 0x301
|
||||
#elif defined __SSE3__
|
||||
# define _M_SSE 0x300
|
||||
#elif defined __SSE2__
|
||||
# define _M_SSE 0x200
|
||||
#elif !defined(__GNUC__) && (defined(_M_X64) || defined(_M_IX86))
|
||||
# define _M_SSE 0x402
|
||||
#else
|
||||
# if defined __SSE4_2__
|
||||
# define _M_SSE 0x402
|
||||
# elif defined __SSE4_1__
|
||||
# define _M_SSE 0x401
|
||||
# elif defined __SSSE3__
|
||||
# define _M_SSE 0x301
|
||||
# elif defined __SSE3__
|
||||
# define _M_SSE 0x300
|
||||
# elif defined __SSE2__
|
||||
# define _M_SSE 0x200
|
||||
# endif
|
||||
#endif
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
class PointerWrap;
|
||||
|
||||
enum {
|
||||
enum : u32 {
|
||||
SCE_KERNEL_ERROR_OK = 0,
|
||||
SCE_KERNEL_ERROR_ALREADY = 0x80000020,
|
||||
SCE_KERNEL_ERROR_BUSY = 0x80000021,
|
||||
|
|
|
@ -72,7 +72,7 @@ enum {
|
|||
PSP_THREAD_ATTR_USER = 0x80000000,
|
||||
};
|
||||
|
||||
enum {
|
||||
enum : u32 {
|
||||
// Function exports.
|
||||
NID_MODULE_START = 0xD632ACDB,
|
||||
NID_MODULE_STOP = 0xCEE8593C,
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
// Official git repository and contact information can be found at
|
||||
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
|
||||
|
||||
#include "stdafx.h"
|
||||
#include <thread>
|
||||
#include <atomic>
|
||||
|
||||
|
@ -26,7 +27,7 @@
|
|||
|
||||
static std::atomic_flag threadRunningFlag;
|
||||
static std::thread inputThread;
|
||||
static std::atomic_bool focused = true;
|
||||
static std::atomic_bool focused = ATOMIC_VAR_INIT(true);
|
||||
|
||||
inline static void ExecuteInputPoll() {
|
||||
if (host && (focused.load(std::memory_order_relaxed) || !g_Config.bGamepadOnlyFocused)) {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#include "stdafx.h"
|
||||
#include "WindowsAudio.h"
|
||||
#include "WASAPIStream.h"
|
||||
#include "Common/Log.h"
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Add table
Reference in a new issue