2012-11-26 22:03:44 +00:00
|
|
|
# vim:noexpandtab:
|
2016-10-11 01:27:04 +00:00
|
|
|
cmake_minimum_required(VERSION 3.6)
|
2012-11-18 16:00:27 +00:00
|
|
|
project(PPSSPP)
|
2016-12-05 15:51:28 +00:00
|
|
|
|
|
|
|
#This is supposed to work but doesn't!
|
2017-03-16 09:16:29 +00:00
|
|
|
if (NOT ANDROID)
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
endif()
|
2016-12-05 15:51:28 +00:00
|
|
|
|
2014-06-11 13:02:56 +00:00
|
|
|
enable_language(ASM)
|
2016-10-12 11:25:11 +00:00
|
|
|
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules)
|
2012-11-18 16:00:27 +00:00
|
|
|
|
2016-12-05 15:51:28 +00:00
|
|
|
add_definitions(-D__STDC_CONSTANT_MACROS)
|
2013-12-13 10:04:22 +00:00
|
|
|
|
2016-12-05 15:51:28 +00:00
|
|
|
# Of the CMake platforms, we only support Vulkan on Android and Windows.
|
|
|
|
if(ANDROID OR WIN32)
|
|
|
|
set(VULKAN ON)
|
|
|
|
else()
|
|
|
|
add_definitions(-DNO_VULKAN)
|
|
|
|
endif()
|
2016-02-21 21:12:19 +00:00
|
|
|
|
2017-03-16 09:16:29 +00:00
|
|
|
if(${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
|
|
|
|
set(CLANG ON)
|
|
|
|
message("Clang enabled")
|
|
|
|
endif()
|
|
|
|
|
2014-06-18 06:15:47 +00:00
|
|
|
# Detect CPU from CMAKE configuration. Toolchains should set this up
|
2014-11-13 15:41:30 +00:00
|
|
|
if(CMAKE_SYSTEM_PROCESSOR)
|
|
|
|
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^arm")
|
|
|
|
set(ARM ON)
|
2014-11-14 08:07:29 +00:00
|
|
|
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^armv7")
|
|
|
|
set(ARMV7 ON)
|
2016-12-05 15:51:28 +00:00
|
|
|
# Horrifying workaround for bug in android cmake stuff for asm files
|
|
|
|
if (ANDROID)
|
|
|
|
set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -target armv7a-none-linux-android")
|
|
|
|
endif()
|
2014-11-14 08:07:29 +00:00
|
|
|
endif()
|
2016-12-05 15:51:28 +00:00
|
|
|
elseif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^aarch64")
|
|
|
|
set(ARM64 ON)
|
|
|
|
add_definitions(-DARM64)
|
|
|
|
elseif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^amd64" OR ${CMAKE_SYSTEM_PROCESSOR} MATCHES "^x86_64" OR ${CMAKE_SYSTEM_PROCESSOR} MATCHES "^AMD64")
|
|
|
|
set(X86 ON)
|
|
|
|
set(X86_64 ON)
|
|
|
|
elseif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^x86" OR ${CMAKE_SYSTEM_PROCESSOR} MATCHES "i.86")
|
2014-11-13 15:41:30 +00:00
|
|
|
set(X86 ON)
|
|
|
|
elseif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^mips")
|
|
|
|
set(MIPS ON)
|
2016-12-05 15:51:28 +00:00
|
|
|
else()
|
|
|
|
message("Unknown CMAKE_SYSTEM_PROCESSOR: ${CMAKE_SYSTEM_PROCESSOR}")
|
2014-11-13 15:41:30 +00:00
|
|
|
endif()
|
2014-11-11 12:55:49 +00:00
|
|
|
endif()
|
2013-03-22 07:15:00 +00:00
|
|
|
|
2016-10-12 14:25:49 +00:00
|
|
|
include(ccache)
|
2016-05-21 15:45:23 +00:00
|
|
|
|
2014-06-18 06:15:47 +00:00
|
|
|
# Remove soon?
|
|
|
|
set(USE_FFMPEG ON)
|
2013-03-10 03:24:05 +00:00
|
|
|
|
2017-12-05 12:23:13 +00:00
|
|
|
if(NOT ANDROID AND NOT IOS)
|
2017-03-13 22:45:25 +00:00
|
|
|
if(ARM OR SIMULATOR)
|
|
|
|
set(USING_EGL ON)
|
|
|
|
endif()
|
2014-06-18 06:15:47 +00:00
|
|
|
endif()
|
2012-11-18 16:00:27 +00:00
|
|
|
|
2013-06-21 05:33:29 +00:00
|
|
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
|
|
|
set(LINUX ON)
|
2014-06-11 13:02:56 +00:00
|
|
|
add_definitions(-D__STDC_CONSTANT_MACROS)
|
2013-06-21 05:33:29 +00:00
|
|
|
endif()
|
|
|
|
|
2013-06-15 12:50:47 +00:00
|
|
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
|
|
|
set(MACOSX ON)
|
|
|
|
endif()
|
|
|
|
|
2016-10-11 01:27:38 +00:00
|
|
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Android")
|
2016-12-05 15:51:28 +00:00
|
|
|
set(ANDROID ON)
|
2016-10-11 01:27:38 +00:00
|
|
|
endif()
|
|
|
|
|
2013-10-20 00:35:46 +00:00
|
|
|
if(NOT DEFINED HEADLESS)
|
2012-11-26 04:06:35 +00:00
|
|
|
set(HEADLESS OFF)
|
2012-11-18 16:00:27 +00:00
|
|
|
endif()
|
|
|
|
|
2017-03-16 09:42:15 +00:00
|
|
|
if(GOLD)
|
|
|
|
add_definitions(-DGOLD)
|
2017-03-17 10:55:14 +00:00
|
|
|
message("Gold Build")
|
|
|
|
else()
|
|
|
|
message("Normal Build")
|
2017-03-16 09:42:15 +00:00
|
|
|
endif()
|
|
|
|
|
2014-01-11 11:18:57 +00:00
|
|
|
# Doesn't link on some platforms
|
|
|
|
#if(NOT DEFINED UNITTEST)
|
|
|
|
# set(UNITTEST OFF)
|
|
|
|
#endif()
|
2014-01-09 11:09:07 +00:00
|
|
|
|
2012-11-18 16:00:27 +00:00
|
|
|
# User-editable options (go into CMakeCache.txt)
|
2014-05-30 15:22:11 +00:00
|
|
|
# :: Processors
|
2014-06-18 06:15:47 +00:00
|
|
|
option(ARMV7 "Set to ON if targeting an ARMv7 processor" ${ARMV7})
|
2012-11-18 16:00:27 +00:00
|
|
|
option(ARM "Set to ON if targeting an ARM processor" ${ARM})
|
2013-03-10 03:24:05 +00:00
|
|
|
option(MIPS "Set to ON if targeting a MIPS processor" ${MIPS})
|
2012-11-26 02:41:57 +00:00
|
|
|
option(X86 "Set to ON if targeting an X86 processor" ${X86})
|
2016-12-05 15:51:28 +00:00
|
|
|
option(X86_64 "Set to ON if targeting an X86_64 processor" ${X86_64})
|
2014-05-30 15:22:11 +00:00
|
|
|
# :: Environments
|
|
|
|
option(USING_EGL "Set to ON if target environment uses EGL" ${USING_EGL})
|
|
|
|
option(USING_FBDEV "Set to ON if target environment uses fbdev (eg. Pandora)" ${USING_FBDEV})
|
2012-11-26 02:41:57 +00:00
|
|
|
option(USING_GLES2 "Set to ON if target device uses OpenGL ES 2.0" ${USING_GLES2})
|
2015-10-28 05:12:46 +00:00
|
|
|
option(RASPBIAN "Set to ON to workaround threading issues when building for ARMV7 on Raspbian" ${RASPBIAN})
|
2014-05-30 15:22:11 +00:00
|
|
|
# :: Frontends
|
2012-12-16 11:17:13 +00:00
|
|
|
option(USING_QT_UI "Set to ON if you wish to use the Qt frontend wrapper" ${USING_QT_UI})
|
2016-10-09 20:10:51 +00:00
|
|
|
option(MOBILE_DEVICE "Set to ON when targeting a mobile device" ${MOBILE_DEVICE})
|
2012-11-18 16:00:27 +00:00
|
|
|
option(HEADLESS "Set to OFF to not generate the PPSSPPHeadless target" ${HEADLESS})
|
2014-01-11 11:18:57 +00:00
|
|
|
option(UNITTEST "Set to ON to generate the unittest target" ${UNITTEST})
|
2013-11-26 02:18:15 +00:00
|
|
|
option(SIMULATOR "Set to ON when targeting an x86 simulator of an ARM platform" ${SIMULATOR})
|
2014-05-30 15:22:11 +00:00
|
|
|
# :: Options
|
2013-10-20 06:41:34 +00:00
|
|
|
option(USE_FFMPEG "Build with FFMPEG support" ${USE_FFMPEG})
|
2015-06-01 13:29:54 +00:00
|
|
|
option(USE_SYSTEM_FFMPEG "Dynamically link against system FFMPEG" ${USE_SYSTEM_FFMPEG})
|
2012-11-18 16:00:27 +00:00
|
|
|
|
2013-11-29 13:24:12 +00:00
|
|
|
if(ANDROID)
|
2012-11-26 02:41:57 +00:00
|
|
|
set(CoreLibName ppsspp_jni)
|
|
|
|
set(CoreLinkType SHARED)
|
2016-10-09 20:10:51 +00:00
|
|
|
set(MOBILE_DEVICE ON)
|
|
|
|
set(USING_GLES2 ON)
|
2012-11-18 16:00:27 +00:00
|
|
|
else()
|
2012-11-26 02:41:57 +00:00
|
|
|
set(CoreLibName Core)
|
|
|
|
set(CoreLinkType STATIC)
|
2012-11-18 16:00:27 +00:00
|
|
|
endif()
|
|
|
|
|
2015-09-06 19:52:33 +00:00
|
|
|
include_directories(ext/native)
|
2014-11-20 08:53:07 +00:00
|
|
|
|
2016-10-11 01:27:38 +00:00
|
|
|
if(NOT OPENGL_LIBRARIES AND USING_GLES2)
|
2014-06-18 06:15:47 +00:00
|
|
|
set(OPENGL_LIBRARIES GLESv2)
|
|
|
|
endif()
|
|
|
|
|
2017-12-04 18:09:06 +00:00
|
|
|
if(USING_EGL)
|
|
|
|
set(OPENGL_LIBRARIES ${OPENGL_LIBRARIES} EGL)
|
|
|
|
endif()
|
|
|
|
|
2016-10-11 01:27:38 +00:00
|
|
|
if(NOT OPENGL_LIBRARIES)
|
2016-10-12 15:30:18 +00:00
|
|
|
find_package(OpenGL REQUIRED)
|
2012-11-18 16:00:27 +00:00
|
|
|
endif()
|
2016-10-11 01:27:38 +00:00
|
|
|
|
2016-10-29 17:56:30 +00:00
|
|
|
find_package(SDL2)
|
2012-11-18 16:00:27 +00:00
|
|
|
include(FindThreads)
|
2014-06-18 06:15:47 +00:00
|
|
|
|
2012-11-26 22:06:18 +00:00
|
|
|
if(APPLE)
|
|
|
|
find_library(COCOA_LIBRARY Cocoa)
|
|
|
|
endif()
|
2012-11-18 16:00:27 +00:00
|
|
|
|
|
|
|
include_directories("${CMAKE_SOURCE_DIR}")
|
|
|
|
|
2014-05-30 15:22:11 +00:00
|
|
|
if(USING_EGL)
|
|
|
|
add_definitions(-DUSING_EGL)
|
2013-01-12 15:15:46 +00:00
|
|
|
endif()
|
2014-05-30 15:22:11 +00:00
|
|
|
if(USING_FBDEV)
|
|
|
|
add_definitions(-DUSING_FBDEV)
|
2012-11-18 16:00:27 +00:00
|
|
|
endif()
|
2012-12-16 11:17:13 +00:00
|
|
|
if(USING_GLES2)
|
2012-11-26 02:41:57 +00:00
|
|
|
add_definitions(-DUSING_GLES2)
|
2012-11-18 16:00:27 +00:00
|
|
|
endif()
|
2014-02-08 18:29:22 +00:00
|
|
|
if(MOBILE_DEVICE)
|
|
|
|
add_definitions(-DMOBILE_DEVICE)
|
|
|
|
endif()
|
2012-11-18 16:00:27 +00:00
|
|
|
|
2014-06-11 13:28:51 +00:00
|
|
|
if (NOT CMAKE_BUILD_TYPE)
|
|
|
|
message(STATUS "No build type selected, default to Release")
|
|
|
|
set(CMAKE_BUILD_TYPE "Release")
|
|
|
|
endif()
|
|
|
|
|
2016-12-05 15:51:28 +00:00
|
|
|
message("CMAKE_SYSTEM_PROCESSOR: ${CMAKE_SYSTEM_PROCESSOR}")
|
|
|
|
|
|
|
|
# Let's not use elseif here so we can catch dupes.
|
2014-07-06 13:50:48 +00:00
|
|
|
if(ARMV7)
|
2016-12-05 15:51:28 +00:00
|
|
|
message("Generating for ARMv7, ${CMAKE_BUILD_TYPE}")
|
|
|
|
endif()
|
|
|
|
if(ARM)
|
|
|
|
message("Generating for ARM, ${CMAKE_BUILD_TYPE}")
|
|
|
|
endif()
|
|
|
|
if(MIPS AND X86)
|
|
|
|
message("Generating for MIPS in x86 mode, ${CMAKE_BUILD_TYPE}")
|
|
|
|
endif()
|
|
|
|
if(MIPS)
|
|
|
|
message("Generating for MIPS, ${CMAKE_BUILD_TYPE}")
|
|
|
|
endif()
|
|
|
|
if(X86)
|
|
|
|
message("Generating for x86, ${CMAKE_BUILD_TYPE}")
|
|
|
|
endif()
|
|
|
|
if(X86_64)
|
|
|
|
message("Generating for x86_64, ${CMAKE_BUILD_TYPE}")
|
|
|
|
endif()
|
|
|
|
if(ARM64)
|
2017-03-13 22:45:25 +00:00
|
|
|
message("Generating for ARMv8, ${CMAKE_BUILD_TYPE}")
|
2014-07-06 13:50:48 +00:00
|
|
|
endif()
|
2012-11-26 02:41:57 +00:00
|
|
|
if(NOT MSVC)
|
2017-03-16 09:16:29 +00:00
|
|
|
if (ANDROID)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")
|
|
|
|
endif()
|
|
|
|
if (CLANG)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-switch -Wno-uninitialized")
|
2017-03-13 22:45:25 +00:00
|
|
|
endif()
|
2017-03-15 14:56:06 +00:00
|
|
|
|
|
|
|
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g -D_DEBUG")
|
|
|
|
set(CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL} -Os -D_NDEBUG")
|
|
|
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -D_NDEBUG")
|
|
|
|
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -O2 -g -D_NDEBUG")
|
|
|
|
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -g -D_DEBUG")
|
|
|
|
set(CMAKE_C_FLAGS_MINSIZEREL "${CMAKE_C_FLAGS_MINSIZEREL} -Os -D_NDEBUG")
|
|
|
|
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O3 -D_NDEBUG")
|
|
|
|
set(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} -O2 -g -D_NDEBUG")
|
2016-12-05 15:51:28 +00:00
|
|
|
#TODO: Remove this and include the file properly everywhere it makes sense
|
|
|
|
# First step is too use the macros everywhere
|
|
|
|
# Second step is to remove the compatibility defines
|
|
|
|
# Third step is to include the file
|
|
|
|
# Fourth step is to remove that line!
|
|
|
|
add_compile_options(-include ${CMAKE_CURRENT_SOURCE_DIR}/ppsspp_config.h)
|
2016-10-12 15:32:52 +00:00
|
|
|
|
2012-11-26 03:25:14 +00:00
|
|
|
# Disable some warnings
|
|
|
|
add_definitions(-Wno-multichar)
|
2017-03-13 22:45:25 +00:00
|
|
|
add_definitions(-Wno-deprecated-register)
|
2016-12-05 15:51:28 +00:00
|
|
|
|
|
|
|
# Don't compile with strict aliasing, we're not 100% aliasing-safe
|
2012-11-26 02:41:57 +00:00
|
|
|
add_definitions(-fno-strict-aliasing)
|
2017-03-16 09:16:29 +00:00
|
|
|
if (${CMAKE_C_COMPILER_ID} STREQUAL "Intel")
|
2013-05-30 12:26:43 +00:00
|
|
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -parallel -fopenmp")
|
|
|
|
endif()
|
2012-11-26 02:41:57 +00:00
|
|
|
|
2017-03-16 09:16:29 +00:00
|
|
|
if(X86 OR X86_64)
|
2012-11-26 02:41:57 +00:00
|
|
|
# enable sse2 code generation
|
|
|
|
add_definitions(-msse2)
|
|
|
|
endif()
|
|
|
|
|
2013-02-24 12:17:52 +00:00
|
|
|
if(IOS)
|
2016-10-11 01:27:38 +00:00
|
|
|
elseif(APPLE AND NOT CMAKE_CROSSCOMPILING)
|
2017-03-13 22:45:25 +00:00
|
|
|
# We want C++11, so target 10.7+
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mmacosx-version-min=10.7")
|
2015-11-06 03:13:59 +00:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.7 -stdlib=libc++ -U__STRICT_ANSI__")
|
2013-03-02 19:19:40 +00:00
|
|
|
set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++")
|
2017-03-13 22:45:25 +00:00
|
|
|
elseif(NOT ANDROID)
|
2017-03-16 09:16:29 +00:00
|
|
|
# TODO: See if we can get rid of no-psabi
|
|
|
|
if (NOT ${CMAKE_C_COMPILER_ID} STREQUAL "Intel" AND NOT ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
|
2014-06-11 13:02:56 +00:00
|
|
|
add_definitions(-Wno-psabi)
|
|
|
|
endif()
|
2016-10-11 15:34:19 +00:00
|
|
|
add_definitions(-D_XOPEN_SOURCE=700)
|
2015-06-17 07:32:13 +00:00
|
|
|
add_definitions(-D_XOPEN_SOURCE_EXTENDED -D__BSD_VISIBLE=1)
|
2014-06-11 13:02:56 +00:00
|
|
|
add_definitions(-D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64)
|
2017-03-13 22:45:25 +00:00
|
|
|
elseif(ANDROID)
|
|
|
|
add_definitions(-fsigned-char)
|
2012-11-26 02:41:57 +00:00
|
|
|
endif()
|
|
|
|
else()
|
|
|
|
# Disable warnings about MS-specific _s variants of libc functions
|
|
|
|
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
2016-12-05 15:51:28 +00:00
|
|
|
add_definitions(-D_UNICODE -DUNICODE)
|
|
|
|
add_definitions(-DUSING_WIN_UI)
|
|
|
|
add_definitions(-MP)
|
2014-06-11 13:02:56 +00:00
|
|
|
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG")
|
|
|
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -D_NDEBUG")
|
2012-11-18 16:00:27 +00:00
|
|
|
endif()
|
|
|
|
|
2017-03-13 22:45:25 +00:00
|
|
|
if(NOT ANDROID)
|
2012-11-18 16:00:27 +00:00
|
|
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
|
|
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
|
2017-03-13 22:45:25 +00:00
|
|
|
endif()
|
2012-11-18 16:00:27 +00:00
|
|
|
|
|
|
|
# This sets up the MSVC project dirs according to the physical project dirs
|
|
|
|
macro(setup_target_project TargetName ProjectDir)
|
2012-11-26 02:41:57 +00:00
|
|
|
get_property(TargetSources TARGET "${TargetName}" PROPERTY SOURCES)
|
|
|
|
foreach(Source ${TargetSources})
|
|
|
|
# Figure out the file's path relative to the ProjectDir
|
|
|
|
# NOTE: &#$@ double-quoted regexps
|
|
|
|
string(REGEX REPLACE "${ProjectDir}" "" RelativePath "${Source}")
|
|
|
|
string(REGEX REPLACE "[\\\\/][^\\\\/]*$" "" RelativePath "${RelativePath}")
|
|
|
|
string(REGEX REPLACE "^[\\\\/]" "" RelativePath "${RelativePath}")
|
|
|
|
string(REGEX REPLACE "/" "\\\\\\\\" RelativePath "${RelativePath}")
|
|
|
|
# put the source file in a source_group equivalent to the relative path
|
|
|
|
source_group("${RelativePath}" FILES ${Source})
|
|
|
|
endforeach()
|
2012-11-18 16:00:27 +00:00
|
|
|
endmacro()
|
|
|
|
|
|
|
|
# Commented-out files are files that don't compile
|
|
|
|
# and were disabled in the original MSVC project anyway
|
|
|
|
|
2016-10-11 01:26:33 +00:00
|
|
|
set(CommonX86
|
|
|
|
Common/ABI.cpp
|
|
|
|
Common/ABI.h
|
|
|
|
Common/CPUDetect.cpp
|
|
|
|
Common/CPUDetect.h
|
|
|
|
Common/Thunk.cpp
|
|
|
|
Common/Thunk.h
|
|
|
|
Common/x64Analyzer.cpp
|
|
|
|
Common/x64Analyzer.h
|
|
|
|
Common/x64Emitter.cpp
|
|
|
|
Common/x64Emitter.h)
|
|
|
|
source_group(x86 FILES ${CommonX86})
|
|
|
|
|
|
|
|
set(CommonARM
|
|
|
|
Common/ArmCPUDetect.cpp
|
|
|
|
Common/ArmEmitter.h
|
|
|
|
Common/ArmEmitter.cpp
|
|
|
|
Common/ColorConvNEON.cpp)
|
|
|
|
source_group(ARM FILES ${CommonARM})
|
|
|
|
|
|
|
|
set(CommonARM64
|
|
|
|
Common/Arm64Emitter.h
|
|
|
|
Common/Arm64Emitter.cpp
|
|
|
|
Common/ArmEmitter.h
|
|
|
|
Common/ArmEmitter.cpp
|
|
|
|
Core/Util/DisArm64.cpp)
|
|
|
|
source_group(ARM64 FILES ${CommonARM64})
|
|
|
|
|
|
|
|
set(CommonMIPS
|
|
|
|
Common/MipsCPUDetect.cpp
|
|
|
|
Common/MipsEmitter.cpp
|
|
|
|
Common/MipsEmitter.h)
|
|
|
|
source_group(MIPS FILES ${CommonMIPS})
|
|
|
|
|
|
|
|
if(NOT (X86 OR ARM OR MIPS))
|
|
|
|
set(CommonFake
|
2014-11-13 13:23:53 +00:00
|
|
|
Common/FakeCPUDetect.cpp
|
|
|
|
Common/FakeEmitter.h)
|
2017-03-13 22:45:25 +00:00
|
|
|
source_group(Fake FILES ${CommonFake})
|
2012-11-18 16:00:27 +00:00
|
|
|
endif()
|
2015-04-04 07:39:29 +00:00
|
|
|
|
2016-10-11 01:26:33 +00:00
|
|
|
set(CommonWindows
|
|
|
|
Common/stdafx.cpp
|
|
|
|
Common/stdafx.h)
|
|
|
|
source_group(Windows FILES ${CommonWindows})
|
2012-11-18 16:00:27 +00:00
|
|
|
|
2016-12-05 20:41:14 +00:00
|
|
|
if(VULKAN)
|
|
|
|
set(CommonVulkan ${CommonExtra}
|
|
|
|
Common/Vulkan/SPIRVDisasm.cpp
|
|
|
|
Common/Vulkan/SPIRVDisasm.h
|
|
|
|
Common/Vulkan/VulkanContext.cpp
|
|
|
|
Common/Vulkan/VulkanContext.h
|
2017-12-13 18:29:42 +00:00
|
|
|
Common/Vulkan/VulkanDebug.cpp
|
|
|
|
Common/Vulkan/VulkanDebug.h
|
2016-12-05 20:41:14 +00:00
|
|
|
Common/Vulkan/VulkanImage.cpp
|
|
|
|
Common/Vulkan/VulkanImage.h
|
|
|
|
Common/Vulkan/VulkanLoader.cpp
|
|
|
|
Common/Vulkan/VulkanLoader.h
|
|
|
|
Common/Vulkan/VulkanMemory.cpp
|
|
|
|
Common/Vulkan/VulkanMemory.h)
|
|
|
|
else()
|
|
|
|
set(CommonVulkan)
|
|
|
|
endif()
|
2016-12-05 15:51:28 +00:00
|
|
|
|
2012-11-18 16:00:27 +00:00
|
|
|
add_library(Common STATIC
|
2016-10-11 01:26:33 +00:00
|
|
|
${CommonX86}
|
|
|
|
${CommonARM}
|
|
|
|
${CommonARM64}
|
|
|
|
${CommonMIPS}
|
|
|
|
${CommonFake}
|
|
|
|
${CommonWindows}
|
2016-12-05 15:51:28 +00:00
|
|
|
${CommonVulkan}
|
2015-04-08 18:23:27 +00:00
|
|
|
Common/ColorConv.cpp
|
|
|
|
Common/ColorConv.h
|
2013-10-07 04:26:08 +00:00
|
|
|
Common/ChunkFile.cpp
|
|
|
|
Common/ChunkFile.h
|
2012-11-26 02:41:57 +00:00
|
|
|
Common/ConsoleListener.cpp
|
|
|
|
Common/ConsoleListener.h
|
|
|
|
Common/Crypto/md5.cpp
|
|
|
|
Common/Crypto/md5.h
|
|
|
|
Common/Crypto/sha1.cpp
|
|
|
|
Common/Crypto/sha1.h
|
2014-12-07 18:25:45 +00:00
|
|
|
Common/Crypto/sha256.cpp
|
|
|
|
Common/Crypto/sha256.h
|
2012-11-26 02:41:57 +00:00
|
|
|
Common/FileUtil.cpp
|
|
|
|
Common/FileUtil.h
|
2013-04-20 04:52:54 +00:00
|
|
|
Common/KeyMap.cpp
|
|
|
|
Common/KeyMap.h
|
2012-11-26 02:41:57 +00:00
|
|
|
Common/LogManager.cpp
|
2017-08-20 09:44:34 +00:00
|
|
|
Common/Hashmaps.h
|
2012-11-26 02:41:57 +00:00
|
|
|
Common/LogManager.h
|
2017-01-25 14:43:24 +00:00
|
|
|
Common/MemArenaAndroid.cpp
|
2017-01-25 18:29:43 +00:00
|
|
|
Common/MemArenaDarwin.cpp
|
2017-01-25 14:43:24 +00:00
|
|
|
Common/MemArenaPosix.cpp
|
|
|
|
Common/MemArenaWin32.cpp
|
2012-11-26 02:41:57 +00:00
|
|
|
Common/MemArena.h
|
|
|
|
Common/MemoryUtil.cpp
|
|
|
|
Common/MemoryUtil.h
|
|
|
|
Common/Misc.cpp
|
|
|
|
Common/MsgHandler.cpp
|
|
|
|
Common/MsgHandler.h
|
2017-02-14 09:33:42 +00:00
|
|
|
Common/OSVersion.cpp
|
|
|
|
Common/OSVersion.h
|
2013-05-03 06:22:15 +00:00
|
|
|
Common/StringUtils.cpp
|
|
|
|
Common/StringUtils.h
|
2013-05-03 06:31:53 +00:00
|
|
|
Common/ThreadPools.cpp
|
|
|
|
Common/ThreadPools.h
|
2015-07-24 17:52:42 +00:00
|
|
|
Common/ThreadSafeList.h
|
2012-11-26 02:41:57 +00:00
|
|
|
Common/Timer.cpp
|
2013-09-27 14:47:21 +00:00
|
|
|
Common/Timer.h)
|
2017-03-13 22:45:25 +00:00
|
|
|
|
|
|
|
add_subdirectory(ext)
|
|
|
|
|
2012-11-18 16:00:27 +00:00
|
|
|
include_directories(Common)
|
|
|
|
setup_target_project(Common Common)
|
|
|
|
|
2017-03-19 17:38:04 +00:00
|
|
|
target_link_libraries(Common Ext::Snappy)
|
2016-12-18 18:01:05 +00:00
|
|
|
|
2012-11-18 16:00:27 +00:00
|
|
|
if(WIN32)
|
2016-12-05 15:51:28 +00:00
|
|
|
include_directories(dx9sdk/Include)
|
|
|
|
target_link_libraries(Common winmm d3d9 dxguid dsound)
|
2012-11-18 16:00:27 +00:00
|
|
|
endif()
|
2016-12-05 15:51:28 +00:00
|
|
|
|
2016-10-29 17:56:30 +00:00
|
|
|
if(TARGET SDL2::SDL2)
|
|
|
|
target_link_libraries(Common SDL2::SDL2)
|
|
|
|
endif()
|
2012-11-18 16:00:27 +00:00
|
|
|
|
2016-12-18 18:01:05 +00:00
|
|
|
if(USING_GLES2)
|
2015-09-16 01:46:51 +00:00
|
|
|
find_package(X11)
|
|
|
|
endif()
|
2013-12-05 15:24:40 +00:00
|
|
|
|
2013-11-26 17:18:30 +00:00
|
|
|
add_library(vjson STATIC
|
2015-09-06 19:52:33 +00:00
|
|
|
ext/native/ext/vjson/json.cpp
|
|
|
|
ext/native/ext/vjson/json.h
|
|
|
|
ext/native/ext/vjson/block_allocator.cpp
|
|
|
|
ext/native/ext/vjson/block_allocator.h
|
2013-11-26 17:18:30 +00:00
|
|
|
)
|
|
|
|
|
2013-03-29 23:10:18 +00:00
|
|
|
add_library(rg_etc1 STATIC
|
2015-09-06 19:52:33 +00:00
|
|
|
ext/native/ext/rg_etc1/rg_etc1.cpp
|
|
|
|
ext/native/ext/rg_etc1/rg_etc1.h)
|
|
|
|
include_directories(ext/native/ext/rg_etc1)
|
2012-11-18 16:00:27 +00:00
|
|
|
|
2015-06-01 13:29:54 +00:00
|
|
|
if(USE_FFMPEG)
|
2016-12-05 09:37:51 +00:00
|
|
|
if(NOT FFMPEG_DIR)
|
|
|
|
if(NOT USE_SYSTEM_FFMPEG)
|
|
|
|
if(ANDROID)
|
|
|
|
if(ARMV7)
|
|
|
|
set(PLATFORM_ARCH "android/armv7")
|
2017-03-13 22:45:25 +00:00
|
|
|
elseif(ARM64)
|
|
|
|
set(PLATFORM_ARCH "android/arm64")
|
|
|
|
elseif(X86_64)
|
|
|
|
set(PLATFORM_ARCH "android/x86_64")
|
2016-12-05 09:37:51 +00:00
|
|
|
elseif(X86)
|
|
|
|
set(PLATFORM_ARCH "android/x86")
|
|
|
|
endif()
|
|
|
|
elseif(IOS)
|
|
|
|
set(PLATFORM_ARCH "ios/universal")
|
|
|
|
elseif(MACOSX)
|
|
|
|
set(PLATFORM_ARCH "macosx/x86_64")
|
|
|
|
elseif(LINUX)
|
|
|
|
if(ARMV7)
|
|
|
|
set(PLATFORM_ARCH "linux/armv7")
|
2017-02-03 18:16:20 +00:00
|
|
|
elseif(ARM64)
|
2017-02-03 16:43:01 +00:00
|
|
|
set(PLATFORM_ARCH "linux/aarch64")
|
2016-12-05 09:37:51 +00:00
|
|
|
elseif(ARM)
|
|
|
|
set(PLATFORM_ARCH "linux/arm")
|
|
|
|
elseif(MIPS)
|
|
|
|
set(PLATFORM_ARCH "linux/mips32")
|
|
|
|
elseif(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
|
|
|
set(PLATFORM_ARCH "linux/x86_64")
|
2017-03-13 22:45:25 +00:00
|
|
|
elseif(X86)
|
2016-12-05 09:37:51 +00:00
|
|
|
set(PLATFORM_ARCH "linux/x86")
|
|
|
|
endif()
|
|
|
|
elseif(WIN32)
|
|
|
|
if(X86_64)
|
|
|
|
set(PLATFORM_ARCH "Windows/x86_64")
|
|
|
|
elseif(X86)
|
|
|
|
set(PLATFORM_ARCH "Windows/x86")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
if(PLATFORM_ARCH)
|
|
|
|
set(FFMPEG_DIR "ffmpeg/${PLATFORM_ARCH}")
|
|
|
|
else()
|
|
|
|
message("Couldn't find an internal FFmpeg build, using system FFmpeg instead")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
endif()
|
2013-12-06 11:08:19 +00:00
|
|
|
|
2016-12-05 09:37:51 +00:00
|
|
|
find_package(FFmpeg REQUIRED avcodec avformat avutil swresample swscale)
|
2013-12-06 11:08:19 +00:00
|
|
|
endif(USE_FFMPEG)
|
|
|
|
|
|
|
|
find_package(ZLIB)
|
2017-03-13 22:45:25 +00:00
|
|
|
if(ZLIB_FOUND AND NOT ANDROID)
|
2013-12-06 11:08:19 +00:00
|
|
|
include_directories(${ZLIB_INCLUDE_DIR})
|
2015-09-16 03:59:31 +00:00
|
|
|
add_definitions(-DSHARED_ZLIB)
|
2013-12-06 11:08:19 +00:00
|
|
|
else()
|
|
|
|
add_library(zlib STATIC
|
|
|
|
ext/zlib/adler32.c
|
|
|
|
ext/zlib/compress.c
|
|
|
|
ext/zlib/crc32.c
|
|
|
|
ext/zlib/crc32.h
|
|
|
|
ext/zlib/deflate.c
|
|
|
|
ext/zlib/deflate.h
|
|
|
|
ext/zlib/gzclose.c
|
|
|
|
ext/zlib/gzguts.h
|
|
|
|
ext/zlib/gzlib.c
|
|
|
|
ext/zlib/gzread.c
|
|
|
|
ext/zlib/gzwrite.c
|
|
|
|
ext/zlib/infback.c
|
|
|
|
ext/zlib/inffast.c
|
|
|
|
ext/zlib/inffast.h
|
|
|
|
ext/zlib/inffixed.h
|
|
|
|
ext/zlib/inflate.c
|
|
|
|
ext/zlib/inflate.h
|
|
|
|
ext/zlib/inftrees.c
|
|
|
|
ext/zlib/inftrees.h
|
|
|
|
ext/zlib/make_vms.com
|
|
|
|
ext/zlib/trees.c
|
|
|
|
ext/zlib/trees.h
|
|
|
|
ext/zlib/uncompr.c
|
|
|
|
ext/zlib/zconf.h
|
|
|
|
ext/zlib/zlib.h
|
|
|
|
ext/zlib/zutil.c
|
|
|
|
ext/zlib/zutil.h
|
|
|
|
)
|
|
|
|
include_directories(ext/zlib)
|
|
|
|
set(ZLIB_LIBRARY zlib)
|
|
|
|
endif()
|
|
|
|
|
2013-12-14 23:46:11 +00:00
|
|
|
add_library(cityhash STATIC
|
2015-09-06 19:52:33 +00:00
|
|
|
ext/native/ext/cityhash/city.cpp
|
|
|
|
ext/native/ext/cityhash/city.h
|
|
|
|
ext/native/ext/cityhash/citycrc.h
|
2013-12-14 23:46:11 +00:00
|
|
|
)
|
|
|
|
include_directories(ext/cityhash)
|
2013-12-06 11:08:19 +00:00
|
|
|
|
2014-06-11 13:02:56 +00:00
|
|
|
if (NOT MSVC)
|
|
|
|
# These can be fast even for debug.
|
2014-10-11 15:42:01 +00:00
|
|
|
set_target_properties(udis86 PROPERTIES COMPILE_FLAGS "-O3")
|
2014-06-11 13:02:56 +00:00
|
|
|
set_target_properties(cityhash PROPERTIES COMPILE_FLAGS "-O3")
|
|
|
|
if(NOT ZLIB_FOUND)
|
|
|
|
set_target_properties(zlib PROPERTIES COMPILE_FLAGS "-O3")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
2015-09-16 01:46:51 +00:00
|
|
|
find_package(LibZip)
|
2015-09-16 03:59:31 +00:00
|
|
|
if(LIBZIP_FOUND)
|
|
|
|
add_definitions(-DSHARED_LIBZIP)
|
|
|
|
else()
|
2015-09-16 01:46:51 +00:00
|
|
|
add_library(libzip STATIC
|
|
|
|
ext/native/ext/libzip/zip.h
|
|
|
|
ext/native/ext/libzip/mkstemp.c
|
|
|
|
ext/native/ext/libzip/zip_add.c
|
|
|
|
ext/native/ext/libzip/zip_add_dir.c
|
|
|
|
ext/native/ext/libzip/zip_close.c
|
|
|
|
ext/native/ext/libzip/zip_delete.c
|
|
|
|
ext/native/ext/libzip/zip_dirent.c
|
|
|
|
ext/native/ext/libzip/zip_entry_free.c
|
|
|
|
ext/native/ext/libzip/zip_entry_new.c
|
|
|
|
ext/native/ext/libzip/zip_err_str.c
|
|
|
|
ext/native/ext/libzip/zip_error.c
|
|
|
|
ext/native/ext/libzip/zip_error_clear.c
|
|
|
|
ext/native/ext/libzip/zip_error_get.c
|
|
|
|
ext/native/ext/libzip/zip_error_get_sys_type.c
|
|
|
|
ext/native/ext/libzip/zip_error_strerror.c
|
|
|
|
ext/native/ext/libzip/zip_error_to_str.c
|
|
|
|
ext/native/ext/libzip/zip_fclose.c
|
|
|
|
ext/native/ext/libzip/zip_file_error_clear.c
|
|
|
|
ext/native/ext/libzip/zip_file_error_get.c
|
|
|
|
ext/native/ext/libzip/zip_file_get_offset.c
|
|
|
|
ext/native/ext/libzip/zip_file_strerror.c
|
|
|
|
ext/native/ext/libzip/zip_filerange_crc.c
|
|
|
|
ext/native/ext/libzip/zip_fopen.c
|
|
|
|
ext/native/ext/libzip/zip_fopen_index.c
|
|
|
|
ext/native/ext/libzip/zip_fread.c
|
|
|
|
ext/native/ext/libzip/zip_free.c
|
|
|
|
ext/native/ext/libzip/zip_get_archive_comment.c
|
|
|
|
ext/native/ext/libzip/zip_get_archive_flag.c
|
|
|
|
ext/native/ext/libzip/zip_get_file_comment.c
|
|
|
|
ext/native/ext/libzip/zip_get_name.c
|
|
|
|
ext/native/ext/libzip/zip_get_num_files.c
|
|
|
|
ext/native/ext/libzip/zip_memdup.c
|
|
|
|
ext/native/ext/libzip/zip_name_locate.c
|
|
|
|
ext/native/ext/libzip/zip_new.c
|
|
|
|
ext/native/ext/libzip/zip_open.c
|
|
|
|
ext/native/ext/libzip/zip_rename.c
|
|
|
|
ext/native/ext/libzip/zip_replace.c
|
|
|
|
ext/native/ext/libzip/zip_set_archive_comment.c
|
|
|
|
ext/native/ext/libzip/zip_set_archive_flag.c
|
|
|
|
ext/native/ext/libzip/zip_set_file_comment.c
|
|
|
|
ext/native/ext/libzip/zip_set_name.c
|
|
|
|
ext/native/ext/libzip/zip_source_buffer.c
|
|
|
|
ext/native/ext/libzip/zip_source_file.c
|
|
|
|
ext/native/ext/libzip/zip_source_filep.c
|
|
|
|
ext/native/ext/libzip/zip_source_free.c
|
|
|
|
ext/native/ext/libzip/zip_source_function.c
|
|
|
|
ext/native/ext/libzip/zip_source_zip.c
|
|
|
|
ext/native/ext/libzip/zip_stat.c
|
|
|
|
ext/native/ext/libzip/zip_stat_index.c
|
|
|
|
ext/native/ext/libzip/zip_stat_init.c
|
|
|
|
ext/native/ext/libzip/zip_strerror.c
|
|
|
|
ext/native/ext/libzip/zip_unchange.c
|
|
|
|
ext/native/ext/libzip/zip_unchange_all.c
|
|
|
|
ext/native/ext/libzip/zip_unchange_archive.c
|
|
|
|
ext/native/ext/libzip/zip_unchange_data.c)
|
|
|
|
target_link_libraries(libzip)
|
|
|
|
include_directories(ext/native/ext/libzip)
|
|
|
|
set(LIBZIP_LIBRARY libzip)
|
|
|
|
endif()
|
2012-11-18 16:00:27 +00:00
|
|
|
|
2014-05-31 21:55:45 +00:00
|
|
|
# FindPNG does a few things we don't want. So do it ourselves. Fixed to libpng17
|
|
|
|
find_path(PNG_PNG_INCLUDE_DIR NAMES "libpng17/png.h")
|
|
|
|
find_library(PNG_LIBRARY NAMES png17 libpng17)
|
2013-12-09 16:14:43 +00:00
|
|
|
find_package(PackageHandleStandardArgs)
|
|
|
|
find_package_handle_standard_args(PNG REQUIRED_VARS PNG_LIBRARY PNG_PNG_INCLUDE_DIR)
|
|
|
|
if (PNG_FOUND)
|
|
|
|
include_directories(${PNG_PNG_INCLUDE_DIR})
|
2013-12-07 15:42:17 +00:00
|
|
|
else()
|
2014-05-30 18:36:13 +00:00
|
|
|
if(ARM)
|
2016-10-11 01:27:54 +00:00
|
|
|
set(PNG_ARM_INCLUDES
|
|
|
|
ext/native/ext/libpng17/arm/arm_init.c
|
|
|
|
ext/native/ext/libpng17/arm/filter_neon.S
|
|
|
|
ext/native/ext/libpng17/arm/filter_neon_intrinsics.c
|
|
|
|
)
|
2014-05-30 18:36:13 +00:00
|
|
|
endif()
|
|
|
|
add_library(png17 STATIC
|
2015-09-06 19:52:33 +00:00
|
|
|
ext/native/ext/libpng17/pngconf.h
|
|
|
|
ext/native/ext/libpng17/pngdebug.h
|
|
|
|
ext/native/ext/libpng17/png.c
|
|
|
|
ext/native/ext/libpng17/png.h
|
|
|
|
ext/native/ext/libpng17/pngerror.c
|
|
|
|
ext/native/ext/libpng17/pngget.c
|
|
|
|
ext/native/ext/libpng17/pnginfo.h
|
|
|
|
ext/native/ext/libpng17/pnglibconf.h
|
|
|
|
ext/native/ext/libpng17/pngmem.c
|
|
|
|
ext/native/ext/libpng17/pngpread.c
|
|
|
|
ext/native/ext/libpng17/pngpriv.h
|
|
|
|
ext/native/ext/libpng17/pngread.c
|
|
|
|
ext/native/ext/libpng17/pngrio.c
|
|
|
|
ext/native/ext/libpng17/pngrtran.c
|
|
|
|
ext/native/ext/libpng17/pngrutil.c
|
|
|
|
ext/native/ext/libpng17/pngset.c
|
|
|
|
ext/native/ext/libpng17/pngstruct.h
|
|
|
|
ext/native/ext/libpng17/pngtrans.c
|
|
|
|
ext/native/ext/libpng17/pngwio.c
|
|
|
|
ext/native/ext/libpng17/pngwrite.c
|
|
|
|
ext/native/ext/libpng17/pngwtran.c
|
|
|
|
ext/native/ext/libpng17/pngwutil.c
|
2014-05-30 18:36:13 +00:00
|
|
|
${PNG_ARM_INCLUDES} )
|
|
|
|
set(PNG_LIBRARY png17)
|
2015-09-06 19:52:33 +00:00
|
|
|
include_directories(ext/native/ext)
|
2013-12-07 15:42:17 +00:00
|
|
|
endif()
|
2015-02-02 08:17:03 +00:00
|
|
|
|
2012-11-18 16:00:27 +00:00
|
|
|
set(nativeExtra)
|
2012-12-02 04:48:00 +00:00
|
|
|
set(nativeExtraLibs)
|
2014-03-22 14:18:01 +00:00
|
|
|
|
2012-11-18 16:00:27 +00:00
|
|
|
if(ANDROID)
|
2016-12-05 15:51:28 +00:00
|
|
|
set(nativeExtra ${nativeExtra}
|
|
|
|
Common/GL/GLInterface/EGLAndroid.cpp
|
|
|
|
Common/GL/GLInterface/EGLAndroid.h
|
|
|
|
Common/GL/GLInterface/EGL.cpp
|
|
|
|
Common/GL/GLInterface/EGL.h
|
|
|
|
Common/GL/GLInterface/GLInterface.cpp
|
|
|
|
Common/GL/GLInterfaceBase.h)
|
|
|
|
|
2012-11-26 02:41:57 +00:00
|
|
|
set(nativeExtra ${nativeExtra}
|
2015-09-06 19:52:33 +00:00
|
|
|
ext/native/base/NativeApp.h
|
2016-01-21 21:37:13 +00:00
|
|
|
android/jni/app-android.cpp
|
|
|
|
android/jni/native_audio.cpp
|
2016-12-05 15:51:28 +00:00
|
|
|
android/jni/native_audio.h
|
2016-01-21 21:37:13 +00:00
|
|
|
android/jni/native-audio-so.cpp
|
|
|
|
android/jni/native-audio-so.h)
|
2012-12-02 04:48:00 +00:00
|
|
|
# No target
|
2013-02-17 14:04:44 +00:00
|
|
|
elseif(IOS)
|
|
|
|
set(nativeExtra ${nativeExtra}
|
2013-08-19 03:17:33 +00:00
|
|
|
ios/main.mm
|
2015-05-27 06:35:09 +00:00
|
|
|
ios/AppDelegate.mm
|
2013-02-17 14:04:44 +00:00
|
|
|
ios/AppDelegate.h
|
|
|
|
ios/ViewController.mm
|
2013-03-16 14:50:55 +00:00
|
|
|
ios/ViewController.h
|
2013-06-25 21:38:30 +00:00
|
|
|
ios/iOSCoreAudio.cpp
|
|
|
|
ios/iOSCoreAudio.h
|
2017-09-04 07:46:05 +00:00
|
|
|
ios/PPSSPPUIApplication.h
|
|
|
|
ios/PPSSPPUIApplication.mm
|
|
|
|
ios/SmartKeyboardMap.cpp
|
|
|
|
ios/SmartKeyboardMap.hpp
|
2013-05-31 01:58:41 +00:00
|
|
|
ios/iCade/iCadeReaderView.h
|
|
|
|
ios/iCade/iCadeReaderView.m
|
|
|
|
ios/iCade/iCadeState.h)
|
2016-10-11 01:27:38 +00:00
|
|
|
set(nativeExtraLibs ${nativeExtraLibs} "-framework Foundation -framework AudioToolbox -framework CoreGraphics -framework QuartzCore -framework UIKit -framework GLKit -framework OpenAL")
|
2014-05-30 15:22:11 +00:00
|
|
|
if(EXISTS "${CMAKE_IOS_SDK_ROOT}/System/Library/Frameworks/GameController.framework")
|
|
|
|
set(nativeExtraLibs ${nativeExtraLibs} "-weak_framework GameController")
|
|
|
|
endif()
|
2017-11-18 16:16:44 +00:00
|
|
|
|
2015-10-08 05:27:15 +00:00
|
|
|
if(NOT ICONV_LIBRARY)
|
|
|
|
set(nativeExtraLibs ${nativeExtraLibs} iconv)
|
|
|
|
endif()
|
2014-05-30 15:22:11 +00:00
|
|
|
|
2015-05-27 06:35:09 +00:00
|
|
|
set_source_files_properties(ios/AppDelegate.mm PROPERTIES COMPILE_FLAGS -fobjc-arc)
|
2014-05-30 15:22:11 +00:00
|
|
|
set_source_files_properties(ios/ViewController.mm PROPERTIES COMPILE_FLAGS -fobjc-arc)
|
2014-05-17 05:53:40 +00:00
|
|
|
|
2013-02-24 03:23:04 +00:00
|
|
|
set(TargetBin PPSSPP)
|
2012-12-16 11:17:13 +00:00
|
|
|
elseif(USING_QT_UI)
|
2016-10-12 18:58:50 +00:00
|
|
|
set(CMAKE_AUTOMOC ON)
|
2016-12-09 04:27:32 +00:00
|
|
|
find_package(Qt5 COMPONENTS OpenGL Gui Core)
|
|
|
|
if(NOT SDL2_FOUND)
|
|
|
|
find_package(Qt5 COMPONENTS Multimedia)
|
|
|
|
endif(NOT SDL2_FOUND)
|
2016-10-12 18:58:50 +00:00
|
|
|
set(Qt_UI
|
|
|
|
Qt/Debugger/debugger_disasm.ui
|
|
|
|
Qt/Debugger/debugger_displaylist.ui
|
|
|
|
Qt/Debugger/debugger_memory.ui
|
|
|
|
Qt/Debugger/debugger_memorytex.ui
|
|
|
|
Qt/Debugger/debugger_vfpu.ui
|
|
|
|
)
|
|
|
|
qt5_wrap_ui(QT_UI_GEN ${Qt_UI})
|
|
|
|
list(APPEND NativeAppSource
|
|
|
|
${QT_UI_GEN}
|
|
|
|
ext/native/base/QtMain.cpp
|
|
|
|
ext/native/base/QtMain.h
|
|
|
|
Qt/mainwindow.cpp
|
|
|
|
Qt/mainwindow.h
|
|
|
|
Qt/Debugger/ctrldisasmview.cpp
|
|
|
|
Qt/Debugger/ctrldisasmview.h
|
|
|
|
Qt/Debugger/ctrlmemview.cpp
|
|
|
|
Qt/Debugger/ctrlmemview.h
|
|
|
|
Qt/Debugger/ctrlregisterlist.cpp
|
|
|
|
Qt/Debugger/ctrlregisterlist.h
|
|
|
|
Qt/Debugger/ctrlvfpuview.cpp
|
|
|
|
Qt/Debugger/ctrlvfpuview.h
|
|
|
|
Qt/Debugger/debugger_disasm.cpp
|
|
|
|
Qt/Debugger/debugger_disasm.h
|
|
|
|
Qt/Debugger/debugger_displaylist.cpp
|
|
|
|
Qt/Debugger/debugger_displaylist.h
|
|
|
|
Qt/Debugger/debugger_memory.cpp
|
|
|
|
Qt/Debugger/debugger_memory.h
|
|
|
|
Qt/Debugger/debugger_memorytex.cpp
|
|
|
|
Qt/Debugger/debugger_memorytex.h
|
|
|
|
Qt/Debugger/debugger_vfpu.cpp
|
|
|
|
Qt/Debugger/debugger_vfpu.h
|
|
|
|
)
|
|
|
|
add_definitions(-DUSING_QT_UI)
|
|
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR} Qt Qt/Debugger)
|
2016-12-09 04:27:32 +00:00
|
|
|
set(nativeExtraLibs ${nativeExtraLibs} Qt5::OpenGL Qt5::Gui Qt5::Core)
|
2012-12-16 11:17:13 +00:00
|
|
|
set(TargetBin PPSSPPQt)
|
2017-02-01 06:14:04 +00:00
|
|
|
|
|
|
|
# Enable SDL if found
|
|
|
|
if (SDL2_FOUND)
|
|
|
|
add_definitions(-DSDL)
|
|
|
|
set(nativeExtra ${nativeExtra}
|
|
|
|
SDL/SDLJoystick.h
|
|
|
|
SDL/SDLJoystick.cpp)
|
|
|
|
set(nativeExtraLibs ${nativeExtraLibs} SDL2::SDL2)
|
2016-12-09 04:27:32 +00:00
|
|
|
else(SDL2_FOUND)
|
|
|
|
set(nativeExtraLibs ${nativeExtraLibs} Qt5::Multimedia)
|
2017-02-01 06:14:04 +00:00
|
|
|
endif()
|
|
|
|
|
2016-10-29 17:56:30 +00:00
|
|
|
elseif(TARGET SDL2::SDL2)
|
2013-06-15 12:50:47 +00:00
|
|
|
set(TargetBin PPSSPPSDL)
|
2012-12-16 11:17:13 +00:00
|
|
|
# Require SDL
|
2014-12-18 22:59:22 +00:00
|
|
|
add_definitions(-DSDL)
|
2015-02-02 08:17:03 +00:00
|
|
|
set(nativeExtra ${nativeExtra}
|
2013-11-05 12:49:23 +00:00
|
|
|
SDL/SDLJoystick.h
|
|
|
|
SDL/SDLJoystick.cpp
|
2015-09-06 19:52:33 +00:00
|
|
|
ext/native/base/PCMain.cpp)
|
2016-10-29 17:56:30 +00:00
|
|
|
set(nativeExtraLibs ${nativeExtraLibs} SDL2::SDL2)
|
2012-12-02 04:48:00 +00:00
|
|
|
if(APPLE)
|
|
|
|
set(nativeExtra ${nativeExtra} SDL/SDLMain.h SDL/SDLMain.mm)
|
|
|
|
set(nativeExtraLibs ${nativeExtraLibs} ${COCOA_LIBRARY})
|
2014-05-30 15:22:11 +00:00
|
|
|
elseif(USING_EGL)
|
2017-10-16 18:07:12 +00:00
|
|
|
if(NOT EGL_LIBRARIES)
|
|
|
|
set(EGL_LIBRARIES EGL)
|
|
|
|
endif()
|
|
|
|
set(nativeExtraLibs ${nativeExtraLibs} pthread ${EGL_LIBRARIES})
|
2012-12-02 04:48:00 +00:00
|
|
|
endif()
|
2013-02-17 14:04:44 +00:00
|
|
|
set(TargetBin PPSSPPSDL)
|
2016-12-05 15:51:28 +00:00
|
|
|
elseif(WIN32)
|
|
|
|
# Don't care about SDL.
|
|
|
|
set(TargetBin PPSSPPWindows)
|
|
|
|
if(X86_64)
|
|
|
|
link_directories(dx9sdk/Lib/x64)
|
|
|
|
else()
|
|
|
|
link_directories(dx9sdk/Lib/x86)
|
|
|
|
endif()
|
2012-12-02 04:48:00 +00:00
|
|
|
else()
|
2014-09-01 09:37:44 +00:00
|
|
|
message(FATAL_ERROR "Could not find SDL2. Failing.")
|
2012-11-18 16:00:27 +00:00
|
|
|
endif()
|
|
|
|
|
2016-10-12 18:58:50 +00:00
|
|
|
list(APPEND NativeAppSource
|
2014-08-23 12:24:24 +00:00
|
|
|
android/jni/TestRunner.cpp
|
2014-06-27 16:49:50 +00:00
|
|
|
UI/NativeApp.cpp
|
|
|
|
UI/BackgroundAudio.cpp
|
|
|
|
UI/DevScreens.cpp
|
2015-10-24 12:40:29 +00:00
|
|
|
UI/DisplayLayoutEditor.cpp
|
|
|
|
UI/DisplayLayoutScreen.cpp
|
2014-06-27 16:49:50 +00:00
|
|
|
UI/EmuScreen.cpp
|
|
|
|
UI/GameInfoCache.cpp
|
|
|
|
UI/MainScreen.cpp
|
|
|
|
UI/MiscScreens.cpp
|
2014-12-22 09:48:17 +00:00
|
|
|
UI/PauseScreen.cpp
|
2014-06-27 16:49:50 +00:00
|
|
|
UI/GameScreen.cpp
|
|
|
|
UI/GameSettingsScreen.cpp
|
|
|
|
UI/TiltAnalogSettingsScreen.cpp
|
|
|
|
UI/TiltEventProcessor.cpp
|
|
|
|
UI/TouchControlLayoutScreen.cpp
|
|
|
|
UI/TouchControlVisibilityScreen.cpp
|
|
|
|
UI/GamepadEmu.cpp
|
|
|
|
UI/OnScreenDisplay.cpp
|
|
|
|
UI/ControlMappingScreen.cpp
|
2016-07-03 17:24:33 +00:00
|
|
|
UI/RemoteISOScreen.cpp
|
2014-02-10 09:24:40 +00:00
|
|
|
UI/ReportScreen.cpp
|
2015-06-11 18:22:16 +00:00
|
|
|
UI/SavedataScreen.cpp
|
2014-06-27 16:49:50 +00:00
|
|
|
UI/Store.cpp
|
|
|
|
UI/CwCheatScreen.cpp
|
|
|
|
UI/InstallZipScreen.cpp
|
2015-10-14 15:45:21 +00:00
|
|
|
UI/ProfilerDraw.cpp
|
2015-06-28 05:34:05 +00:00
|
|
|
UI/ui_atlas.cpp
|
2016-12-27 21:46:24 +00:00
|
|
|
UI/TextureUtil.cpp
|
2015-06-28 05:34:05 +00:00
|
|
|
UI/ComboKeyMappingScreen.cpp)
|
2016-12-05 15:51:28 +00:00
|
|
|
|
2014-06-27 16:49:50 +00:00
|
|
|
if(ANDROID)
|
|
|
|
if (ARM)
|
|
|
|
set(NativeAppSource ${NativeAppSource} android/jni/ArmEmitterTest.cpp)
|
2016-12-05 15:51:28 +00:00
|
|
|
elseif (ARM64)
|
|
|
|
set(NativeAppSource ${NativeAppSource} android/jni/Arm64EmitterTest.cpp)
|
2014-06-27 16:49:50 +00:00
|
|
|
endif()
|
|
|
|
set(nativeExtra ${nativeExtra} ${NativeAppSource})
|
|
|
|
endif()
|
|
|
|
|
2016-12-05 15:51:28 +00:00
|
|
|
set(THIN3D_PLATFORMS ext/native/thin3d/thin3d_gl.cpp)
|
|
|
|
if(VULKAN)
|
2017-08-22 14:28:35 +00:00
|
|
|
set(THIN3D_PLATFORMS ${THIN3D_PLATFORMS}
|
|
|
|
ext/native/thin3d/thin3d_vulkan.cpp
|
|
|
|
ext/native/thin3d/VulkanRenderManager.cpp
|
2017-10-25 18:26:21 +00:00
|
|
|
ext/native/thin3d/VulkanRenderManager.h
|
|
|
|
ext/native/thin3d/VulkanQueueRunner.cpp
|
2017-10-29 13:42:51 +00:00
|
|
|
ext/native/thin3d/VulkanQueueRunner.h
|
|
|
|
ext/native/thin3d/DataFormat.h)
|
2016-12-05 15:51:28 +00:00
|
|
|
endif()
|
|
|
|
if(WIN32)
|
2016-12-23 08:34:24 +00:00
|
|
|
set(THIN3D_PLATFORMS ${THIN3D_PLATFORMS}
|
|
|
|
ext/native/thin3d/thin3d_d3d9.cpp
|
|
|
|
ext/native/thin3d/thin3d_d3d11.cpp
|
|
|
|
ext/native/thin3d/d3dx9_loader.cpp
|
2017-02-16 16:06:03 +00:00
|
|
|
ext/native/thin3d/d3dx9_loader.h
|
|
|
|
ext/native/thin3d/d3d11_loader.cpp
|
|
|
|
ext/native/thin3d/d3d11_loader.h)
|
2016-12-05 15:51:28 +00:00
|
|
|
endif()
|
|
|
|
|
2012-11-18 16:00:27 +00:00
|
|
|
add_library(native STATIC
|
2012-11-26 02:41:57 +00:00
|
|
|
${nativeExtra}
|
2015-09-06 19:52:33 +00:00
|
|
|
ext/native/base/backtrace.cpp
|
|
|
|
ext/native/base/backtrace.h
|
|
|
|
ext/native/base/basictypes.h
|
|
|
|
ext/native/base/buffer.cpp
|
|
|
|
ext/native/base/buffer.h
|
|
|
|
ext/native/base/colorutil.cpp
|
|
|
|
ext/native/base/colorutil.h
|
|
|
|
ext/native/base/display.cpp
|
|
|
|
ext/native/base/display.h
|
|
|
|
ext/native/base/linked_ptr.h
|
|
|
|
ext/native/base/logging.h
|
|
|
|
ext/native/base/stringutil.cpp
|
|
|
|
ext/native/base/stringutil.h
|
|
|
|
ext/native/base/timeutil.cpp
|
|
|
|
ext/native/base/timeutil.h
|
|
|
|
ext/native/data/compression.cpp
|
|
|
|
ext/native/data/compression.h
|
|
|
|
ext/native/ext/vjson/json.cpp
|
|
|
|
ext/native/ext/vjson/json.h
|
|
|
|
ext/native/ext/vjson/block_allocator.cpp
|
|
|
|
ext/native/ext/vjson/block_allocator.h
|
|
|
|
ext/native/file/chunk_file.cpp
|
|
|
|
ext/native/file/chunk_file.h
|
|
|
|
ext/native/file/fd_util.cpp
|
|
|
|
ext/native/file/fd_util.h
|
|
|
|
ext/native/file/file_util.cpp
|
|
|
|
ext/native/file/file_util.h
|
2015-11-16 05:57:35 +00:00
|
|
|
ext/native/file/free.cpp
|
|
|
|
ext/native/file/free.h
|
2015-09-06 19:52:33 +00:00
|
|
|
ext/native/file/ini_file.cpp
|
|
|
|
ext/native/file/ini_file.h
|
|
|
|
ext/native/file/path.cpp
|
|
|
|
ext/native/file/path.h
|
|
|
|
ext/native/file/vfs.h
|
|
|
|
ext/native/file/zip_read.cpp
|
|
|
|
ext/native/file/zip_read.h
|
2017-02-04 17:46:12 +00:00
|
|
|
ext/native/gfx/GLStateCache.cpp
|
|
|
|
ext/native/gfx/GLStateCache.h
|
2015-09-06 19:52:33 +00:00
|
|
|
ext/native/gfx/gl_common.h
|
|
|
|
ext/native/gfx/gl_debug_log.cpp
|
|
|
|
ext/native/gfx/gl_debug_log.h
|
|
|
|
ext/native/gfx/texture_atlas.cpp
|
|
|
|
ext/native/gfx/texture_atlas.h
|
2017-02-05 19:50:17 +00:00
|
|
|
ext/native/gfx/d3d9_shader.cpp
|
|
|
|
ext/native/gfx/d3d9_shader.h
|
2017-02-05 19:54:24 +00:00
|
|
|
ext/native/gfx/d3d9_state.cpp
|
|
|
|
ext/native/gfx/d3d9_state.h
|
2015-09-06 19:52:33 +00:00
|
|
|
ext/native/gfx_es2/draw_buffer.cpp
|
|
|
|
ext/native/gfx_es2/draw_buffer.h
|
|
|
|
ext/native/gfx_es2/draw_text.cpp
|
|
|
|
ext/native/gfx_es2/draw_text.h
|
2017-06-04 08:57:46 +00:00
|
|
|
ext/native/gfx_es2/draw_text_win.cpp
|
|
|
|
ext/native/gfx_es2/draw_text_win.h
|
|
|
|
ext/native/gfx_es2/draw_text_qt.cpp
|
|
|
|
ext/native/gfx_es2/draw_text_qt.h
|
2017-06-03 19:18:50 +00:00
|
|
|
ext/native/gfx_es2/draw_text_android.cpp
|
|
|
|
ext/native/gfx_es2/draw_text_android.h
|
2015-09-06 19:52:33 +00:00
|
|
|
ext/native/gfx_es2/gpu_features.cpp
|
|
|
|
ext/native/gfx_es2/gpu_features.h
|
|
|
|
ext/native/gfx_es2/glsl_program.cpp
|
|
|
|
ext/native/gfx_es2/glsl_program.h
|
|
|
|
ext/native/gfx_es2/gl3stub.c
|
|
|
|
ext/native/gfx_es2/gl3stub.h
|
|
|
|
ext/native/i18n/i18n.cpp
|
|
|
|
ext/native/i18n/i18n.h
|
|
|
|
ext/native/image/png_load.cpp
|
|
|
|
ext/native/image/png_load.h
|
|
|
|
ext/native/image/zim_load.cpp
|
|
|
|
ext/native/image/zim_load.h
|
|
|
|
ext/native/image/zim_save.cpp
|
|
|
|
ext/native/image/zim_save.h
|
|
|
|
ext/native/input/gesture_detector.cpp
|
|
|
|
ext/native/input/gesture_detector.h
|
|
|
|
ext/native/input/keycodes.h
|
|
|
|
ext/native/input/input_state.h
|
|
|
|
ext/native/input/input_state.cpp
|
|
|
|
ext/native/math/fast/fast_math.c
|
|
|
|
ext/native/math/fast/fast_matrix.c
|
2016-12-18 09:02:01 +00:00
|
|
|
ext/native/math/fast/fast_matrix_neon.S
|
|
|
|
ext/native/math/fast/fast_matrix_sse.c
|
2017-08-17 20:51:20 +00:00
|
|
|
ext/native/math/dataconv.cpp
|
|
|
|
ext/native/math/dataconv.h
|
2015-09-06 19:52:33 +00:00
|
|
|
ext/native/math/curves.cpp
|
|
|
|
ext/native/math/curves.h
|
|
|
|
ext/native/math/expression_parser.cpp
|
|
|
|
ext/native/math/expression_parser.h
|
|
|
|
ext/native/math/lin/matrix4x4.cpp
|
|
|
|
ext/native/math/lin/matrix4x4.h
|
|
|
|
ext/native/math/lin/plane.cpp
|
|
|
|
ext/native/math/lin/plane.h
|
|
|
|
ext/native/math/lin/quat.cpp
|
|
|
|
ext/native/math/lin/quat.h
|
|
|
|
ext/native/math/lin/ray.h
|
|
|
|
ext/native/math/lin/vec3.cpp
|
|
|
|
ext/native/math/lin/vec3.h
|
|
|
|
ext/native/math/math_util.cpp
|
|
|
|
ext/native/math/math_util.h
|
|
|
|
ext/native/net/http_client.cpp
|
|
|
|
ext/native/net/http_client.h
|
2016-07-03 17:18:54 +00:00
|
|
|
ext/native/net/http_headers.cpp
|
|
|
|
ext/native/net/http_headers.h
|
|
|
|
ext/native/net/http_server.cpp
|
|
|
|
ext/native/net/http_server.h
|
2015-09-06 19:52:33 +00:00
|
|
|
ext/native/net/resolve.cpp
|
|
|
|
ext/native/net/resolve.h
|
2016-05-26 02:02:38 +00:00
|
|
|
ext/native/net/sinks.cpp
|
|
|
|
ext/native/net/sinks.h
|
2015-09-06 19:52:33 +00:00
|
|
|
ext/native/net/url.cpp
|
|
|
|
ext/native/net/url.h
|
|
|
|
ext/native/profiler/profiler.cpp
|
|
|
|
ext/native/profiler/profiler.h
|
|
|
|
ext/native/thin3d/thin3d.cpp
|
|
|
|
ext/native/thin3d/thin3d.h
|
2016-12-05 15:51:28 +00:00
|
|
|
${THIN3D_PLATFORMS}
|
2016-07-03 17:18:54 +00:00
|
|
|
ext/native/thread/executor.cpp
|
|
|
|
ext/native/thread/executor.h
|
2015-09-06 19:52:33 +00:00
|
|
|
ext/native/thread/prioritizedworkqueue.cpp
|
|
|
|
ext/native/thread/prioritizedworkqueue.h
|
|
|
|
ext/native/thread/threadutil.cpp
|
|
|
|
ext/native/thread/threadutil.h
|
|
|
|
ext/native/thread/threadpool.cpp
|
|
|
|
ext/native/thread/threadpool.h
|
|
|
|
ext/native/ui/screen.cpp
|
|
|
|
ext/native/ui/screen.h
|
|
|
|
ext/native/ui/ui.cpp
|
|
|
|
ext/native/ui/ui.h
|
|
|
|
ext/native/ui/ui_context.cpp
|
|
|
|
ext/native/ui/ui_context.h
|
|
|
|
ext/native/ui/ui_screen.cpp
|
|
|
|
ext/native/ui/ui_screen.h
|
2017-12-03 17:39:50 +00:00
|
|
|
ext/native/ui/ui_tween.cpp
|
|
|
|
ext/native/ui/ui_tween.h
|
2015-09-06 19:52:33 +00:00
|
|
|
ext/native/ui/view.cpp
|
|
|
|
ext/native/ui/view.h
|
|
|
|
ext/native/ui/viewgroup.cpp
|
|
|
|
ext/native/ui/viewgroup.h
|
|
|
|
ext/native/util/hash/hash.cpp
|
|
|
|
ext/native/util/hash/hash.h
|
|
|
|
ext/native/util/random/rng.h
|
|
|
|
ext/native/util/text/utf8.h
|
|
|
|
ext/native/util/text/utf8.cpp
|
|
|
|
ext/native/util/text/parsers.h
|
|
|
|
ext/native/util/text/parsers.cpp
|
2016-07-04 17:52:43 +00:00
|
|
|
ext/native/util/text/wrap_text.h
|
|
|
|
ext/native/util/text/wrap_text.cpp
|
2015-09-06 19:52:33 +00:00
|
|
|
ext/native/util/const_map.h
|
|
|
|
ext/native/ext/jpge/jpgd.cpp
|
|
|
|
ext/native/ext/jpge/jpgd.h
|
|
|
|
ext/native/ext/jpge/jpge.cpp
|
|
|
|
ext/native/ext/jpge/jpge.h)
|
|
|
|
include_directories(ext/native)
|
2013-12-19 10:10:46 +00:00
|
|
|
|
2014-06-27 16:49:50 +00:00
|
|
|
if (LINUX AND NOT ANDROID)
|
2013-12-19 10:10:46 +00:00
|
|
|
SET(RT_LIB rt)
|
|
|
|
endif()
|
|
|
|
|
2016-12-05 15:51:28 +00:00
|
|
|
SET(ATOMIC_LIB)
|
|
|
|
if(ANDROID)
|
|
|
|
SET(ATOMIC_LIB atomic)
|
|
|
|
endif()
|
|
|
|
|
2016-12-18 18:01:05 +00:00
|
|
|
target_link_libraries(native ${LIBZIP_LIBRARY} ${ZLIB_LIBRARY} ${PNG_LIBRARY} rg_etc1 vjson udis86 ${RT_LIB} ${nativeExtraLibs} ${ATOMIC_LIB})
|
2017-01-10 00:19:58 +00:00
|
|
|
if(TARGET Ext::GLEW)
|
|
|
|
target_link_libraries(native Ext::GLEW)
|
2016-10-12 15:30:18 +00:00
|
|
|
endif()
|
2013-10-27 14:28:18 +00:00
|
|
|
|
2012-11-18 16:00:27 +00:00
|
|
|
if(ANDROID)
|
2016-12-05 15:51:28 +00:00
|
|
|
target_link_libraries(native log EGL OpenSLES)
|
2013-10-27 14:28:18 +00:00
|
|
|
elseif(WIN32)
|
2012-11-26 02:41:57 +00:00
|
|
|
target_link_libraries(native ws2_32 winmm)
|
2012-11-18 16:00:27 +00:00
|
|
|
endif()
|
2013-10-27 14:28:18 +00:00
|
|
|
setup_target_project(native native)
|
2012-11-18 16:00:27 +00:00
|
|
|
|
|
|
|
add_library(kirk STATIC
|
2012-11-26 02:41:57 +00:00
|
|
|
ext/libkirk/AES.c
|
|
|
|
ext/libkirk/AES.h
|
2013-02-24 14:45:10 +00:00
|
|
|
ext/libkirk/amctrl.c
|
|
|
|
ext/libkirk/amctrl.h
|
2012-11-26 02:41:57 +00:00
|
|
|
ext/libkirk/SHA1.c
|
|
|
|
ext/libkirk/SHA1.h
|
|
|
|
ext/libkirk/bn.c
|
|
|
|
ext/libkirk/ec.c
|
|
|
|
ext/libkirk/kirk_engine.c
|
|
|
|
ext/libkirk/kirk_engine.h)
|
2012-11-18 16:00:27 +00:00
|
|
|
include_directories(ext/libkirk)
|
|
|
|
|
2015-02-15 05:22:20 +00:00
|
|
|
add_library(sfmt19937 STATIC
|
|
|
|
ext/sfmt19937/SFMT.c
|
|
|
|
ext/sfmt19937/SFMT.h
|
|
|
|
ext/sfmt19937/SFMT-common.h
|
|
|
|
ext/sfmt19937/SFMT-params.h
|
|
|
|
ext/sfmt19937/SFMT-params19937.h
|
|
|
|
)
|
|
|
|
include_directories(ext/sfmt19937)
|
|
|
|
|
2013-04-30 16:44:20 +00:00
|
|
|
add_library(xbrz STATIC
|
|
|
|
ext/xbrz/xbrz.cpp
|
|
|
|
ext/xbrz/xbrz.h
|
|
|
|
)
|
|
|
|
include_directories(ext/xbrz)
|
|
|
|
|
2013-08-17 05:58:38 +00:00
|
|
|
add_library(xxhash STATIC
|
|
|
|
ext/xxhash.c
|
|
|
|
ext/xxhash.h
|
|
|
|
)
|
|
|
|
include_directories(ext/xxhash)
|
|
|
|
|
2012-11-18 16:00:27 +00:00
|
|
|
set(CoreExtra)
|
2017-03-13 18:28:56 +00:00
|
|
|
set(CoreExtraLibs)
|
|
|
|
|
|
|
|
if(WINDOWS OR ANDROID)
|
|
|
|
set(CoreExtraLibs ${CoreExtraLibs} armips)
|
|
|
|
endif()
|
2016-05-08 19:56:52 +00:00
|
|
|
|
|
|
|
set(CoreExtra ${CoreExtra}
|
|
|
|
Core/MIPS/IR/IRCompALU.cpp
|
|
|
|
Core/MIPS/IR/IRCompBranch.cpp
|
|
|
|
Core/MIPS/IR/IRCompFPU.cpp
|
|
|
|
Core/MIPS/IR/IRCompLoadStore.cpp
|
|
|
|
Core/MIPS/IR/IRCompVFPU.cpp
|
2016-05-09 18:05:06 +00:00
|
|
|
Core/MIPS/IR/IRFrontend.cpp
|
|
|
|
Core/MIPS/IR/IRFrontend.h
|
2016-05-08 19:56:52 +00:00
|
|
|
Core/MIPS/IR/IRInst.cpp
|
|
|
|
Core/MIPS/IR/IRInst.h
|
|
|
|
Core/MIPS/IR/IRInterpreter.cpp
|
|
|
|
Core/MIPS/IR/IRInterpreter.h
|
|
|
|
Core/MIPS/IR/IRJit.cpp
|
|
|
|
Core/MIPS/IR/IRJit.h
|
|
|
|
Core/MIPS/IR/IRPassSimplify.cpp
|
|
|
|
Core/MIPS/IR/IRPassSimplify.h
|
|
|
|
Core/MIPS/IR/IRRegCache.cpp
|
|
|
|
Core/MIPS/IR/IRRegCache.h
|
|
|
|
)
|
|
|
|
|
2016-10-12 15:32:52 +00:00
|
|
|
list(APPEND CoreExtra
|
|
|
|
Core/MIPS/ARM/ArmAsm.cpp
|
|
|
|
Core/MIPS/ARM/ArmCompALU.cpp
|
|
|
|
Core/MIPS/ARM/ArmCompBranch.cpp
|
|
|
|
Core/MIPS/ARM/ArmCompFPU.cpp
|
|
|
|
Core/MIPS/ARM/ArmCompLoadStore.cpp
|
|
|
|
Core/MIPS/ARM/ArmCompVFPU.cpp
|
|
|
|
Core/MIPS/ARM/ArmCompVFPUNEON.cpp
|
|
|
|
Core/MIPS/ARM/ArmCompVFPUNEONUtil.cpp
|
|
|
|
Core/MIPS/ARM/ArmCompReplace.cpp
|
|
|
|
Core/MIPS/ARM/ArmJit.cpp
|
|
|
|
Core/MIPS/ARM/ArmJit.h
|
|
|
|
Core/MIPS/ARM/ArmRegCache.cpp
|
|
|
|
Core/MIPS/ARM/ArmRegCache.h
|
|
|
|
Core/MIPS/ARM/ArmRegCacheFPU.cpp
|
|
|
|
Core/MIPS/ARM/ArmRegCacheFPU.h
|
|
|
|
GPU/Common/VertexDecoderArm.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
list(APPEND CoreExtra
|
|
|
|
Core/MIPS/ARM64/Arm64Asm.cpp
|
|
|
|
Core/MIPS/ARM64/Arm64CompALU.cpp
|
|
|
|
Core/MIPS/ARM64/Arm64CompBranch.cpp
|
|
|
|
Core/MIPS/ARM64/Arm64CompFPU.cpp
|
|
|
|
Core/MIPS/ARM64/Arm64CompLoadStore.cpp
|
|
|
|
Core/MIPS/ARM64/Arm64CompVFPU.cpp
|
|
|
|
Core/MIPS/ARM64/Arm64CompReplace.cpp
|
|
|
|
Core/MIPS/ARM64/Arm64Jit.cpp
|
|
|
|
Core/MIPS/ARM64/Arm64Jit.h
|
|
|
|
Core/MIPS/ARM64/Arm64RegCache.cpp
|
|
|
|
Core/MIPS/ARM64/Arm64RegCache.h
|
|
|
|
Core/MIPS/ARM64/Arm64RegCacheFPU.cpp
|
|
|
|
Core/MIPS/ARM64/Arm64RegCacheFPU.h
|
|
|
|
GPU/Common/VertexDecoderArm64.cpp
|
|
|
|
Core/Util/DisArm64.cpp)
|
|
|
|
|
|
|
|
list(APPEND CoreExtra
|
|
|
|
Core/MIPS/x86/Asm.cpp
|
|
|
|
Core/MIPS/x86/CompALU.cpp
|
|
|
|
Core/MIPS/x86/CompBranch.cpp
|
|
|
|
Core/MIPS/x86/CompFPU.cpp
|
|
|
|
Core/MIPS/x86/CompLoadStore.cpp
|
|
|
|
Core/MIPS/x86/CompVFPU.cpp
|
|
|
|
Core/MIPS/x86/CompReplace.cpp
|
|
|
|
Core/MIPS/x86/Jit.cpp
|
|
|
|
Core/MIPS/x86/Jit.h
|
|
|
|
Core/MIPS/x86/JitSafeMem.cpp
|
|
|
|
Core/MIPS/x86/JitSafeMem.h
|
|
|
|
Core/MIPS/x86/RegCache.cpp
|
|
|
|
Core/MIPS/x86/RegCache.h
|
|
|
|
Core/MIPS/x86/RegCacheFPU.cpp
|
|
|
|
Core/MIPS/x86/RegCacheFPU.h
|
|
|
|
GPU/Common/VertexDecoderX86.cpp
|
2017-05-11 00:31:34 +00:00
|
|
|
GPU/Software/SamplerX86.cpp
|
2016-10-12 15:32:52 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
list(APPEND CoreExtra
|
|
|
|
Core/MIPS/MIPS/MipsJit.cpp
|
|
|
|
Core/MIPS/MIPS/MipsJit.h
|
|
|
|
GPU/Common/VertexDecoderFake.cpp
|
|
|
|
)
|
|
|
|
|
2016-09-02 00:09:56 +00:00
|
|
|
if (NOT MOBILE_DEVICE)
|
|
|
|
set(CoreExtra ${CoreExtra}
|
|
|
|
Core/AVIDump.cpp
|
2016-09-03 22:26:01 +00:00
|
|
|
Core/AVIDump.h
|
|
|
|
Core/WaveFile.cpp
|
|
|
|
Core/WaveFile.h)
|
2016-09-02 00:09:56 +00:00
|
|
|
endif()
|
|
|
|
|
2015-01-11 21:50:52 +00:00
|
|
|
if(ARMV7)
|
|
|
|
set(CORE_NEON Core/Util/AudioFormatNEON.cpp Core/Util/AudioFormatNEON.h)
|
|
|
|
endif()
|
|
|
|
|
2016-12-05 15:51:28 +00:00
|
|
|
set(GPU_GLES
|
2017-01-21 21:16:30 +00:00
|
|
|
GPU/GLES/DepalettizeShaderGLES.cpp
|
|
|
|
GPU/GLES/DepalettizeShaderGLES.h
|
2016-12-05 15:51:28 +00:00
|
|
|
GPU/GLES/GPU_GLES.cpp
|
|
|
|
GPU/GLES/GPU_GLES.h
|
2017-01-21 21:16:30 +00:00
|
|
|
GPU/GLES/FragmentShaderGeneratorGLES.cpp
|
|
|
|
GPU/GLES/FragmentShaderGeneratorGLES.h
|
|
|
|
GPU/GLES/FragmentTestCacheGLES.cpp
|
|
|
|
GPU/GLES/FragmentTestCacheGLES.h
|
2017-01-22 06:28:44 +00:00
|
|
|
GPU/GLES/FramebufferManagerGLES.cpp
|
|
|
|
GPU/GLES/FramebufferManagerGLES.h
|
2017-01-21 21:16:30 +00:00
|
|
|
GPU/GLES/ShaderManagerGLES.cpp
|
|
|
|
GPU/GLES/ShaderManagerGLES.h
|
|
|
|
GPU/GLES/StateMappingGLES.cpp
|
|
|
|
GPU/GLES/StateMappingGLES.h
|
|
|
|
GPU/GLES/StencilBufferGLES.cpp
|
|
|
|
GPU/GLES/TextureCacheGLES.cpp
|
|
|
|
GPU/GLES/TextureCacheGLES.h
|
|
|
|
GPU/GLES/TextureScalerGLES.cpp
|
|
|
|
GPU/GLES/TextureScalerGLES.h
|
2016-12-05 15:51:28 +00:00
|
|
|
GPU/GLES/DrawEngineGLES.cpp
|
|
|
|
GPU/GLES/DrawEngineGLES.h
|
2017-01-21 21:16:30 +00:00
|
|
|
GPU/GLES/VertexShaderGeneratorGLES.cpp
|
|
|
|
GPU/GLES/VertexShaderGeneratorGLES.h
|
2016-12-05 15:51:28 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(GPU_VULKAN
|
|
|
|
GPU/Vulkan/DepalettizeShaderVulkan.cpp
|
|
|
|
GPU/Vulkan/DepalettizeShaderVulkan.h
|
|
|
|
GPU/Vulkan/DrawEngineVulkan.cpp
|
|
|
|
GPU/Vulkan/DrawEngineVulkan.h
|
|
|
|
GPU/Vulkan/FragmentShaderGeneratorVulkan.cpp
|
|
|
|
GPU/Vulkan/FragmentShaderGeneratorVulkan.h
|
|
|
|
GPU/Vulkan/FramebufferVulkan.cpp
|
|
|
|
GPU/Vulkan/FramebufferVulkan.h
|
|
|
|
GPU/Vulkan/GPU_Vulkan.cpp
|
|
|
|
GPU/Vulkan/GPU_Vulkan.h
|
|
|
|
GPU/Vulkan/PipelineManagerVulkan.cpp
|
|
|
|
GPU/Vulkan/PipelineManagerVulkan.h
|
|
|
|
GPU/Vulkan/ShaderManagerVulkan.cpp
|
|
|
|
GPU/Vulkan/ShaderManagerVulkan.h
|
|
|
|
GPU/Vulkan/StateMappingVulkan.cpp
|
|
|
|
GPU/Vulkan/StateMappingVulkan.h
|
2017-11-01 13:18:39 +00:00
|
|
|
GPU/Vulkan/StencilBufferVulkan.cpp
|
2016-12-05 15:51:28 +00:00
|
|
|
GPU/Vulkan/TextureCacheVulkan.cpp
|
|
|
|
GPU/Vulkan/TextureCacheVulkan.h
|
|
|
|
GPU/Vulkan/TextureScalerVulkan.cpp
|
|
|
|
GPU/Vulkan/TextureScalerVulkan.h
|
|
|
|
GPU/Vulkan/VertexShaderGeneratorVulkan.cpp
|
|
|
|
GPU/Vulkan/VertexShaderGeneratorVulkan.h
|
|
|
|
GPU/Vulkan/VulkanUtil.cpp
|
|
|
|
GPU/Vulkan/VulkanUtil.h
|
|
|
|
)
|
|
|
|
|
|
|
|
set(GPU_D3D9
|
|
|
|
GPU/Directx9/DepalettizeShaderDX9.cpp
|
|
|
|
GPU/Directx9/DepalettizeShaderDX9.h
|
|
|
|
GPU/Directx9/DrawEngineDX9.cpp
|
|
|
|
GPU/Directx9/DrawEngineDX9.h
|
|
|
|
GPU/Directx9/PixelShaderGeneratorDX9.cpp
|
|
|
|
GPU/Directx9/PixelShaderGeneratorDX9.h
|
|
|
|
GPU/Directx9/FramebufferDX9.cpp
|
|
|
|
GPU/Directx9/FramebufferDX9.h
|
|
|
|
GPU/Directx9/GPU_DX9.cpp
|
|
|
|
GPU/Directx9/GPU_DX9.h
|
|
|
|
GPU/Directx9/ShaderManagerDX9.cpp
|
|
|
|
GPU/Directx9/ShaderManagerDX9.h
|
|
|
|
GPU/Directx9/StateMappingDX9.cpp
|
|
|
|
GPU/Directx9/StateMappingDX9.h
|
|
|
|
GPU/Directx9/StencilBufferDX9.cpp
|
|
|
|
GPU/Directx9/TextureCacheDX9.cpp
|
|
|
|
GPU/Directx9/TextureCacheDX9.h
|
|
|
|
GPU/Directx9/TextureScalerDX9.cpp
|
|
|
|
GPU/Directx9/TextureScalerDX9.h
|
|
|
|
GPU/Directx9/VertexShaderGeneratorDX9.cpp
|
|
|
|
GPU/Directx9/VertexShaderGeneratorDX9.h
|
|
|
|
)
|
|
|
|
|
2017-02-08 16:47:07 +00:00
|
|
|
set(GPU_D3D11
|
|
|
|
GPU/D3D11/DepalettizeShaderD3D11.cpp
|
|
|
|
GPU/D3D11/DepalettizeShaderD3D11.h
|
|
|
|
GPU/D3D11/DrawEngineD3D11.cpp
|
|
|
|
GPU/D3D11/DrawEngineD3D11.h
|
|
|
|
GPU/D3D11/FragmentShaderGeneratorD3D11.cpp
|
|
|
|
GPU/D3D11/FragmentShaderGeneratorD3D11.h
|
|
|
|
GPU/D3D11/FramebufferManagerD3D11.cpp
|
|
|
|
GPU/D3D11/FramebufferManagerD3D11.h
|
|
|
|
GPU/D3D11/GPU_D3D11.cpp
|
|
|
|
GPU/D3D11/GPU_D3D11.h
|
2017-02-16 16:06:03 +00:00
|
|
|
GPU/D3D11/D3D11Util.cpp
|
|
|
|
GPU/D3D11/D3D11Util.h
|
2017-02-08 16:47:07 +00:00
|
|
|
GPU/D3D11/ShaderManagerD3D11.cpp
|
|
|
|
GPU/D3D11/ShaderManagerD3D11.h
|
|
|
|
GPU/D3D11/StateMappingD3D11.cpp
|
|
|
|
GPU/D3D11/StateMappingD3D11.h
|
2017-02-16 16:06:03 +00:00
|
|
|
GPU/D3D11/StencilBufferD3D11.cpp
|
2017-02-08 16:47:07 +00:00
|
|
|
GPU/D3D11/TextureCacheD3D11.cpp
|
|
|
|
GPU/D3D11/TextureCacheD3D11.h
|
|
|
|
GPU/D3D11/TextureScalerD3D11.cpp
|
|
|
|
GPU/D3D11/TextureScalerD3D11.h
|
|
|
|
GPU/D3D11/VertexShaderGeneratorD3D11.cpp
|
|
|
|
GPU/D3D11/VertexShaderGeneratorD3D11.h
|
|
|
|
)
|
2016-12-05 15:51:28 +00:00
|
|
|
|
|
|
|
set(GPU_IMPLS ${GPU_GLES})
|
|
|
|
if(VULKAN)
|
|
|
|
set(GPU_IMPLS ${GPU_IMPLS} ${GPU_VULKAN})
|
|
|
|
endif()
|
|
|
|
if(WIN32)
|
2017-02-08 16:47:07 +00:00
|
|
|
list(APPEND GPU_IMPLS ${GPU_D3D9} ${GPU_D3D11})
|
2016-12-05 15:51:28 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if(ARMV7 OR ARM64)
|
2016-10-12 14:46:29 +00:00
|
|
|
set(GPU_NEON GPU/Common/TextureDecoderNEON.cpp)
|
|
|
|
endif()
|
|
|
|
set(GPU_SOURCES
|
2016-12-05 15:51:28 +00:00
|
|
|
${GPU_IMPLS}
|
|
|
|
${GPU_NEON}
|
2016-10-12 14:46:29 +00:00
|
|
|
GPU/Common/DepalettizeShaderCommon.cpp
|
|
|
|
GPU/Common/DepalettizeShaderCommon.h
|
|
|
|
GPU/Common/FramebufferCommon.cpp
|
|
|
|
GPU/Common/FramebufferCommon.h
|
|
|
|
GPU/Common/GPUDebugInterface.cpp
|
|
|
|
GPU/Common/GPUDebugInterface.h
|
|
|
|
GPU/Common/GPUStateUtils.cpp
|
|
|
|
GPU/Common/GPUStateUtils.h
|
|
|
|
GPU/Common/DrawEngineCommon.cpp
|
|
|
|
GPU/Common/DrawEngineCommon.h
|
|
|
|
GPU/Common/ShaderId.cpp
|
|
|
|
GPU/Common/ShaderId.h
|
2017-02-16 16:06:03 +00:00
|
|
|
GPU/Common/ShaderUniforms.cpp
|
|
|
|
GPU/Common/ShaderUniforms.h
|
2017-03-13 15:51:36 +00:00
|
|
|
GPU/Common/ShaderCommon.cpp
|
|
|
|
GPU/Common/ShaderCommon.h
|
2017-11-12 15:55:36 +00:00
|
|
|
GPU/Common/ShaderTranslation.cpp
|
|
|
|
GPU/Common/ShaderTranslation.h
|
2016-10-12 14:46:29 +00:00
|
|
|
GPU/Common/SplineCommon.cpp
|
|
|
|
GPU/Common/SplineCommon.h
|
2017-11-01 13:49:50 +00:00
|
|
|
GPU/Common/StencilCommon.cpp
|
|
|
|
GPU/Common/StencilCommon.h
|
2016-10-12 14:46:29 +00:00
|
|
|
GPU/Common/SoftwareTransformCommon.cpp
|
|
|
|
GPU/Common/SoftwareTransformCommon.h
|
|
|
|
GPU/Common/VertexDecoderCommon.cpp
|
|
|
|
GPU/Common/VertexDecoderCommon.h
|
|
|
|
GPU/Common/TransformCommon.cpp
|
|
|
|
GPU/Common/TransformCommon.h
|
|
|
|
GPU/Common/IndexGenerator.cpp
|
|
|
|
GPU/Common/IndexGenerator.h
|
|
|
|
GPU/Common/TextureDecoder.cpp
|
|
|
|
GPU/Common/TextureDecoder.h
|
|
|
|
GPU/Common/TextureCacheCommon.cpp
|
|
|
|
GPU/Common/TextureCacheCommon.h
|
|
|
|
GPU/Common/TextureScalerCommon.cpp
|
|
|
|
GPU/Common/TextureScalerCommon.h
|
|
|
|
GPU/Common/PostShader.cpp
|
|
|
|
GPU/Common/PostShader.h
|
|
|
|
GPU/Common/SplineCommon.h
|
|
|
|
GPU/Debugger/Breakpoints.cpp
|
|
|
|
GPU/Debugger/Breakpoints.h
|
2017-06-03 04:53:20 +00:00
|
|
|
GPU/Debugger/Record.cpp
|
|
|
|
GPU/Debugger/Record.h
|
2016-10-12 14:46:29 +00:00
|
|
|
GPU/Debugger/Stepping.cpp
|
|
|
|
GPU/Debugger/Stepping.h
|
|
|
|
GPU/GPUInterface.h
|
|
|
|
GPU/GeDisasm.cpp
|
|
|
|
GPU/GeDisasm.h
|
|
|
|
GPU/GPU.cpp
|
|
|
|
GPU/GPU.h
|
|
|
|
GPU/GPUCommon.cpp
|
|
|
|
GPU/GPUCommon.h
|
|
|
|
GPU/GPUState.cpp
|
|
|
|
GPU/GPUState.h
|
|
|
|
GPU/Math3D.cpp
|
|
|
|
GPU/Math3D.h
|
|
|
|
GPU/Null/NullGpu.cpp
|
|
|
|
GPU/Null/NullGpu.h
|
|
|
|
GPU/Software/Clipper.cpp
|
|
|
|
GPU/Software/Clipper.h
|
|
|
|
GPU/Software/Lighting.cpp
|
|
|
|
GPU/Software/Lighting.h
|
|
|
|
GPU/Software/Rasterizer.cpp
|
|
|
|
GPU/Software/Rasterizer.h
|
2017-05-10 02:48:05 +00:00
|
|
|
GPU/Software/Sampler.cpp
|
|
|
|
GPU/Software/Sampler.h
|
2016-10-12 14:46:29 +00:00
|
|
|
GPU/Software/SoftGpu.cpp
|
|
|
|
GPU/Software/SoftGpu.h
|
|
|
|
GPU/Software/TransformUnit.cpp
|
|
|
|
GPU/Software/TransformUnit.h
|
|
|
|
GPU/ge_constants.h)
|
|
|
|
|
2012-11-18 16:00:27 +00:00
|
|
|
# 'ppsspp_jni' on ANDROID, 'Core' everywhere else
|
|
|
|
# SHARED on ANDROID, STATIC everywhere else
|
|
|
|
add_library(${CoreLibName} ${CoreLinkType}
|
2012-11-26 02:41:57 +00:00
|
|
|
${CoreExtra}
|
|
|
|
Core/Config.cpp
|
|
|
|
Core/Config.h
|
|
|
|
Core/Core.cpp
|
|
|
|
Core/Core.h
|
2015-09-26 14:01:16 +00:00
|
|
|
Core/Compatibility.cpp
|
|
|
|
Core/Compatibility.h
|
2012-11-26 02:41:57 +00:00
|
|
|
Core/CoreParameter.h
|
|
|
|
Core/CoreTiming.cpp
|
|
|
|
Core/CoreTiming.h
|
2013-05-31 05:42:27 +00:00
|
|
|
Core/CwCheat.cpp
|
|
|
|
Core/CwCheat.h
|
2013-06-23 04:25:55 +00:00
|
|
|
Core/HDRemaster.cpp
|
|
|
|
Core/HDRemaster.h
|
2013-08-10 16:08:31 +00:00
|
|
|
Core/ThreadEventQueue.h
|
2012-11-26 02:41:57 +00:00
|
|
|
Core/Debugger/Breakpoints.cpp
|
|
|
|
Core/Debugger/Breakpoints.h
|
|
|
|
Core/Debugger/DebugInterface.h
|
|
|
|
Core/Debugger/SymbolMap.cpp
|
|
|
|
Core/Debugger/SymbolMap.h
|
2013-12-29 23:23:04 +00:00
|
|
|
Core/Debugger/DisassemblyManager.cpp
|
|
|
|
Core/Debugger/DisassemblyManager.h
|
2012-12-10 12:08:54 +00:00
|
|
|
Core/Dialog/PSPDialog.cpp
|
|
|
|
Core/Dialog/PSPDialog.h
|
2013-09-13 23:50:22 +00:00
|
|
|
Core/Dialog/PSPGamedataInstallDialog.cpp
|
2013-09-13 15:19:53 +00:00
|
|
|
Core/Dialog/PSPGamedataInstallDialog.h
|
2012-12-10 12:08:54 +00:00
|
|
|
Core/Dialog/PSPMsgDialog.cpp
|
|
|
|
Core/Dialog/PSPMsgDialog.h
|
2013-10-13 02:32:56 +00:00
|
|
|
Core/Dialog/PSPNetconfDialog.cpp
|
|
|
|
Core/Dialog/PSPNetconfDialog.h
|
2012-12-15 23:31:43 +00:00
|
|
|
Core/Dialog/PSPOskDialog.cpp
|
|
|
|
Core/Dialog/PSPOskDialog.h
|
2012-12-10 12:08:54 +00:00
|
|
|
Core/Dialog/PSPPlaceholderDialog.cpp
|
|
|
|
Core/Dialog/PSPPlaceholderDialog.h
|
|
|
|
Core/Dialog/PSPSaveDialog.cpp
|
|
|
|
Core/Dialog/PSPSaveDialog.h
|
2014-04-28 13:54:52 +00:00
|
|
|
Core/Dialog/PSPScreenshotDialog.cpp
|
|
|
|
Core/Dialog/PSPScreenshotDialog.h
|
2012-12-10 12:08:54 +00:00
|
|
|
Core/Dialog/SavedataParam.cpp
|
|
|
|
Core/Dialog/SavedataParam.h
|
2012-11-26 02:41:57 +00:00
|
|
|
Core/ELF/ElfReader.cpp
|
|
|
|
Core/ELF/ElfReader.h
|
|
|
|
Core/ELF/ElfTypes.h
|
2013-04-08 19:46:41 +00:00
|
|
|
Core/ELF/PBPReader.cpp
|
|
|
|
Core/ELF/PBPReader.h
|
2012-11-26 02:41:57 +00:00
|
|
|
Core/ELF/PrxDecrypter.cpp
|
|
|
|
Core/ELF/PrxDecrypter.h
|
2012-11-30 20:49:59 +00:00
|
|
|
Core/ELF/ParamSFO.cpp
|
|
|
|
Core/ELF/ParamSFO.h
|
2013-05-08 18:29:23 +00:00
|
|
|
Core/FileSystems/tlzrc.cpp
|
2017-06-03 19:47:38 +00:00
|
|
|
Core/FileSystems/BlobFileSystem.cpp
|
|
|
|
Core/FileSystems/BlobFileSystem.h
|
2012-11-26 02:41:57 +00:00
|
|
|
Core/FileSystems/BlockDevices.cpp
|
|
|
|
Core/FileSystems/BlockDevices.h
|
|
|
|
Core/FileSystems/DirectoryFileSystem.cpp
|
|
|
|
Core/FileSystems/DirectoryFileSystem.h
|
|
|
|
Core/FileSystems/FileSystem.h
|
2013-12-29 22:28:31 +00:00
|
|
|
Core/FileSystems/FileSystem.cpp
|
2012-11-26 02:41:57 +00:00
|
|
|
Core/FileSystems/ISOFileSystem.cpp
|
|
|
|
Core/FileSystems/ISOFileSystem.h
|
|
|
|
Core/FileSystems/MetaFileSystem.cpp
|
|
|
|
Core/FileSystems/MetaFileSystem.h
|
2013-07-28 06:46:26 +00:00
|
|
|
Core/FileSystems/VirtualDiscFileSystem.cpp
|
|
|
|
Core/FileSystems/VirtualDiscFileSystem.h
|
2013-02-28 16:13:01 +00:00
|
|
|
Core/Font/PGF.cpp
|
|
|
|
Core/Font/PGF.h
|
2012-11-26 02:41:57 +00:00
|
|
|
Core/HLE/FunctionWrappers.h
|
|
|
|
Core/HLE/HLE.cpp
|
|
|
|
Core/HLE/HLE.h
|
2013-11-30 19:57:44 +00:00
|
|
|
Core/HLE/ReplaceTables.cpp
|
|
|
|
Core/HLE/ReplaceTables.h
|
2014-05-23 06:38:21 +00:00
|
|
|
Core/HLE/HLEHelperThread.cpp
|
|
|
|
Core/HLE/HLEHelperThread.h
|
2012-11-26 02:41:57 +00:00
|
|
|
Core/HLE/HLETables.cpp
|
|
|
|
Core/HLE/HLETables.h
|
2013-09-03 00:59:47 +00:00
|
|
|
Core/HLE/KernelWaitHelpers.h
|
2016-08-28 12:55:25 +00:00
|
|
|
Core/HLE/KUBridge.h
|
|
|
|
Core/HLE/KUBridge.cpp
|
2015-09-12 20:03:15 +00:00
|
|
|
Core/HLE/ThreadQueueList.h
|
2012-11-26 02:41:57 +00:00
|
|
|
Core/HLE/__sceAudio.cpp
|
|
|
|
Core/HLE/__sceAudio.h
|
2015-02-08 01:35:00 +00:00
|
|
|
Core/HLE/sceAdler.cpp
|
|
|
|
Core/HLE/sceAdler.h
|
2012-11-26 02:41:57 +00:00
|
|
|
Core/HLE/sceAtrac.cpp
|
|
|
|
Core/HLE/sceAtrac.h
|
|
|
|
Core/HLE/sceAudio.cpp
|
2013-06-09 09:17:17 +00:00
|
|
|
Core/HLE/sceAudiocodec.cpp
|
|
|
|
Core/HLE/sceAudiocodec.h
|
2015-03-08 04:50:06 +00:00
|
|
|
Core/HLE/sceAudioRouting.cpp
|
|
|
|
Core/HLE/sceAudioRouting.h
|
2012-11-26 02:41:57 +00:00
|
|
|
Core/HLE/sceAudio.h
|
2013-06-30 12:21:56 +00:00
|
|
|
Core/HLE/sceCcc.h
|
|
|
|
Core/HLE/sceCcc.cpp
|
2013-01-28 23:11:02 +00:00
|
|
|
Core/HLE/sceChnnlsv.cpp
|
|
|
|
Core/HLE/sceChnnlsv.h
|
2012-11-26 02:41:57 +00:00
|
|
|
Core/HLE/sceCtrl.cpp
|
|
|
|
Core/HLE/sceCtrl.h
|
2013-04-05 17:14:12 +00:00
|
|
|
Core/HLE/sceDeflt.cpp
|
|
|
|
Core/HLE/sceDeflt.h
|
2012-11-26 02:41:57 +00:00
|
|
|
Core/HLE/sceDisplay.cpp
|
|
|
|
Core/HLE/sceDisplay.h
|
|
|
|
Core/HLE/sceDmac.cpp
|
|
|
|
Core/HLE/sceDmac.h
|
2015-03-08 05:27:40 +00:00
|
|
|
Core/HLE/sceG729.cpp
|
|
|
|
Core/HLE/sceG729.h
|
2013-03-19 13:28:26 +00:00
|
|
|
Core/HLE/sceGameUpdate.cpp
|
|
|
|
Core/HLE/sceGameUpdate.h
|
2012-11-26 02:41:57 +00:00
|
|
|
Core/HLE/sceGe.cpp
|
|
|
|
Core/HLE/sceGe.h
|
|
|
|
Core/HLE/sceFont.cpp
|
|
|
|
Core/HLE/sceFont.h
|
2013-09-04 08:34:00 +00:00
|
|
|
Core/HLE/sceHeap.cpp
|
|
|
|
Core/HLE/sceHeap.h
|
2012-11-26 02:41:57 +00:00
|
|
|
Core/HLE/sceHprm.cpp
|
|
|
|
Core/HLE/sceHprm.h
|
|
|
|
Core/HLE/sceHttp.cpp
|
|
|
|
Core/HLE/sceHttp.h
|
|
|
|
Core/HLE/sceImpose.cpp
|
|
|
|
Core/HLE/sceImpose.h
|
|
|
|
Core/HLE/sceIo.cpp
|
|
|
|
Core/HLE/sceIo.h
|
2013-05-15 11:49:34 +00:00
|
|
|
Core/HLE/sceJpeg.cpp
|
|
|
|
Core/HLE/sceJpeg.h
|
2012-11-26 02:41:57 +00:00
|
|
|
Core/HLE/sceKernel.cpp
|
|
|
|
Core/HLE/sceKernel.h
|
|
|
|
Core/HLE/sceKernelAlarm.cpp
|
|
|
|
Core/HLE/sceKernelAlarm.h
|
|
|
|
Core/HLE/sceKernelEventFlag.cpp
|
|
|
|
Core/HLE/sceKernelEventFlag.h
|
|
|
|
Core/HLE/sceKernelInterrupt.cpp
|
|
|
|
Core/HLE/sceKernelInterrupt.h
|
|
|
|
Core/HLE/sceKernelMbx.cpp
|
|
|
|
Core/HLE/sceKernelMbx.h
|
|
|
|
Core/HLE/sceKernelMemory.cpp
|
|
|
|
Core/HLE/sceKernelMemory.h
|
|
|
|
Core/HLE/sceKernelModule.cpp
|
|
|
|
Core/HLE/sceKernelModule.h
|
|
|
|
Core/HLE/sceKernelMsgPipe.cpp
|
|
|
|
Core/HLE/sceKernelMsgPipe.h
|
|
|
|
Core/HLE/sceKernelMutex.cpp
|
|
|
|
Core/HLE/sceKernelMutex.h
|
|
|
|
Core/HLE/sceKernelSemaphore.cpp
|
|
|
|
Core/HLE/sceKernelSemaphore.h
|
|
|
|
Core/HLE/sceKernelThread.cpp
|
|
|
|
Core/HLE/sceKernelThread.h
|
|
|
|
Core/HLE/sceKernelTime.cpp
|
|
|
|
Core/HLE/sceKernelTime.h
|
|
|
|
Core/HLE/sceKernelVTimer.cpp
|
|
|
|
Core/HLE/sceKernelVTimer.h
|
|
|
|
Core/HLE/sceMpeg.cpp
|
|
|
|
Core/HLE/sceMpeg.h
|
|
|
|
Core/HLE/sceNet.cpp
|
|
|
|
Core/HLE/sceNet.h
|
2013-09-06 22:55:42 +00:00
|
|
|
Core/HLE/sceNetAdhoc.cpp
|
|
|
|
Core/HLE/sceNetAdhoc.h
|
2013-11-10 01:26:31 +00:00
|
|
|
Core/HLE/proAdhoc.h
|
|
|
|
Core/HLE/proAdhoc.cpp
|
2014-08-04 13:15:58 +00:00
|
|
|
Core/HLE/proAdhocServer.h
|
|
|
|
Core/HLE/proAdhocServer.cpp
|
2012-12-06 18:44:29 +00:00
|
|
|
Core/HLE/sceOpenPSID.cpp
|
|
|
|
Core/HLE/sceOpenPSID.h
|
2013-03-15 14:45:00 +00:00
|
|
|
Core/HLE/sceP3da.cpp
|
|
|
|
Core/HLE/sceP3da.h
|
2014-01-25 04:19:48 +00:00
|
|
|
Core/HLE/sceMt19937.cpp
|
|
|
|
Core/HLE/sceMt19937.h
|
2013-05-15 11:49:34 +00:00
|
|
|
Core/HLE/sceMd5.cpp
|
|
|
|
Core/HLE/sceMd5.h
|
2013-04-28 00:27:48 +00:00
|
|
|
Core/HLE/sceMp4.cpp
|
|
|
|
Core/HLE/sceMp4.h
|
2013-05-06 13:09:40 +00:00
|
|
|
Core/HLE/sceMp3.cpp
|
|
|
|
Core/HLE/sceMp3.h
|
2012-12-06 18:44:29 +00:00
|
|
|
Core/HLE/sceParseHttp.cpp
|
|
|
|
Core/HLE/sceParseHttp.h
|
|
|
|
Core/HLE/sceParseUri.cpp
|
|
|
|
Core/HLE/sceParseUri.h
|
2012-11-26 02:41:57 +00:00
|
|
|
Core/HLE/scePower.cpp
|
|
|
|
Core/HLE/scePower.h
|
|
|
|
Core/HLE/scePsmf.cpp
|
|
|
|
Core/HLE/scePsmf.h
|
|
|
|
Core/HLE/sceRtc.cpp
|
|
|
|
Core/HLE/sceRtc.h
|
|
|
|
Core/HLE/sceSas.cpp
|
|
|
|
Core/HLE/sceSas.h
|
2015-02-15 05:22:20 +00:00
|
|
|
Core/HLE/sceSfmt19937.cpp
|
|
|
|
Core/HLE/sceSfmt19937.h
|
2014-12-05 07:24:39 +00:00
|
|
|
Core/HLE/sceSha256.cpp
|
|
|
|
Core/HLE/sceSha256.h
|
2012-12-06 18:44:29 +00:00
|
|
|
Core/HLE/sceSsl.cpp
|
|
|
|
Core/HLE/sceSsl.h
|
2012-11-26 02:41:57 +00:00
|
|
|
Core/HLE/sceUmd.cpp
|
|
|
|
Core/HLE/sceUmd.h
|
2012-12-17 20:45:32 +00:00
|
|
|
Core/HLE/sceUsb.cpp
|
|
|
|
Core/HLE/sceUsb.h
|
2017-08-20 18:03:06 +00:00
|
|
|
Core/HLE/sceUsbCam.cpp
|
|
|
|
Core/HLE/sceUsbCam.h
|
2014-08-12 16:11:26 +00:00
|
|
|
Core/HLE/sceUsbGps.cpp
|
|
|
|
Core/HLE/sceUsbGps.h
|
2012-11-26 02:41:57 +00:00
|
|
|
Core/HLE/sceUtility.cpp
|
|
|
|
Core/HLE/sceUtility.h
|
2012-12-06 18:44:29 +00:00
|
|
|
Core/HLE/sceVaudio.cpp
|
|
|
|
Core/HLE/sceVaudio.h
|
2013-02-24 17:27:37 +00:00
|
|
|
Core/HLE/scePspNpDrm_user.cpp
|
|
|
|
Core/HLE/scePspNpDrm_user.h
|
2013-04-29 03:40:09 +00:00
|
|
|
Core/HLE/sceNp.cpp
|
|
|
|
Core/HLE/sceNp.h
|
|
|
|
Core/HLE/scePauth.cpp
|
|
|
|
Core/HLE/scePauth.h
|
2014-03-23 18:45:08 +00:00
|
|
|
Core/HW/SimpleAudioDec.cpp
|
|
|
|
Core/HW/SimpleAudioDec.h
|
2013-08-11 18:40:41 +00:00
|
|
|
Core/HW/AsyncIOManager.cpp
|
|
|
|
Core/HW/AsyncIOManager.h
|
2013-01-05 15:23:21 +00:00
|
|
|
Core/HW/MediaEngine.cpp
|
|
|
|
Core/HW/MediaEngine.h
|
2013-06-01 21:37:51 +00:00
|
|
|
Core/HW/MpegDemux.cpp
|
|
|
|
Core/HW/MpegDemux.h
|
2012-11-26 02:41:57 +00:00
|
|
|
Core/HW/MemoryStick.cpp
|
|
|
|
Core/HW/MemoryStick.h
|
2012-12-16 19:40:49 +00:00
|
|
|
Core/HW/SasAudio.cpp
|
|
|
|
Core/HW/SasAudio.h
|
2015-10-27 11:34:54 +00:00
|
|
|
Core/HW/SasReverb.cpp
|
|
|
|
Core/HW/SasReverb.h
|
2015-01-11 14:13:43 +00:00
|
|
|
Core/HW/StereoResampler.cpp
|
|
|
|
Core/HW/StereoResampler.h
|
2012-11-26 02:41:57 +00:00
|
|
|
Core/Host.cpp
|
|
|
|
Core/Host.h
|
|
|
|
Core/Loaders.cpp
|
|
|
|
Core/Loaders.h
|
2015-06-27 17:58:44 +00:00
|
|
|
Core/FileLoaders/CachingFileLoader.cpp
|
|
|
|
Core/FileLoaders/CachingFileLoader.h
|
2015-06-28 01:32:21 +00:00
|
|
|
Core/FileLoaders/DiskCachingFileLoader.cpp
|
|
|
|
Core/FileLoaders/DiskCachingFileLoader.h
|
2015-06-27 17:58:44 +00:00
|
|
|
Core/FileLoaders/HTTPFileLoader.cpp
|
|
|
|
Core/FileLoaders/HTTPFileLoader.h
|
|
|
|
Core/FileLoaders/LocalFileLoader.cpp
|
|
|
|
Core/FileLoaders/LocalFileLoader.h
|
2015-12-19 23:23:25 +00:00
|
|
|
Core/FileLoaders/RamCachingFileLoader.cpp
|
|
|
|
Core/FileLoaders/RamCachingFileLoader.h
|
2015-06-27 17:58:44 +00:00
|
|
|
Core/FileLoaders/RetryingFileLoader.cpp
|
|
|
|
Core/FileLoaders/RetryingFileLoader.h
|
2012-11-26 02:41:57 +00:00
|
|
|
Core/MIPS/JitCommon/JitCommon.cpp
|
|
|
|
Core/MIPS/JitCommon/JitCommon.h
|
2013-04-26 21:58:20 +00:00
|
|
|
Core/MIPS/JitCommon/JitBlockCache.cpp
|
|
|
|
Core/MIPS/JitCommon/JitBlockCache.h
|
2015-04-12 18:41:26 +00:00
|
|
|
Core/MIPS/JitCommon/JitState.cpp
|
|
|
|
Core/MIPS/JitCommon/JitState.h
|
2012-11-26 02:41:57 +00:00
|
|
|
Core/MIPS/MIPS.cpp
|
|
|
|
Core/MIPS/MIPS.h
|
|
|
|
Core/MIPS/MIPSAnalyst.cpp
|
|
|
|
Core/MIPS/MIPSAnalyst.h
|
|
|
|
Core/MIPS/MIPSCodeUtils.cpp
|
|
|
|
Core/MIPS/MIPSCodeUtils.h
|
|
|
|
Core/MIPS/MIPSDebugInterface.cpp
|
|
|
|
Core/MIPS/MIPSDebugInterface.h
|
|
|
|
Core/MIPS/MIPSDis.cpp
|
|
|
|
Core/MIPS/MIPSDis.h
|
|
|
|
Core/MIPS/MIPSDisVFPU.cpp
|
|
|
|
Core/MIPS/MIPSDisVFPU.h
|
|
|
|
Core/MIPS/MIPSInt.cpp
|
|
|
|
Core/MIPS/MIPSInt.h
|
|
|
|
Core/MIPS/MIPSIntVFPU.cpp
|
|
|
|
Core/MIPS/MIPSIntVFPU.h
|
2013-08-12 08:54:14 +00:00
|
|
|
Core/MIPS/MIPSStackWalk.cpp
|
|
|
|
Core/MIPS/MIPSStackWalk.h
|
2012-11-26 02:41:57 +00:00
|
|
|
Core/MIPS/MIPSTables.cpp
|
|
|
|
Core/MIPS/MIPSTables.h
|
|
|
|
Core/MIPS/MIPSVFPUUtils.cpp
|
|
|
|
Core/MIPS/MIPSVFPUUtils.h
|
2013-07-28 12:50:25 +00:00
|
|
|
Core/MIPS/MIPSAsm.cpp
|
|
|
|
Core/MIPS/MIPSAsm.h
|
2012-11-26 02:41:57 +00:00
|
|
|
Core/MemMap.cpp
|
|
|
|
Core/MemMap.h
|
|
|
|
Core/MemMapFunctions.cpp
|
2015-04-06 01:03:50 +00:00
|
|
|
Core/MemMapHelpers.h
|
2012-11-26 02:41:57 +00:00
|
|
|
Core/PSPLoaders.cpp
|
|
|
|
Core/PSPLoaders.h
|
2013-03-01 16:58:05 +00:00
|
|
|
Core/Reporting.cpp
|
|
|
|
Core/Reporting.h
|
2012-12-27 18:34:22 +00:00
|
|
|
Core/SaveState.cpp
|
|
|
|
Core/SaveState.h
|
2014-12-21 07:14:46 +00:00
|
|
|
Core/Screenshot.cpp
|
|
|
|
Core/Screenshot.h
|
2012-11-26 02:41:57 +00:00
|
|
|
Core/System.cpp
|
|
|
|
Core/System.h
|
2016-04-30 22:07:56 +00:00
|
|
|
Core/TextureReplacer.cpp
|
|
|
|
Core/TextureReplacer.h
|
2015-01-11 21:50:52 +00:00
|
|
|
Core/Util/AudioFormat.cpp
|
|
|
|
Core/Util/AudioFormat.h
|
2013-11-20 13:42:48 +00:00
|
|
|
Core/Util/GameManager.cpp
|
|
|
|
Core/Util/GameManager.h
|
2012-11-26 02:41:57 +00:00
|
|
|
Core/Util/BlockAllocator.cpp
|
|
|
|
Core/Util/BlockAllocator.h
|
|
|
|
Core/Util/PPGeDraw.cpp
|
|
|
|
Core/Util/PPGeDraw.h
|
|
|
|
Core/Util/ppge_atlas.cpp
|
|
|
|
Core/Util/ppge_atlas.h
|
2015-01-11 21:50:52 +00:00
|
|
|
${CORE_NEON}
|
2016-10-12 14:46:29 +00:00
|
|
|
${GPU_SOURCES}
|
2016-10-12 15:32:52 +00:00
|
|
|
git-version.cpp
|
2016-10-12 15:30:18 +00:00
|
|
|
ext/disarm.cpp
|
2016-12-05 15:51:28 +00:00
|
|
|
git-version.cpp)
|
|
|
|
|
|
|
|
if(ANDROID)
|
|
|
|
set(CoreExtraLibs ${CoreExtraLibs} android)
|
|
|
|
if(X86_64)
|
2017-10-22 19:57:35 +00:00
|
|
|
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-Bsymbolic")
|
2016-12-05 15:51:28 +00:00
|
|
|
endif()
|
2017-11-18 16:16:44 +00:00
|
|
|
endif()
|
|
|
|
|
2017-03-13 22:45:25 +00:00
|
|
|
set(CoreExtraLibs ${CoreExtraLibs} armips)
|
2016-12-05 15:51:28 +00:00
|
|
|
|
2017-12-07 16:02:00 +00:00
|
|
|
set(GlslangLibs glslang OGLCompiler OSDependent SPIRV SPVRemapper spirv-cross-glsl)
|
2017-02-16 16:06:03 +00:00
|
|
|
|
|
|
|
target_link_libraries(${CoreLibName} Common native kirk cityhash sfmt19937 xbrz xxhash ${GlslangLibs}
|
2016-10-12 15:30:18 +00:00
|
|
|
${CoreExtraLibs} ${OPENGL_LIBRARIES} ${X11_LIBRARIES} ${CMAKE_DL_LIBS})
|
2016-12-05 15:51:28 +00:00
|
|
|
|
2016-12-05 09:37:51 +00:00
|
|
|
if(FFmpeg_FOUND)
|
|
|
|
target_compile_definitions(${CoreLibName} PRIVATE USE_FFMPEG=1)
|
|
|
|
target_link_libraries(${CoreLibName}
|
|
|
|
FFmpeg::avcodec
|
|
|
|
FFmpeg::avformat
|
|
|
|
FFmpeg::avutil
|
|
|
|
FFmpeg::swresample
|
|
|
|
FFmpeg::swscale
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2012-11-18 16:00:27 +00:00
|
|
|
setup_target_project(${CoreLibName} Core)
|
|
|
|
|
2013-03-02 20:31:11 +00:00
|
|
|
# Generate git-version.cpp at build time.
|
2013-03-02 19:01:08 +00:00
|
|
|
add_custom_target(GitVersion ALL
|
|
|
|
DEPENDS something_that_never_exists)
|
|
|
|
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)
|
|
|
|
|
2013-03-02 20:31:11 +00:00
|
|
|
set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/git-version.cpp
|
2013-03-02 19:01:08 +00:00
|
|
|
PROPERTIES GENERATED TRUE)
|
|
|
|
add_dependencies(${CoreLibName} GitVersion)
|
|
|
|
|
2016-12-05 15:51:28 +00:00
|
|
|
set(WindowsFiles
|
|
|
|
Windows/DSoundStream.cpp
|
|
|
|
Windows/DSoundStream.h
|
|
|
|
Windows/Debugger/CPURegsInterface.h
|
|
|
|
Windows/Debugger/BreakpointWindow.cpp
|
|
|
|
Windows/Debugger/BreakpointWindow.h
|
|
|
|
Windows/Debugger/DumpMemoryWindow.cpp
|
|
|
|
Windows/Debugger/DumpMemoryWindow.h
|
|
|
|
Windows/Debugger/CtrlDisAsmView.cpp
|
|
|
|
Windows/Debugger/CtrlDisAsmView.h
|
|
|
|
Windows/Debugger/CtrlMemView.cpp
|
|
|
|
Windows/Debugger/CtrlMemView.h
|
|
|
|
Windows/Debugger/CtrlRegisterList.cpp
|
|
|
|
Windows/Debugger/CtrlRegisterList.h
|
|
|
|
Windows/Debugger/Debugger.h
|
|
|
|
Windows/Debugger/DebuggerShared.cpp
|
|
|
|
Windows/Debugger/DebuggerShared.h
|
|
|
|
Windows/Debugger/Debugger_Disasm.cpp
|
|
|
|
Windows/Debugger/Debugger_Disasm.h
|
|
|
|
Windows/Debugger/Debugger_MemoryDlg.cpp
|
|
|
|
Windows/Debugger/Debugger_MemoryDlg.h
|
|
|
|
Windows/Debugger/Debugger_Lists.cpp
|
|
|
|
Windows/Debugger/Debugger_Lists.h
|
|
|
|
Windows/Debugger/Debugger_Misc.cpp
|
|
|
|
Windows/Debugger/Debugger_Misc.h
|
|
|
|
Windows/Debugger/Debugger_SymbolMap.h
|
|
|
|
Windows/Debugger/Debugger_VFPUDlg.cpp
|
|
|
|
Windows/Debugger/Debugger_VFPUDlg.h
|
|
|
|
Windows/Debugger/SimpleELF.h
|
|
|
|
Windows/GEDebugger/CtrlDisplayListView.cpp
|
|
|
|
Windows/GEDebugger/SimpleGLWindow.cpp
|
|
|
|
Windows/GEDebugger/TabState.cpp
|
|
|
|
Windows/GEDebugger/VertexPreview.cpp
|
|
|
|
Windows/GEDebugger/CtrlDisplayListView.h
|
|
|
|
Windows/GEDebugger/SimpleGLWindow.h
|
|
|
|
Windows/GEDebugger/TabState.h
|
|
|
|
Windows/GEDebugger/GEDebugger.cpp
|
|
|
|
Windows/GEDebugger/TabDisplayLists.cpp
|
|
|
|
Windows/GEDebugger/TabVertices.cpp
|
|
|
|
Windows/GEDebugger/GEDebugger.h
|
|
|
|
Windows/GEDebugger/TabDisplayLists.h
|
|
|
|
Windows/GEDebugger/TabVertices.h
|
|
|
|
Windows/DinputDevice.cpp
|
|
|
|
Windows/DinputDevice.h
|
|
|
|
Windows/DSoundStream.cpp
|
|
|
|
Windows/DSoundStream.h
|
|
|
|
Windows/EmuThread.cpp
|
|
|
|
Windows/EmuThread.h
|
|
|
|
Windows/GeDebugger/GeDebugger.cpp
|
|
|
|
Windows/Globals.cpp
|
|
|
|
Windows/GPU/D3D9Context.cpp
|
|
|
|
Windows/GPU/D3D9Context.h
|
2017-02-16 16:06:03 +00:00
|
|
|
Windows/GPU/D3D11Context.cpp
|
|
|
|
Windows/GPU/D3D11Context.h
|
2016-12-05 15:51:28 +00:00
|
|
|
Windows/GPU/WindowsGLContext.cpp
|
|
|
|
Windows/GPU/WindowsVulkanContext.cpp
|
|
|
|
Windows/InputBox.cpp
|
|
|
|
Windows/InputBox.h
|
|
|
|
Windows/InputDevice.cpp
|
|
|
|
Windows/InputDevice.h
|
|
|
|
Windows/KeyboardDevice.cpp
|
|
|
|
Windows/KeyboardDevice.h
|
|
|
|
Windows/W32Util/DialogManager.cpp
|
|
|
|
Windows/W32Util/DialogManager.h
|
|
|
|
Windows/W32Util/Misc.cpp
|
|
|
|
Windows/W32Util/Misc.h
|
|
|
|
Windows/W32Util/PropertySheet.cpp
|
|
|
|
Windows/W32Util/PropertySheet.h
|
|
|
|
Windows/W32Util/ShellUtil.cpp
|
|
|
|
Windows/W32Util/ShellUtil.h
|
|
|
|
Windows/W32Util/TabControl.cpp
|
|
|
|
Windows/W32Util/TabControl.h
|
|
|
|
Windows/W32Util/PropertySheet.cpp
|
|
|
|
Windows/W32Util/PropertySheet.h
|
|
|
|
Windows/WindowsHost.cpp
|
|
|
|
Windows/WindowsHost.h
|
|
|
|
Windows/MainWindow.cpp
|
|
|
|
Windows/MainWindow.h
|
|
|
|
Windows/MainWindowMenu.cpp
|
|
|
|
Windows/MainWindowMenu.h
|
|
|
|
Windows/RawInput.cpp
|
|
|
|
Windows/RawInput.h
|
|
|
|
Windows/TouchInputHandler.cpp
|
|
|
|
Windows/TouchInputHandler.h
|
|
|
|
Windows/XPTheme.h
|
|
|
|
Windows/XinputDevice.cpp
|
|
|
|
Windows/XinputDevice.h
|
|
|
|
Windows/main.cpp
|
|
|
|
Windows/main.h
|
|
|
|
Windows/ppsspp.rc
|
|
|
|
Windows/resource.h
|
|
|
|
Windows/stdafx.cpp
|
|
|
|
Windows/stdafx.h)
|
|
|
|
|
|
|
|
list(APPEND LinkCommon ${CoreLibName} ${CMAKE_THREAD_LIBS_INIT})
|
2012-11-18 16:00:27 +00:00
|
|
|
|
|
|
|
if(WIN32)
|
2017-03-13 16:29:22 +00:00
|
|
|
list(APPEND LinkCommon kernel32 user32 gdi32 shell32 comctl32 dsound xinput)
|
2016-12-05 15:51:28 +00:00
|
|
|
#setup_target_project(${TargetBin} Windows)
|
|
|
|
list(APPEND NativeAppSource ${WindowsFiles})
|
2012-11-18 16:00:27 +00:00
|
|
|
endif()
|
|
|
|
|
2012-12-16 15:47:39 +00:00
|
|
|
set(NativeAssets
|
2012-12-02 04:48:00 +00:00
|
|
|
android/assets/ui_atlas.zim
|
2016-10-14 20:46:01 +00:00
|
|
|
assets/lang
|
2013-10-17 16:09:44 +00:00
|
|
|
assets/shaders
|
2017-06-07 06:25:42 +00:00
|
|
|
assets/Roboto-Condensed.ttf
|
|
|
|
assets/7z.png
|
2015-09-27 09:50:23 +00:00
|
|
|
assets/compat.ini
|
2016-09-20 21:04:01 +00:00
|
|
|
assets/gamecontrollerdb.txt
|
2017-06-07 06:25:42 +00:00
|
|
|
assets/langregion.ini
|
|
|
|
assets/ppge_atlas.zim
|
|
|
|
assets/rargray.png
|
|
|
|
assets/unknown.png
|
|
|
|
assets/zip.png)
|
2012-12-02 04:48:00 +00:00
|
|
|
|
2013-12-06 10:33:51 +00:00
|
|
|
|
2013-10-20 00:35:46 +00:00
|
|
|
if(HEADLESS)
|
|
|
|
add_executable(PPSSPPHeadless
|
|
|
|
headless/Headless.cpp
|
2017-09-20 15:58:42 +00:00
|
|
|
headless/StubHost.cpp
|
2013-10-20 00:35:46 +00:00
|
|
|
headless/StubHost.h
|
|
|
|
headless/Compare.cpp
|
2017-06-18 19:15:59 +00:00
|
|
|
headless/Compare.h
|
|
|
|
headless/SDLHeadlessHost.cpp
|
|
|
|
headless/SDLHeadlessHost.h)
|
2013-10-20 00:35:46 +00:00
|
|
|
target_link_libraries(PPSSPPHeadless
|
|
|
|
${COCOA_LIBRARY} ${LinkCommon})
|
|
|
|
setup_target_project(PPSSPPHeadless headless)
|
|
|
|
endif()
|
|
|
|
|
2014-01-09 11:09:07 +00:00
|
|
|
if(UNITTEST)
|
|
|
|
add_executable(unitTest
|
|
|
|
unittest/UnitTest.cpp
|
2015-04-03 21:50:51 +00:00
|
|
|
unittest/TestArmEmitter.cpp
|
|
|
|
unittest/TestArm64Emitter.cpp
|
|
|
|
unittest/TestX64Emitter.cpp
|
2015-07-03 22:25:40 +00:00
|
|
|
unittest/TestVertexJit.cpp
|
2015-04-03 21:50:51 +00:00
|
|
|
unittest/JitHarness.cpp
|
|
|
|
Core/MIPS/ARM/ArmRegCache.cpp
|
|
|
|
Core/MIPS/ARM/ArmRegCacheFPU.cpp
|
2014-01-09 11:09:07 +00:00
|
|
|
)
|
|
|
|
target_link_libraries(unitTest
|
2015-04-03 21:50:51 +00:00
|
|
|
${COCOA_LIBRARY} ${LinkCommon} Common)
|
2014-01-09 11:09:07 +00:00
|
|
|
setup_target_project(unitTest unittest)
|
|
|
|
endif()
|
|
|
|
|
2012-12-02 04:48:00 +00:00
|
|
|
if (TargetBin)
|
2014-07-23 05:54:46 +00:00
|
|
|
if (IOS OR APPLE)
|
2015-05-27 07:37:49 +00:00
|
|
|
if (APPLE AND NOT IOS)
|
2016-10-14 20:36:23 +00:00
|
|
|
set(ICON_PATH_ABS ${CMAKE_CURRENT_SOURCE_DIR}/icons/ppsspp.icns)
|
2015-02-02 08:17:03 +00:00
|
|
|
set( MACOSX_BUNDLE_ICON_FILE ppsspp.icns )
|
2014-07-23 05:54:46 +00:00
|
|
|
set_source_files_properties(${ICON_PATH_ABS} PROPERTIES MACOSX_PACKAGE_LOCATION "Resources")
|
2015-05-27 07:37:49 +00:00
|
|
|
endif()
|
2014-07-23 06:12:18 +00:00
|
|
|
|
|
|
|
# TODO: there must a native way to copy these.
|
|
|
|
# Now this is very prone to errors when changes occur.
|
2015-05-27 07:37:49 +00:00
|
|
|
# Also better to have assets under Resources dir for OS X.
|
2017-03-31 21:50:17 +00:00
|
|
|
file(GLOB_RECURSE FLASH0_FILES assets/flash0/*)
|
2016-10-14 20:33:45 +00:00
|
|
|
file(GLOB_RECURSE LANG_FILES assets/lang/*)
|
2014-07-23 06:12:18 +00:00
|
|
|
file(GLOB_RECURSE SHADER_FILES assets/shaders/*)
|
2015-05-27 07:37:49 +00:00
|
|
|
|
|
|
|
if (APPLE AND NOT IOS)
|
2014-07-23 06:12:18 +00:00
|
|
|
set_source_files_properties(${NativeAssets} PROPERTIES MACOSX_PACKAGE_LOCATION "MacOS/assets")
|
|
|
|
set_source_files_properties(${FLASH0_FILES} PROPERTIES MACOSX_PACKAGE_LOCATION "MacOS/assets/flash0/font")
|
|
|
|
set_source_files_properties(${LANG_FILES} PROPERTIES MACOSX_PACKAGE_LOCATION "MacOS/assets/lang")
|
|
|
|
set_source_files_properties(${SHADER_FILES} PROPERTIES MACOSX_PACKAGE_LOCATION "MacOS/assets/shaders")
|
2015-05-27 07:37:49 +00:00
|
|
|
endif()
|
2015-02-02 08:17:03 +00:00
|
|
|
|
2014-10-08 20:00:01 +00:00
|
|
|
add_executable(${TargetBin} MACOSX_BUNDLE ${ICON_PATH_ABS} ${NativeAssets} ${SHADER_FILES} ${FLASH0_FILES} ${LANG_FILES} ${NativeAppSource})
|
2016-12-05 16:34:26 +00:00
|
|
|
elseif(WIN32)
|
2017-02-16 16:06:03 +00:00
|
|
|
add_executable(${TargetBin} WIN32 ${NativeAppSource})
|
2016-12-05 16:34:26 +00:00
|
|
|
set_target_properties(${TargetBin} PROPERTIES LINK_FLAGS "/SUBSYSTEM:WINDOWS")
|
|
|
|
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT ${TargetBin})
|
2013-02-24 03:23:04 +00:00
|
|
|
else()
|
|
|
|
add_executable(${TargetBin} ${NativeAppSource})
|
|
|
|
endif()
|
2015-04-03 21:50:51 +00:00
|
|
|
target_link_libraries(${TargetBin} ${LinkCommon} Common)
|
2012-11-18 16:00:27 +00:00
|
|
|
endif()
|
|
|
|
|
2013-02-24 03:23:04 +00:00
|
|
|
# installs
|
2017-03-13 22:45:25 +00:00
|
|
|
if(NOT ANDROID)
|
2012-12-16 15:47:39 +00:00
|
|
|
file(INSTALL ${NativeAssets} DESTINATION assets)
|
2017-03-31 21:50:17 +00:00
|
|
|
file(INSTALL assets/flash0 DESTINATION assets)
|
2017-03-13 22:45:25 +00:00
|
|
|
endif()
|
2013-03-24 06:18:00 +00:00
|
|
|
# packaging and code signing
|
|
|
|
if(IOS)
|
2013-03-15 08:29:33 +00:00
|
|
|
file(GLOB IOSAssets ios/assets/*.png)
|
2015-10-08 04:43:33 +00:00
|
|
|
list(REMOVE_ITEM IOSAssets ${CMAKE_CURRENT_SOURCE_DIR}/ios/assets/Default-568h@2x.png)
|
|
|
|
list(REMOVE_ITEM IOSAssets ${CMAKE_CURRENT_SOURCE_DIR}/ios/assets/Default-568h@3x.png)
|
2016-10-11 01:27:54 +00:00
|
|
|
file(INSTALL ${IOSAssets} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/assets)
|
2015-10-08 04:43:33 +00:00
|
|
|
file(GLOB IOSAssets ios/assets/Default-568h@*.png)
|
2016-10-11 01:27:54 +00:00
|
|
|
file(INSTALL ${IOSAssets} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|
2013-03-16 06:50:31 +00:00
|
|
|
if (IOS_DEBUG)
|
2016-10-11 01:27:54 +00:00
|
|
|
file(INSTALL pspautotests DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/assets)
|
2013-03-16 06:50:31 +00:00
|
|
|
endif()
|
2013-02-24 03:23:04 +00:00
|
|
|
set(RSRC_XIB_FILES assets/Icon@2x.png)
|
2013-03-16 06:50:31 +00:00
|
|
|
set_source_files_properties(${RSRC_XIB_FILES}
|
|
|
|
PROPERTIES MACOSX_PACKAGE_LOCATION Resources
|
|
|
|
)
|
2016-10-11 01:27:54 +00:00
|
|
|
if(CMAKE_GENERATOR STREQUAL "Xcode")
|
|
|
|
set(APP_DIR_NAME "$(TARGET_BUILD_DIR)/$(FULL_PRODUCT_NAME)")
|
|
|
|
else()
|
|
|
|
set(APP_DIR_NAME "$<TARGET_FILE_DIR:PPSSPP>")
|
|
|
|
endif()
|
2013-02-24 03:23:04 +00:00
|
|
|
add_custom_command(TARGET PPSSPP POST_BUILD
|
2016-10-11 01:27:54 +00:00
|
|
|
COMMAND mkdir -p ${APP_DIR_NAME}
|
|
|
|
COMMAND tar -c -C ${CMAKE_CURRENT_BINARY_DIR} --exclude .DS_Store --exclude .git assets *.png | tar -x -C ${APP_DIR_NAME}
|
2013-03-16 08:04:38 +00:00
|
|
|
)
|
2013-03-15 08:29:33 +00:00
|
|
|
set_target_properties(${TargetBin} PROPERTIES
|
2016-10-12 11:24:53 +00:00
|
|
|
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/ios/PPSSPP-Info.plist"
|
2013-03-15 08:29:33 +00:00
|
|
|
XCODE_ATTRIBUTE_TARGETED_DEVICE_FAMILY "iPhone/iPad"
|
2014-05-17 05:53:40 +00:00
|
|
|
XCODE_ATTRIBUTE_CLANG_ENABLE_OBJC_ARC YES
|
2015-09-17 21:03:11 +00:00
|
|
|
XCODE_ATTRIBUTE_ENABLE_BITCODE NO
|
2015-11-03 17:34:33 +00:00
|
|
|
XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "-"
|
2013-03-15 08:29:33 +00:00
|
|
|
)
|
2013-02-17 14:04:44 +00:00
|
|
|
endif()
|