From 0f339969f68da7ce8671272986876bd0d3f9f8e1 Mon Sep 17 00:00:00 2001 From: mao Date: Thu, 22 Dec 2022 04:20:17 +0800 Subject: [PATCH] Improve libffi config files directory. --- nmmvm/jna-android/src/main/cpp/mylibffi/CMakeLists.txt | 8 ++++---- nmmvm/jna-android/src/main/cpp/mylibffi/libffi/.gitignore | 2 +- .../mylibffi/{libffi/src => myconfig}/aarch64/fficonfig.h | 0 .../cpp/mylibffi/{libffi/src => myconfig}/arm/fficonfig.h | 0 .../cpp/mylibffi/{libffi/src => myconfig}/x86/fficonfig.h | 0 5 files changed, 5 insertions(+), 5 deletions(-) rename nmmvm/jna-android/src/main/cpp/mylibffi/{libffi/src => myconfig}/aarch64/fficonfig.h (100%) rename nmmvm/jna-android/src/main/cpp/mylibffi/{libffi/src => myconfig}/arm/fficonfig.h (100%) rename nmmvm/jna-android/src/main/cpp/mylibffi/{libffi/src => myconfig}/x86/fficonfig.h (100%) diff --git a/nmmvm/jna-android/src/main/cpp/mylibffi/CMakeLists.txt b/nmmvm/jna-android/src/main/cpp/mylibffi/CMakeLists.txt index f5a5f4b..87a66b4 100644 --- a/nmmvm/jna-android/src/main/cpp/mylibffi/CMakeLists.txt +++ b/nmmvm/jna-android/src/main/cpp/mylibffi/CMakeLists.txt @@ -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) @@ -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 @@ -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 () diff --git a/nmmvm/jna-android/src/main/cpp/mylibffi/libffi/.gitignore b/nmmvm/jna-android/src/main/cpp/mylibffi/libffi/.gitignore index 3089405..e393a47 100644 --- a/nmmvm/jna-android/src/main/cpp/mylibffi/libffi/.gitignore +++ b/nmmvm/jna-android/src/main/cpp/mylibffi/libffi/.gitignore @@ -15,7 +15,7 @@ depcomp doc/libffi.info *~ fficonfig.h.in -#fficonfig.h +fficonfig.h include/ffi.h include/ffitarget.h install-sh diff --git a/nmmvm/jna-android/src/main/cpp/mylibffi/libffi/src/aarch64/fficonfig.h b/nmmvm/jna-android/src/main/cpp/mylibffi/myconfig/aarch64/fficonfig.h similarity index 100% rename from nmmvm/jna-android/src/main/cpp/mylibffi/libffi/src/aarch64/fficonfig.h rename to nmmvm/jna-android/src/main/cpp/mylibffi/myconfig/aarch64/fficonfig.h diff --git a/nmmvm/jna-android/src/main/cpp/mylibffi/libffi/src/arm/fficonfig.h b/nmmvm/jna-android/src/main/cpp/mylibffi/myconfig/arm/fficonfig.h similarity index 100% rename from nmmvm/jna-android/src/main/cpp/mylibffi/libffi/src/arm/fficonfig.h rename to nmmvm/jna-android/src/main/cpp/mylibffi/myconfig/arm/fficonfig.h diff --git a/nmmvm/jna-android/src/main/cpp/mylibffi/libffi/src/x86/fficonfig.h b/nmmvm/jna-android/src/main/cpp/mylibffi/myconfig/x86/fficonfig.h similarity index 100% rename from nmmvm/jna-android/src/main/cpp/mylibffi/libffi/src/x86/fficonfig.h rename to nmmvm/jna-android/src/main/cpp/mylibffi/myconfig/x86/fficonfig.h