mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
add webOS to CMakeLists
This commit is contained in:
1 parent
d1171e41c0
commit
54b5a77430
1 file changed
+18
-1
+18
-1
@@ -48,7 +48,9 @@ if(CMAKE_SYSTEM_PROCESSOR)
|
||||
execute_process(COMMAND cat /proc/cpuinfo OUTPUT_VARIABLE OUTSTR)
|
||||
string(FIND "${OUTSTR}" "ODROID-XU" pos)
|
||||
if(NOT (pos LESS 0))
|
||||
add_compile_options(-mfloat-abi=hard -marm -mtune=cortex-a15.cortex-a7 -mcpu=cortex-a15 -fomit-frame-pointer)
|
||||
if(NOT WEBOS)
|
||||
add_compile_options(-mfloat-abi=hard -marm -mtune=cortex-a15.cortex-a7 -mcpu=cortex-a15 -fomit-frame-pointer)
|
||||
endif()
|
||||
set(ARM_NO_VULKAN ON)
|
||||
endif()
|
||||
endif()
|
||||
@@ -114,6 +116,11 @@ else()
|
||||
set(DEFAULT_USE_SYSTEM_LIBSDL2 ON)
|
||||
endif()
|
||||
|
||||
if(CMAKE_CXX_COMPILER MATCHES "webos" OR
|
||||
CMAKE_CXX_COMPILER MATCHES "starfish")
|
||||
set(WEBOS ON)
|
||||
endif()
|
||||
|
||||
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules)
|
||||
if(NOT IOS)
|
||||
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/sdl)
|
||||
@@ -211,6 +218,13 @@ if(USE_CCACHE)
|
||||
include(ccache)
|
||||
endif()
|
||||
|
||||
if(WEBOS)
|
||||
set(ARMV7 ON)
|
||||
set(USING_X11_VULKAN OFF)
|
||||
set(USING_GLES2 ON)
|
||||
set(USE_SYSTEM_ZSTD OFF)
|
||||
endif()
|
||||
|
||||
if(UNIX AND NOT (APPLE OR ANDROID) AND VULKAN)
|
||||
if(USING_X11_VULKAN)
|
||||
message("Using X11 for Vulkan")
|
||||
@@ -1013,6 +1027,9 @@ if(USE_FFMPEG)
|
||||
set(PLATFORM_ARCH "Windows/x86")
|
||||
endif()
|
||||
endif()
|
||||
if(WEBOS)
|
||||
set(PLATFORM_ARCH "linux/webos")
|
||||
endif()
|
||||
if(PLATFORM_ARCH)
|
||||
set(FFMPEG_DIR "ffmpeg/${PLATFORM_ARCH}")
|
||||
else()
|
||||
|
||||
Reference in new issue
Block a user