|
|
@ -1,16 +1,42 @@
|
|
|
|
diff -up x265_1.9/source/CMakeLists.txt.armhfp x265_1.9/source/CMakeLists.txt
|
|
|
|
--- ./source/CMakeLists.txt.orig 2016-11-08 00:30:22.407038669 +0000
|
|
|
|
--- x265_1.9/source/CMakeLists.txt.armhfp 2016-07-19 03:10:51.163733946 +0200
|
|
|
|
+++ ./source/CMakeLists.txt 2016-11-08 00:58:10.478661484 +0000
|
|
|
|
+++ x265_1.9/source/CMakeLists.txt 2016-07-19 03:13:15.638665651 +0200
|
|
|
|
@@ -41,9 +41,11 @@ SET(CMAKE_MODULE_PATH "${PROJECT_SOURCE_
|
|
|
|
@@ -59,9 +59,12 @@ elseif(POWERMATCH GREATER "-1")
|
|
|
|
# System architecture detection
|
|
|
|
|
|
|
|
string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" SYSPROC)
|
|
|
|
|
|
|
|
set(X86_ALIASES x86 i386 i686 x86_64 amd64)
|
|
|
|
|
|
|
|
-set(ARM_ALIASES armv6l armv7l)
|
|
|
|
|
|
|
|
+set(ARMv6_ALIASES armv6l )
|
|
|
|
|
|
|
|
+set(ARMv7_ALIASES armv7l)
|
|
|
|
|
|
|
|
list(FIND X86_ALIASES "${SYSPROC}" X86MATCH)
|
|
|
|
|
|
|
|
-list(FIND ARM_ALIASES "${SYSPROC}" ARMMATCH)
|
|
|
|
|
|
|
|
+list(FIND ARMv6_ALIASES "${SYSPROC}" ARMv6MATCH)
|
|
|
|
|
|
|
|
+list(FIND ARMv7_ALIASES "${SYSPROC}" ARMv7MATCH)
|
|
|
|
|
|
|
|
set(POWER_ALIASES ppc64 ppc64le)
|
|
|
|
|
|
|
|
list(FIND POWER_ALIASES "${SYSPROC}" POWERMATCH)
|
|
|
|
|
|
|
|
if("${SYSPROC}" STREQUAL "" OR X86MATCH GREATER "-1")
|
|
|
|
|
|
|
|
@@ -60,15 +62,24 @@ elseif(POWERMATCH GREATER "-1")
|
|
|
|
|
|
|
|
message(STATUS "Detected POWER target processor")
|
|
|
|
set(POWER 1)
|
|
|
|
set(POWER 1)
|
|
|
|
add_definitions(-DX265_ARCH_POWER=1)
|
|
|
|
add_definitions(-DX265_ARCH_POWER=1)
|
|
|
|
elseif(${SYSPROC} STREQUAL "armv6l")
|
|
|
|
-elseif(ARMMATCH GREATER "-1")
|
|
|
|
|
|
|
|
+elseif(ARMv6MATCH GREATER "-1")
|
|
|
|
|
|
|
|
if(CROSS_COMPILE_ARM)
|
|
|
|
|
|
|
|
message(STATUS "Cross compiling for ARM arch")
|
|
|
|
|
|
|
|
else()
|
|
|
|
|
|
|
|
set(CROSS_COMPILE_ARM 0)
|
|
|
|
|
|
|
|
endif()
|
|
|
|
- message(STATUS "Detected ARM target processor")
|
|
|
|
- message(STATUS "Detected ARM target processor")
|
|
|
|
+ message(STATUS "Detected ARMv6 target processor")
|
|
|
|
+ message(STATUS "Detected ARMv6 target processor")
|
|
|
|
set(ARM 1)
|
|
|
|
set(ARM 1)
|
|
|
|
add_definitions(-DX265_ARCH_ARM=1 -DHAVE_ARMV6=1)
|
|
|
|
add_definitions(-DX265_ARCH_ARM=1 -DHAVE_ARMV6=1)
|
|
|
|
+elseif(${SYSPROC} STREQUAL "armv7l")
|
|
|
|
+elseif(ARMv7MATCH GREATER "-1")
|
|
|
|
+ message(STATUS "Detected ARMv7 system processor")
|
|
|
|
+ if(CROSS_COMPILE_ARM)
|
|
|
|
|
|
|
|
+ message(STATUS "Cross compiling for ARM arch")
|
|
|
|
|
|
|
|
+ else()
|
|
|
|
|
|
|
|
+ set(CROSS_COMPILE_ARM 0)
|
|
|
|
|
|
|
|
+ endif()
|
|
|
|
|
|
|
|
+ message(STATUS "Detected ARv7 target processor")
|
|
|
|
|
|
|
|
+ set(ARM 1)
|
|
|
|
+ add_definitions(-DX265_ARCH_ARM=1 -DHAVE_ARMV7=1)
|
|
|
|
+ add_definitions(-DX265_ARCH_ARM=1 -DHAVE_ARMV7=1)
|
|
|
|
else()
|
|
|
|
else()
|
|
|
|
message(STATUS "CMAKE_SYSTEM_PROCESSOR value `${CMAKE_SYSTEM_PROCESSOR}` is unknown")
|
|
|
|
message(STATUS "CMAKE_SYSTEM_PROCESSOR value `${CMAKE_SYSTEM_PROCESSOR}` is unknown")
|
|
|
|