Skip to content

Commit

Permalink
Improve libffi config files directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
maoabc committed Dec 21, 2022
1 parent a28116d commit 0f33996
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions nmmvm/jna-android/src/main/cpp/mylibffi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ if (${ANDROID_ABI} STREQUAL "arm64-v8a")
libffi/src/aarch64/sysv.S
libffi/src/aarch64/ffi.c
)
set(LIBFFI_INCLUDES libffi/src/aarch64)
set(LIBFFI_INCLUDES libffi/src/aarch64 myconfig/aarch64)
elseif (${ANDROID_ABI} STREQUAL "armeabi-v7a")
set(TARGET ARM)
set(ARCH_SRCS
libffi/src/arm/sysv.S
libffi/src/arm/ffi.c
)
set(LIBFFI_INCLUDES libffi/src/arm)
set(LIBFFI_INCLUDES libffi/src/arm myconfig/arm)

elseif (${ANDROID_ABI} STREQUAL "x86")
set(TARGET X86)
Expand All @@ -58,7 +58,7 @@ elseif (${ANDROID_ABI} STREQUAL "x86")
libffi/src/x86/ffi.c
)
set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -DHAVE_AS_X86_PCREL -DHAVE_AS_ASCII_PSEUDO_OP")
set(LIBFFI_INCLUDES libffi/src/x86)
set(LIBFFI_INCLUDES libffi/src/x86 myconfig/x86)
elseif (${ANDROID_ABI} STREQUAL "x86_64")
set(TARGET X86_64)
set(ARCH_SRCS
Expand All @@ -68,7 +68,7 @@ elseif (${ANDROID_ABI} STREQUAL "x86_64")
libffi/src/x86/win64.S
)
set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -DHAVE_AS_X86_PCREL -DHAVE_AS_ASCII_PSEUDO_OP")
set(LIBFFI_INCLUDES libffi/src/x86)
set(LIBFFI_INCLUDES libffi/src/x86 myconfig/x86)
else ()
message(FATAL_ERROR "unknown arch")
endif ()
Expand Down
2 changes: 1 addition & 1 deletion nmmvm/jna-android/src/main/cpp/mylibffi/libffi/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ depcomp
doc/libffi.info
*~
fficonfig.h.in
#fficonfig.h
fficonfig.h
include/ffi.h
include/ffitarget.h
install-sh
Expand Down

0 comments on commit 0f33996

Please sign in to comment.