opensslconf.h 1.3 KB

123456789101112131415161718192021222324252627
  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_SIMULATOR && TARGET_CPU_X86
  11. # include <openssl/opensslconf_ios_i386.h>
  12. #elif TARGET_OS_IOS && TARGET_OS_EMBEDDED && TARGET_CPU_ARM64
  13. # include <openssl/opensslconf_ios_arm64.h>
  14. #elif TARGET_OS_IOS && TARGET_OS_EMBEDDED && TARGET_CPU_ARM && defined(__ARM_ARCH_7S__)
  15. # include <openssl/opensslconf_ios_armv7s.h>
  16. #elif TARGET_OS_IOS && TARGET_OS_EMBEDDED && TARGET_CPU_ARM && !defined(__ARM_ARCH_7S__)
  17. # include <openssl/opensslconf_ios_armv7.h>
  18. #elif TARGET_OS_TV && TARGET_OS_SIMULATOR && TARGET_CPU_X86_64
  19. # include <openssl/opensslconf_tvos_x86_64.h>
  20. #elif TARGET_OS_TV && TARGET_OS_EMBEDDED && TARGET_CPU_ARM64
  21. # include <openssl/opensslconf_tvos_arm64.h>
  22. #else
  23. # error Unable to determine target or target not included in OpenSSL build
  24. #endif