| AAX SDK 2.6.1 Avid Audio Extensions Development Kit

- Welcome
- Manual
- Classes
- Files
- Lists
- Support

- File List
- File Members

Loading...
Searching...
No Matches
AAX_EnvironmentUtilities.h
Go to the documentation of this file.
1/*================================================================================================*/
2/*
3
4 AAX_EnvironmentUtilities.h
5
6 Copyright 2018-2019, 2023 Avid Technology, Inc.
7 All rights reserved.
8
9 CONFIDENTIAL: this document contains confidential information of Avid. Do
10 not disclose to any third party. Use of the information contained in this
11 document is subject to an Avid SDK license.
12*/
13
20/*================================================================================================*/
21
22#ifndef _AAX_ENVIRONMENTUTILITIES_H_
23#define _AAX_ENVIRONMENTUTILITIES_H_
24
25#include <cstdlib>
26
27#if (!defined (WINDOWS_VERSION))
28# if (defined (_WIN32))
29# define WINDOWS_VERSION 1
30# endif
31#elif (defined (MAC_VERSION) || defined (LINUX_VERSION))
32# error "AAX SDK: Cannot declare more than one OS environment"
33#endif
34
35#if (!defined (MAC_VERSION))
36# if (defined (__APPLE__) && defined (__MACH__))
37# include "TargetConditionals.h"
38# if (TARGET_OS_MAC)
39# define MAC_VERSION 1
40# endif
41# endif
42#elif (defined (WINDOWS_VERSION) || defined (LINUX_VERSION))
43# error "AAX SDK: Cannot declare more than one OS environment"
44#endif
45
46#if (!defined (LINUX_VERSION))
47# if (defined (__linux__))
48# define LINUX_VERSION 1
49# endif
50#elif (defined (WINDOWS_VERSION) || defined (MAC_VERSION))
51# error "AAX SDK: Cannot declare more than one OS environment"
52#endif
53
54#if (!defined (WINDOWS_VERSION) && !defined (MAC_VERSION) && !defined (LINUX_VERSION))
55# warning "AAX SDK: Unknown OS environment"
56#endif
57
58 namespace AAX
59{
60 static bool IsVenueSystem(void)
61 {
62#if WINDOWS_VERSION
63 static const char * const environmentVariableName = "JEX_HOST_TYPE";
64 static const char * const venueEnvironment = "venue";
65 static const char * const environment = std::getenv ( environmentVariableName );
66 static const bool isVenue = ( NULL != environment) && (0 == strcmp ( environment, venueEnvironment ) );
67 return isVenue;
68#else
69 return false;
70#endif
71 }
72}
73
74#endif // _AAX_ENVIRONMENTUTILITIES_H_
AAX
Definition: AAX_EnvironmentUtilities.h:59