gobject-introspection 2.2.4-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (294) hide show
  1. checksums.yaml +7 -0
  2. data/Rakefile +129 -0
  3. data/ext/gobject-introspection/depend +10 -0
  4. data/ext/gobject-introspection/extconf.rb +94 -0
  5. data/ext/gobject-introspection/gobject_introspection.def +5 -0
  6. data/ext/gobject-introspection/rb-gi-arg-info.c +151 -0
  7. data/ext/gobject-introspection/rb-gi-argument.c +2053 -0
  8. data/ext/gobject-introspection/rb-gi-base-info.c +218 -0
  9. data/ext/gobject-introspection/rb-gi-boxed-info.c +48 -0
  10. data/ext/gobject-introspection/rb-gi-callable-info.c +104 -0
  11. data/ext/gobject-introspection/rb-gi-callback-info.c +48 -0
  12. data/ext/gobject-introspection/rb-gi-constant-info.c +77 -0
  13. data/ext/gobject-introspection/rb-gi-constructor-info.c +133 -0
  14. data/ext/gobject-introspection/rb-gi-conversions.h +145 -0
  15. data/ext/gobject-introspection/rb-gi-enum-info.c +155 -0
  16. data/ext/gobject-introspection/rb-gi-field-info.c +153 -0
  17. data/ext/gobject-introspection/rb-gi-flags-info.c +48 -0
  18. data/ext/gobject-introspection/rb-gi-function-info.c +841 -0
  19. data/ext/gobject-introspection/rb-gi-interface-info.c +222 -0
  20. data/ext/gobject-introspection/rb-gi-loader.c +224 -0
  21. data/ext/gobject-introspection/rb-gi-method-info.c +83 -0
  22. data/ext/gobject-introspection/rb-gi-object-info.c +345 -0
  23. data/ext/gobject-introspection/rb-gi-private.h +105 -0
  24. data/ext/gobject-introspection/rb-gi-property-info.c +77 -0
  25. data/ext/gobject-introspection/rb-gi-registered-type-info.c +86 -0
  26. data/ext/gobject-introspection/rb-gi-repository.c +246 -0
  27. data/ext/gobject-introspection/rb-gi-signal-info.c +77 -0
  28. data/ext/gobject-introspection/rb-gi-struct-info.c +202 -0
  29. data/ext/gobject-introspection/rb-gi-type-info.c +143 -0
  30. data/ext/gobject-introspection/rb-gi-type-tag.c +43 -0
  31. data/ext/gobject-introspection/rb-gi-types.h +71 -0
  32. data/ext/gobject-introspection/rb-gi-union-info.c +206 -0
  33. data/ext/gobject-introspection/rb-gi-unresolved-info.c +48 -0
  34. data/ext/gobject-introspection/rb-gi-value-info.c +57 -0
  35. data/ext/gobject-introspection/rb-gi-vfunc-info.c +91 -0
  36. data/ext/gobject-introspection/rb-gobject-introspection.c +44 -0
  37. data/ext/gobject-introspection/rb-gobject-introspection.h +60 -0
  38. data/extconf.rb +71 -0
  39. data/lib/2.0/gobject_introspection.so +0 -0
  40. data/lib/2.1/gobject_introspection.so +0 -0
  41. data/lib/2.2/gobject_introspection.so +0 -0
  42. data/lib/gobject-introspection.rb +53 -0
  43. data/lib/gobject-introspection/boxed-info.rb +28 -0
  44. data/lib/gobject-introspection/callable-info.rb +100 -0
  45. data/lib/gobject-introspection/collection-reader.rb +34 -0
  46. data/lib/gobject-introspection/interface-info.rb +32 -0
  47. data/lib/gobject-introspection/loader.rb +465 -0
  48. data/lib/gobject-introspection/object-info.rb +33 -0
  49. data/lib/gobject-introspection/repository.rb +32 -0
  50. data/lib/gobject-introspection/struct-info.rb +28 -0
  51. data/lib/gobject-introspection/union-info.rb +28 -0
  52. data/test/gobject-introspection-test-utils.rb +26 -0
  53. data/test/run-test.rb +45 -0
  54. data/test/test-arg-info.rb +68 -0
  55. data/test/test-base-info.rb +31 -0
  56. data/test/test-boxed-info.rb +21 -0
  57. data/test/test-callable-info.rb +49 -0
  58. data/test/test-callback-info.rb +29 -0
  59. data/test/test-constant-info.rb +24 -0
  60. data/test/test-enum-info.rb +61 -0
  61. data/test/test-field-type.rb +42 -0
  62. data/test/test-flags-info.rb +27 -0
  63. data/test/test-function-info.rb +39 -0
  64. data/test/test-interface-info.rb +97 -0
  65. data/test/test-loader.rb +30 -0
  66. data/test/test-object-info.rb +131 -0
  67. data/test/test-property-info.rb +38 -0
  68. data/test/test-registered-type-info.rb +35 -0
  69. data/test/test-repository.rb +62 -0
  70. data/test/test-signal-info.rb +40 -0
  71. data/test/test-struct-info.rb +57 -0
  72. data/test/test-type-info.rb +62 -0
  73. data/test/test-type-tag.rb +29 -0
  74. data/test/test-union-info.rb +21 -0
  75. data/test/test-value-info.rb +28 -0
  76. data/test/test-vfunc-info.rb +42 -0
  77. data/vendor/local/bin/g-ir-compiler.exe +0 -0
  78. data/vendor/local/bin/g-ir-generate.exe +0 -0
  79. data/vendor/local/bin/libgirepository-1.0-1.dll +0 -0
  80. data/vendor/local/include/gobject-introspection-1.0/giarginfo.h +82 -0
  81. data/vendor/local/include/gobject-introspection-1.0/gibaseinfo.h +120 -0
  82. data/vendor/local/include/gobject-introspection-1.0/gicallableinfo.h +110 -0
  83. data/vendor/local/include/gobject-introspection-1.0/giconstantinfo.h +58 -0
  84. data/vendor/local/include/gobject-introspection-1.0/gienuminfo.h +82 -0
  85. data/vendor/local/include/gobject-introspection-1.0/gifieldinfo.h +71 -0
  86. data/vendor/local/include/gobject-introspection-1.0/gifunctioninfo.h +100 -0
  87. data/vendor/local/include/gobject-introspection-1.0/giinterfaceinfo.h +106 -0
  88. data/vendor/local/include/gobject-introspection-1.0/giobjectinfo.h +207 -0
  89. data/vendor/local/include/gobject-introspection-1.0/gipropertyinfo.h +56 -0
  90. data/vendor/local/include/gobject-introspection-1.0/giregisteredtypeinfo.h +64 -0
  91. data/vendor/local/include/gobject-introspection-1.0/girepository.h +239 -0
  92. data/vendor/local/include/gobject-introspection-1.0/girffi.h +104 -0
  93. data/vendor/local/include/gobject-introspection-1.0/gisignalinfo.h +57 -0
  94. data/vendor/local/include/gobject-introspection-1.0/gistructinfo.h +77 -0
  95. data/vendor/local/include/gobject-introspection-1.0/gitypeinfo.h +87 -0
  96. data/vendor/local/include/gobject-introspection-1.0/gitypelib.h +80 -0
  97. data/vendor/local/include/gobject-introspection-1.0/gitypes.h +524 -0
  98. data/vendor/local/include/gobject-introspection-1.0/giunioninfo.h +84 -0
  99. data/vendor/local/include/gobject-introspection-1.0/giversionmacros.h +128 -0
  100. data/vendor/local/include/gobject-introspection-1.0/givfuncinfo.h +73 -0
  101. data/vendor/local/lib/girepository-1.0/DBus-1.0.typelib +0 -0
  102. data/vendor/local/lib/girepository-1.0/DBusGLib-1.0.typelib +0 -0
  103. data/vendor/local/lib/girepository-1.0/GIRepository-2.0.typelib +0 -0
  104. data/vendor/local/lib/girepository-1.0/GL-1.0.typelib +0 -0
  105. data/vendor/local/lib/girepository-1.0/GLib-2.0.typelib +0 -0
  106. data/vendor/local/lib/girepository-1.0/GModule-2.0.typelib +0 -0
  107. data/vendor/local/lib/girepository-1.0/GObject-2.0.typelib +0 -0
  108. data/vendor/local/lib/girepository-1.0/Gio-2.0.typelib +0 -0
  109. data/vendor/local/lib/girepository-1.0/cairo-1.0.typelib +0 -0
  110. data/vendor/local/lib/girepository-1.0/fontconfig-2.0.typelib +0 -0
  111. data/vendor/local/lib/girepository-1.0/freetype2-2.0.typelib +0 -0
  112. data/vendor/local/lib/girepository-1.0/libxml2-2.0.typelib +0 -0
  113. data/vendor/local/lib/girepository-1.0/win32-1.0.typelib +0 -0
  114. data/vendor/local/lib/girepository-1.0/xfixes-4.0.typelib +0 -0
  115. data/vendor/local/lib/girepository-1.0/xft-2.0.typelib +0 -0
  116. data/vendor/local/lib/girepository-1.0/xlib-2.0.typelib +0 -0
  117. data/vendor/local/lib/girepository-1.0/xrandr-1.3.typelib +0 -0
  118. data/vendor/local/lib/gobject-introspection/giscanner/__init__.py +24 -0
  119. data/vendor/local/lib/gobject-introspection/giscanner/__init__.pyc +0 -0
  120. data/vendor/local/lib/gobject-introspection/giscanner/__init__.pyo +0 -0
  121. data/vendor/local/lib/gobject-introspection/giscanner/annotationmain.py +76 -0
  122. data/vendor/local/lib/gobject-introspection/giscanner/annotationmain.pyc +0 -0
  123. data/vendor/local/lib/gobject-introspection/giscanner/annotationmain.pyo +0 -0
  124. data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.py +2161 -0
  125. data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.pyc +0 -0
  126. data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.pyo +0 -0
  127. data/vendor/local/lib/gobject-introspection/giscanner/ast.py +1139 -0
  128. data/vendor/local/lib/gobject-introspection/giscanner/ast.pyc +0 -0
  129. data/vendor/local/lib/gobject-introspection/giscanner/ast.pyo +0 -0
  130. data/vendor/local/lib/gobject-introspection/giscanner/cachestore.py +203 -0
  131. data/vendor/local/lib/gobject-introspection/giscanner/cachestore.pyc +0 -0
  132. data/vendor/local/lib/gobject-introspection/giscanner/cachestore.pyo +0 -0
  133. data/vendor/local/lib/gobject-introspection/giscanner/ccompiler.py +202 -0
  134. data/vendor/local/lib/gobject-introspection/giscanner/ccompiler.pyc +0 -0
  135. data/vendor/local/lib/gobject-introspection/giscanner/ccompiler.pyo +0 -0
  136. data/vendor/local/lib/gobject-introspection/giscanner/codegen.py +173 -0
  137. data/vendor/local/lib/gobject-introspection/giscanner/codegen.pyc +0 -0
  138. data/vendor/local/lib/gobject-introspection/giscanner/codegen.pyo +0 -0
  139. data/vendor/local/lib/gobject-introspection/giscanner/collections/__init__.py +23 -0
  140. data/vendor/local/lib/gobject-introspection/giscanner/collections/__init__.pyc +0 -0
  141. data/vendor/local/lib/gobject-introspection/giscanner/collections/__init__.pyo +0 -0
  142. data/vendor/local/lib/gobject-introspection/giscanner/collections/counter.py +305 -0
  143. data/vendor/local/lib/gobject-introspection/giscanner/collections/counter.pyc +0 -0
  144. data/vendor/local/lib/gobject-introspection/giscanner/collections/counter.pyo +0 -0
  145. data/vendor/local/lib/gobject-introspection/giscanner/collections/ordereddict.py +120 -0
  146. data/vendor/local/lib/gobject-introspection/giscanner/collections/ordereddict.pyc +0 -0
  147. data/vendor/local/lib/gobject-introspection/giscanner/collections/ordereddict.pyo +0 -0
  148. data/vendor/local/lib/gobject-introspection/giscanner/docmain.py +72 -0
  149. data/vendor/local/lib/gobject-introspection/giscanner/docmain.pyc +0 -0
  150. data/vendor/local/lib/gobject-introspection/giscanner/docmain.pyo +0 -0
  151. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/callback.tmpl +4 -0
  152. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/class.tmpl +2 -0
  153. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/constructor.tmpl +1 -0
  154. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/default.tmpl +1 -0
  155. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/enum.tmpl +2 -0
  156. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/field.tmpl +1 -0
  157. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/function.tmpl +60 -0
  158. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/interface.tmpl +2 -0
  159. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/method.tmpl +1 -0
  160. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/namespace.tmpl +1 -0
  161. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/property.tmpl +5 -0
  162. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/record.tmpl +1 -0
  163. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/signal.tmpl +5 -0
  164. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/C/vfunc.tmpl +4 -0
  165. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/callback.tmpl +27 -0
  166. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/class.tmpl +30 -0
  167. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/constructor.tmpl +1 -0
  168. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/default.tmpl +1 -0
  169. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/enum.tmpl +21 -0
  170. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/field.tmpl +9 -0
  171. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/function.tmpl +47 -0
  172. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/interface.tmpl +17 -0
  173. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/method.tmpl +1 -0
  174. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/namespace.tmpl +2 -0
  175. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/property.tmpl +9 -0
  176. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/record.tmpl +2 -0
  177. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/signal.tmpl +38 -0
  178. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Gjs/vfunc.tmpl +27 -0
  179. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/callback.tmpl +27 -0
  180. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/class.tmpl +18 -0
  181. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/constructor.tmpl +1 -0
  182. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/default.tmpl +1 -0
  183. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/enum.tmpl +13 -0
  184. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/field.tmpl +1 -0
  185. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/function.tmpl +47 -0
  186. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/interface.tmpl +16 -0
  187. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/method.tmpl +1 -0
  188. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/namespace.tmpl +2 -0
  189. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/property.tmpl +9 -0
  190. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/record.tmpl +2 -0
  191. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/signal.tmpl +41 -0
  192. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/Python/vfunc.tmpl +27 -0
  193. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/base.tmpl +20 -0
  194. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/class.tmpl +61 -0
  195. data/vendor/local/lib/gobject-introspection/giscanner/doctemplates/namespace.tmpl +16 -0
  196. data/vendor/local/lib/gobject-introspection/giscanner/docwriter.py +958 -0
  197. data/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyc +0 -0
  198. data/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyo +0 -0
  199. data/vendor/local/lib/gobject-introspection/giscanner/dumper.py +338 -0
  200. data/vendor/local/lib/gobject-introspection/giscanner/dumper.pyc +0 -0
  201. data/vendor/local/lib/gobject-introspection/giscanner/dumper.pyo +0 -0
  202. data/vendor/local/lib/gobject-introspection/giscanner/gdumpparser.py +529 -0
  203. data/vendor/local/lib/gobject-introspection/giscanner/gdumpparser.pyc +0 -0
  204. data/vendor/local/lib/gobject-introspection/giscanner/gdumpparser.pyo +0 -0
  205. data/vendor/local/lib/gobject-introspection/giscanner/girparser.py +593 -0
  206. data/vendor/local/lib/gobject-introspection/giscanner/girparser.pyc +0 -0
  207. data/vendor/local/lib/gobject-introspection/giscanner/girparser.pyo +0 -0
  208. data/vendor/local/lib/gobject-introspection/giscanner/girwriter.py +612 -0
  209. data/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyc +0 -0
  210. data/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyo +0 -0
  211. data/vendor/local/lib/gobject-introspection/giscanner/introspectablepass.py +240 -0
  212. data/vendor/local/lib/gobject-introspection/giscanner/introspectablepass.pyc +0 -0
  213. data/vendor/local/lib/gobject-introspection/giscanner/introspectablepass.pyo +0 -0
  214. data/vendor/local/lib/gobject-introspection/giscanner/libtoolimporter.py +76 -0
  215. data/vendor/local/lib/gobject-introspection/giscanner/libtoolimporter.pyc +0 -0
  216. data/vendor/local/lib/gobject-introspection/giscanner/libtoolimporter.pyo +0 -0
  217. data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.py +1366 -0
  218. data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.pyc +0 -0
  219. data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.pyo +0 -0
  220. data/vendor/local/lib/gobject-introspection/giscanner/message.py +203 -0
  221. data/vendor/local/lib/gobject-introspection/giscanner/message.pyc +0 -0
  222. data/vendor/local/lib/gobject-introspection/giscanner/message.pyo +0 -0
  223. data/vendor/local/lib/gobject-introspection/giscanner/scannermain.py +561 -0
  224. data/vendor/local/lib/gobject-introspection/giscanner/scannermain.pyc +0 -0
  225. data/vendor/local/lib/gobject-introspection/giscanner/scannermain.pyo +0 -0
  226. data/vendor/local/lib/gobject-introspection/giscanner/sectionparser.py +152 -0
  227. data/vendor/local/lib/gobject-introspection/giscanner/sectionparser.pyc +0 -0
  228. data/vendor/local/lib/gobject-introspection/giscanner/sectionparser.pyo +0 -0
  229. data/vendor/local/lib/gobject-introspection/giscanner/shlibs.py +140 -0
  230. data/vendor/local/lib/gobject-introspection/giscanner/shlibs.pyc +0 -0
  231. data/vendor/local/lib/gobject-introspection/giscanner/shlibs.pyo +0 -0
  232. data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.py +329 -0
  233. data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.pyc +0 -0
  234. data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.pyo +0 -0
  235. data/vendor/local/lib/gobject-introspection/giscanner/testcodegen.py +136 -0
  236. data/vendor/local/lib/gobject-introspection/giscanner/testcodegen.pyc +0 -0
  237. data/vendor/local/lib/gobject-introspection/giscanner/testcodegen.pyo +0 -0
  238. data/vendor/local/lib/gobject-introspection/giscanner/transformer.py +971 -0
  239. data/vendor/local/lib/gobject-introspection/giscanner/transformer.pyc +0 -0
  240. data/vendor/local/lib/gobject-introspection/giscanner/transformer.pyo +0 -0
  241. data/vendor/local/lib/gobject-introspection/giscanner/utils.py +211 -0
  242. data/vendor/local/lib/gobject-introspection/giscanner/utils.pyc +0 -0
  243. data/vendor/local/lib/gobject-introspection/giscanner/utils.pyo +0 -0
  244. data/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.py +156 -0
  245. data/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyc +0 -0
  246. data/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyo +0 -0
  247. data/vendor/local/lib/libgirepository-1.0.a +0 -0
  248. data/vendor/local/lib/libgirepository-1.0.dll.a +0 -0
  249. data/vendor/local/lib/libgirepository-1.0.la +41 -0
  250. data/vendor/local/lib/pkgconfig/gobject-introspection-1.0.pc +26 -0
  251. data/vendor/local/lib/pkgconfig/gobject-introspection-no-export-1.0.pc +23 -0
  252. data/vendor/local/lib/pkgconfig/patched +0 -0
  253. data/vendor/local/share/aclocal/introspection.m4 +96 -0
  254. data/vendor/local/share/gir-1.0/DBus-1.0.gir +32 -0
  255. data/vendor/local/share/gir-1.0/DBusGLib-1.0.gir +18 -0
  256. data/vendor/local/share/gir-1.0/GIRepository-2.0.gir +4042 -0
  257. data/vendor/local/share/gir-1.0/GL-1.0.gir +31 -0
  258. data/vendor/local/share/gir-1.0/GLib-2.0.gir +47221 -0
  259. data/vendor/local/share/gir-1.0/GModule-2.0.gir +301 -0
  260. data/vendor/local/share/gir-1.0/GObject-2.0.gir +14733 -0
  261. data/vendor/local/share/gir-1.0/Gio-2.0.gir +82459 -0
  262. data/vendor/local/share/gir-1.0/cairo-1.0.gir +70 -0
  263. data/vendor/local/share/gir-1.0/fontconfig-2.0.gir +18 -0
  264. data/vendor/local/share/gir-1.0/freetype2-2.0.gir +22 -0
  265. data/vendor/local/share/gir-1.0/libxml2-2.0.gir +25 -0
  266. data/vendor/local/share/gir-1.0/win32-1.0.gir +19 -0
  267. data/vendor/local/share/gir-1.0/xfixes-4.0.gir +10 -0
  268. data/vendor/local/share/gir-1.0/xft-2.0.gir +23 -0
  269. data/vendor/local/share/gir-1.0/xlib-2.0.gir +67 -0
  270. data/vendor/local/share/gir-1.0/xrandr-1.3.gir +16 -0
  271. data/vendor/local/share/gobject-introspection-1.0/Makefile.introspection +166 -0
  272. data/vendor/local/share/gobject-introspection-1.0/gdump.c +569 -0
  273. data/vendor/local/share/gobject-introspection-1.0/tests/annotation.c +831 -0
  274. data/vendor/local/share/gobject-introspection-1.0/tests/annotation.h +301 -0
  275. data/vendor/local/share/gobject-introspection-1.0/tests/drawable.c +57 -0
  276. data/vendor/local/share/gobject-introspection-1.0/tests/drawable.h +44 -0
  277. data/vendor/local/share/gobject-introspection-1.0/tests/everything.c +1579 -0
  278. data/vendor/local/share/gobject-introspection-1.0/tests/everything.h +535 -0
  279. data/vendor/local/share/gobject-introspection-1.0/tests/foo.c +790 -0
  280. data/vendor/local/share/gobject-introspection-1.0/tests/foo.h +582 -0
  281. data/vendor/local/share/gobject-introspection-1.0/tests/gimarshallingtests.c +5426 -0
  282. data/vendor/local/share/gobject-introspection-1.0/tests/gimarshallingtests.h +1948 -0
  283. data/vendor/local/share/gobject-introspection-1.0/tests/gitestmacros.h +10 -0
  284. data/vendor/local/share/gobject-introspection-1.0/tests/regress.c +4068 -0
  285. data/vendor/local/share/gobject-introspection-1.0/tests/regress.h +1415 -0
  286. data/vendor/local/share/gobject-introspection-1.0/tests/utility.c +47 -0
  287. data/vendor/local/share/gobject-introspection-1.0/tests/utility.h +102 -0
  288. data/vendor/local/share/gobject-introspection-1.0/tests/warnlib.c +47 -0
  289. data/vendor/local/share/gobject-introspection-1.0/tests/warnlib.h +46 -0
  290. data/vendor/local/share/license/gobject-introspection/AUTHORS +9 -0
  291. data/vendor/local/share/license/gobject-introspection/COPYING +12 -0
  292. data/vendor/local/share/man/man1/g-ir-compiler.1 +42 -0
  293. data/vendor/local/share/man/man1/g-ir-generate.1 +29 -0
  294. metadata +363 -0
@@ -0,0 +1,211 @@
1
+ # -*- Mode: Python -*-
2
+ # GObject-Introspection - a framework for introspecting GObject libraries
3
+ # Copyright (C) 2008 Johan Dahlin
4
+ #
5
+ # This library is free software; you can redistribute it and/or
6
+ # modify it under the terms of the GNU Lesser General Public
7
+ # License as published by the Free Software Foundation; either
8
+ # version 2 of the License, or (at your option) any later version.
9
+ #
10
+ # This library is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ # Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public
16
+ # License along with this library; if not, write to the
17
+ # Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18
+ # Boston, MA 02111-1307, USA.
19
+ #
20
+
21
+ import re
22
+ import os
23
+ import subprocess
24
+ import platform
25
+
26
+
27
+ _debugflags = None
28
+
29
+
30
+ def have_debug_flag(flag):
31
+ """Check for whether a specific debugging feature is enabled.
32
+ Well-known flags:
33
+ * start: Drop into debugger just after processing arguments
34
+ * exception: Drop into debugger on fatalexception
35
+ * warning: Drop into debugger on warning
36
+ * posttrans: Drop into debugger just before introspectable pass
37
+ """
38
+ global _debugflags
39
+ if _debugflags is None:
40
+ _debugflags = os.environ.get('GI_SCANNER_DEBUG', '').split(',')
41
+ if '' in _debugflags:
42
+ _debugflags.remove('')
43
+ return flag in _debugflags
44
+
45
+
46
+ def break_on_debug_flag(flag):
47
+ if have_debug_flag(flag):
48
+ import pdb
49
+ pdb.set_trace()
50
+
51
+ # Copied from h2defs.py
52
+ _upperstr_pat1 = re.compile(r'([^A-Z])([A-Z])')
53
+ _upperstr_pat2 = re.compile(r'([A-Z][A-Z])([A-Z][0-9a-z])')
54
+ _upperstr_pat3 = re.compile(r'^([A-Z])([A-Z])')
55
+
56
+
57
+ def to_underscores(name):
58
+ """Converts a typename to the equivalent underscores name.
59
+ This is used to form the type conversion macros and enum/flag
60
+ name variables.
61
+ In particular, and differently from to_underscores_noprefix(),
62
+ this function treats the first character differently if it is
63
+ uppercase and followed by another uppercase letter."""
64
+ name = _upperstr_pat1.sub(r'\1_\2', name)
65
+ name = _upperstr_pat2.sub(r'\1_\2', name)
66
+ name = _upperstr_pat3.sub(r'\1_\2', name, count=1)
67
+ return name
68
+
69
+
70
+ def to_underscores_noprefix(name):
71
+ """Like to_underscores, but designed for "unprefixed" names.
72
+ to_underscores("DBusFoo") => dbus_foo, not d_bus_foo."""
73
+ name = _upperstr_pat1.sub(r'\1_\2', name)
74
+ name = _upperstr_pat2.sub(r'\1_\2', name)
75
+ return name
76
+
77
+
78
+ _libtool_pat = re.compile("dlname='([A-z0-9\.\-\+]+)'\n")
79
+
80
+
81
+ def _extract_dlname_field(la_file):
82
+ f = open(la_file)
83
+ data = f.read()
84
+ f.close()
85
+ m = _libtool_pat.search(data)
86
+ if m:
87
+ return m.groups()[0]
88
+ else:
89
+ return None
90
+
91
+
92
+ _libtool_libdir_pat = re.compile("libdir='([^']+)'")
93
+
94
+
95
+ def _extract_libdir_field(la_file):
96
+ f = open(la_file)
97
+ data = f.read()
98
+ f.close()
99
+ m = _libtool_libdir_pat.search(data)
100
+ if m:
101
+ return m.groups()[0]
102
+ else:
103
+ return None
104
+
105
+
106
+ # Returns the name that we would pass to dlopen() the library
107
+ # corresponding to this .la file
108
+ def extract_libtool_shlib(la_file):
109
+ dlname = _extract_dlname_field(la_file)
110
+ if dlname is None:
111
+ return None
112
+
113
+ # Darwin uses absolute paths where possible; since the libtool files never
114
+ # contain absolute paths, use the libdir field
115
+ if platform.system() == 'Darwin':
116
+ dlbasename = os.path.basename(dlname)
117
+ libdir = _extract_libdir_field(la_file)
118
+ if libdir is None:
119
+ return dlbasename
120
+ return libdir + '/' + dlbasename
121
+ # From the comments in extract_libtool(), older libtools had
122
+ # a path rather than the raw dlname
123
+ return os.path.basename(dlname)
124
+
125
+
126
+ def extract_libtool(la_file):
127
+ dlname = _extract_dlname_field(la_file)
128
+ if dlname is None:
129
+ raise ValueError("%s has no dlname. Not a shared library?" % la_file)
130
+ libname = os.path.join(os.path.dirname(la_file),
131
+ '.libs', dlname)
132
+ # FIXME: This hackish, but I'm not sure how to do this
133
+ # in a way which is compatible with both libtool 2.2
134
+ # and pre-2.2. Johan 2008-10-21
135
+ libname = libname.replace('.libs/.libs', '.libs').replace('.libs\\.libs', '.libs')
136
+ return libname
137
+
138
+
139
+ # Returns arguments for invoking libtool, if applicable, otherwise None
140
+ def get_libtool_command(options):
141
+ libtool_infection = not options.nolibtool
142
+ if not libtool_infection:
143
+ return None
144
+
145
+ libtool_path = options.libtool_path
146
+ if libtool_path:
147
+ # Automake by default sets:
148
+ # LIBTOOL = $(SHELL) $(top_builddir)/libtool
149
+ # To be strictly correct we would have to parse shell. For now
150
+ # we simply split().
151
+ return libtool_path.split(' ')
152
+
153
+ libtool_cmd = 'libtool'
154
+ if platform.system() == 'Darwin':
155
+ # libtool on OS X is a completely different program written by Apple
156
+ libtool_cmd = 'glibtool'
157
+ try:
158
+ subprocess.check_call([libtool_cmd, '--version'],
159
+ stdout=open(os.devnull))
160
+ except (subprocess.CalledProcessError, OSError):
161
+ # If libtool's not installed, assume we don't need it
162
+ return None
163
+
164
+ return [libtool_cmd]
165
+
166
+
167
+ def files_are_identical(path1, path2):
168
+ f1 = open(path1)
169
+ f2 = open(path2)
170
+ buf1 = f1.read(8192)
171
+ buf2 = f2.read(8192)
172
+ while buf1 == buf2 and buf1 != '':
173
+ buf1 = f1.read(8192)
174
+ buf2 = f2.read(8192)
175
+ f1.close()
176
+ f2.close()
177
+ return buf1 == buf2
178
+
179
+
180
+ def cflag_real_include_path(cflag):
181
+ if not cflag.startswith("-I"):
182
+ return cflag
183
+
184
+ return "-I" + os.path.realpath(cflag[2:])
185
+
186
+
187
+ def which(program):
188
+ def is_exe(fpath):
189
+ return os.path.isfile(fpath) and os.access(fpath, os.X_OK)
190
+
191
+ def is_nt_exe(fpath):
192
+ return not fpath.lower().endswith('.exe') and \
193
+ os.path.isfile(fpath + '.exe') and \
194
+ os.access(fpath + '.exe', os.X_OK)
195
+
196
+ fpath, fname = os.path.split(program)
197
+ if fpath:
198
+ if is_exe(program):
199
+ return program
200
+ if os.name == 'nt' and is_nt_exe(program):
201
+ return program + '.exe'
202
+ else:
203
+ for path in os.environ["PATH"].split(os.pathsep):
204
+ path = path.strip('"')
205
+ exe_file = os.path.join(path, program)
206
+ if is_exe(exe_file):
207
+ return exe_file
208
+ if os.name == 'nt' and is_nt_exe(exe_file):
209
+ return exe_file + '.exe'
210
+
211
+ return None
@@ -0,0 +1,156 @@
1
+ # -*- Mode: Python -*-
2
+ # GObject-Introspection - a framework for introspecting GObject libraries
3
+ # Copyright (C) 2008 Johan Dahlin
4
+ #
5
+ # This library is free software; you can redistribute it and/or
6
+ # modify it under the terms of the GNU Lesser General Public
7
+ # License as published by the Free Software Foundation; either
8
+ # version 2 of the License, or (at your option) any later version.
9
+ #
10
+ # This library is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ # Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public
16
+ # License along with this library; if not, write to the
17
+ # Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18
+ # Boston, MA 02111-1307, USA.
19
+ #
20
+
21
+ from __future__ import with_statement
22
+
23
+ import os
24
+
25
+ from contextlib import contextmanager
26
+ from cStringIO import StringIO
27
+ from xml.sax.saxutils import escape
28
+
29
+ from .libtoolimporter import LibtoolImporter
30
+
31
+
32
+ with LibtoolImporter(None, None):
33
+ if 'UNINSTALLED_INTROSPECTION_SRCDIR' in os.environ:
34
+ from _giscanner import collect_attributes
35
+ else:
36
+ from giscanner._giscanner import collect_attributes
37
+
38
+
39
+ def build_xml_tag(tag_name, attributes=None, data=None, self_indent=0,
40
+ self_indent_char=' '):
41
+ if attributes is None:
42
+ attributes = []
43
+ prefix = u'<%s' % (tag_name, )
44
+ if data is not None:
45
+ if isinstance(data, str):
46
+ data = data.decode('UTF-8')
47
+ suffix = u'>%s</%s>' % (escape(data), tag_name)
48
+ else:
49
+ suffix = u'/>'
50
+ attrs = collect_attributes(
51
+ tag_name, attributes,
52
+ self_indent,
53
+ self_indent_char,
54
+ len(prefix) + len(suffix))
55
+ return prefix + attrs + suffix
56
+
57
+
58
+ class XMLWriter(object):
59
+
60
+ def __init__(self):
61
+ self._data = StringIO()
62
+ self._data.write('<?xml version="1.0"?>\n')
63
+ self._tag_stack = []
64
+ self._indent = 0
65
+ self._indent_unit = 2
66
+ self.enable_whitespace()
67
+
68
+ # Private
69
+
70
+ def _open_tag(self, tag_name, attributes=None):
71
+ if attributes is None:
72
+ attributes = []
73
+ attrs = collect_attributes(tag_name, attributes,
74
+ self._indent, self._indent_char, len(tag_name) + 2)
75
+ self.write_line(u'<%s%s>' % (tag_name, attrs))
76
+
77
+ def _close_tag(self, tag_name):
78
+ self.write_line(u'</%s>' % (tag_name, ))
79
+
80
+ # Public API
81
+
82
+ def enable_whitespace(self):
83
+ self._indent_char = ' '
84
+ self._newline_char = '\n'
85
+
86
+ def disable_whitespace(self):
87
+ self._indent_char = ''
88
+ self._newline_char = ''
89
+
90
+ def get_xml(self):
91
+ return self._data.getvalue()
92
+
93
+ def write_line(self, line=u'', indent=True, do_escape=False):
94
+ if isinstance(line, str):
95
+ line = line.decode('utf-8')
96
+ assert isinstance(line, unicode)
97
+ if do_escape:
98
+ line = escape(line)
99
+ if indent:
100
+ self._data.write('%s%s%s' % (self._indent_char * self._indent,
101
+ line.encode('utf-8'),
102
+ self._newline_char))
103
+ else:
104
+ self._data.write('%s%s' % (line.encode('utf-8'), self._newline_char))
105
+
106
+ def write_comment(self, text):
107
+ self.write_line('<!-- %s -->' % (text, ))
108
+
109
+ def write_tag(self, tag_name, attributes, data=None):
110
+ self.write_line(build_xml_tag(tag_name, attributes, data,
111
+ self._indent, self._indent_char))
112
+
113
+ def push_tag(self, tag_name, attributes=None):
114
+ if attributes is None:
115
+ attributes = []
116
+ self._open_tag(tag_name, attributes)
117
+ self._tag_stack.append(tag_name)
118
+ self._indent += self._indent_unit
119
+
120
+ def pop_tag(self):
121
+ self._indent -= self._indent_unit
122
+ tag_name = self._tag_stack.pop()
123
+ self._close_tag(tag_name)
124
+ return tag_name
125
+
126
+ @contextmanager
127
+ def tagcontext(self, tag_name, attributes=None):
128
+ self.push_tag(tag_name, attributes)
129
+ try:
130
+ yield
131
+ finally:
132
+ self.pop_tag()
133
+
134
+
135
+ def test():
136
+ w = XMLWriter()
137
+ w.push_tag('repository')
138
+ w.push_tag('namespace')
139
+ w.push_tag('enumeration')
140
+ w.push_tag('member',
141
+ [('name', 'west'),
142
+ ('value', '7'),
143
+ ('c:identifier', 'GTK_ANCHOR_WEST'),
144
+ ('glib:nick', 'west')])
145
+
146
+ w.pop_tag()
147
+ w.pop_tag()
148
+ w.pop_tag()
149
+ x = w.get_xml()
150
+ lines = x.split('\n')
151
+ import pprint
152
+ pprint.pprint(lines)
153
+ assert len(lines[3]) < 80, len(lines[3])
154
+
155
+ if __name__ == '__main__':
156
+ test()
@@ -0,0 +1,41 @@
1
+ # libgirepository-1.0.la - a libtool library file
2
+ # Generated by libtool (GNU libtool) 2.4.2
3
+ #
4
+ # Please DO NOT delete this file!
5
+ # It is necessary for linking the library.
6
+
7
+ # The name that we can dlopen(3).
8
+ dlname='../bin/libgirepository-1.0-1.dll'
9
+
10
+ # Names of this library.
11
+ library_names='libgirepository-1.0.dll.a'
12
+
13
+ # The name of the static archive.
14
+ old_library='libgirepository-1.0.a'
15
+
16
+ # Linker flags that can not go in dependency_libs.
17
+ inherited_linker_flags=''
18
+
19
+ # Libraries that this one depends upon.
20
+ dependency_libs=' -R/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib -L/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib -L/home/vagrant/rcairo.win64/vendor/local/lib -L/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib /home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib/libgio-2.0.la /home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib/libgmodule-2.0.la -ldnsapi -liphlpapi -lz /home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib/libgobject-2.0.la /home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib/libglib-2.0.la -lws2_32 -lole32 -lwinmm -lshlwapi /home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib/libintl.la /home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib/libiconv.la -lpthread /home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib/libffi.la'
21
+
22
+ # Names of additional weak libraries provided by this library
23
+ weak_library_names=''
24
+
25
+ # Version information for libgirepository-1.0.
26
+ current=1
27
+ age=0
28
+ revision=0
29
+
30
+ # Is this an already installed library?
31
+ installed=yes
32
+
33
+ # Should we warn about portability when linking against -modules?
34
+ shouldnotlink=no
35
+
36
+ # Files to dlopen/dlpreopen
37
+ dlopen=''
38
+ dlpreopen=''
39
+
40
+ # Directory that this library needs to be installed in:
41
+ libdir='/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local/lib'
@@ -0,0 +1,26 @@
1
+ native_prefix=/home/vagrant/ruby-gnome2.win64/gobject-introspection/tmp/native/local
2
+ native_bindir=${native_prefix}/bin
3
+ prefix=/home/vagrant/ruby-gnome2.win64/gobject-introspection/vendor/local
4
+ exec_prefix=${prefix}
5
+ libdir=${exec_prefix}/lib
6
+ bindir=${exec_prefix}/bin
7
+ datarootdir=${prefix}/share
8
+ datadir=${datarootdir}
9
+ includedir=${prefix}/include
10
+
11
+ g_ir_scanner=${native_bindir}/g-ir-scanner
12
+ g_ir_compiler=${native_bindir}/g-ir-compiler
13
+ g_ir_generate=${bindir}/g-ir-generate.exe
14
+ gidatadir=${datadir}/gobject-introspection-1.0
15
+ girdir=${datadir}/gir-1.0
16
+ typelibdir=${libdir}/girepository-1.0
17
+
18
+ Cflags: -I${includedir}/gobject-introspection-1.0
19
+ Requires: glib-2.0 gobject-2.0
20
+ Requires.private: gmodule-2.0 libffi
21
+ Libs: -L${libdir} -lgirepository-1.0
22
+ Libs.private:
23
+
24
+ Name: gobject-introspection
25
+ Description: GObject Introspection
26
+ Version: 1.42.0