Skip to content

Commit

Permalink
~ Removed asm from CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
gindemit committed Jul 10, 2023
1 parent a780997 commit 566a379
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions projects/CMake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)

set (RLOTTIE_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../../dependency/rlottie)
set (PIXMAN_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../../dependency/pixman)
set(CMAKE_ASM_FLAGS "${CFLAGS} -x assembler-with-cpp")

if (RLOTTIE_IOS)
set(CMAKE_XCODE_ATTRIBUTE_ENABLE_BITCODE NO)
Expand Down Expand Up @@ -39,27 +38,20 @@ else()
add_library (LottiePlugin SHARED ${RLOTTIE_PLUGIN_LIBRARY_SOURCES})
endif()

if ("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "armv7-a" OR "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "aarch64")
enable_language(ASM)
endif()

if (ANDROID)
if ("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "armv7-a")
message("Compile asm source for armv7-a")
target_compile_options(rlottie PUBLIC -fno-integrated-as)
message("Compile cpp source for armv7-a")
target_compile_definitions(rlottie PUBLIC USE_ARM_NEON)
target_sources(rlottie PRIVATE ${PIXMAN_ROOT}/pixman-arm-intrisics.cpp)
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "aarch64")
message("Compile asm source for aarch64")
target_compile_options(rlottie PUBLIC -fno-integrated-as)
message("Compile cpp source for aarch64")
target_compile_definitions(rlottie PUBLIC USE_ARM_NEON __ARM64_NEON__)
target_sources(rlottie PRIVATE ${PIXMAN_ROOT}/pixman-arm-intrisics.cpp)
endif()
endif()

if (RLOTTIE_IOS)
message("Compile asm source for iOS")
target_compile_options(rlottie PUBLIC -fno-integrated-as)
message("Compile cpp source for iOS")
target_compile_definitions(rlottie PUBLIC USE_ARM_NEON __ARM64_NEON__ __ARM_NEON__)
target_sources(rlottie PRIVATE ${PIXMAN_ROOT}/pixman-arm-intrisics.cpp)
endif()
Expand Down

0 comments on commit 566a379

Please sign in to comment.