comparison Resources/CMake/PixmanConfiguration.cmake @ 39:9ee7e2f5f1a3

sync
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 21 Dec 2016 14:19:38 +0100
parents 22ab2d8566fa
children 28956ed68280
comparison
equal deleted inserted replaced
38:bfce0add15f2 39:9ee7e2f5f1a3
79 else() 79 else()
80 message("Processor: Not applicable") 80 message("Processor: Not applicable")
81 endif() 81 endif()
82 82
83 83
84 if (CMAKE_SYSTEM_NAME STREQUAL "Windows") 84 ##########################
85 ## Portable Google NaCl
86 ##########################
87
88 if (CMAKE_SYSTEM_NAME STREQUAL "PNaCl")
89 # No hardware acceleration
90 set(PIXMAN_DEFINITIONS "${PIXMAN_DEFINITIONS};TLS=__thread")
91
92 elseif (CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
93 ##########################
94 ## Emscripten (asm.js)
95 ##########################
96
97 # No threading support
98 set(PIXMAN_DEFINITIONS "${PIXMAN_DEFINITIONS};PIXMAN_NO_TLS=1;HAVE_GCC_VECTOR_EXTENSIONS")
99
100 elseif (CMAKE_SYSTEM_NAME STREQUAL "Windows")
85 101
86 ########################## 102 ##########################
87 ## Windows 32 or 64 103 ## Windows 32 or 64
88 ########################## 104 ##########################
89 105
181 ${PIXMAN_SOURCES_DIR}/pixman/pixman-arm-simd-asm.S 197 ${PIXMAN_SOURCES_DIR}/pixman/pixman-arm-simd-asm.S
182 ${PIXMAN_SOURCES_DIR}/pixman/pixman-arm-simd-asm-scaled.S 198 ${PIXMAN_SOURCES_DIR}/pixman/pixman-arm-simd-asm-scaled.S
183 ${PIXMAN_SOURCES_DIR}/pixman/pixman-arm-simd.c 199 ${PIXMAN_SOURCES_DIR}/pixman/pixman-arm-simd.c
184 ) 200 )
185 201
186 ##########################
187 ## Portable Google NaCl
188 ##########################
189
190 elseif (CMAKE_SYSTEM_NAME STREQUAL "PNaCl")
191 # No hardware acceleration
192 set(PIXMAN_DEFINITIONS "${PIXMAN_DEFINITIONS};TLS=__thread")
193
194 else() 202 else()
195 message(FATAL_ERROR "Support your platform here") 203 message(FATAL_ERROR "Support your platform here")
196 endif() 204 endif()
197 205
198 206