AkPlatforms.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /*******************************************************************************
  2. The content of this file includes portions of the AUDIOKINETIC Wwise Technology
  3. released in source code form as part of the SDK installer package.
  4. Commercial License Usage
  5. Licensees holding valid commercial licenses to the AUDIOKINETIC Wwise Technology
  6. may use this file in accordance with the end user license agreement provided
  7. with the software or, alternatively, in accordance with the terms contained in a
  8. written agreement between you and Audiokinetic Inc.
  9. Apache License Usage
  10. Alternatively, this file may be used under the Apache License, Version 2.0 (the
  11. "Apache License"); you may not use this file except in compliance with the
  12. Apache License. You may obtain a copy of the Apache License at
  13. http://www.apache.org/licenses/LICENSE-2.0.
  14. Unless required by applicable law or agreed to in writing, software distributed
  15. under the Apache License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
  16. OR CONDITIONS OF ANY KIND, either express or implied. See the Apache License for
  17. the specific language governing permissions and limitations under the License.
  18. Copyright (c) 2023 Audiokinetic Inc.
  19. *******************************************************************************/
  20. /// \file
  21. /// Audiokinetic platform checks. This is where we detect which platform
  22. /// is being compiled, and where we define the corresponding AK-specific
  23. /// symbols.
  24. #pragma once
  25. #if defined( NN_NINTENDO_SDK )
  26. #include <AK/SoundEngine/Platforms/NX/AkTypes.h>
  27. #elif defined( _GAMING_XBOX )
  28. #include <AK/SoundEngine/Platforms/XboxGC/AkTypes.h>
  29. #elif defined( _WIN32 ) || defined ( _WIN64 ) || defined( WINAPI_FAMILY )
  30. #include <AK/SoundEngine/Platforms/Windows/AkTypes.h>
  31. #elif defined( __APPLE__ )
  32. #include <AK/SoundEngine/Platforms/Mac/AkTypes.h>
  33. #elif defined( __ORBIS__ )
  34. #include <AK/SoundEngine/Platforms/PS4/AkTypes.h>
  35. #elif defined( __ANDROID__ ) && !defined (AK_LINUX_AOSP)
  36. #include <AK/SoundEngine/Platforms/Android/AkTypes.h>
  37. #elif defined( __linux__ )
  38. #include <AK/SoundEngine/Platforms/Linux/AkTypes.h>
  39. #elif defined( __EMSCRIPTEN__ )
  40. #include <AK/SoundEngine/Platforms/Emscripten/AkTypes.h>
  41. #elif defined( __QNX__ )
  42. #include <AK/SoundEngine/Platforms/QNX/AkTypes.h>
  43. #elif defined(__has_include)
  44. #if __has_include("AK/SoundEngine/Platforms/PS5/AkTypes.h")
  45. #include "AK/SoundEngine/Platforms/PS5/AkTypes.h"
  46. #endif
  47. #else
  48. #error Unsupported platform, or platform-specific symbols not defined
  49. #endif