eathread_callstack.cpp 1.7 KB

123456789101112131415161718192021222324252627282930313233343536
  1. ///////////////////////////////////////////////////////////////////////////////
  2. // Copyright (c) Electronic Arts Inc. All rights reserved.
  3. ///////////////////////////////////////////////////////////////////////////////
  4. #include <EABase/eabase.h>
  5. #if defined(EA_PLATFORM_WIN32) && EA_WINAPI_FAMILY_PARTITION(EA_WINAPI_PARTITION_DESKTOP)
  6. #include "pc/eathread_callstack_win32.cpp"
  7. #elif defined(EA_PLATFORM_MICROSOFT) && defined(EA_PROCESSOR_X86_64)
  8. #include "pc/eathread_callstack_win64.cpp"
  9. #elif defined(EA_PLATFORM_SONY)
  10. #include "kettle/eathread_callstack_kettle.cpp"
  11. #include "kettle/eathread_pthread_stack_info.cpp"
  12. #elif defined(EA_PLATFORM_ANDROID) && defined(EA_PROCESSOR_X86)
  13. #include "x86/eathread_callstack_x86.cpp"
  14. #include "unix/eathread_pthread_stack_info.cpp"
  15. #elif defined(EA_PLATFORM_ANDROID)
  16. #include "libunwind/eathread_callstack_libunwind.cpp"
  17. #include "unix/eathread_pthread_stack_info.cpp"
  18. #elif defined(EA_PLATFORM_APPLE) // OSX, iPhone, iPhone Simulator
  19. #include "apple/eathread_callstack_apple.cpp"
  20. #include "unix/eathread_pthread_stack_info.cpp"
  21. #elif defined(EA_PROCESSOR_ARM)
  22. #include "arm/eathread_callstack_arm.cpp"
  23. #if !defined(EA_PLATFORM_MICROSOFT)
  24. #include "unix/eathread_pthread_stack_info.cpp"
  25. #endif
  26. #elif (defined(EA_PLATFORM_LINUX) || defined(EA_PLATFORM_CYGWIN)) && (defined(EA_PROCESSOR_X86) || defined(EA_PROCESSOR_X86_64))
  27. #include "x86/eathread_callstack_x86.cpp"
  28. #include "unix/eathread_pthread_stack_info.cpp"
  29. #elif defined(EA_COMPILER_GNUC) || defined(EA_COMPILER_CLANG)
  30. #include "unix/eathread_callstack_glibc.cpp"
  31. #include "unix/eathread_pthread_stack_info.cpp"
  32. #else
  33. #include "null/eathread_callstack_null.cpp"
  34. #endif