diff options
Diffstat (limited to 'cmake/scripts/linux/ArchSetup.cmake')
| -rw-r--r-- | cmake/scripts/linux/ArchSetup.cmake | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/cmake/scripts/linux/ArchSetup.cmake b/cmake/scripts/linux/ArchSetup.cmake index c31becd..bf32fe0 100644 --- a/cmake/scripts/linux/ArchSetup.cmake +++ b/cmake/scripts/linux/ArchSetup.cmake | |||
| @@ -1,6 +1,10 @@ | |||
| 1 | set(ARCH_DEFINES -D_LINUX -DTARGET_POSIX -DTARGET_LINUX) | 1 | set(ARCH_DEFINES -D_LINUX -DTARGET_POSIX -DTARGET_LINUX) |
| 2 | set(SYSTEM_DEFINES -D__STDC_CONSTANT_MACROS -D_LARGEFILE64_SOURCE | 2 | # temp until further cleanup is done |
| 3 | -D_FILE_OFFSET_BITS=64) | 3 | if(CORE_PLATFORM_NAME_LC STREQUAL rbpi) |
| 4 | list(APPEND ARCH_DEFINES -D_ARMEL -DTARGET_RASPBERRY_PI) | ||
| 5 | endif() | ||
| 6 | set(SYSTEM_DEFINES -D__STDC_CONSTANT_MACROS -D_FILE_DEFINED | ||
| 7 | -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64) | ||
| 4 | set(PLATFORM_DIR linux) | 8 | set(PLATFORM_DIR linux) |
| 5 | set(CMAKE_SYSTEM_NAME Linux) | 9 | set(CMAKE_SYSTEM_NAME Linux) |
| 6 | if(WITH_ARCH) | 10 | if(WITH_ARCH) |
| @@ -13,6 +17,14 @@ else() | |||
| 13 | set(ARCH i486-linux) | 17 | set(ARCH i486-linux) |
| 14 | set(NEON False) | 18 | set(NEON False) |
| 15 | add_options(CXX ALL_BUILDS "-msse") | 19 | add_options(CXX ALL_BUILDS "-msse") |
| 20 | elseif(CPU STREQUAL arm1176jzf-s) | ||
| 21 | set(ARCH arm) | ||
| 22 | set(NEON False) | ||
| 23 | set(NEON_FLAGS "-mcpu=arm1176jzf-s -mtune=arm1176jzf-s -mfloat-abi=hard -mfpu=vfp") | ||
| 24 | elseif(CPU MATCHES "cortex-a7" OR CPU MATCHES "cortex-a53") | ||
| 25 | set(ARCH arm) | ||
| 26 | set(NEON True) | ||
| 27 | set(NEON_FLAGS "-fPIC -mcpu=cortex-a7 -mfloat-abi=hard -mfpu=neon-vfpv4 -mvectorize-with-neon-quad") | ||
| 16 | elseif(CPU MATCHES arm) | 28 | elseif(CPU MATCHES arm) |
| 17 | set(ARCH arm) | 29 | set(ARCH arm) |
| 18 | set(NEON True) | 30 | set(NEON True) |
| @@ -44,3 +56,8 @@ endif() | |||
| 44 | if(ENABLE_MIR) | 56 | if(ENABLE_MIR) |
| 45 | set(ENABLE_VDPAU OFF CACHE BOOL "Disabling VDPAU since no Mir support" FORCE) | 57 | set(ENABLE_VDPAU OFF CACHE BOOL "Disabling VDPAU since no Mir support" FORCE) |
| 46 | endif() | 58 | endif() |
| 59 | |||
| 60 | if(ENABLE_GBM) | ||
| 61 | set(ENABLE_VDPAU OFF CACHE BOOL "Disabling VDPAU" FORCE) | ||
| 62 | set(ENABLE_VAAPI OFF CACHE BOOL "Disabling VAAPI" FORCE) | ||
| 63 | endif() | ||
