juce_core.cpp 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. /*
  2. ==============================================================================
  3. This file is part of the juce_core module of the JUCE library.
  4. Copyright (c) 2013 - Raw Material Software Ltd.
  5. Permission to use, copy, modify, and/or distribute this software for any purpose with
  6. or without fee is hereby granted, provided that the above copyright notice and this
  7. permission notice appear in all copies.
  8. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD
  9. TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN
  10. NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  11. DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
  12. IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  13. CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  14. ------------------------------------------------------------------------------
  15. NOTE! This permissive ISC license applies ONLY to files within the juce_core module!
  16. All other JUCE modules are covered by a dual GPL/commercial license, so if you are
  17. using any other modules, be sure to check that you also comply with their license.
  18. For more details, visit www.juce.com
  19. ==============================================================================
  20. */
  21. #if defined (JUCE_CORE_H_INCLUDED) && ! JUCE_AMALGAMATED_INCLUDE
  22. /* When you add this cpp file to your project, you mustn't include it in a file where you've
  23. already included any other headers - just put it inside a file on its own, possibly with your config
  24. flags preceding it, but don't include anything else. That also includes avoiding any automatic prefix
  25. header files that the compiler may be using.
  26. */
  27. #error "Incorrect use of JUCE cpp file"
  28. #endif
  29. // Your project must contain an AppConfig.h file with your project-specific settings in it,
  30. // and your header search path must make it accessible to the module's files.
  31. #include "AppConfig.h"
  32. //==============================================================================
  33. #include "native/juce_BasicNativeHeaders.h"
  34. #include "juce_core.h"
  35. #include <locale>
  36. #include <cctype>
  37. #include <sys/timeb.h>
  38. #if ! JUCE_ANDROID
  39. #include <cwctype>
  40. #endif
  41. #if JUCE_WINDOWS
  42. #include <ctime>
  43. #include <winsock2.h>
  44. #include <ws2tcpip.h>
  45. #if ! JUCE_MINGW
  46. #include <Dbghelp.h>
  47. #if ! JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES
  48. #pragma comment (lib, "DbgHelp.lib")
  49. #endif
  50. #endif
  51. #if JUCE_MINGW
  52. #include <ws2spi.h>
  53. #endif
  54. #else
  55. #if JUCE_LINUX || JUCE_ANDROID
  56. #include <sys/types.h>
  57. #include <sys/socket.h>
  58. #include <sys/errno.h>
  59. #include <unistd.h>
  60. #include <netinet/in.h>
  61. #endif
  62. #if JUCE_LINUX
  63. #include <langinfo.h>
  64. #endif
  65. #include <pwd.h>
  66. #include <fcntl.h>
  67. #include <netdb.h>
  68. #include <arpa/inet.h>
  69. #include <netinet/tcp.h>
  70. #include <sys/time.h>
  71. #include <net/if.h>
  72. #include <sys/ioctl.h>
  73. #if ! JUCE_ANDROID
  74. #include <execinfo.h>
  75. #endif
  76. #endif
  77. #if JUCE_MAC || JUCE_IOS
  78. #include <xlocale.h>
  79. #include <mach/mach.h>
  80. #endif
  81. #if JUCE_ANDROID
  82. #include <android/log.h>
  83. #endif
  84. //==============================================================================
  85. namespace juce
  86. {
  87. #include "containers/juce_AbstractFifo.cpp"
  88. #include "containers/juce_NamedValueSet.cpp"
  89. #include "containers/juce_PropertySet.cpp"
  90. #include "containers/juce_Variant.cpp"
  91. #include "files/juce_DirectoryIterator.cpp"
  92. #include "files/juce_File.cpp"
  93. #include "files/juce_FileInputStream.cpp"
  94. #include "files/juce_FileOutputStream.cpp"
  95. #include "files/juce_FileSearchPath.cpp"
  96. #include "files/juce_TemporaryFile.cpp"
  97. #include "javascript/juce_JSON.cpp"
  98. #include "javascript/juce_Javascript.cpp"
  99. #include "containers/juce_DynamicObject.cpp"
  100. #include "logging/juce_FileLogger.cpp"
  101. #include "logging/juce_Logger.cpp"
  102. #include "maths/juce_BigInteger.cpp"
  103. #include "maths/juce_Expression.cpp"
  104. #include "maths/juce_Random.cpp"
  105. #include "memory/juce_MemoryBlock.cpp"
  106. #include "misc/juce_Result.cpp"
  107. #include "misc/juce_Uuid.cpp"
  108. #include "network/juce_MACAddress.cpp"
  109. #include "network/juce_NamedPipe.cpp"
  110. #include "network/juce_Socket.cpp"
  111. #include "network/juce_IPAddress.cpp"
  112. #include "streams/juce_BufferedInputStream.cpp"
  113. #include "streams/juce_FileInputSource.cpp"
  114. #include "streams/juce_InputStream.cpp"
  115. #include "streams/juce_MemoryInputStream.cpp"
  116. #include "streams/juce_MemoryOutputStream.cpp"
  117. #include "streams/juce_SubregionStream.cpp"
  118. #include "system/juce_SystemStats.cpp"
  119. #include "text/juce_CharacterFunctions.cpp"
  120. #include "text/juce_Identifier.cpp"
  121. #include "text/juce_LocalisedStrings.cpp"
  122. #include "text/juce_String.cpp"
  123. #include "streams/juce_OutputStream.cpp"
  124. #include "text/juce_StringArray.cpp"
  125. #include "text/juce_StringPairArray.cpp"
  126. #include "text/juce_StringPool.cpp"
  127. #include "text/juce_TextDiff.cpp"
  128. #include "threads/juce_ReadWriteLock.cpp"
  129. #include "threads/juce_Thread.cpp"
  130. #include "threads/juce_ThreadPool.cpp"
  131. #include "threads/juce_TimeSliceThread.cpp"
  132. #include "time/juce_PerformanceCounter.cpp"
  133. #include "time/juce_RelativeTime.cpp"
  134. #include "time/juce_Time.cpp"
  135. #include "unit_tests/juce_UnitTest.cpp"
  136. #include "xml/juce_XmlDocument.cpp"
  137. #include "xml/juce_XmlElement.cpp"
  138. #include "zip/juce_GZIPDecompressorInputStream.cpp"
  139. #include "zip/juce_GZIPCompressorOutputStream.cpp"
  140. #include "zip/juce_ZipFile.cpp"
  141. #include "files/juce_FileFilter.cpp"
  142. #include "files/juce_WildcardFileFilter.cpp"
  143. //==============================================================================
  144. #if JUCE_MAC || JUCE_IOS
  145. #include "native/juce_osx_ObjCHelpers.h"
  146. #endif
  147. #if JUCE_ANDROID
  148. #include "native/juce_android_JNIHelpers.h"
  149. #endif
  150. #if ! JUCE_WINDOWS
  151. #include "native/juce_posix_SharedCode.h"
  152. #include "native/juce_posix_NamedPipe.cpp"
  153. #endif
  154. //==============================================================================
  155. #if JUCE_MAC || JUCE_IOS
  156. #include "native/juce_mac_Files.mm"
  157. #include "native/juce_mac_Network.mm"
  158. #include "native/juce_mac_Strings.mm"
  159. #include "native/juce_mac_SystemStats.mm"
  160. #include "native/juce_mac_Threads.mm"
  161. //==============================================================================
  162. #elif JUCE_WINDOWS
  163. #include "native/juce_win32_ComSmartPtr.h"
  164. #include "native/juce_win32_Files.cpp"
  165. #include "native/juce_win32_Network.cpp"
  166. #include "native/juce_win32_Registry.cpp"
  167. #include "native/juce_win32_SystemStats.cpp"
  168. #include "native/juce_win32_Threads.cpp"
  169. //==============================================================================
  170. #elif JUCE_LINUX
  171. #include "native/juce_linux_CommonFile.cpp"
  172. #include "native/juce_linux_Files.cpp"
  173. #include "native/juce_linux_Network.cpp"
  174. #include "native/juce_linux_SystemStats.cpp"
  175. #include "native/juce_linux_Threads.cpp"
  176. //==============================================================================
  177. #elif JUCE_ANDROID
  178. #include "native/juce_linux_CommonFile.cpp"
  179. #include "native/juce_android_Files.cpp"
  180. #include "native/juce_android_Misc.cpp"
  181. #include "native/juce_android_Network.cpp"
  182. #include "native/juce_android_SystemStats.cpp"
  183. #include "native/juce_android_Threads.cpp"
  184. #endif
  185. #include "threads/juce_ChildProcess.cpp"
  186. #include "threads/juce_HighResolutionTimer.cpp"
  187. #include "network/juce_URL.cpp"
  188. }