The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

151 lines
4.9KB

  1. /*
  2. File: AUResources.r
  3. Abstract: AUResources.r
  4. Version: 1.1
  5. Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple
  6. Inc. ("Apple") in consideration of your agreement to the following
  7. terms, and your use, installation, modification or redistribution of
  8. this Apple software constitutes acceptance of these terms. If you do
  9. not agree with these terms, please do not use, install, modify or
  10. redistribute this Apple software.
  11. In consideration of your agreement to abide by the following terms, and
  12. subject to these terms, Apple grants you a personal, non-exclusive
  13. license, under Apple's copyrights in this original Apple software (the
  14. "Apple Software"), to use, reproduce, modify and redistribute the Apple
  15. Software, with or without modifications, in source and/or binary forms;
  16. provided that if you redistribute the Apple Software in its entirety and
  17. without modifications, you must retain this notice and the following
  18. text and disclaimers in all such redistributions of the Apple Software.
  19. Neither the name, trademarks, service marks or logos of Apple Inc. may
  20. be used to endorse or promote products derived from the Apple Software
  21. without specific prior written permission from Apple. Except as
  22. expressly stated in this notice, no other rights or licenses, express or
  23. implied, are granted by Apple herein, including but not limited to any
  24. patent rights that may be infringed by your derivative works or by other
  25. works in which the Apple Software may be incorporated.
  26. The Apple Software is provided by Apple on an "AS IS" basis. APPLE
  27. MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
  28. THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS
  29. FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND
  30. OPERATION ALONE OR IN COMBINATION WITH YOUR PRODUCTS.
  31. IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL
  32. OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  33. SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  34. INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION,
  35. MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED
  36. AND WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE),
  37. STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE
  38. POSSIBILITY OF SUCH DAMAGE.
  39. Copyright (C) 2014 Apple Inc. All Rights Reserved.
  40. */
  41. /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  42. // AUResources.r
  43. //
  44. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
  45. /* sample macro definitions -- all of these symbols must be defined
  46. #define RES_ID kHALOutputResID
  47. #define COMP_TYPE kAudioUnitComponentType
  48. #define COMP_SUBTYPE kAudioUnitOutputSubType
  49. #define COMP_MANUF kAudioUnitAudioHardwareOutputSubSubType
  50. #define VERSION 0x00010000
  51. #define NAME "AudioHALOutput"
  52. #define DESCRIPTION "Audio hardware output AudioUnit"
  53. #define ENTRY_POINT "AUHALEntry"
  54. */
  55. #define UseExtendedThingResource 1
  56. #include <CoreServices/CoreServices.r>
  57. // this is a define used to indicate that a component has no static data that would mean
  58. // that no more than one instance could be open at a time - never been true for AUs
  59. #ifndef cmpThreadSafeOnMac
  60. #define cmpThreadSafeOnMac 0x10000000
  61. #endif
  62. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  63. resource 'STR ' (RES_ID, purgeable) {
  64. NAME
  65. };
  66. resource 'STR ' (RES_ID + 1, purgeable) {
  67. DESCRIPTION
  68. };
  69. resource 'dlle' (RES_ID) {
  70. ENTRY_POINT
  71. };
  72. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  73. resource 'thng' (RES_ID, NAME) {
  74. COMP_TYPE,
  75. COMP_SUBTYPE,
  76. COMP_MANUF,
  77. 0, 0, 0, 0, // no 68K
  78. 'STR ', RES_ID,
  79. 'STR ', RES_ID + 1,
  80. 0, 0, /* icon */
  81. VERSION,
  82. componentHasMultiplePlatforms | componentDoAutoVersion,
  83. 0,
  84. {
  85. #if defined(ppc_YES)
  86. cmpThreadSafeOnMac,
  87. 'dlle', RES_ID, platformPowerPCNativeEntryPoint
  88. #define NeedLeadingComma 1
  89. #endif
  90. #if defined(ppc64_YES)
  91. #if defined(NeedLeadingComma)
  92. ,
  93. #endif
  94. cmpThreadSafeOnMac,
  95. 'dlle', RES_ID, platformPowerPC64NativeEntryPoint
  96. #define NeedLeadingComma 1
  97. #endif
  98. #if defined(i386_YES)
  99. #if defined(NeedLeadingComma)
  100. ,
  101. #endif
  102. cmpThreadSafeOnMac,
  103. 'dlle', RES_ID, platformIA32NativeEntryPoint
  104. #define NeedLeadingComma 1
  105. #endif
  106. #if defined(x86_64_YES)
  107. #if defined(NeedLeadingComma)
  108. ,
  109. #endif
  110. cmpThreadSafeOnMac,
  111. 'dlle', RES_ID, 8
  112. #define NeedLeadingComma 1
  113. #endif
  114. // JUCE CHANGE STARTS HERE
  115. #if defined(arm64_YES)
  116. #if defined(NeedLeadingComma)
  117. ,
  118. #endif
  119. cmpThreadSafeOnMac,
  120. 'dlle', RES_ID, 9
  121. #define NeedLeadingComma 1
  122. #endif
  123. // JUCE CHANGE ENDS HERE
  124. }
  125. };
  126. #undef RES_ID
  127. #undef COMP_TYPE
  128. #undef COMP_SUBTYPE
  129. #undef COMP_MANUF
  130. #undef VERSION
  131. #undef NAME
  132. #undef DESCRIPTION
  133. #undef ENTRY_POINT
  134. #undef NeedLeadingComma