rhodes 3.3.3.beta.4 → 3.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (497) hide show
  1. data/CHANGELOG +7 -5
  2. data/CREDITS +2215 -0
  3. data/Rakefile +225 -59
  4. data/bin/c2dm.rb +0 -0
  5. data/bin/get-rhodes-info.bat +0 -0
  6. data/bin/migrate-rhodes-app +0 -0
  7. data/bin/migrate-rhodes-app.bat +0 -0
  8. data/bin/rhodes +0 -0
  9. data/bin/rhodes-setup +0 -0
  10. data/bin/rhodes-setup.bat +0 -0
  11. data/bin/rhogen +0 -0
  12. data/bin/rhogen.bat +0 -0
  13. data/bin/set-rhodes-sdk +0 -0
  14. data/bin/set-rhodes-sdk.bat +0 -0
  15. data/bin/upgrade-rhodes-app +0 -0
  16. data/bin/upgrade-rhodes-app.bat +0 -0
  17. data/doc/build.txt +20 -9
  18. data/doc/configuration.txt +8 -8
  19. data/doc/connect-to-web-services.txt +1 -1
  20. data/doc/device-caps.txt +63 -26
  21. data/doc/extensions.txt +14 -2
  22. data/doc/install.txt +28 -19
  23. data/doc/introduction.txt +6 -3
  24. data/doc/jqt-jqm-transition.txt +10 -9
  25. data/doc/release.txt +5 -1
  26. data/doc/rhodes-command-line.txt +130 -0
  27. data/doc/rhom.txt +16 -11
  28. data/doc/rhostudio-eclipse.txt +3 -3
  29. data/doc/simulator.txt +28 -31
  30. data/doc/syncengine-ajax-api.txt +246 -0
  31. data/doc/synchronization.txt +21 -3
  32. data/doc/test-log-debug.txt +3 -1
  33. data/doc/ui.txt +16 -16
  34. data/ext/extconf.rb +8 -0
  35. data/lib/build/jake.rb +5 -5
  36. data/lib/extensions/barcode/ext/barcode/platform/android/Rakefile +9 -9
  37. data/lib/extensions/barcode/ext/barcode/platform/android/jni/src/barcode.cpp +81 -1
  38. data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/CaptureActivityHandler.java +6 -13
  39. data/lib/extensions/barcode/ext/barcode/platform/android/src/com/google/zxing/client/android/DecodeHandler.java +2 -6
  40. data/lib/extensions/barcode/ext/barcode/platform/android/src/com/rhomobile/barcode/Barcode.java +12 -1
  41. data/lib/extensions/barcode/ext/barcode/platform/bb/run.bat +0 -0
  42. data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/BarcodeCallbackHelper.h +2 -0
  43. data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/BarcodeCallbackHelper.mm +36 -0
  44. data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/BarcodeViewController.h +0 -0
  45. data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/BarcodeViewController.m +15 -5
  46. data/lib/extensions/barcode/ext/barcode/platform/iphone/Classes/barcode.m +64 -1
  47. data/lib/extensions/barcode/ext/barcode/shared/ruby/barcode.i +35 -1
  48. data/lib/extensions/barcode/ext/barcode/shared/ruby/barcode_wrap.c +126 -2
  49. data/lib/extensions/barcode/ext/barcode/shared/src/zbar.c +18 -1
  50. data/lib/extensions/barcode/ext/build +0 -0
  51. data/lib/extensions/barcode/ext/build.bat +0 -0
  52. data/lib/extensions/digest-md5/ext/Rakefile +12 -10
  53. data/lib/extensions/digest-md5/ext/build +0 -0
  54. data/lib/extensions/digest-md5/ext/build.bat +0 -0
  55. data/lib/extensions/digest-md5/ext/digest-md5.sln +2 -2
  56. data/lib/extensions/digest-md5/ext/digest-md5.vcproj +41 -28
  57. data/lib/extensions/digest-sha1/ext/Rakefile +11 -10
  58. data/lib/extensions/digest-sha1/ext/build +0 -0
  59. data/lib/extensions/digest-sha1/ext/build.bat +0 -0
  60. data/lib/extensions/digest-sha1/ext/digest-sha1.sln +2 -2
  61. data/lib/extensions/digest-sha1/ext/digest-sha1.vcproj +41 -28
  62. data/lib/extensions/digest/ext/Rakefile +12 -11
  63. data/lib/extensions/digest/ext/build +0 -0
  64. data/lib/extensions/digest/ext/build.bat +0 -0
  65. data/lib/extensions/digest/ext/digest.sln +44 -0
  66. data/lib/extensions/digest/ext/digest.vcproj +40 -27
  67. data/lib/extensions/esri/ext/build +0 -0
  68. data/lib/extensions/esri/ext/build.bat +0 -0
  69. data/lib/extensions/fcntl/ext/Rakefile +10 -9
  70. data/lib/extensions/fcntl/ext/build +0 -0
  71. data/lib/extensions/fcntl/ext/build.bat +0 -0
  72. data/lib/extensions/fcntl/ext/fcntl.vcproj +1 -1
  73. data/lib/extensions/nfc/ext/build +0 -0
  74. data/lib/extensions/nfc/ext/build.bat +0 -0
  75. data/lib/extensions/nfc/ext/nfc/platform/android/Rakefile +11 -11
  76. data/lib/extensions/nfc/ext/nfc/platform/android/jni/src/nfc.cpp +0 -0
  77. data/lib/extensions/nfc/ext/nfc/platform/android/src/com/rhomobile/nfc/Nfc.java +12 -10
  78. data/lib/extensions/nfc/ext/nfc/shared/ruby/nfc_wrap.c +16 -9
  79. data/lib/extensions/pdf-writer/color.rb +145 -0
  80. data/lib/extensions/pdf-writer/color/cmyk.rb +279 -0
  81. data/lib/extensions/pdf-writer/color/css.rb +28 -0
  82. data/lib/extensions/pdf-writer/color/grayscale.rb +212 -0
  83. data/lib/extensions/pdf-writer/color/hsl.rb +221 -0
  84. data/lib/extensions/pdf-writer/color/palette.rb +16 -0
  85. data/lib/extensions/pdf-writer/color/palette/adobecolor.rb +272 -0
  86. data/lib/extensions/pdf-writer/color/palette/gimp.rb +116 -0
  87. data/lib/extensions/pdf-writer/color/palette/monocontrast.rb +180 -0
  88. data/lib/extensions/pdf-writer/color/rgb-colors.rb +355 -0
  89. data/lib/extensions/pdf-writer/color/rgb.rb +453 -0
  90. data/lib/extensions/pdf-writer/color/rgb/metallic.rb +43 -0
  91. data/lib/extensions/pdf-writer/color/yiq.rb +84 -0
  92. data/lib/extensions/pdf-writer/ext/LICENSES/color/Licence.txt +27 -0
  93. data/lib/extensions/pdf-writer/ext/LICENSES/color/README.txt +32 -0
  94. data/lib/extensions/pdf-writer/ext/LICENSES/pdf-writer/LICENCE +131 -0
  95. data/lib/extensions/pdf-writer/ext/LICENSES/pdf-writer/README +33 -0
  96. data/lib/extensions/pdf-writer/ext/LICENSES/transaction-simple/Licence.txt +25 -0
  97. data/lib/extensions/pdf-writer/ext/LICENSES/transaction-simple/Readme.txt +204 -0
  98. data/lib/extensions/pdf-writer/pdf/charts.rb +13 -0
  99. data/lib/extensions/pdf-writer/pdf/charts/stddev.rb +430 -0
  100. data/lib/extensions/pdf-writer/pdf/math.rb +108 -0
  101. data/lib/extensions/pdf-writer/pdf/quickref.rb +332 -0
  102. data/lib/extensions/pdf-writer/pdf/simpletable.rb +947 -0
  103. data/lib/extensions/pdf-writer/pdf/techbook.rb +901 -0
  104. data/lib/extensions/pdf-writer/pdf/writer.rb +2729 -0
  105. data/lib/extensions/pdf-writer/pdf/writer/arc4.rb +63 -0
  106. data/lib/extensions/pdf-writer/pdf/writer/fontmetrics.rb +203 -0
  107. data/lib/extensions/pdf-writer/pdf/writer/fonts/Courier-Bold.afm +342 -0
  108. data/lib/extensions/pdf-writer/pdf/writer/fonts/Courier-BoldOblique.afm +342 -0
  109. data/lib/extensions/pdf-writer/pdf/writer/fonts/Courier-Oblique.afm +342 -0
  110. data/lib/extensions/pdf-writer/pdf/writer/fonts/Courier.afm +342 -0
  111. data/lib/extensions/pdf-writer/pdf/writer/fonts/Helvetica-Bold.afm +2827 -0
  112. data/lib/extensions/pdf-writer/pdf/writer/fonts/Helvetica-BoldOblique.afm +2827 -0
  113. data/lib/extensions/pdf-writer/pdf/writer/fonts/Helvetica-Oblique.afm +3051 -0
  114. data/lib/extensions/pdf-writer/pdf/writer/fonts/Helvetica.afm +3051 -0
  115. data/lib/extensions/pdf-writer/pdf/writer/fonts/MustRead.html +19 -0
  116. data/lib/extensions/pdf-writer/pdf/writer/fonts/Symbol.afm +213 -0
  117. data/lib/extensions/pdf-writer/pdf/writer/fonts/Times-Bold.afm +2588 -0
  118. data/lib/extensions/pdf-writer/pdf/writer/fonts/Times-BoldItalic.afm +2384 -0
  119. data/lib/extensions/pdf-writer/pdf/writer/fonts/Times-Italic.afm +2667 -0
  120. data/lib/extensions/pdf-writer/pdf/writer/fonts/Times-Roman.afm +2419 -0
  121. data/lib/extensions/pdf-writer/pdf/writer/fonts/ZapfDingbats.afm +225 -0
  122. data/lib/extensions/pdf-writer/pdf/writer/graphics.rb +813 -0
  123. data/lib/extensions/pdf-writer/pdf/writer/graphics/imageinfo.rb +365 -0
  124. data/lib/extensions/pdf-writer/pdf/writer/lang.rb +43 -0
  125. data/lib/extensions/pdf-writer/pdf/writer/lang/en.rb +99 -0
  126. data/lib/extensions/pdf-writer/pdf/writer/object.rb +23 -0
  127. data/lib/extensions/pdf-writer/pdf/writer/object/action.rb +35 -0
  128. data/lib/extensions/pdf-writer/pdf/writer/object/annotation.rb +42 -0
  129. data/lib/extensions/pdf-writer/pdf/writer/object/catalog.rb +39 -0
  130. data/lib/extensions/pdf-writer/pdf/writer/object/contents.rb +65 -0
  131. data/lib/extensions/pdf-writer/pdf/writer/object/destination.rb +40 -0
  132. data/lib/extensions/pdf-writer/pdf/writer/object/encryption.rb +53 -0
  133. data/lib/extensions/pdf-writer/pdf/writer/object/font.rb +72 -0
  134. data/lib/extensions/pdf-writer/pdf/writer/object/fontdescriptor.rb +34 -0
  135. data/lib/extensions/pdf-writer/pdf/writer/object/fontencoding.rb +40 -0
  136. data/lib/extensions/pdf-writer/pdf/writer/object/image.rb +304 -0
  137. data/lib/extensions/pdf-writer/pdf/writer/object/info.rb +51 -0
  138. data/lib/extensions/pdf-writer/pdf/writer/object/outline.rb +30 -0
  139. data/lib/extensions/pdf-writer/pdf/writer/object/outlines.rb +30 -0
  140. data/lib/extensions/pdf-writer/pdf/writer/object/page.rb +195 -0
  141. data/lib/extensions/pdf-writer/pdf/writer/object/pages.rb +115 -0
  142. data/lib/extensions/pdf-writer/pdf/writer/object/procset.rb +46 -0
  143. data/lib/extensions/pdf-writer/pdf/writer/object/viewerpreferences.rb +74 -0
  144. data/lib/extensions/pdf-writer/pdf/writer/ohash.rb +58 -0
  145. data/lib/extensions/pdf-writer/pdf/writer/oreader.rb +25 -0
  146. data/lib/extensions/pdf-writer/pdf/writer/state.rb +48 -0
  147. data/lib/extensions/pdf-writer/pdf/writer/strokestyle.rb +138 -0
  148. data/lib/extensions/pdf-writer/transaction/simple.rb +486 -0
  149. data/lib/extensions/pdf-writer/transaction/simple/group.rb +146 -0
  150. data/lib/extensions/pdf-writer/transaction/simple/threadsafe.rb +68 -0
  151. data/lib/extensions/pdf-writer/transaction/simple/threadsafe/group.rb +36 -0
  152. data/lib/framework/builtinME.rb +0 -0
  153. data/lib/framework/dateOrig.rb +8 -2
  154. data/lib/framework/rational.rb +0 -0
  155. data/lib/framework/res/esri.wm.png +0 -0
  156. data/lib/framework/rho/rho.rb +6 -0
  157. data/lib/framework/rho/rhobluetooth.rb +0 -0
  158. data/lib/framework/rho/rhofsconnector.rb +0 -0
  159. data/lib/framework/rho/rhonativeviewmanager.rb +0 -0
  160. data/lib/framework/rhofsconnector.rb +0 -0
  161. data/lib/framework/rhom/rhom_object_factory.rb +8 -0
  162. data/lib/framework/rhomotoapi.rb +3 -2
  163. data/platform/android/Rhodes/jni/include/rhodes/JNIRhodes.h +9 -1
  164. data/platform/android/Rhodes/jni/include/rhodes/details/rhojava.inc +1 -0
  165. data/platform/android/Rhodes/jni/include/rhodes/jni/com_rhomobile_rhodes_file_RhoFileApi.h +26 -2
  166. data/platform/android/Rhodes/jni/src/callbacks.cpp +0 -5
  167. data/platform/android/Rhodes/jni/src/camera.cpp +1 -1
  168. data/platform/android/Rhodes/jni/src/fileapi.cpp +39 -19
  169. data/platform/android/Rhodes/jni/src/geolocation.cpp +3 -3
  170. data/platform/android/Rhodes/jni/src/mapview.cpp +206 -64
  171. data/platform/android/Rhodes/jni/src/nativeview.cpp +1 -1
  172. data/platform/android/Rhodes/jni/src/rhodes.cpp +13 -0
  173. data/platform/android/Rhodes/jni/src/rhodesapp.cpp +20 -0
  174. data/platform/android/Rhodes/jni/src/rhodessystem.cpp +36 -3
  175. data/platform/android/Rhodes/jni/src/signature.cpp +22 -2
  176. data/platform/android/Rhodes/res/drawable/alert_info.png +0 -0
  177. data/platform/android/Rhodes/res/drawable/esri.png +0 -0
  178. data/platform/android/Rhodes/src/com/rhomobile/rhodes/Capabilities.java +17 -16
  179. data/platform/android/Rhodes/src/com/rhomobile/rhodes/Logger.java +4 -1
  180. data/platform/android/Rhodes/src/com/rhomobile/rhodes/MemoryInfoCollector.java +67 -0
  181. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesActivity.java +139 -114
  182. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesApplication.java +106 -13
  183. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesService.java +11 -3
  184. data/platform/android/Rhodes/src/com/rhomobile/rhodes/WebView.java +71 -16
  185. data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/CameraNewService.java +4 -1
  186. data/platform/android/Rhodes/src/com/rhomobile/rhodes/camera/CameraSemiService.java +4 -1
  187. data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/AbstractRhoExtension.java +22 -1
  188. data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/Config.java +243 -0
  189. data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/IRhoExtManager.java +19 -1
  190. data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/IRhoExtension.java +9 -1
  191. data/platform/android/Rhodes/src/com/rhomobile/rhodes/{RhodesActivityListener.java → extmanager/IRhoListener.java} +16 -12
  192. data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/RhoExtManager.java +63 -1
  193. data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/RhoExtManagerImpl.java +239 -14
  194. data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/RhodesStartupListeners.java +9 -0
  195. data/platform/android/Rhodes/src/com/rhomobile/rhodes/extmanager/WebkitExtension.java +53 -0
  196. data/platform/android/Rhodes/src/com/rhomobile/rhodes/file/RhoFileApi.java +27 -12
  197. data/platform/android/Rhodes/src/com/rhomobile/rhodes/geolocation/GeoLocation.java +124 -62
  198. data/platform/android/Rhodes/src/com/rhomobile/rhodes/geolocation/GeoLocationImpl.java +49 -137
  199. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/SimpleMainView.java +84 -114
  200. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/SplashScreen.java +75 -82
  201. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mainview/TabbedMainView.java +3 -2
  202. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/Callout.java +4 -0
  203. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/MapBitmapManager.java +124 -0
  204. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/MapView.java +232 -43
  205. data/platform/android/Rhodes/src/com/rhomobile/rhodes/mapview/Request.java +193 -0
  206. data/platform/android/Rhodes/src/com/rhomobile/rhodes/nativeview/IRhoCustomView.java +13 -0
  207. data/platform/android/Rhodes/src/com/rhomobile/rhodes/nativeview/RhoNativeViewManager.java +32 -23
  208. data/platform/android/Rhodes/src/com/rhomobile/rhodes/nativeview/RhoVideoView.java +74 -0
  209. data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality.java +6 -7
  210. data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality01.java +37 -0
  211. data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality03.java +14 -1
  212. data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality05.java +51 -38
  213. data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality07.java +9 -1
  214. data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionality08.java +48 -31
  215. data/platform/android/Rhodes/src/com/rhomobile/rhodes/osfunctionality/AndroidFunctionalityManager.java +15 -16
  216. data/platform/android/Rhodes/src/com/rhomobile/rhodes/signature/Signature.java +52 -15
  217. data/platform/android/Rhodes/src/com/rhomobile/rhodes/uri/LocalFileHandler.java +20 -2
  218. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/ChromeClientOld.java +1 -0
  219. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/GoogleWebView.java +77 -34
  220. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/IRhoWebView.java +9 -0
  221. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebChromeClient.java +105 -0
  222. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebViewClient.java +1 -1
  223. data/platform/android/build/RhodesSRC_build.files +8 -7
  224. data/platform/android/build/android.rake +326 -216
  225. data/platform/android/build/androidcommon.rb +27 -13
  226. data/platform/bb/RubyVM/src/com/rho/file/SimpleFile.java +27 -1
  227. data/platform/bb/RubyVM/src/j2me/io/File.java +104 -38
  228. data/platform/bb/build/bb.rake +1 -0
  229. data/platform/bb/build/runRAPC.bat +0 -0
  230. data/platform/bb/rhodes/resources/background.png +0 -0
  231. data/platform/bb/rhodes/resources/esri.png +0 -0
  232. data/platform/bb/rhodes/resources/mappin.png +0 -0
  233. data/platform/bb/rhodes/src/com/rho/rubyext/System.java +5 -1
  234. data/platform/bb/rhodes/src/rhomobile/PushListeningThread.java +2 -2
  235. data/platform/bb/rhodes/src/rhomobile/mapview/ESRIMapField.java +0 -0
  236. data/platform/bb/rhodes/src/rhomobile/mapview/ESRIMapProvider.java +0 -0
  237. data/platform/bb/rhodes/src/rhomobile/mapview/GeoCoding.java +0 -0
  238. data/platform/bb/rhodes/src/rhomobile/mapview/GoogleGeoCoding.java +0 -0
  239. data/platform/bb/rhodes/src/rhomobile/mapview/MapTools.java +0 -0
  240. data/platform/iphone/Classes/AppManager/AppManager.m +7 -1
  241. data/platform/iphone/Classes/Camera/PickImageDelegate.h +9 -0
  242. data/platform/iphone/Classes/Camera/PickImageDelegate.m +75 -4
  243. data/platform/iphone/Classes/GeoLocation/LocationController.h +8 -2
  244. data/platform/iphone/Classes/GeoLocation/LocationController.m +74 -76
  245. data/platform/iphone/Classes/InitMemoryInfoCollector.h +33 -0
  246. data/platform/iphone/Classes/InitMemoryInfoCollector.mm +52 -0
  247. data/platform/iphone/Classes/NativeView/NVViewController.h +0 -0
  248. data/platform/iphone/Classes/NativeView/NVViewController.m +34 -2
  249. data/platform/iphone/Classes/Rhodes.m +22 -2
  250. data/platform/iphone/Classes/Signature/SignatureDelegate.m +19 -0
  251. data/platform/iphone/Classes/Signature/SignatureViewController.h +0 -0
  252. data/platform/iphone/Classes/Signature/SignatureViewController.m +0 -0
  253. data/platform/iphone/Classes/SimpleMainView.h +0 -0
  254. data/platform/iphone/Classes/SimpleMainView.m +3 -3
  255. data/platform/iphone/ESRI/BluePushpin.png +0 -0
  256. data/platform/iphone/ESRI/BluePushpin@2x.png +0 -0
  257. data/platform/iphone/ESRI/esri.png +0 -0
  258. data/platform/iphone/ESRI/esri@2x.png +0 -0
  259. data/platform/iphone/rbuild/iphone.rake +75 -7
  260. data/platform/iphone/rhorunner.xcodeproj/project.pbxproj +13 -4
  261. data/platform/linux/target/compiler/rubylinux +0 -0
  262. data/platform/mac/target/compiler/RubyMac +0 -0
  263. data/platform/osx/Rhodes Launcher/rhorunner.app/rhorunner b/data/platform/osx/Rhodes → Launcher/rhorunner.app/rhorunner +0 -0
  264. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Frameworks/QtCore.framework/Versions/4/QtCore +0 -0
  265. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Frameworks/QtGui.framework/Resources/qt_menu.nib/keyedobjects.nib +0 -0
  266. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui +0 -0
  267. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Frameworks/QtNetwork.framework/Versions/4/QtNetwork +0 -0
  268. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Frameworks/QtWebKit.framework/Versions/4/QtWebKit +0 -0
  269. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Info.plist +1 -1
  270. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/MacOS/RhoSimulator +0 -0
  271. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/accessible/libqtaccessiblewidgets.dylib +0 -0
  272. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/bearer/libqcorewlanbearer.dylib +0 -0
  273. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/bearer/libqgenericbearer.dylib +0 -0
  274. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/codecs/libqcncodecs.dylib +0 -0
  275. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/codecs/libqjpcodecs.dylib +0 -0
  276. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/codecs/libqkrcodecs.dylib +0 -0
  277. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/codecs/libqtwcodecs.dylib +0 -0
  278. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/graphicssystems/libqtracegraphicssystem.dylib +0 -0
  279. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/imageformats/libqgif.dylib +0 -0
  280. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/imageformats/libqico.dylib +0 -0
  281. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/imageformats/libqjpeg.dylib +0 -0
  282. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/imageformats/libqmng.dylib +0 -0
  283. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/imageformats/libqtga.dylib +0 -0
  284. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/imageformats/libqtiff.dylib +0 -0
  285. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/qmltooling/libqmldbg_inspector.dylib +0 -0
  286. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/qmltooling/libqmldbg_tcp.dylib +0 -0
  287. data/platform/osx/build/osx.rake +6 -8
  288. data/platform/shared/RhoConnectClient/RhoConnectClient.cpp +165 -33
  289. data/platform/shared/RhoConnectClient/RhoConnectClient.h +10 -1
  290. data/platform/shared/common/BundleManager.cpp +27 -16
  291. data/platform/shared/common/ExtManager.h +15 -2
  292. data/platform/shared/common/RhoConf.cpp +17 -2
  293. data/platform/shared/common/RhoConf.h +3 -1
  294. data/platform/shared/common/RhoDefs.h +6 -6
  295. data/platform/shared/common/RhoFatalError.h +1 -1
  296. data/platform/shared/common/RhoFile.cpp +9 -9
  297. data/platform/shared/common/RhoFilePath.h +7 -3
  298. data/platform/shared/common/RhoPort.h +3 -3
  299. data/platform/shared/common/RhoSystem.h +1 -1
  300. data/platform/shared/common/RhodesApp.cpp +426 -26
  301. data/platform/shared/common/RhodesApp.h +11 -3
  302. data/platform/shared/common/RhodesAppBase.cpp +4 -1
  303. data/platform/shared/common/StringConverter.h +3 -3
  304. data/platform/shared/common/app_build_capabilities.h +8 -0
  305. data/platform/shared/common/map/BaseMapEngine.cpp +302 -21
  306. data/platform/shared/common/map/BaseMapEngine.h +132 -6
  307. data/platform/shared/common/map/ESRIMapEngine.cpp +2 -1
  308. data/platform/shared/common/map/GeocodingMapEngine.cpp +22 -4
  309. data/platform/shared/common/map/GeocodingMapEngine.h +40 -0
  310. data/platform/shared/common/map/GoogleMapEngine.cpp +13 -1
  311. data/platform/shared/common/map/MapEngine.h +7 -0
  312. data/platform/shared/common/map/OSMMapEngine.cpp +12 -1
  313. data/platform/shared/json/JSONIterator.cpp +1 -1
  314. data/platform/shared/json/RJSONTokener.c +2 -0
  315. data/platform/shared/json/config.h +3 -3
  316. data/platform/shared/logging/RhoLog.cpp +12 -3
  317. data/platform/shared/logging/RhoLog.h +2 -1
  318. data/platform/shared/logging/RhoLogConf.cpp +147 -11
  319. data/platform/shared/logging/RhoLogConf.h +39 -1
  320. data/platform/shared/logging/RhoLogSink.cpp +1 -1
  321. data/platform/shared/net/HttpServer.cpp +8 -4
  322. data/platform/shared/net/INetRequest.cpp +7 -0
  323. data/platform/shared/net/INetRequest.h +2 -0
  324. data/platform/shared/net/RawSocket.cpp +1 -1
  325. data/platform/shared/qt/pbxproj2pro.pl +0 -0
  326. data/platform/shared/qt/pro_vcproj_diff.pl +0 -0
  327. data/platform/shared/qt/rhodes/QtMainWindow.cpp +1 -1
  328. data/platform/shared/qt/rhodes/impl/RhoClassFactoryImpl.h +2 -2
  329. data/platform/shared/qt/rhodes/impl/RhoThreadImpl.cpp +2 -2
  330. data/platform/shared/qt/rhodes/impl/SystemImpl.cpp +11 -1
  331. data/platform/shared/qt/rhodes/main.cpp +5 -5
  332. data/platform/shared/ruby/ext/alert/alert_wrap.c +8 -8
  333. data/platform/shared/ruby/ext/bluetooth/bluetooth.i +0 -0
  334. data/platform/shared/ruby/ext/bluetooth/bluetooth_wrap.c +16 -9
  335. data/platform/shared/ruby/ext/camera/camera.i +2 -2
  336. data/platform/shared/ruby/ext/camera/camera_wrap.c +18 -3
  337. data/platform/shared/ruby/ext/datetimepicker/datetimepicker_wrap.c +37 -8
  338. data/platform/shared/ruby/ext/geolocation/geolocation_wrap.c +8 -8
  339. data/platform/shared/ruby/ext/mapview/mapview_wrap.c +16 -9
  340. data/platform/shared/ruby/ext/nativebar/nativebar_wrap.c +16 -9
  341. data/platform/shared/ruby/ext/nativeviewmanager/nativeviewmanager.i +0 -0
  342. data/platform/shared/ruby/ext/nativeviewmanager/nativeviewmanager_wrap.c +16 -9
  343. data/platform/shared/ruby/ext/phonebook/phonebook_wrap.c +8 -1
  344. data/platform/shared/ruby/ext/rho/rhoruby.c +7 -1
  345. data/platform/shared/ruby/ext/rho/rhoruby.h +1 -0
  346. data/platform/shared/ruby/ext/rhoconf/rhoconf_wrap.c +16 -9
  347. data/platform/shared/ruby/ext/signature/signature.i +0 -0
  348. data/platform/shared/ruby/ext/signature/signature_wrap.c +9 -9
  349. data/platform/shared/ruby/ext/syncengine/syncengine_wrap.c +16 -9
  350. data/platform/shared/ruby/ext/system/system_wrap.c +16 -9
  351. data/platform/shared/ruby/ext/webview/webview_wrap.c +16 -9
  352. data/platform/shared/ruby/gc.c +1 -0
  353. data/platform/shared/ruby/regint.h +6 -4
  354. data/platform/shared/ruby/vm.c +1 -0
  355. data/platform/shared/ruby/wince/wince.h +1 -1
  356. data/platform/shared/rubyext/System.cpp +1 -1
  357. data/platform/shared/shttpd/src/rdispatcher.c +3 -3
  358. data/platform/shared/shttpd/src/std_includes.h +1 -1
  359. data/platform/shared/sqlite/sqlite3.c +1 -0
  360. data/platform/shared/statistic/test/TestProfiling.cpp +1 -1
  361. data/platform/shared/stlport/build/lib/configure +0 -0
  362. data/platform/shared/stlport/build/lib/configure.bat +0 -0
  363. data/platform/shared/sync/SyncEngine.cpp +9 -12
  364. data/platform/shared/sync/SyncNotify.cpp +36 -3
  365. data/platform/shared/sync/SyncNotify.h +11 -4
  366. data/platform/shared/sync/SyncSource.cpp +32 -16
  367. data/platform/shared/sync/SyncSource.h +2 -3
  368. data/platform/shared/sync/SyncThread.cpp +13 -4
  369. data/platform/shared/sync/SyncThread.h +4 -0
  370. data/platform/shared/tcmalloc/page_heap.h +1 -1
  371. data/platform/shared/tcmalloc/rhomem.h +1 -1
  372. data/platform/shared/tcmalloc/windows/port.cpp +12 -3
  373. data/platform/shared/test/Tests.cpp +4 -4
  374. data/platform/shared/test/test_helper.cpp +4 -4
  375. data/platform/symbian/sqlite3/src/sqlite3.h +1 -1
  376. data/platform/win32/RhoSimulator/Microsoft.VC90.CRT.manifest +6 -0
  377. data/platform/win32/RhoSimulator/Microsoft.VC90.OpenMP.manifest +6 -0
  378. data/platform/win32/RhoSimulator/QtCore4.dll +0 -0
  379. data/platform/win32/RhoSimulator/QtGui4.dll +0 -0
  380. data/platform/win32/RhoSimulator/QtNetwork4.dll +0 -0
  381. data/platform/win32/RhoSimulator/QtWebKit4.dll +0 -0
  382. data/platform/win32/RhoSimulator/RhoSimulator.exe +0 -0
  383. data/platform/win32/RhoSimulator/imageformats/qgif4.dll +0 -0
  384. data/platform/win32/RhoSimulator/imageformats/qico4.dll +0 -0
  385. data/platform/win32/RhoSimulator/imageformats/qjpeg4.dll +0 -0
  386. data/platform/win32/RhoSimulator/imageformats/qmng4.dll +0 -0
  387. data/platform/win32/RhoSimulator/imageformats/qsvg4.dll +0 -0
  388. data/platform/win32/RhoSimulator/imageformats/qtiff4.dll +0 -0
  389. data/platform/win32/RhoSimulator/libeay32.dll +0 -0
  390. data/platform/win32/RhoSimulator/msvcm90.dll +0 -0
  391. data/platform/win32/RhoSimulator/msvcp90.dll +0 -0
  392. data/platform/win32/RhoSimulator/msvcr90.dll +0 -0
  393. data/platform/win32/RhoSimulator/phonon4.dll +0 -0
  394. data/platform/win32/RhoSimulator/ssleay32.dll +0 -0
  395. data/platform/win32/RhoSimulator/vcomp90.dll +0 -0
  396. data/platform/win32/target/replaceicon/replaceicon.exe +0 -0
  397. data/platform/win32/target/updateresstring/updateresstring.exe +0 -0
  398. data/platform/wm/RhoLib/RhoLib.vcproj +394 -69
  399. data/platform/wm/build/build_inf.js +83 -23
  400. data/platform/wm/build/wm.rake +127 -81
  401. data/platform/wm/rhodes.sln +6 -6
  402. data/platform/wm/rhodes/DateTimePicker.h +2 -2
  403. data/platform/wm/rhodes/IBrowserEngine.h +3 -0
  404. data/platform/wm/rhodes/IEBrowserEngine.cpp +34 -2
  405. data/platform/wm/rhodes/IEBrowserEngine.h +4 -1
  406. data/platform/wm/rhodes/LicenseStub.cpp +73 -0
  407. data/platform/{android/Rhodes/src/com/rhomobile/rhodes/webview/ChromeClientNew.java → wm/rhodes/LogMemory.cpp} +32 -20
  408. data/platform/{android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebSettings.java → wm/rhodes/LogMemory.h} +11 -8
  409. data/platform/wm/rhodes/LogOptionsDlg.h +1 -1
  410. data/platform/wm/rhodes/LogView.cpp +10 -10
  411. data/platform/wm/rhodes/LogView.h +10 -10
  412. data/platform/wm/rhodes/MainWindow.cpp +431 -173
  413. data/platform/wm/rhodes/MainWindow.h +37 -19
  414. data/platform/wm/rhodes/MapView/MapViewManager.h +1 -1
  415. data/platform/wm/rhodes/OkCancelModalDialog.h +1 -1
  416. data/platform/wm/rhodes/Rhodes.cpp +210 -47
  417. data/platform/wm/rhodes/Rhodes.rc +38 -0
  418. data/platform/wm/rhodes/bluetooth/Bluetooth.cpp +2 -2
  419. data/platform/wm/rhodes/bluetooth/Bluetooth.h +3 -3
  420. data/platform/wm/rhodes/camera/Camera.cpp +2 -1
  421. data/platform/wm/rhodes/camera/Camera.h +1 -1
  422. data/platform/wm/rhodes/resource.h +1 -1
  423. data/platform/wm/rhodes/rho/common/ExtManager.cpp +93 -5
  424. data/platform/wm/rhodes/rho/net/NetRequestImpl.cpp +2 -2
  425. data/platform/wm/rhodes/rho/rubyext/NativeToolbar.cpp +2 -2
  426. data/platform/wm/rhodes/rho/rubyext/SystemImpl.cpp +13 -7
  427. data/platform/wm/rhodes/rhodes.vcproj +1409 -1008
  428. data/platform/wm/rhodes/simulator/MainWindowQt.h +1 -1
  429. data/platform/wm/rhodes/stdafx.h +2 -2
  430. data/platform/wm/rhoelements.sln +7 -9
  431. data/platform/wm/rubylib/rubylib.vcproj +62 -1
  432. data/platform/wm/sqlite3/sqlite3.vcproj +62 -1
  433. data/platform/wm/syncengine/syncengine.vcproj +62 -1
  434. data/platform/wm/tcmalloc/tcmalloc.vcproj +72 -53
  435. data/platform/wm/tools/detool/detool.cpp +1435 -1357
  436. data/platform/wp7/RhoRubyExtGen/GenerateInitializers.cmd +0 -0
  437. data/platform/wp7/RhoRubyLib/common/RhoLicense.cs +105 -0
  438. data/platform/wp7/RhoRubyLib/common/RhodesApp.cs +23 -5
  439. data/platform/wp7/RhoRubyLib/sync/SyncNotify.cs +5 -0
  440. data/platform/wp7/RhoRubyLib/views/RhoView.xaml.cs +22 -3
  441. data/platform/wp7/build/wp.rake +1 -0
  442. data/platform/wp7/rhodes/MainPage.xaml.cs +11 -0
  443. data/rakefile.rb +225 -59
  444. data/res/build-tools/7za.exe +0 -0
  445. data/res/build-tools/RhoAppRunner.exe +0 -0
  446. data/res/build-tools/RhoLogServer.exe +0 -0
  447. data/res/build-tools/RhoRuby.exe +0 -0
  448. data/res/build-tools/RubyMac +0 -0
  449. data/res/build-tools/detool.exe +0 -0
  450. data/res/build-tools/iphonesim/Source/iPhoneSimulator.m +1 -1
  451. data/res/build-tools/iphonesim/build/Release/iphonesim +0 -0
  452. data/res/build-tools/iphonesim/build/Release/iphonesim_43 +0 -0
  453. data/res/build-tools/license_rc.dll +0 -0
  454. data/res/build-tools/make.exe +0 -0
  455. data/res/build-tools/rubylinux +0 -0
  456. data/res/build-tools/swig_patch/Lib/typemaps/fragments.swg +235 -0
  457. data/res/build-tools/wmdc_connect.exe +0 -0
  458. data/res/build-tools/wp7explorer.exe +0 -0
  459. data/res/generators/rhogen.rb +2 -2
  460. data/res/generators/templates/application/app/Settings/controller.rb +1 -1
  461. data/res/generators/templates/application/app/layout.erb +1 -1
  462. data/res/generators/templates/application/app/loading.png +0 -0
  463. data/res/generators/templates/application/public/css/re_webkit.css +736 -0
  464. data/res/generators/templates/application/public/css/windows_mobile.css +0 -0
  465. data/res/generators/templates/application/public/images/listArrow.png +0 -0
  466. data/res/generators/templates/application/public/jqmobile/images/ajax-loader.png +0 -0
  467. data/res/generators/templates/application/public/jqmobile/images/icons-18-black.png +0 -0
  468. data/res/generators/templates/application/public/jqmobile/images/icons-18-white.png +0 -0
  469. data/res/generators/templates/application/public/jqmobile/images/icons-36-black.png +0 -0
  470. data/res/generators/templates/application/public/jqmobile/images/icons-36-white.png +0 -0
  471. data/res/generators/templates/application/public/js/syncengine.js +409 -52
  472. data/res/generators/templates/extension/extensions/montana/ext/build +0 -0
  473. data/res/generators/templates/extension/extensions/montana/ext/build.bat +0 -0
  474. data/res/generators/templates/extension/extensions/montana/ext/montana/platform/android/Rakefile +10 -10
  475. data/res/generators/templates/spec/app/SpecRunner/controller.rb +2 -0
  476. data/res/libs/motorolalicence/android/MotorolaLicence.h +13 -0
  477. data/res/libs/motorolalicence/android/libMotorolaLicence.a +0 -0
  478. data/res/libs/motorolalicence/iphone/MotorolaLicence.h +13 -0
  479. data/res/libs/motorolalicence/iphone/libMotorolaLicence.a +0 -0
  480. data/rhodes.gemspec +1 -1
  481. data/spec/framework_spec/app/SpecRunner/controller.rb +2 -0
  482. data/spec/phone_spec/app/SpecRunner/controller.rb +2 -0
  483. data/version +1 -1
  484. metadata +487 -412
  485. data/Manifest.txt +0 -7960
  486. data/platform/android/Rhodes/src/com/rhomobile/rhodes/RhodesActivityStartupListeners.java +0 -12
  487. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebSettingsNew.java +0 -52
  488. data/platform/android/Rhodes/src/com/rhomobile/rhodes/webview/RhoWebSettingsOld.java +0 -62
  489. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/Frameworks/phonon.framework/Versions/4/phonon +0 -0
  490. data/platform/osx/bin/RhoSimulator/RhoSimulator.app/Contents/PlugIns/phonon_backend/libphonon_qt7.dylib +0 -0
  491. data/platform/win32/RhoSimulator/Microsoft.VC80.CRT.manifest +0 -8
  492. data/platform/win32/RhoSimulator/Microsoft.VC80.OpenMP.manifest +0 -7
  493. data/platform/win32/RhoSimulator/msvcm80.dll +0 -0
  494. data/platform/win32/RhoSimulator/msvcp80.dll +0 -0
  495. data/platform/win32/RhoSimulator/msvcr80.dll +0 -0
  496. data/platform/win32/RhoSimulator/vcomp.dll +0 -0
  497. data/rhomobile-debug-1.0.6.gem +0 -0
@@ -5,9 +5,9 @@ var fso,output_file;
5
5
  var stdout = WScript.StdOut;
6
6
 
7
7
  var settings = new Object();
8
- settings['wm6'] = ['Windows Mobile 6 Professional SDK (ARMV4I)','VersionMin=5.02','VersionMax=6.99'];
9
- settings['wm653'] = ['Windows Mobile 6.5.3 Professional DTK (ARMV4I)','VersionMin=5.02','VersionMax=6.99'];
10
- settings['ce5'] = ['MC3000c50b (ARMV4I)','VersionMin=5.00','VersionMax=6.99'];
8
+ settings['wm6'] = ['Windows Mobile 6 Professional SDK (ARMV4I)','VersionMin=5.02','VersionMax=7.99'];
9
+ settings['wm653'] = ['Windows Mobile 6.5.3 Professional DTK (ARMV4I)','VersionMin=5.02','VersionMax=7.99'];
10
+ settings['ce5'] = ['MC3000c50b (ARMV4I)','VersionMin=5.00','VersionMax=7.99'];
11
11
 
12
12
  main();
13
13
 
@@ -41,7 +41,7 @@ function expand_source(es,name,path,section,destination,flag) {
41
41
  }
42
42
  }
43
43
 
44
- function expand_sources(sources) {
44
+ function expand_sources_rho(sources) {
45
45
  var es = new Array();
46
46
  for (var i in sources) {
47
47
  expand_source(es,sources[i][0],sources[i][1],"copyfiles","rho",false);
@@ -49,7 +49,7 @@ function expand_sources(sources) {
49
49
  return es;
50
50
  }
51
51
 
52
- function expand_sources1(es, sources) {
52
+ function expand_sources(es, sources) {
53
53
  for (var i in sources) {
54
54
  expand_source(es, sources[i][0], sources[i][1], "copyfiles", "",true);
55
55
  }
@@ -204,7 +204,20 @@ function fill_extensions_files(exts) {
204
204
  }
205
205
  }
206
206
 
207
- function pinf(platform,es,exts,name,vendor,srcdir,show_shortcut,is_icon,webkit,rhogempath,usereruntime) {
207
+ function fill_registry_keys() {
208
+ var regfName = "regs.txt";
209
+
210
+ if (fso.FileExists(regfName)) {
211
+ var regf = fso.OpenTextFile(regfName);
212
+ var contents = regf.ReadAll();
213
+ regf.Close();
214
+
215
+ p(contents);
216
+ p("")
217
+ }
218
+ }
219
+
220
+ function pinf(platform,es,exts,name,vendor,srcdir,show_shortcut,is_icon,webkit,rhogempath,usereruntime,include_motocaps,is_custom_config) {
208
221
  p("[Version]");
209
222
  p("Signature=\"$Windows NT$\"");
210
223
  p("Provider=\""+vendor+"\"");
@@ -227,7 +240,7 @@ function pinf(platform,es,exts,name,vendor,srcdir,show_shortcut,is_icon,webkit,r
227
240
  p("CEShortcuts=Shortcuts");
228
241
  }
229
242
  p("AddReg=RegKeys");
230
- p("CopyFiles=CopyToInstallDir"+((!usereruntime) && webkit ? ",CopyWebKitBin,CopyNPAPI,CopyConfig" : "")+(show_shortcut && usereruntime ? ",Shortcuts" : "")+get_copyfiles_sections(es));
243
+ p("CopyFiles=CopyToInstallDir"+((!usereruntime) && webkit ? ",CopyWebKitBin,CopyNPAPI,CopyConfig,CopySystemFiles" : "")+((!usereruntime) && (!webkit) && include_motocaps? ",CopyConfig" : "")+(show_shortcut && usereruntime ? ",Shortcuts" : "")+get_copyfiles_sections(es));
231
244
  p("");
232
245
  p("[SourceDisksNames]");
233
246
  if (usereruntime) {
@@ -238,6 +251,12 @@ function pinf(platform,es,exts,name,vendor,srcdir,show_shortcut,is_icon,webkit,r
238
251
  p("2=,\"\",," + rhogempath + "\"\\\"");
239
252
  p("3=,\"\",," + rhogempath + "\"\\NPAPI\\\"");
240
253
  p("4=,\"\",," + rhogempath + "\"\\Config\\\"");
254
+ }else
255
+ {
256
+ if(include_motocaps)
257
+ {
258
+ p("2=,\"\",," + rhogempath + "\"\\Config\\\"");
259
+ }
241
260
  }
242
261
  }
243
262
  get_source_disks_names(es);
@@ -249,15 +268,27 @@ function pinf(platform,es,exts,name,vendor,srcdir,show_shortcut,is_icon,webkit,r
249
268
  p("\"" + name + ".exe\"=1");
250
269
  if (webkit) {
251
270
  p("\"eklibrary.dll\"=2");
271
+ p("\"prtlib.dll\"=2");
252
272
  p("\"webkit.dll\"=2");
253
- p("\"license_rc.dll\"=2");
254
273
  p("\"openssl.dll\"=2");
255
274
  p("\"PBEngine_WK.dll\"=2");
256
275
  p("\"npwtg_jsobjects.dll\"=3");
257
276
  p("\"npwtg_legacy.dll\"=3");
258
- p("\"Config.xml\"=4");
277
+ if (!is_custom_config) {
278
+ p("\"Config.xml\"=4");
279
+ }
259
280
  p("\"Plugin.xml\"=4");
260
281
  p("\"RegEx.xml\"=4");
282
+ }else
283
+ {
284
+ if(include_motocaps)
285
+ {
286
+ if (!is_custom_config) {
287
+ p("\"Config.xml\"=2");
288
+ }
289
+ p("\"Plugin.xml\"=2");
290
+ p("\"RegEx.xml\"=2");
291
+ }
261
292
  }
262
293
  }
263
294
  fill_extensions_source_disk_files(exts);
@@ -267,12 +298,19 @@ function pinf(platform,es,exts,name,vendor,srcdir,show_shortcut,is_icon,webkit,r
267
298
  if (show_shortcut){
268
299
  p("Shortcuts=0,\"%CE11%\"");
269
300
  }
270
- p("CopyToInstallDir=0,\"%InstallDir%\"");
301
+ if ((!usereruntime) && webkit) {
302
+ p("CopySystemFiles=0,\"%CE2%\"");
303
+ }
304
+ p("CopyToInstallDir=0,\"%InstallDir%\"");
271
305
  if ((!usereruntime) && webkit) {
272
306
  p("CopyWebKitBin=0,\"%InstallDir%\"");
273
307
  p("CopyNPAPI=0,\"%InstallDir%\\NPAPI\"");
274
308
  p("CopyConfig=0,\"%InstallDir%\\Config\"");
275
309
  }
310
+ if ((!usereruntime) && (!webkit) && include_motocaps) {
311
+ p("CopyConfig=0,\"%InstallDir%\\Config\"");
312
+ }
313
+
276
314
  get_destination_dirs(es);
277
315
  p("");
278
316
  p("[CopyToInstallDir]");
@@ -280,12 +318,12 @@ function pinf(platform,es,exts,name,vendor,srcdir,show_shortcut,is_icon,webkit,r
280
318
  p("\"" + name + ".lnk\",\"" + name + ".lnk\",,0");
281
319
  } else {
282
320
  p("\"" + name + ".exe\",\"" + name + ".exe\",,0");
321
+ p("\"license_rc.dll\",\"license_rc.dll\",,0");
283
322
  if (webkit) {
284
323
  p("");
285
324
  p("[CopyWebKitBin]");
286
325
  p("\"eklibrary.dll\",\"eklibrary.dll\",,0");
287
326
  p("\"webkit.dll\",\"webkit.dll\",,0");
288
- p("\"license_rc.dll\",\"license_rc.dll\",,0");
289
327
  p("\"openssl.dll\",\"openssl.dll\",,0");
290
328
  p("\"PBEngine_WK.dll\",\"PBEngine_WK.dll\",,0");
291
329
  p("");
@@ -294,9 +332,26 @@ function pinf(platform,es,exts,name,vendor,srcdir,show_shortcut,is_icon,webkit,r
294
332
  p("\"npwtg_legacy.dll\",\"npwtg_legacy.dll\",,0");
295
333
  p("");
296
334
  p("[CopyConfig]");
297
- p("\"Config.xml\",\"Config.xml\",,0");
335
+ if (!is_custom_config) {
336
+ p("\"Config.xml\",\"Config.xml\",,0");
337
+ }
298
338
  p("\"Plugin.xml\",\"Plugin.xml\",,0");
299
339
  p("\"RegEx.xml\",\"RegEx.xml\",,0");
340
+ p("");
341
+ p("[CopySystemFiles]");
342
+ p("\"prtlib.dll\",\"prtlib.dll\",,0");
343
+ }else
344
+ {
345
+ if(include_motocaps)
346
+ {
347
+ p("");
348
+ p("[CopyConfig]");
349
+ if (!is_custom_config) {
350
+ p("\"Config.xml\",\"Config.xml\",,0");
351
+ }
352
+ p("\"Plugin.xml\",\"Plugin.xml\",,0");
353
+ p("\"RegEx.xml\",\"RegEx.xml\",,0");
354
+ }
300
355
  }
301
356
  }
302
357
  fill_extensions_files(exts);
@@ -312,10 +367,12 @@ function pinf(platform,es,exts,name,vendor,srcdir,show_shortcut,is_icon,webkit,r
312
367
  }
313
368
  p("");
314
369
  p("[RegKeys]");
370
+ fill_registry_keys()
315
371
  p("");
316
372
  }
317
373
 
318
374
  function main() {
375
+
319
376
  // args(0) = .inf filename
320
377
  // args(1) = platform ('wm6' or 'ce5')
321
378
  // args(2) = app_name
@@ -325,43 +382,46 @@ function main() {
325
382
  // args(6) = include motorola webkit binaries and configs?
326
383
  // args(7) = rhoelements gem folder path
327
384
  // args(8) = use RhoElements runtime?
328
- // args(9)... = additional files
385
+ // args(9) = use Motorola extextension?
386
+ // args(10)... = additional files
329
387
 
330
388
  var args = WScript.Arguments;
331
389
  fso = new ActiveXObject("Scripting.FileSystemObject");
332
390
  output_file = fso.CreateTextFile(args(0));
333
- srcdir = args(4)
334
- is_icon = fso.FileExists(srcdir+"/icon/icon.ico");
335
- show_shortcut = (args(5) == "0");
336
- include_webkit = (args(6) == "1");
337
- usereruntime = (args(8) == "1");
391
+ var srcdir = args(4)
392
+ var is_icon = fso.FileExists(srcdir+"/icon/icon.ico");
393
+ var show_shortcut = (args(5) == "0");
394
+ var include_webkit = (args(6) == "1");
395
+ var usereruntime = (args(8) == "1");
396
+ var include_motocaps = (args(9) == "1");
397
+ var is_custom_config = fso.FileExists(srcdir+"/apps/Config.xml");
338
398
 
339
399
  var sources = new Object();
340
400
  sources['db'] = ["db","..\\..\\..\\platform\\shared\\db\\res\\db"];
341
- //sources['sqlite3']= ["sqlite3","..\\..\\shared\\sqlite3"];
401
+
342
402
  if (!usereruntime)
343
403
  sources['lib']= ["lib",srcdir+"/lib"];
344
404
  else if (is_icon)
345
405
  sources['icon']= ["icon",srcdir+"/icon"];
346
406
  sources['apps']= ["apps",srcdir+"/apps"];
347
407
 
348
- var es = expand_sources(sources);
408
+ var es = expand_sources_rho(sources);
349
409
 
350
- for (var idx = 9; idx < args.length; idx++)
410
+ for (var idx = 10; idx < args.length; idx++)
351
411
  {
352
412
  if (args(idx) == null)
353
413
  break;
354
414
 
355
415
  var sources_add = new Object();
356
416
  sources_add['files']= ["add" + idx,args(idx)];
357
- es = expand_sources1(es, sources_add);
417
+ es = expand_sources(es, sources_add);
358
418
  }
359
419
 
360
420
  var exts;
361
421
  if (!usereruntime) {
362
422
  exts = expand_extensions(args(1));
363
423
  }
364
- pinf(args(1),es,exts,args(2),args(3),srcdir,show_shortcut,is_icon,include_webkit,args(7),usereruntime);
424
+ pinf(args(1),es,exts,args(2),args(3),srcdir,show_shortcut,is_icon,include_webkit,args(7),usereruntime,include_motocaps,is_custom_config);
365
425
 
366
426
  output_file.Close();
367
427
  }
@@ -25,7 +25,10 @@
25
25
  #------------------------------------------------------------------------
26
26
 
27
27
  def kill_detool
28
- `taskkill /F /IM detool.exe`
28
+ begin
29
+ `taskkill /F /IM detool.exe`
30
+ rescue Exception => e
31
+ end
29
32
  end
30
33
 
31
34
  def sign (cabfile)
@@ -99,17 +102,21 @@ namespace "config" do
99
102
  $cabwiz = File.join($config["env"]["paths"]["cabwiz"], "cabwiz.exe") if $config["env"]["paths"]["cabwiz"]
100
103
  $cabwiz = "cabwiz" if $cabwiz.nil?
101
104
  $webkit_capability = !($app_config["capabilities"].nil? or $app_config["capabilities"].index("webkit_browser").nil?)
105
+ $motorola_capability = !($app_config["capabilities"].nil? or $app_config["capabilities"].index("motorola").nil?)
102
106
  $wk_data_dir = "/Program Files" # its fake value for running without motorola extensions. do not delete
103
107
  $additional_dlls_path = nil
108
+ $additional_regkeys = nil
109
+ $use_direct_deploy = "yes"
104
110
 
105
111
  begin
106
- if $webkit_capability
112
+ if $webkit_capability || $motorola_capability
107
113
  require "rhoelements-data"
108
114
  $wk_data_dir = $data_dir[0]
109
115
  end
110
- rescue
116
+ rescue Exception => e
111
117
  puts "rhoelements gem is't found, webkit capability is disabled"
112
- $webkit_capability = "0"
118
+ $webkit_capability = false
119
+ $motorola_capability = false
113
120
  end
114
121
 
115
122
  unless $build_solution
@@ -133,22 +140,24 @@ namespace "config" do
133
140
  $wm_emulator = $app_config["wm"]["emulator"] if $app_config["wm"] and $app_config["wm"]["emulator"]
134
141
  $wm_emulator = "Windows Mobile 6 Professional Emulator" unless $wm_emulator
135
142
 
136
- $use_re_runtime = (($app_config["wm"].nil? || $app_config["wm"]["use_re_runtime"].nil?) ? nil : 1 )
137
- #puts $app_config["wm"]["use_re_runtime"].inspect
138
- #puts $use_re_runtime.inspect
143
+ $use_shared_runtime = (($app_config["use_shared_runtime"].nil? && ($app_config["wm"].nil? || $app_config["wm"]["use_shared_runtime"].nil?)) ? nil : 1 )
144
+ #puts $app_config["wm"]["use_shared_runtime"].inspect
145
+ #puts $use_shared_runtime.inspect
139
146
  end
140
147
  end
141
148
 
142
149
  namespace "build" do
143
150
  namespace "wm" do
144
151
  task :extensions => "config:wm" do
145
- if not $use_re_runtime.nil? then next end
152
+ if not $use_shared_runtime.nil? then next end
146
153
 
147
154
  if $additional_dlls_path.nil?
148
155
  puts 'new $additional_dlls_paths'
149
156
  $additional_dlls_paths = Array.new
150
157
  end
151
-
158
+
159
+ $regkeys = Array.new
160
+
152
161
  $app_config["extensions"].each do |ext|
153
162
  $app_config["extpaths"].each do |p|
154
163
  extpath = File.join(p, ext, 'ext')
@@ -169,6 +178,15 @@ namespace "build" do
169
178
  puts "ext_config[files] - " + ext_config["files"].to_s
170
179
  $additional_dlls_paths << File.expand_path(ext_config["files"])
171
180
  end
181
+
182
+ puts 'start read reg key'
183
+ if ext_config != nil && ext_config["regkeys"] != nil
184
+ ext_config["regkeys"].each do |key|
185
+ puts "extension " + ext + " add regkey to cab. key: " + key
186
+ $regkeys << key
187
+ end
188
+ end
189
+ puts 'end read reg key'
172
190
  chdir $startdir
173
191
 
174
192
  ENV['RHO_PLATFORM'] = $current_platform
@@ -188,10 +206,11 @@ namespace "build" do
188
206
  break
189
207
  end
190
208
  end
209
+
191
210
  #test
192
- $additional_dlls_paths.each do |x|
193
- puts " - " + x.to_s
194
- end
211
+ #$additional_dlls_paths.each do |x|
212
+ # puts " - " + x.to_s
213
+ #end
195
214
  #exit
196
215
  end
197
216
 
@@ -201,7 +220,7 @@ namespace "build" do
201
220
  end
202
221
 
203
222
  task :rhodes => ["config:wm", "build:wm:rhobundle"] do
204
- if not $use_re_runtime.nil? then next end
223
+ if not $use_shared_runtime.nil? then next end
205
224
 
206
225
  chdir $config["build"]["wmpath"]
207
226
 
@@ -285,7 +304,7 @@ namespace "build" do
285
304
 
286
305
  end
287
306
 
288
- task :rhosimulator => ["config:set_win32_platform", "config:wm"] do
307
+ task :rhosimulator => ["config:set_win32_platform", "config:wm", "build:rhosimulator_version"] do
289
308
  $rhosimulator_build = true
290
309
  $config["platform"] = $current_platform
291
310
  chdir $startdir
@@ -317,6 +336,7 @@ namespace "build" do
317
336
  end
318
337
  cp File.join($startdir, $vcbindir, "win32/rhodes/SimulatorRelease/rhosimulator.exe"), target_path
319
338
 
339
+ cp File.join(qtdir, "bin/phonon4.dll"), target_path
320
340
  cp File.join(qtdir, "bin/QtCore4.dll"), target_path
321
341
  cp File.join(qtdir, "bin/QtGui4.dll"), target_path
322
342
  cp File.join(qtdir, "bin/QtNetwork4.dll"), target_path
@@ -359,11 +379,12 @@ namespace "device" do
359
379
  task :production => ["config:wm","build:wm:rhobundle","build:wm:rhodes"] do
360
380
 
361
381
  wm_icon = $app_path + '/icon/icon.ico'
362
- if $use_re_runtime.nil? then
382
+ if $use_shared_runtime.nil? then
363
383
  out_dir = $startdir + "/" + $vcbindir + "/#{$sdk}" + "/rhodes/Release/"
364
384
  cp out_dir + "rhodes.exe", out_dir + $appname + ".exe"
385
+ cp $startdir + "/res/build-tools/license_rc.dll", out_dir + "license_rc.dll"
365
386
  else
366
- shortcut_content = '"\\Program Files\\RhoElements2\\RhoElements2.exe" -approot="\\Program Files\\' + $appname + '"'
387
+ shortcut_content = '"\\Program Files\\RhoElements\\RhoElements.exe" -approot="\\Program Files\\' + $appname + '"'
367
388
  if File.exists? wm_icon then
368
389
  shortcut_content = shortcut_content + '?"\\Program Files\\' + $appname + '\\rho\\icon\\icon.ico"'
369
390
  end
@@ -379,7 +400,7 @@ namespace "device" do
379
400
 
380
401
  icon_dest = $srcdir + '/icon'
381
402
  rm_rf icon_dest
382
- if not $use_re_runtime.nil? then
403
+ if not $use_shared_runtime.nil? then
383
404
  rm_rf $srcdir + '/lib'
384
405
  if File.exists? wm_icon then
385
406
  mkdir_p icon_dest if not File.exists? icon_dest
@@ -387,14 +408,32 @@ namespace "device" do
387
408
  end
388
409
  end
389
410
 
390
- args = ['build_inf.js', $appname + ".inf", build_platform, '"' + $app_config["name"] +'"', $app_config["vendor"], '"' + $srcdir + '"', $hidden_app, ($webkit_capability ? "1" : "0"), $wk_data_dir, (($use_re_runtime.nil?) ? "0" : "1")]
411
+ args = ['build_inf.js', $appname + ".inf", build_platform, '"' + $app_config["name"] +'"', $app_config["vendor"], '"' + $srcdir + '"', $hidden_app,
412
+ ($webkit_capability ? "1" : "0"), $wk_data_dir, (($use_shared_runtime.nil?) ? "0" : "1"), ($motorola_capability ? "1" : "0")]
391
413
 
392
- if $use_re_runtime.nil? then
414
+ if $use_shared_runtime.nil? then
393
415
  $additional_dlls_paths.each do |path|
394
416
  args << path
395
417
  end
396
418
  end
419
+
420
+ reg_keys_filename = File.join(File.dirname(__FILE__), "regs.txt");
421
+ puts 'remove file with registry keys'
422
+ if File.exists? reg_keys_filename
423
+ rm reg_keys_filename
424
+ end
425
+
426
+ if $regkeys && $regkeys.size > 0
427
+ puts 'add registry keys to file'
428
+ $regkey_file = File.new(reg_keys_filename, "w+")
429
+
430
+ $regkeys.each do |key|
431
+ $regkey_file.puts(key + "\n")
432
+ end
397
433
 
434
+ $regkey_file.close
435
+ end
436
+
398
437
  puts Jake.run('cscript',args)
399
438
  unless $? == 0
400
439
  puts "Error running build_inf"
@@ -429,7 +468,6 @@ namespace "device" do
429
468
  rm_f "cleanup.js"
430
469
 
431
470
  chdir $startdir
432
-
433
471
  end
434
472
  end
435
473
  end
@@ -456,9 +494,9 @@ namespace "clean" do
456
494
  end
457
495
 
458
496
  namespace "run" do
459
- task :mylogserver => ["config:wm"] do
460
- Jake.run_rho_log_server($app_path)
461
- end
497
+ task :mylogserver => ["config:wm"] do
498
+ Jake.run_rho_log_server($app_path)
499
+ end
462
500
 
463
501
  def gelLogPath
464
502
  log_file_path = File.join($app_path, $log_file)
@@ -467,46 +505,51 @@ namespace "run" do
467
505
 
468
506
  desc "Build and run on WM6 emulator"
469
507
  task :wm => ["device:wm:production"] do
470
- # kill all running detool
471
- kill_detool
508
+ if $use_direct_deploy == "no"
509
+ Rake::Task["run:wm:cab"].execute
510
+ else
511
+ # kill all running detool
512
+ kill_detool
472
513
 
473
- cd $startdir + "/res/build-tools"
474
- detool = "detool.exe"
514
+ cd $startdir + "/res/build-tools"
515
+ detool = "detool.exe"
475
516
 
476
- puts "\nStarting application on the WM6 emulator\n\n"
477
- log_file = gelLogPath
517
+ puts "\nStarting application on the WM6 emulator\n\n"
518
+ log_file = gelLogPath
478
519
 
479
- File.delete($app_path + "/started") if File.exists?($app_path + "/started")
480
- Jake.run_rho_log_server($app_path)
481
- puts "RhoLogServer is starting"
482
- while true do
483
- if File.exists?($app_path + "/started")
484
- break
520
+ File.delete($app_path + "/started") if File.exists?($app_path + "/started")
521
+ Jake.run_rho_log_server($app_path)
522
+ puts "Start Log Server. Wating while Log Server is started..."
523
+ while true do
524
+ if File.exists?($app_path + "/started")
525
+ break
526
+ end
527
+ sleep(1)
485
528
  end
486
- sleep(1)
487
- end
488
529
 
489
- if $webkit_capability and ($use_re_runtime.nil?)
490
- wk_args = [ 'wk-emu', "\"#{$wm_emulator}\"", '"'+ $wk_data_dir.gsub(/"/,'\\"') + '"', '"'+ $appname + '"']
491
- Jake.run2( detool, wk_args, {:nowait => false})
492
- end
530
+ if $webkit_capability and ($use_shared_runtime.nil?)
531
+ wk_args = [ 'wk-emu', "\"#{$wm_emulator}\"", '"'+ $wk_data_dir.gsub(/"/,'\\"') + '"', '"'+ $appname + '"']
532
+ Jake.run2( detool, wk_args, {:nowait => false})
533
+ end
493
534
 
494
- if $additional_dlls_paths
495
- $additional_dlls_paths.each do |path|
496
- add_files_args = [ 'wk-emu', "\"#{$wm_emulator}\"", '"'+ path.gsub(/"/,'\\"') + '"', '"'+ $appname + '"']
497
- Jake.run2( detool, add_files_args, {:nowait => false})
535
+ if $additional_dlls_paths
536
+ $additional_dlls_paths.each do |path|
537
+ add_files_args = [ 'wk-emu', "\"#{$wm_emulator}\"", '"'+ path.gsub(/"/,'\\"') + '"', '"'+ $appname + '"']
538
+ Jake.run2( detool, add_files_args, {:nowait => false})
539
+ end
498
540
  end
499
- end
500
541
 
501
- args = [ 'emu', "\"#{$wm_emulator}\"", '"'+$appname.gsub(/"/,'\\"')+'"', '"'+$srcdir.gsub(/"/,'\\"')+'"', '"'+((not $use_re_runtime.nil?) ? $srcdir + '/../' + $appname + '.lnk' : $startdir + "/" + $vcbindir + "/#{$sdk}" + "/rhodes/Release/" + $appname + ".exe").gsub(/"/,'\\"')+'"' , $port]
502
- Jake.run2( detool, args, {:nowait => false})
542
+ args = [ 'emu', "\"#{$wm_emulator}\"", '"'+$appname.gsub(/"/,'\\"')+'"', '"'+$srcdir.gsub(/"/,'\\"')+'"', '"'+((not $use_shared_runtime.nil?) ? $srcdir + '/../' + $appname + '.lnk' : $startdir + "/" + $vcbindir + "/#{$sdk}" + "/rhodes/Release/" + $appname + ".exe").gsub(/"/,'\\"')+'"' , $port, '"'+$startdir + "/res/build-tools/license_rc.dll" + '"']
543
+ Jake.run2( detool, args, {:nowait => false})
544
+ end
503
545
  end
504
546
 
505
547
  namespace "wm" do
506
548
  task :get_log => "config:wm" do
507
549
  puts "log_file=" + gelLogPath
508
550
  end
509
-
551
+
552
+ desc "Run application on RhoSimulator"
510
553
  task :rhosimulator => ["config:set_wm_platform", "config:common"] do
511
554
  $rhosim_config = "platform='wm'\r\n"
512
555
  Rake::Task["run:rhosimulator"].invoke
@@ -517,43 +560,47 @@ namespace "run" do
517
560
  Rake::Task["run:rhosimulator_debug"].invoke
518
561
  end
519
562
 
520
- desc "Build and run on the Windows Phone"
563
+ desc "Build and run on the Windows Mobile device"
521
564
  task :device => ["device:wm:production"] do
522
- # kill all running detool
523
- kill_detool
565
+ if $use_direct_deploy == "no"
566
+ Rake::Task["run:wm:device:cab"].execute
567
+ else
568
+ # kill all running detool
569
+ kill_detool
524
570
 
525
- cd $startdir + "/res/build-tools"
526
- detool = "detool.exe"
571
+ cd $startdir + "/res/build-tools"
572
+ detool = "detool.exe"
527
573
 
528
- puts "\nStarting application on the device"
529
- puts "Please, connect you device via ActiveSync.\n\n"
530
- log_file = gelLogPath
574
+ puts "\nStarting application on the device"
575
+ puts "Please, connect you device via ActiveSync.\n\n"
576
+ log_file = gelLogPath
531
577
 
532
- File.delete($app_path + "/started") if File.exists?($app_path + "/started")
533
-
534
- Jake.run_rho_log_server($app_path)
535
- puts "RhoLogServer is starting"
536
- while true do
537
- if File.exists?($app_path + "/started")
538
- break
539
- end
540
- sleep(1)
541
- end
578
+ File.delete($app_path + "/started") if File.exists?($app_path + "/started")
579
+
580
+ Jake.run_rho_log_server($app_path)
581
+ puts "RhoLogServer is starting"
582
+ while true do
583
+ if File.exists?($app_path + "/started")
584
+ break
585
+ end
586
+ sleep(1)
587
+ end
542
588
 
543
- if $webkit_capability and ($use_re_runtime.nil?)
544
- wk_args = [ 'wk-dev', '"'+ $wk_data_dir.gsub(/"/,'\\"') + '"', '"'+ $appname + '"']
545
- Jake.run2( detool, wk_args, {:nowait => false})
546
- end
589
+ if $webkit_capability and ($use_shared_runtime.nil?)
590
+ wk_args = [ 'wk-dev', '"'+ $wk_data_dir.gsub(/"/,'\\"') + '"', '"'+ $appname + '"']
591
+ Jake.run2( detool, wk_args, {:nowait => false})
592
+ end
547
593
 
548
- if $additional_dlls_paths
549
- $additional_dlls_paths.each do |path|
550
- add_files_args = [ 'wk-dev', '"'+ path.gsub(/"/,'\\"') + '"', '"'+ $appname + '"']
551
- Jake.run2( detool, add_files_args, {:nowait => false})
594
+ if $additional_dlls_paths
595
+ $additional_dlls_paths.each do |path|
596
+ add_files_args = [ 'wk-dev', '"'+ path.gsub(/"/,'\\"') + '"', '"'+ $appname + '"']
597
+ Jake.run2( detool, add_files_args, {:nowait => false})
598
+ end
552
599
  end
553
- end
554
600
 
555
- args = [ 'dev', '"'+$appname.gsub(/"/,'\\"')+'"', '"'+$srcdir.gsub(/"/,'\\"')+'"', '"'+((not $use_re_runtime.nil?) ? $srcdir + '/../' + $appname + '.lnk' : $startdir + "/" + $vcbindir + "/#{$sdk}" + "/rhodes/Release/" + $appname + ".exe").gsub(/"/,'\\"')+'"', $port ]
556
- Jake.run2( detool, args, {:nowait => false})
601
+ args = [ 'dev', '"'+$appname.gsub(/"/,'\\"')+'"', '"'+$srcdir.gsub(/"/,'\\"')+'"', '"'+((not $use_shared_runtime.nil?) ? $srcdir + '/../' + $appname + '.lnk' : $startdir + "/" + $vcbindir + "/#{$sdk}" + "/rhodes/Release/" + $appname + ".exe").gsub(/"/,'\\"')+'"', $port, '"'+$startdir + "/res/build-tools/license_rc.dll" + '"']
602
+ Jake.run2( detool, args, {:nowait => false})
603
+ end
557
604
  end
558
605
 
559
606
  task :spec => ["device:wm:production"] do
@@ -652,7 +699,7 @@ namespace "run" do
652
699
 
653
700
  cd $startdir + "/res/build-tools"
654
701
  detool = "detool.exe"
655
- args = ['devcab', $targetdir + '/' + $appname + ".cab", $appname, (($use_re_runtime.nil?) ? "0" : "1")]
702
+ args = ['devcab', $targetdir + '/' + $appname + ".cab", $appname, (($use_shared_runtime.nil?) ? "0" : "1")]
656
703
  puts "\nStarting application on the device"
657
704
  puts "Please, connect you device via ActiveSync.\n\n"
658
705
  log_file = gelLogPath
@@ -670,7 +717,7 @@ namespace "run" do
670
717
 
671
718
  cd $startdir + "/res/build-tools"
672
719
  detool = "detool.exe"
673
- args = ['emucab', "\"#{$wm_emulator}\"", $targetdir + '/' + $appname + ".cab", $appname, (($use_re_runtime.nil?) ? "0" : "1")]
720
+ args = ['emucab', "\"#{$wm_emulator}\"", $targetdir + '/' + $appname + ".cab", $appname, (($use_shared_runtime.nil?) ? "0" : "1")]
674
721
  log_file = gelLogPath
675
722
 
676
723
  Jake.run2( detool, ['log', log_file, $port], {:nowait => true})
@@ -789,7 +836,6 @@ namespace "run" do
789
836
  puts Jake.run2($nsis, args, {:nowait => false} )
790
837
 
791
838
  end
792
-
793
839
  end
794
840
 
795
841
  end