Skip to content

Commit

Permalink
~ Trying the compile the asm code into ios build.
Browse files Browse the repository at this point in the history
  • Loading branch information
gindemit committed Jul 6, 2023
1 parent f31ab26 commit f0ff1ed
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion projects/CMake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ if ("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "armv7-a" OR "${CMAKE_SYSTEM_PROCESSOR}
enable_language(ASM)
endif()

if (ANDROID OR RLOTTIE_IOS)
if (ANDROID)
if ("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "armv7-a")
message("Compile asm source for armv7-a")
target_compile_options(rlottie PUBLIC -fno-integrated-as)
Expand All @@ -57,6 +57,12 @@ if (ANDROID OR RLOTTIE_IOS)
endif()
endif()

if (RLOTTIE_IOS)
message("Compile asm source for iOS")
target_compile_definitions(rlottie PUBLIC USE_ARM_NEON __ARM64_NEON__ __ARM_NEON__)
target_sources(rlottie PRIVATE ${PIXMAN_ROOT}/pixman-arma64-neon-asm.S)
endif()

if (WIN32)
set(RLOTTIE_LIBRARY_NAME rlottie.lib)
elseif(RLOTTIE_OSX)
Expand Down

0 comments on commit f0ff1ed

Please sign in to comment.