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.

200 lines
6.8KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library - "Jules' Utility Class Extensions"
  4. Copyright 2004-11 by Raw Material Software Ltd.
  5. ------------------------------------------------------------------------------
  6. JUCE can be redistributed and/or modified under the terms of the GNU General
  7. Public License (Version 2), as published by the Free Software Foundation.
  8. A copy of the license is included in the JUCE distribution, or can be found
  9. online at www.gnu.org/licenses.
  10. JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
  11. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  12. A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  13. ------------------------------------------------------------------------------
  14. To release a closed-source product which uses JUCE, commercial licenses are
  15. available: visit www.rawmaterialsoftware.com/juce for more information.
  16. ==============================================================================
  17. */
  18. #if defined (__JUCE_CORE_JUCEHEADER__) && ! JUCE_AMALGAMATED_INCLUDE
  19. /* When you add this cpp file to your project, you mustn't include it in a file where you've
  20. already included any other headers - just put it inside a file on its own, possibly with your config
  21. flags preceding it, but don't include anything else. That also includes avoiding any automatic prefix
  22. header files that the compiler may be using.
  23. */
  24. #error "Incorrect use of JUCE cpp file"
  25. #endif
  26. // Your project must contain an AppConfig.h file with your project-specific settings in it,
  27. // and your header search path must make it accessible to the module's files.
  28. #include "AppConfig.h"
  29. //==============================================================================
  30. #include "native/juce_BasicNativeHeaders.h"
  31. #include "juce_core.h"
  32. #include <locale>
  33. #include <cctype>
  34. #include <sys/timeb.h>
  35. #if ! JUCE_ANDROID
  36. #include <cwctype>
  37. #endif
  38. #if JUCE_WINDOWS
  39. #include <ctime>
  40. #include <winsock2.h>
  41. #include <ws2tcpip.h>
  42. #if JUCE_MINGW
  43. #include <ws2spi.h>
  44. #endif
  45. #else
  46. #if JUCE_LINUX || JUCE_ANDROID
  47. #include <sys/types.h>
  48. #include <sys/socket.h>
  49. #include <sys/errno.h>
  50. #include <unistd.h>
  51. #include <netinet/in.h>
  52. #endif
  53. #if JUCE_LINUX
  54. #include <langinfo.h>
  55. #endif
  56. #include <pwd.h>
  57. #include <fcntl.h>
  58. #include <netdb.h>
  59. #include <arpa/inet.h>
  60. #include <netinet/tcp.h>
  61. #include <sys/time.h>
  62. #endif
  63. #if JUCE_MAC || JUCE_IOS
  64. #include <xlocale.h>
  65. #endif
  66. #if JUCE_ANDROID
  67. #include <android/log.h>
  68. #endif
  69. //==============================================================================
  70. namespace juce
  71. {
  72. // START_AUTOINCLUDE containers/*.cpp, files/*.cpp, json/*.cpp, logging/*.cpp, maths/*.cpp,
  73. // memory/*.cpp, misc/*.cpp, network/*.cpp, streams/*.cpp, system/*.cpp, text/*.cpp, threads/*.cpp,
  74. // time/*.cpp, unit_tests/*.cpp, xml/*.cpp, zip/juce_GZIPD*.cpp, zip/juce_GZIPC*.cpp, zip/juce_Zip*.cpp
  75. #include "containers/juce_AbstractFifo.cpp"
  76. #include "containers/juce_DynamicObject.cpp"
  77. #include "containers/juce_NamedValueSet.cpp"
  78. #include "containers/juce_PropertySet.cpp"
  79. #include "containers/juce_Variant.cpp"
  80. #include "files/juce_DirectoryIterator.cpp"
  81. #include "files/juce_File.cpp"
  82. #include "files/juce_FileInputStream.cpp"
  83. #include "files/juce_FileOutputStream.cpp"
  84. #include "files/juce_FileSearchPath.cpp"
  85. #include "files/juce_TemporaryFile.cpp"
  86. #include "json/juce_JSON.cpp"
  87. #include "logging/juce_FileLogger.cpp"
  88. #include "logging/juce_Logger.cpp"
  89. #include "maths/juce_BigInteger.cpp"
  90. #include "maths/juce_Expression.cpp"
  91. #include "maths/juce_Random.cpp"
  92. #include "memory/juce_MemoryBlock.cpp"
  93. #include "misc/juce_Result.cpp"
  94. #include "misc/juce_Uuid.cpp"
  95. #include "network/juce_MACAddress.cpp"
  96. #include "network/juce_NamedPipe.cpp"
  97. #include "network/juce_Socket.cpp"
  98. #include "network/juce_URL.cpp"
  99. #include "streams/juce_BufferedInputStream.cpp"
  100. #include "streams/juce_FileInputSource.cpp"
  101. #include "streams/juce_InputStream.cpp"
  102. #include "streams/juce_MemoryInputStream.cpp"
  103. #include "streams/juce_MemoryOutputStream.cpp"
  104. #include "streams/juce_OutputStream.cpp"
  105. #include "streams/juce_SubregionStream.cpp"
  106. #include "system/juce_SystemStats.cpp"
  107. #include "text/juce_CharacterFunctions.cpp"
  108. #include "text/juce_Identifier.cpp"
  109. #include "text/juce_LocalisedStrings.cpp"
  110. #include "text/juce_String.cpp"
  111. #include "text/juce_StringArray.cpp"
  112. #include "text/juce_StringPairArray.cpp"
  113. #include "text/juce_StringPool.cpp"
  114. #include "threads/juce_ChildProcess.cpp"
  115. #include "threads/juce_ReadWriteLock.cpp"
  116. #include "threads/juce_Thread.cpp"
  117. #include "threads/juce_ThreadPool.cpp"
  118. #include "threads/juce_TimeSliceThread.cpp"
  119. #include "time/juce_PerformanceCounter.cpp"
  120. #include "time/juce_RelativeTime.cpp"
  121. #include "time/juce_Time.cpp"
  122. #include "unit_tests/juce_UnitTest.cpp"
  123. #include "xml/juce_XmlDocument.cpp"
  124. #include "xml/juce_XmlElement.cpp"
  125. #include "zip/juce_GZIPDecompressorInputStream.cpp"
  126. #include "zip/juce_GZIPCompressorOutputStream.cpp"
  127. #include "zip/juce_ZipFile.cpp"
  128. // END_AUTOINCLUDE
  129. //==============================================================================
  130. #if JUCE_MAC || JUCE_IOS
  131. #include "native/juce_osx_ObjCHelpers.h"
  132. #endif
  133. #if JUCE_ANDROID
  134. #include "native/juce_android_JNIHelpers.h"
  135. #endif
  136. #if ! JUCE_WINDOWS
  137. #include "native/juce_posix_SharedCode.h"
  138. #include "native/juce_posix_NamedPipe.cpp"
  139. #endif
  140. //==============================================================================
  141. #if JUCE_MAC || JUCE_IOS
  142. #include "native/juce_mac_Files.mm"
  143. #include "native/juce_mac_Network.mm"
  144. #include "native/juce_mac_Strings.mm"
  145. #include "native/juce_mac_SystemStats.mm"
  146. #include "native/juce_mac_Threads.mm"
  147. //==============================================================================
  148. #elif JUCE_WINDOWS
  149. #include "native/juce_win32_ComSmartPtr.h"
  150. #include "native/juce_win32_Files.cpp"
  151. #include "native/juce_win32_Network.cpp"
  152. #include "native/juce_win32_Registry.cpp"
  153. #include "native/juce_win32_SystemStats.cpp"
  154. #include "native/juce_win32_Threads.cpp"
  155. //==============================================================================
  156. #elif JUCE_LINUX
  157. #include "native/juce_linux_Files.cpp"
  158. #include "native/juce_linux_Network.cpp"
  159. #include "native/juce_linux_SystemStats.cpp"
  160. #include "native/juce_linux_Threads.cpp"
  161. //==============================================================================
  162. #elif JUCE_ANDROID
  163. #include "native/juce_android_Files.cpp"
  164. #include "native/juce_android_Misc.cpp"
  165. #include "native/juce_android_Network.cpp"
  166. #include "native/juce_android_SystemStats.cpp"
  167. #include "native/juce_android_Threads.cpp"
  168. #endif
  169. }