Permalink
Browse files

Attempt to fix CRLF issues

  • Loading branch information...
1 parent f1d5d4b commit 93116acc4921022fbc83b96f5933663d3388f0e6 Richard Bateman committed Feb 8, 2011
Showing with 28,805 additions and 28,805 deletions.
  1. +93 −93 CMakeLists.txt
  2. +1,656 −1,656 Doxyfile
  3. +66 −66 cmake/FixFragment.xslt
  4. +85 −85 cmake/buildconfig.cmake
  5. +256 −256 cmake/common.cmake
  6. +2 −2 cmake/dummy.cpp
  7. +40 −40 cmake/paths.cmake
  8. +134 −134 cmake/projectConfig_main.cmake.in
  9. +208 −208 cmake/wix.cmake
  10. +71 −71 common.cmd
  11. +53 −53 examples/BasicMediaPlayer/CMakeLists.txt
  12. +4 −4 examples/BasicMediaPlayer/Mac/bundle_template/InfoPlist.strings
  13. +18 −18 examples/BasicMediaPlayer/Mac/bundle_template/Localized.r
  14. +60 −60 examples/BasicMediaPlayer/PluginConfig.cmake
  15. +38 −38 examples/BasicMediaPlayer/Win/WiX/BasicMediaPlayerInstaller.wxs
  16. +56 −56 examples/BasicMediaPlayer/Win/projectDef.cmake
  17. +4 −4 examples/FBTestPlugin/Mac/bundle_template/InfoPlist.strings
  18. +20 −20 examples/FBTestPlugin/Mac/bundle_template/Localized.r
  19. +107 −107 examples/FBTestPlugin/SimpleStreams.cpp
  20. +118 −118 examples/FBTestPlugin/ThreadRunnerAPI.cpp
  21. +51 −51 examples/FBTestPlugin/ThreadRunnerAPI.h
  22. +38 −38 examples/FBTestPlugin/Win/WiX/FBTestPluginInstaller.wxs
  23. +30 −30 examples/FBTestPlugin/Win/dllmain.cpp
  24. +302 −302 examples/FBTestPlugin/test.html
  25. +4 −4 fbgen/src/Mac/bundle_template/InfoPlist.strings
  26. +20 −20 fbgen/src/Mac/bundle_template/Localized.r
  27. +38 −38 fbgen/src/Win/WiX/TemplateInstaller.wxs
  28. +32 −32 gen_templates/COM_config.h
  29. +78 −78 gen_templates/FBControl.rgs
  30. +16 −16 gen_templates/FireBreathWin.def
  31. +81 −81 gen_templates/FireBreathWin.idl
  32. +17 −17 gen_templates/FireBreathWin.rgs
  33. +111 −111 gen_templates/firebreathWin.rc
  34. +29 −29 gen_templates/resource.h
  35. +10 −10 gen_templates/version_script.txt
  36. +16 −16 pluginProjects.cmake
  37. +7 −7 prep2005.cmd
  38. +7 −7 prep2008.cmd
  39. +7 −7 prep2010.cmd
  40. +78 −78 src/ActiveXCore/AXDOM/Document.cpp
  41. +61 −61 src/ActiveXCore/AXDOM/Document.h
  42. +70 −70 src/ActiveXCore/AXDOM/Element.cpp
  43. +53 −53 src/ActiveXCore/AXDOM/Element.h
  44. +55 −55 src/ActiveXCore/AXDOM/Node.h
  45. +56 −56 src/ActiveXCore/AXDOM/Window.cpp
  46. +53 −53 src/ActiveXCore/AXDOM/Window.h
  47. +90 −90 src/ActiveXCore/ActiveXBrowserHost.h
  48. +85 −85 src/ActiveXCore/COMJavascriptObject.h
  49. +33 −33 src/ActiveXCore/FBControl.cpp
  50. +493 −493 src/ActiveXCore/FBControl.h
  51. +413 −413 src/ActiveXCore/IDispatchAPI.cpp
  52. +82 −82 src/ActiveXCore/IDispatchAPI.h
  53. +319 −319 src/ActiveXCore/axstream.cpp
  54. +59 −59 src/ActiveXCore/axstream.h
  55. +500 −500 src/ActiveXCore/axstream_impl.cpp
  56. +108 −108 src/ActiveXCore/axstream_impl.h
  57. +196 −196 src/ActiveXCore/axutil.cpp
  58. +40 −40 src/ActiveXCore/axutil.h
  59. +90 −90 src/ActiveXCore/registrymap.hpp
  60. +49 −49 src/NPAPIHost/CMakeLists.txt
  61. +161 −161 src/NPAPIHost/NpBrowserHostFuncs.cpp
  62. +137 −137 src/NPAPIHost/NpResourceHostFuncs.cpp
  63. +91 −91 src/NPAPIHost/NpapiHost.cpp
  64. +115 −115 src/NPAPIHost/NpapiHost.h
  65. +107 −107 src/NPAPIHost/NpruntimeHostFuncs.cpp
  66. +110 −110 src/NpapiCore/CMakeLists.txt
  67. +385 −385 src/NpapiCore/NPJavascriptObject.cpp
  68. +104 −104 src/NpapiCore/NPJavascriptObject.h
  69. +306 −306 src/NpapiCore/NPObjectAPI.cpp
  70. +72 −72 src/NpapiCore/NPObjectAPI.h
  71. +662 −662 src/NpapiCore/NpapiBrowserHost.cpp
  72. +144 −144 src/NpapiCore/NpapiBrowserHost.h
  73. +368 −368 src/NpapiCore/NpapiPlugin.cpp
  74. +87 −87 src/NpapiCore/NpapiPlugin.h
  75. +207 −207 src/NpapiCore/NpapiPluginModule.cpp
  76. +98 −98 src/NpapiCore/NpapiPluginModule.h
  77. +164 −164 src/NpapiCore/NpapiStream.cpp
  78. +63 −63 src/NpapiCore/NpapiStream.h
  79. +48 −48 src/NpapiCore/NpapiTypes.h
  80. +208 −208 src/PluginAuto/CMakeLists.txt
  81. +634 −634 src/PluginAuto/Mac/NpapiPluginMac.mm
  82. +59 −59 src/PluginAuto/Mac/PluginWindowMacCarbonQD.cpp
  83. +38 −38 src/PluginAuto/Mac/PluginWindowMacCarbonQD.h
  84. +103 −103 src/PluginAuto/Mac/PluginWindowMacQuickDraw.cpp
  85. +54 −54 src/PluginAuto/Mac/PluginWindowMacQuickDraw.h
  86. +72 −72 src/PluginAuto/Mac/np_macmain.cpp
  87. +114 −114 src/PluginAuto/Win/FireBreathWin.cpp
  88. +146 −146 src/PluginAuto/Win/NpapiPluginWin.cpp
  89. +216 −216 src/PluginAuto/Win/PluginWindowWin.cpp
  90. +100 −100 src/PluginAuto/Win/PluginWindowWin.h
  91. +174 −174 src/PluginAuto/Win/PluginWindowlessWin.cpp
  92. +92 −92 src/PluginAuto/Win/PluginWindowlessWin.h
  93. +126 −126 src/PluginAuto/X11/NpapiPluginX11.cpp
  94. +255 −255 src/PluginAuto/X11/PluginWindowX11.cpp
  95. +82 −82 src/PluginAuto/X11/PluginWindowX11.h
  96. +55 −55 src/PluginAuto/X11/np_x11main.cpp
  97. +122 −122 src/PluginAuto/log4cplus/log4cplus.cpp
  98. +26 −26 src/PluginAuto/null/NullLogger.cpp
  99. +33 −33 src/PluginCore/BrowserPlugin.cpp
  100. +55 −55 src/PluginCore/BrowserPlugin.h
  101. +159 −159 src/PluginCore/BrowserStream.cpp
  102. +274 −274 src/PluginCore/BrowserStream.h
  103. +59 −59 src/PluginCore/BrowserStreamManager.cpp
  104. +49 −49 src/PluginCore/BrowserStreamManager.h
  105. +93 −93 src/PluginCore/CMakeLists.txt
  106. +80 −80 src/PluginCore/DefaultBrowserStreamHandler.cpp
  107. +150 −150 src/PluginCore/DefaultBrowserStreamHandler.h
  108. +165 −165 src/PluginCore/PluginCore.cpp
  109. +80 −80 src/PluginCore/PluginEvent.h
  110. +146 −146 src/PluginCore/PluginEventSink.h
  111. +142 −142 src/PluginCore/PluginEventSource.h
  112. +43 −43 src/PluginCore/PluginEvents/AttachedEvent.h
  113. +69 −69 src/PluginCore/PluginEvents/DrawingEvents.h
  114. +41 −41 src/PluginCore/PluginEvents/GeneralEvents.h
  115. +119 −119 src/PluginCore/PluginEvents/KeyCodes.h
  116. +66 −66 src/PluginCore/PluginEvents/KeyboardEvents.h
  117. +47 −47 src/PluginCore/PluginEvents/MacEventCarbon.h
  118. +67 −67 src/PluginCore/PluginEvents/MacEventCocoa.h
  119. +83 −83 src/PluginCore/PluginEvents/MouseEvents.h
  120. +159 −159 src/PluginCore/PluginEvents/StreamEvents.h
  121. +51 −51 src/PluginCore/PluginEvents/WindowsEvent.h
  122. +45 −45 src/PluginCore/PluginEvents/X11Event.h
  123. +19 −19 src/PluginCore/PluginWindow.cpp
  124. +84 −84 src/PluginCore/PluginWindow.h
  125. +182 −182 src/PluginCore/SimpleStreamHelper.cpp
  126. +174 −174 src/PluginCore/SimpleStreamHelper.h
  127. +104 −104 src/PluginCore/Win/KeyCodesWin.cpp
  128. +30 −30 src/PluginCore/Win/KeyCodesWin.h
  129. +24 −24 src/ScriptingCore/BrowserHostWrapper.h
  130. +51 −51 src/ScriptingCore/CrossThreadCall.cpp
  131. +220 −220 src/ScriptingCore/CrossThreadCall.h
  132. +73 −73 src/ScriptingCore/DOM.h
  133. +41 −41 src/ScriptingCore/DOM/Document.cpp
  134. +88 −88 src/ScriptingCore/DOM/Document.h
  135. +109 −109 src/ScriptingCore/DOM/Element.cpp
  136. +248 −248 src/ScriptingCore/DOM/Element.h
  137. +47 −47 src/ScriptingCore/DOM/Node.cpp
  138. +79 −79 src/ScriptingCore/DOM/Window.cpp
  139. +161 −161 src/ScriptingCore/DOM/Window.h
  140. +29 −29 src/ScriptingCore/FBPointers.h
  141. +390 −390 src/ScriptingCore/JSAPI.cpp
  142. +27 −27 src/ScriptingCore/JSAPI.h
  143. +234 −234 src/ScriptingCore/JSAPIProxy.cpp
  144. +159 −159 src/ScriptingCore/JSAPIProxy.h
  145. +194 −194 src/ScriptingCore/JSAPISimple.cpp
  146. +148 −148 src/ScriptingCore/JSAPISimple.h
  147. +44 −44 src/ScriptingCore/JSEvent.cpp
  148. +30 −30 src/ScriptingCore/JSEvent.h
  149. +92 −92 src/ScriptingCore/JSExceptions.h
  150. +41 −41 src/ScriptingCore/JSObject.cpp
  151. +580 −580 src/ScriptingCore/MethodConverter.h
  152. +98 −98 src/ScriptingCore/TestJSAPI.h
  153. +218 −218 src/ScriptingCore/TypeIDMap.h
  154. +2 −2 src/ScriptingCore/URI.cpp
  155. +1 −1 src/ScriptingCore/URI.h
  156. +110 −110 src/ScriptingCore/logging.h
  157. +64 −64 src/ScriptingCore/variant.cpp
  158. +255 −255 src/config/fb_stdint.h
  159. +36 −36 src/config/win_common.h
  160. +40 −40 src/config/win_targetver.h
  161. +116 −116 src/libs/HttpService/CMakeLists.txt
  162. +82 −82 src/libs/HttpService/HTTPClient/HTTPRequest.h
  163. +389 −389 src/libs/HttpService/HTTPClient/UploadQueue.cpp
  164. +95 −95 src/libs/HttpService/HTTPClient/UploadQueue.h
  165. +50 −50 src/libs/HttpService/HTTPClient/UploadQueueEntry.h
  166. +35 −35 src/libs/HttpService/HTTPCommon/HTTPException.cpp
  167. +38 −38 src/libs/HttpService/HTTPCommon/HTTPException.h
  168. +32 −32 src/libs/HttpService/HTTPCommon/HTTPFileEntry.h
  169. +35 −35 src/libs/HttpService/HTTPCommon/HTTPRequestData.cpp
  170. +46 −46 src/libs/HttpService/HTTPCommon/HTTPRequestData.h
  171. +44 −44 src/libs/HttpService/HTTPCommon/HTTPResponseData.cpp
  172. +46 −46 src/libs/HttpService/HTTPCommon/HTTPResponseData.h
  173. +29 −29 src/libs/HttpService/HTTPCommon/Status.cpp
  174. +46 −46 src/libs/HttpService/HTTPCommon/Status.h
  175. +52 −52 src/libs/HttpService/HTTPCommon/Utils.cpp
  176. +30 −30 src/libs/HttpService/HTTPCommon/Utils.h
  177. +20 −20 src/libs/HttpService/HTTPCommon/base64.h
  178. +43 −43 src/libs/HttpService/HTTPService.cpp
  179. +172 −172 src/libs/HttpService/HTTPService/BasicServiceSession.cpp
  180. +38 −38 src/libs/HttpService/HTTPService/HTTPHandler.h
  181. +132 −132 src/libs/HttpService/Platform/Platform_windows.cpp
  182. +38 −38 src/libs/HttpService/Platform/windows_common.cpp
  183. +56 −56 src/libs/curl/CMakeLists.txt
  184. +42 −42 src/libs/jsoncpp/CMakeLists.txt
  185. +1 −1 src/libs/log4cplus/COPYING
  186. +60 −60 src/libs/openssl/CMakeLists.txt
  187. +38 −38 tests/ActiveXCoreTest/ActiveXCoreTest.cpp
  188. +89 −89 tests/ActiveXCoreTest/CMakeLists.txt
  189. +199 −199 tests/ActiveXCoreTest/COMJavascriptObjectTest.h
  190. +174 −174 tests/ActiveXCoreTest/TestAPI.cpp
  191. +56 −56 tests/ActiveXCoreTest/TestAPI.h
  192. +86 −86 tests/NpapiCoreTest/CMakeLists.txt
  193. +183 −183 tests/NpapiCoreTest/NPJavascriptObjectTest.h
  194. +82 −82 tests/NpapiCoreTest/NpapiPluginTest.cpp
  195. +1 −1 tests/NpapiCoreTest/TestPlugin.h
  196. +61 −61 tests/ScriptingCoreTest/CMakeLists.txt
  197. +99 −99 tests/ScriptingCoreTest/TypeIDMap_test.h
  198. +57 −57 tests/ScriptingCoreTest/meta_test.h
  199. +93 −93 tests/ScriptingCoreTest/variant_test.h
  200. +71 −71 tests/unittest-cpp/UnitTest++/CMakeLists.txt
  201. +20 −20 tests/unittest-cpp/UnitTest++/COPYING
  202. +96 −96 tests/unittest-cpp/UnitTest++/Makefile
  203. +68 −68 tests/unittest-cpp/UnitTest++/README
  204. +169 −169 tests/unittest-cpp/UnitTest++/TestUnitTestPP_vs6.dsp
  205. +30 −30 tests/unittest-cpp/UnitTest++/UnitTest++.vsnet2003.sln
  206. +29 −29 tests/unittest-cpp/UnitTest++/UnitTest++.vsnet2005.sln
  207. +260 −260 tests/unittest-cpp/UnitTest++/UnitTestPP_vs6.dsp
  208. +44 −44 tests/unittest-cpp/UnitTest++/UnitTestPP_vs6.dsw
  209. +259 −259 tests/unittest-cpp/UnitTest++/docs/UnitTest++.html
  210. +34 −34 tests/unittest-cpp/UnitTest++/src/AssertException.cpp
  211. +28 −28 tests/unittest-cpp/UnitTest++/src/AssertException.h
  212. +122 −122 tests/unittest-cpp/UnitTest++/src/CheckMacros.h
  213. +50 −50 tests/unittest-cpp/UnitTest++/src/Checks.cpp
  214. +158 −158 tests/unittest-cpp/UnitTest++/src/Checks.h
  215. +31 −31 tests/unittest-cpp/UnitTest++/src/Config.h
  216. +18 −18 tests/unittest-cpp/UnitTest++/src/CurrentTest.cpp
  217. +17 −17 tests/unittest-cpp/UnitTest++/src/CurrentTest.h
  218. +28 −28 tests/unittest-cpp/UnitTest++/src/DeferredTestReporter.cpp
  219. +29 −29 tests/unittest-cpp/UnitTest++/src/DeferredTestReporter.h
  220. +29 −29 tests/unittest-cpp/UnitTest++/src/DeferredTestResult.cpp
  221. +32 −32 tests/unittest-cpp/UnitTest++/src/DeferredTestResult.h
  222. +46 −46 tests/unittest-cpp/UnitTest++/src/ExecuteTest.h
  223. +149 −149 tests/unittest-cpp/UnitTest++/src/MemoryOutStream.cpp
  224. +68 −68 tests/unittest-cpp/UnitTest++/src/MemoryOutStream.h
  225. +46 −46 tests/unittest-cpp/UnitTest++/src/Posix/SignalTranslator.cpp
  226. +42 −42 tests/unittest-cpp/UnitTest++/src/Posix/SignalTranslator.h
  227. +33 −33 tests/unittest-cpp/UnitTest++/src/Posix/TimeHelpers.cpp
  228. +28 −28 tests/unittest-cpp/UnitTest++/src/Posix/TimeHelpers.h
  229. +11 −11 tests/unittest-cpp/UnitTest++/src/ReportAssert.cpp
  230. +10 −10 tests/unittest-cpp/UnitTest++/src/ReportAssert.h
  231. +41 −41 tests/unittest-cpp/UnitTest++/src/Test.cpp
  232. +34 −34 tests/unittest-cpp/UnitTest++/src/Test.h
  233. +22 −22 tests/unittest-cpp/UnitTest++/src/TestDetails.cpp
  234. +24 −24 tests/unittest-cpp/UnitTest++/src/TestDetails.h
  235. +39 −39 tests/unittest-cpp/UnitTest++/src/TestList.cpp
  236. +32 −32 tests/unittest-cpp/UnitTest++/src/TestList.h
  237. +113 −113 tests/unittest-cpp/UnitTest++/src/TestMacros.h
  238. +10 −10 tests/unittest-cpp/UnitTest++/src/TestReporter.cpp
  239. +20 −20 tests/unittest-cpp/UnitTest++/src/TestReporter.h
  240. +46 −46 tests/unittest-cpp/UnitTest++/src/TestReporterStdout.cpp
  241. +19 −19 tests/unittest-cpp/UnitTest++/src/TestReporterStdout.h
  242. +60 −60 tests/unittest-cpp/UnitTest++/src/TestResults.cpp
  243. +36 −36 tests/unittest-cpp/UnitTest++/src/TestResults.h
  244. +76 −76 tests/unittest-cpp/UnitTest++/src/TestRunner.cpp
  245. +59 −59 tests/unittest-cpp/UnitTest++/src/TestRunner.h
  246. +12 −12 tests/unittest-cpp/UnitTest++/src/TestSuite.h
  247. +29 −29 tests/unittest-cpp/UnitTest++/src/TimeConstraint.cpp
  248. +33 −33 tests/unittest-cpp/UnitTest++/src/TimeConstraint.h
  249. +7 −7 tests/unittest-cpp/UnitTest++/src/TimeHelpers.h
  250. +18 −18 tests/unittest-cpp/UnitTest++/src/UnitTest++.h
  251. +47 −47 tests/unittest-cpp/UnitTest++/src/Win32/TimeHelpers.cpp
  252. +48 −48 tests/unittest-cpp/UnitTest++/src/Win32/TimeHelpers.h
  253. +127 −127 tests/unittest-cpp/UnitTest++/src/XmlTestReporter.cpp
  254. +34 −34 tests/unittest-cpp/UnitTest++/src/XmlTestReporter.h
  255. +8 −8 tests/unittest-cpp/UnitTest++/src/tests/Main.cpp
  256. +98 −98 tests/unittest-cpp/UnitTest++/src/tests/RecordingReporter.h
  257. +37 −37 tests/unittest-cpp/UnitTest++/src/tests/ScopedCurrentTest.h
  258. +44 −44 tests/unittest-cpp/UnitTest++/src/tests/TestAssertHandler.cpp
  259. +801 −801 tests/unittest-cpp/UnitTest++/src/tests/TestCheckMacros.cpp
  260. +293 −293 tests/unittest-cpp/UnitTest++/src/tests/TestChecks.cpp
  261. +38 −38 tests/unittest-cpp/UnitTest++/src/tests/TestCurrentTest.cpp
  262. +117 −117 tests/unittest-cpp/UnitTest++/src/tests/TestDeferredTestReporter.cpp
  263. +151 −151 tests/unittest-cpp/UnitTest++/src/tests/TestMemoryOutStream.cpp
  264. +129 −129 tests/unittest-cpp/UnitTest++/src/tests/TestTest.cpp
  265. +50 −50 tests/unittest-cpp/UnitTest++/src/tests/TestTestList.cpp
  266. +212 −212 tests/unittest-cpp/UnitTest++/src/tests/TestTestMacros.cpp
  267. +111 −111 tests/unittest-cpp/UnitTest++/src/tests/TestTestResults.cpp
  268. +307 −307 tests/unittest-cpp/UnitTest++/src/tests/TestTestRunner.cpp
  269. +12 −12 tests/unittest-cpp/UnitTest++/src/tests/TestTestSuite.cpp
  270. +69 −69 tests/unittest-cpp/UnitTest++/src/tests/TestTimeConstraint.cpp
  271. +65 −65 tests/unittest-cpp/UnitTest++/src/tests/TestTimeConstraintMacro.cpp
  272. +156 −156 tests/unittest-cpp/UnitTest++/src/tests/TestUnitTest++.cpp
  273. +183 −183 tests/unittest-cpp/UnitTest++/src/tests/TestXmlTestReporter.cpp
  274. +26 −26 winprep.cmd
View
@@ -1,93 +1,93 @@
-#/**********************************************************\
-#Original Author: Richard Bateman (taxilian)
-#
-#Created: Nov 20, 2009
-#License: Dual license model; choose one of two:
-# New BSD License
-# http://www.opensource.org/licenses/bsd-license.php
-# - or -
-# GNU Lesser General Public License, version 2.1
-# http://www.gnu.org/licenses/lgpl-2.1.html
-#
-#Copyright 2009 PacketPass, Inc and the Firebreath development team
-#\**********************************************************/
-
-# Written to work with cmake 2.6
-cmake_minimum_required (VERSION 2.6)
-set (CMAKE_BACKWARDS_COMPATIBILITY 2.6)
-
-Project (FireBreath)
-
-set(CMAKE_DIR ${CMAKE_SOURCE_DIR}/cmake)
-
-include(${CMAKE_DIR}/common.cmake)
-
-#check to make sure we're either using WITH_SYSTEM_BOOST or have the firebreath-boost lib installed
-check_boost()
-
-if (APPLE)
- clear_xcode_patches()
-endif()
-
-if (NOT EXISTS ${PROJECTS_SOURCE_DIR})
- message(FATAL_ERROR "The specified project directory ${PROJECTS_SOURCE_DIR} is not found")
-endif()
-
-if (VERBOSE)
- message("Firebreath solution dir: " ${PROJECT_BINARY_DIR})
-endif()
-
-find_package(Threads REQUIRED)
-add_boost_library(thread)
-add_boost_library(system)
-if (WITH_SYSTEM_BOOST)
- add_boost_library(date_time)
-endif()
-
-# Common core projects -- projects that don't have any plugin specific code,
-# but are required before any plugins are loaded
-add_subdirectory(${SCRIPTINGCORE_SOURCE_DIR})
-add_subdirectory(${PLUGINCORE_SOURCE_DIR})
-add_subdirectory(${NPAPICORE_SOURCE_DIR})
-if (WIN32)
- add_subdirectory(${ACTIVEXCORE_SOURCE_DIR})
-endif()
-
-# search the project src dir for plugin project directories
-file (GLOB PLUGIN_PROJECTS
- ${PROJECTS_SOURCE_DIR}/[^.]*
- )
-
-if (VERBOSE)
- message("Searching ${PROJECTS_SOURCE_DIR}/*: found ${PLUGIN_PROJECTS}")
-endif()
-
-# loop through the found directories and add any with a CMakeLists.txt and a PluginConfig.cmake
-# as a subproject
-foreach (CURPROJECT ${PLUGIN_PROJECTS})
- if (EXISTS "${CURPROJECT}/CMakeLists.txt" AND EXISTS "${CURPROJECT}/PluginConfig.cmake")
- set (FOUND_PROJECTS 1)
- get_filename_component(PROJNAME ${CURPROJECT} NAME_WE)
- configure_file(${CMAKE_DIR}/projectConfig_main.cmake.in ${PROJECTS_BINARY_DIR}/${PROJNAME}/projectConfig.cmake COPYONLY)
- if (VERBOSE)
- message("Configuring plugin project ${CURPROJECT} in ${PROJECTS_BINARY_DIR}/${PROJNAME}")
- endif()
- add_subdirectory("${CURPROJECT}" "${PROJECTS_BINARY_DIR}/${PROJNAME}")
- else()
- message("${CURPROJECT}/ does not seem to be a FireBreath Plugin")
- endif()
-endforeach()
-
-# Common projects -- projects that don't have any plugin specific code
-add_subdirectory(${UNITTEST_FW_SOURCE_DIR})
-add_subdirectory(${NPAPIHOST_SOURCE_DIR})
-add_subdirectory(${SCRIPTINGCORETEST_SOURCE_DIR})
-if (WIN32)
- add_subdirectory(${ACTIVEXCORETEST_SOURCE_DIR})
-endif()
-#add_subdirectory(${NPAPICORETEST_SOURCE_DIR}) # - not functional, needs to be re-done
-
-if (NOT FOUND_PROJECTS)
- MESSAGE("No projects found in ${PROJECTS_SOURCE_DIR}/.")
- MESSAGE(FATAL_ERROR "To build examples, run 'prep<ver> examples'")
-endif()
+#/**********************************************************\
+#Original Author: Richard Bateman (taxilian)
+#
+#Created: Nov 20, 2009
+#License: Dual license model; choose one of two:
+# New BSD License
+# http://www.opensource.org/licenses/bsd-license.php
+# - or -
+# GNU Lesser General Public License, version 2.1
+# http://www.gnu.org/licenses/lgpl-2.1.html
+#
+#Copyright 2009 PacketPass, Inc and the Firebreath development team
+#\**********************************************************/
+
+# Written to work with cmake 2.6
+cmake_minimum_required (VERSION 2.6)
+set (CMAKE_BACKWARDS_COMPATIBILITY 2.6)
+
+Project (FireBreath)
+
+set(CMAKE_DIR ${CMAKE_SOURCE_DIR}/cmake)
+
+include(${CMAKE_DIR}/common.cmake)
+
+#check to make sure we're either using WITH_SYSTEM_BOOST or have the firebreath-boost lib installed
+check_boost()
+
+if (APPLE)
+ clear_xcode_patches()
+endif()
+
+if (NOT EXISTS ${PROJECTS_SOURCE_DIR})
+ message(FATAL_ERROR "The specified project directory ${PROJECTS_SOURCE_DIR} is not found")
+endif()
+
+if (VERBOSE)
+ message("Firebreath solution dir: " ${PROJECT_BINARY_DIR})
+endif()
+
+find_package(Threads REQUIRED)
+add_boost_library(thread)
+add_boost_library(system)
+if (WITH_SYSTEM_BOOST)
+ add_boost_library(date_time)
+endif()
+
+# Common core projects -- projects that don't have any plugin specific code,
+# but are required before any plugins are loaded
+add_subdirectory(${SCRIPTINGCORE_SOURCE_DIR})
+add_subdirectory(${PLUGINCORE_SOURCE_DIR})
+add_subdirectory(${NPAPICORE_SOURCE_DIR})
+if (WIN32)
+ add_subdirectory(${ACTIVEXCORE_SOURCE_DIR})
+endif()
+
+# search the project src dir for plugin project directories
+file (GLOB PLUGIN_PROJECTS
+ ${PROJECTS_SOURCE_DIR}/[^.]*
+ )
+
+if (VERBOSE)
+ message("Searching ${PROJECTS_SOURCE_DIR}/*: found ${PLUGIN_PROJECTS}")
+endif()
+
+# loop through the found directories and add any with a CMakeLists.txt and a PluginConfig.cmake
+# as a subproject
+foreach (CURPROJECT ${PLUGIN_PROJECTS})
+ if (EXISTS "${CURPROJECT}/CMakeLists.txt" AND EXISTS "${CURPROJECT}/PluginConfig.cmake")
+ set (FOUND_PROJECTS 1)
+ get_filename_component(PROJNAME ${CURPROJECT} NAME_WE)
+ configure_file(${CMAKE_DIR}/projectConfig_main.cmake.in ${PROJECTS_BINARY_DIR}/${PROJNAME}/projectConfig.cmake COPYONLY)
+ if (VERBOSE)
+ message("Configuring plugin project ${CURPROJECT} in ${PROJECTS_BINARY_DIR}/${PROJNAME}")
+ endif()
+ add_subdirectory("${CURPROJECT}" "${PROJECTS_BINARY_DIR}/${PROJNAME}")
+ else()
+ message("${CURPROJECT}/ does not seem to be a FireBreath Plugin")
+ endif()
+endforeach()
+
+# Common projects -- projects that don't have any plugin specific code
+add_subdirectory(${UNITTEST_FW_SOURCE_DIR})
+add_subdirectory(${NPAPIHOST_SOURCE_DIR})
+add_subdirectory(${SCRIPTINGCORETEST_SOURCE_DIR})
+if (WIN32)
+ add_subdirectory(${ACTIVEXCORETEST_SOURCE_DIR})
+endif()
+#add_subdirectory(${NPAPICORETEST_SOURCE_DIR}) # - not functional, needs to be re-done
+
+if (NOT FOUND_PROJECTS)
+ MESSAGE("No projects found in ${PROJECTS_SOURCE_DIR}/.")
+ MESSAGE(FATAL_ERROR "To build examples, run 'prep<ver> examples'")
+endif()
Oops, something went wrong.

0 comments on commit 93116ac

Please sign in to comment.