opensslconf.h 924 B

1234567891011121314151617181920
  1. /*
  2. * Building OpenSSL for the different architectures of all iOS and tvOS devices requires different settings.
  3. * In order to be able to use assembly code on all devices, the choice was made to keep optimal settings for all
  4. * devices and use this intermediate header file to use the proper opensslconf.h file for each architecture.
  5. * See also https://github.com/x2on/OpenSSL-for-iPhone/issues/126 and referenced pull requests
  6. */
  7. #include <TargetConditionals.h>
  8. #if TARGET_OS_IOS && TARGET_OS_SIMULATOR && TARGET_CPU_X86_64
  9. # include <openssl/opensslconf_ios_x86_64.h>
  10. #elif TARGET_OS_IOS && TARGET_OS_EMBEDDED && TARGET_CPU_ARM64
  11. # include <openssl/opensslconf_ios_arm64.h>
  12. #elif TARGET_OS_IOS && TARGET_OS_EMBEDDED && TARGET_CPU_ARM64E
  13. # include <openssl/opensslconf_ios_arm64e.h>
  14. #else
  15. // # error Unable to determine target or target not included in OpenSSL build
  16. # include <openssl/opensslconf_ios_arm64.h>
  17. #endif