rbdc 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (266) hide show
  1. data/bindings/ruby/rbdc/extconf.rb +57 -0
  2. data/bindings/ruby/rbdc/rbdc.c +304 -0
  3. data/dyncall/AUTHORS +4 -0
  4. data/dyncall/BUGS +3 -0
  5. data/dyncall/CMakeLists.txt +79 -0
  6. data/dyncall/ChangeLog +165 -0
  7. data/dyncall/LICENSE +15 -0
  8. data/dyncall/Makefile.M +15 -0
  9. data/dyncall/Makefile.embedded +71 -0
  10. data/dyncall/Makefile.generic +36 -0
  11. data/dyncall/Nmakefile +45 -0
  12. data/dyncall/README +92 -0
  13. data/dyncall/ToDo +114 -0
  14. data/dyncall/autovar/LICENSE.txt +15 -0
  15. data/dyncall/autovar/README.txt +69 -0
  16. data/dyncall/autovar/autovar_ABI.h +44 -0
  17. data/dyncall/autovar/autovar_ARCH.h +56 -0
  18. data/dyncall/autovar/autovar_CC.h +46 -0
  19. data/dyncall/autovar/autovar_OS.h +78 -0
  20. data/dyncall/autovar/autovar_OSFAMILY.h +39 -0
  21. data/dyncall/buildsys/cmake/Modules/FindDynCall.cmake +43 -0
  22. data/dyncall/buildsys/cmake/Modules/FindDynCallback.cmake +43 -0
  23. data/dyncall/buildsys/cmake/Modules/FindDynLoad.cmake +45 -0
  24. data/dyncall/buildsys/cmake/Modules/UseLATEX.cmake +811 -0
  25. data/dyncall/buildsys/dynmake/Makefile.base.M +82 -0
  26. data/dyncall/buildsys/dynmake/dynmake.bat +2 -0
  27. data/dyncall/buildsys/dynmake/dynmake.sh +4 -0
  28. data/dyncall/buildsys/lua/Makefile +10 -0
  29. data/dyncall/buildsys/lua/README.txt +4 -0
  30. data/dyncall/buildsys/lua/bootstrap.sh +34 -0
  31. data/dyncall/buildsys/lua/cleanup.sh +6 -0
  32. data/dyncall/buildsys/lua/mkfile +34 -0
  33. data/dyncall/buildsys/lua/setenv.sh +4 -0
  34. data/dyncall/buildsys/mk/app.mk +30 -0
  35. data/dyncall/buildsys/mk/dirs.mk +27 -0
  36. data/dyncall/buildsys/mk/epilog.mk +30 -0
  37. data/dyncall/buildsys/mk/lib.mk +23 -0
  38. data/dyncall/buildsys/mk/pcc.mk +60 -0
  39. data/dyncall/buildsys/mk/prolog.mk +35 -0
  40. data/dyncall/buildsys/nmake/common.nmake +61 -0
  41. data/dyncall/buildsys/nmake/epilog.nmake +28 -0
  42. data/dyncall/buildsys/nmake/prolog.nmake +76 -0
  43. data/dyncall/buildsys/nmake/tool_gcc.nmake +82 -0
  44. data/dyncall/buildsys/nmake/tool_msvc.nmake +67 -0
  45. data/dyncall/buildsys/scripts/batch-build-linux.sh +11 -0
  46. data/dyncall/buildsys/scripts/batch-build-minix.sh +11 -0
  47. data/dyncall/buildsys/scripts/batch-build-psp.sh +11 -0
  48. data/dyncall/buildsys/scripts/conf-nds.bat +41 -0
  49. data/dyncall/buildsys/scripts/setenv-cross-ios.sh +8 -0
  50. data/dyncall/buildsys/scripts/setenv-sdk-ios.sh +22 -0
  51. data/dyncall/buildsys/vs2005/dyncall/dyncall.vcproj +245 -0
  52. data/dyncall/buildsys/vs2005/test_plain/test_plain.vcproj +202 -0
  53. data/dyncall/buildsys/vs2005/vs2005.sln +29 -0
  54. data/dyncall/configure +152 -0
  55. data/dyncall/configure.bat +157 -0
  56. data/dyncall/configure.rc +234 -0
  57. data/dyncall/dynMakefile +4 -0
  58. data/dyncall/dyncall/CMakeLists.txt +53 -0
  59. data/dyncall/dyncall/DynCallConfig.cmake +3 -0
  60. data/dyncall/dyncall/Makefile.M +10 -0
  61. data/dyncall/dyncall/Makefile.embedded +20 -0
  62. data/dyncall/dyncall/Makefile.generic +16 -0
  63. data/dyncall/dyncall/Nmakefile +62 -0
  64. data/dyncall/dyncall/README-Developer.txt +45 -0
  65. data/dyncall/dyncall/README.txt +65 -0
  66. data/dyncall/dyncall/TODO +9 -0
  67. data/dyncall/dyncall/dynMakefile +4 -0
  68. data/dyncall/dyncall/dyncall.3 +189 -0
  69. data/dyncall/dyncall/dyncall.h +135 -0
  70. data/dyncall/dyncall/dyncall_alloc.h +40 -0
  71. data/dyncall/dyncall/dyncall_api.c +167 -0
  72. data/dyncall/dyncall/dyncall_call.S +72 -0
  73. data/dyncall/dyncall/dyncall_call_arm32_arm.S +80 -0
  74. data/dyncall/dyncall/dyncall_call_arm32_arm.h +61 -0
  75. data/dyncall/dyncall/dyncall_call_arm32_arm_armhf.S +96 -0
  76. data/dyncall/dyncall/dyncall_call_arm32_arm_armhf.h +44 -0
  77. data/dyncall/dyncall/dyncall_call_arm32_thumb.h +65 -0
  78. data/dyncall/dyncall/dyncall_call_arm32_thumb_apple.s +80 -0
  79. data/dyncall/dyncall/dyncall_call_arm32_thumb_armhf.S +121 -0
  80. data/dyncall/dyncall/dyncall_call_arm32_thumb_gas.s +101 -0
  81. data/dyncall/dyncall/dyncall_call_mips.h +50 -0
  82. data/dyncall/dyncall/dyncall_call_mips_eabi.h +61 -0
  83. data/dyncall/dyncall/dyncall_call_mips_eabi_gas.s +115 -0
  84. data/dyncall/dyncall/dyncall_call_mips_gas.S +36 -0
  85. data/dyncall/dyncall/dyncall_call_mips_n32.h +67 -0
  86. data/dyncall/dyncall/dyncall_call_mips_n32_gas.s +192 -0
  87. data/dyncall/dyncall/dyncall_call_mips_n64.h +67 -0
  88. data/dyncall/dyncall/dyncall_call_mips_n64_gas.s +192 -0
  89. data/dyncall/dyncall/dyncall_call_mips_o32.h +70 -0
  90. data/dyncall/dyncall/dyncall_call_mips_o32_gas.s +109 -0
  91. data/dyncall/dyncall/dyncall_call_ppc32.S +266 -0
  92. data/dyncall/dyncall/dyncall_call_ppc32.h +62 -0
  93. data/dyncall/dyncall/dyncall_call_sparc.S +192 -0
  94. data/dyncall/dyncall/dyncall_call_sparc.h +42 -0
  95. data/dyncall/dyncall/dyncall_call_sparc64.S +361 -0
  96. data/dyncall/dyncall/dyncall_call_sparc64.h +42 -0
  97. data/dyncall/dyncall/dyncall_call_sparc_v9.S +220 -0
  98. data/dyncall/dyncall/dyncall_call_sparc_v9.h +42 -0
  99. data/dyncall/dyncall/dyncall_call_x64-att.S +146 -0
  100. data/dyncall/dyncall/dyncall_call_x64.S +149 -0
  101. data/dyncall/dyncall/dyncall_call_x64.h +63 -0
  102. data/dyncall/dyncall/dyncall_call_x64_generic_masm.asm +70 -0
  103. data/dyncall/dyncall/dyncall_call_x86.S +238 -0
  104. data/dyncall/dyncall/dyncall_call_x86.h +70 -0
  105. data/dyncall/dyncall/dyncall_call_x86_8a.s +127 -0
  106. data/dyncall/dyncall/dyncall_call_x86_generic_masm.asm +136 -0
  107. data/dyncall/dyncall/dyncall_call_x86_nasm.asm +234 -0
  108. data/dyncall/dyncall/dyncall_callf.c +112 -0
  109. data/dyncall/dyncall/dyncall_callf.h +52 -0
  110. data/dyncall/dyncall/dyncall_callvm.c +68 -0
  111. data/dyncall/dyncall/dyncall_callvm.h +88 -0
  112. data/dyncall/dyncall/dyncall_callvm_arm32_arm.c +250 -0
  113. data/dyncall/dyncall/dyncall_callvm_arm32_arm.h +59 -0
  114. data/dyncall/dyncall/dyncall_callvm_arm32_arm_armhf.c +204 -0
  115. data/dyncall/dyncall/dyncall_callvm_arm32_arm_armhf.h +63 -0
  116. data/dyncall/dyncall/dyncall_callvm_arm32_thumb.c +271 -0
  117. data/dyncall/dyncall/dyncall_callvm_arm32_thumb.h +59 -0
  118. data/dyncall/dyncall/dyncall_callvm_base.c +33 -0
  119. data/dyncall/dyncall/dyncall_callvm_mips.c +40 -0
  120. data/dyncall/dyncall/dyncall_callvm_mips.h +37 -0
  121. data/dyncall/dyncall/dyncall_callvm_mips_eabi.c +181 -0
  122. data/dyncall/dyncall/dyncall_callvm_mips_eabi.h +61 -0
  123. data/dyncall/dyncall/dyncall_callvm_mips_n32.c +268 -0
  124. data/dyncall/dyncall/dyncall_callvm_mips_n64.c +268 -0
  125. data/dyncall/dyncall/dyncall_callvm_mips_n64.h +53 -0
  126. data/dyncall/dyncall/dyncall_callvm_mips_o32.c +235 -0
  127. data/dyncall/dyncall/dyncall_callvm_mips_o32.h +45 -0
  128. data/dyncall/dyncall/dyncall_callvm_ppc32.c +372 -0
  129. data/dyncall/dyncall/dyncall_callvm_ppc32.h +61 -0
  130. data/dyncall/dyncall/dyncall_callvm_sparc.c +155 -0
  131. data/dyncall/dyncall/dyncall_callvm_sparc.h +44 -0
  132. data/dyncall/dyncall/dyncall_callvm_sparc64.c +239 -0
  133. data/dyncall/dyncall/dyncall_callvm_sparc64.h +47 -0
  134. data/dyncall/dyncall/dyncall_callvm_sparc_v9.c +182 -0
  135. data/dyncall/dyncall/dyncall_callvm_sparc_v9.h +45 -0
  136. data/dyncall/dyncall/dyncall_callvm_x64.c +228 -0
  137. data/dyncall/dyncall/dyncall_callvm_x64.h +111 -0
  138. data/dyncall/dyncall/dyncall_callvm_x86.c +667 -0
  139. data/dyncall/dyncall/dyncall_callvm_x86.h +75 -0
  140. data/dyncall/dyncall/dyncall_config.h +46 -0
  141. data/dyncall/dyncall/dyncall_macros.h +248 -0
  142. data/dyncall/dyncall/dyncall_signature.h +71 -0
  143. data/dyncall/dyncall/dyncall_struct.c +255 -0
  144. data/dyncall/dyncall/dyncall_struct.h +69 -0
  145. data/dyncall/dyncall/dyncall_types.h +74 -0
  146. data/dyncall/dyncall/dyncall_utils.h +38 -0
  147. data/dyncall/dyncall/dyncall_value.h +73 -0
  148. data/dyncall/dyncall/dyncall_vector.c +52 -0
  149. data/dyncall/dyncall/dyncall_vector.h +56 -0
  150. data/dyncall/dyncall/gen-masm.sh +7 -0
  151. data/dyncall/dyncall/mkfile +29 -0
  152. data/dyncall/dyncallback/CMakeLists.txt +55 -0
  153. data/dyncall/dyncallback/DynCallbackConfig.cmake +2 -0
  154. data/dyncall/dyncallback/Makefile.M +10 -0
  155. data/dyncall/dyncallback/Makefile.embedded +15 -0
  156. data/dyncall/dyncallback/Makefile.generic +20 -0
  157. data/dyncall/dyncallback/Nmakefile +71 -0
  158. data/dyncall/dyncallback/README.txt +9 -0
  159. data/dyncall/dyncallback/TODO +4 -0
  160. data/dyncall/dyncallback/dynMakefile +4 -0
  161. data/dyncall/dyncallback/dyncall_alloc_wx.c +35 -0
  162. data/dyncall/dyncallback/dyncall_alloc_wx.h +46 -0
  163. data/dyncall/dyncallback/dyncall_alloc_wx_malloc.c +40 -0
  164. data/dyncall/dyncallback/dyncall_alloc_wx_mmap.c +42 -0
  165. data/dyncall/dyncallback/dyncall_alloc_wx_win32.c +42 -0
  166. data/dyncall/dyncallback/dyncall_args.c +45 -0
  167. data/dyncall/dyncallback/dyncall_args.h +65 -0
  168. data/dyncall/dyncallback/dyncall_args_arm32_arm.c +112 -0
  169. data/dyncall/dyncallback/dyncall_args_arm32_arm.h +40 -0
  170. data/dyncall/dyncallback/dyncall_args_arm32_thumb.c +29 -0
  171. data/dyncall/dyncallback/dyncall_args_arm32_thumb.h +32 -0
  172. data/dyncall/dyncallback/dyncall_args_mips.c +81 -0
  173. data/dyncall/dyncallback/dyncall_args_mips.h +41 -0
  174. data/dyncall/dyncallback/dyncall_args_ppc32.c +88 -0
  175. data/dyncall/dyncallback/dyncall_args_ppc32.h +41 -0
  176. data/dyncall/dyncallback/dyncall_args_sparc32.c +41 -0
  177. data/dyncall/dyncallback/dyncall_args_sparc32.h +37 -0
  178. data/dyncall/dyncallback/dyncall_args_sparc64.c +41 -0
  179. data/dyncall/dyncallback/dyncall_args_sparc64.h +37 -0
  180. data/dyncall/dyncallback/dyncall_args_x64.c +73 -0
  181. data/dyncall/dyncallback/dyncall_args_x64.h +44 -0
  182. data/dyncall/dyncallback/dyncall_args_x86.c +121 -0
  183. data/dyncall/dyncallback/dyncall_args_x86.h +58 -0
  184. data/dyncall/dyncallback/dyncall_callback.c +45 -0
  185. data/dyncall/dyncallback/dyncall_callback.h +51 -0
  186. data/dyncall/dyncallback/dyncall_callback_arch.S +71 -0
  187. data/dyncall/dyncallback/dyncall_callback_arm32_arm.c +63 -0
  188. data/dyncall/dyncallback/dyncall_callback_arm32_arm.h +45 -0
  189. data/dyncall/dyncallback/dyncall_callback_arm32_arm_apple.s +73 -0
  190. data/dyncall/dyncallback/dyncall_callback_arm32_arm_gas.s +73 -0
  191. data/dyncall/dyncallback/dyncall_callback_arm32_thumb.c +29 -0
  192. data/dyncall/dyncallback/dyncall_callback_arm32_thumb.h +33 -0
  193. data/dyncall/dyncallback/dyncall_callback_arm32_thumb_apple.s +32 -0
  194. data/dyncall/dyncallback/dyncall_callback_arm32_thumb_gas.s +32 -0
  195. data/dyncall/dyncallback/dyncall_callback_mips.c +61 -0
  196. data/dyncall/dyncallback/dyncall_callback_mips.h +42 -0
  197. data/dyncall/dyncallback/dyncall_callback_ppc32.S +33 -0
  198. data/dyncall/dyncallback/dyncall_callback_ppc32.c +60 -0
  199. data/dyncall/dyncallback/dyncall_callback_ppc32.h +43 -0
  200. data/dyncall/dyncallback/dyncall_callback_ppc32_apple.s +180 -0
  201. data/dyncall/dyncallback/dyncall_callback_sparc32.c +57 -0
  202. data/dyncall/dyncallback/dyncall_callback_sparc32.h +43 -0
  203. data/dyncall/dyncallback/dyncall_callback_sparc32.s +30 -0
  204. data/dyncall/dyncallback/dyncall_callback_sparc64.c +57 -0
  205. data/dyncall/dyncallback/dyncall_callback_sparc64.s +30 -0
  206. data/dyncall/dyncallback/dyncall_callback_x64.S +187 -0
  207. data/dyncall/dyncallback/dyncall_callback_x64.c +69 -0
  208. data/dyncall/dyncallback/dyncall_callback_x64.h +44 -0
  209. data/dyncall/dyncallback/dyncall_callback_x64_apple.s +122 -0
  210. data/dyncall/dyncallback/dyncall_callback_x64_gas.s +119 -0
  211. data/dyncall/dyncallback/dyncall_callback_x64_gas_w64.s +102 -0
  212. data/dyncall/dyncallback/dyncall_callback_x64_masm.asm +89 -0
  213. data/dyncall/dyncallback/dyncall_callback_x86.S +115 -0
  214. data/dyncall/dyncallback/dyncall_callback_x86.c +281 -0
  215. data/dyncall/dyncallback/dyncall_callback_x86.h +49 -0
  216. data/dyncall/dyncallback/dyncall_callback_x86_8a.s +100 -0
  217. data/dyncall/dyncallback/dyncall_callback_x86_masm.asm +74 -0
  218. data/dyncall/dyncallback/dyncall_thunk.c +47 -0
  219. data/dyncall/dyncallback/dyncall_thunk.h +84 -0
  220. data/dyncall/dyncallback/dyncall_thunk_arm32_arm.c +45 -0
  221. data/dyncall/dyncallback/dyncall_thunk_arm32_arm.h +40 -0
  222. data/dyncall/dyncallback/dyncall_thunk_arm32_thumb.c +29 -0
  223. data/dyncall/dyncallback/dyncall_thunk_arm32_thumb.h +35 -0
  224. data/dyncall/dyncallback/dyncall_thunk_mips.c +52 -0
  225. data/dyncall/dyncallback/dyncall_thunk_mips.h +37 -0
  226. data/dyncall/dyncallback/dyncall_thunk_ppc32.c +51 -0
  227. data/dyncall/dyncallback/dyncall_thunk_ppc32.h +40 -0
  228. data/dyncall/dyncallback/dyncall_thunk_sparc32.c +32 -0
  229. data/dyncall/dyncallback/dyncall_thunk_sparc32.h +36 -0
  230. data/dyncall/dyncallback/dyncall_thunk_sparc64.c +32 -0
  231. data/dyncall/dyncallback/dyncall_thunk_sparc64.h +36 -0
  232. data/dyncall/dyncallback/dyncall_thunk_x64.c +48 -0
  233. data/dyncall/dyncallback/dyncall_thunk_x64.h +39 -0
  234. data/dyncall/dyncallback/dyncall_thunk_x86.c +44 -0
  235. data/dyncall/dyncallback/dyncall_thunk_x86.h +39 -0
  236. data/dyncall/dyncallback/dyncallback.3 +134 -0
  237. data/dyncall/dyncallback/gen-masm.sh +8 -0
  238. data/dyncall/dyncallback/mkfile +29 -0
  239. data/dyncall/dynload/CMakeLists.txt +25 -0
  240. data/dyncall/dynload/DynLoadConfig.cmake +3 -0
  241. data/dyncall/dynload/Makefile.M +10 -0
  242. data/dyncall/dynload/Makefile.embedded +22 -0
  243. data/dyncall/dynload/Makefile.generic +18 -0
  244. data/dyncall/dynload/Nmakefile +57 -0
  245. data/dyncall/dynload/README.txt +113 -0
  246. data/dyncall/dynload/TODO +20 -0
  247. data/dyncall/dynload/dynMakefile +4 -0
  248. data/dyncall/dynload/dynload.3 +64 -0
  249. data/dyncall/dynload/dynload.c +38 -0
  250. data/dyncall/dynload/dynload.h +65 -0
  251. data/dyncall/dynload/dynload_alloc.h +40 -0
  252. data/dyncall/dynload/dynload_darwin.c +89 -0
  253. data/dyncall/dynload/dynload_syms.c +38 -0
  254. data/dyncall/dynload/dynload_syms_elf.c +214 -0
  255. data/dyncall/dynload/dynload_syms_mach-o.c +167 -0
  256. data/dyncall/dynload/dynload_syms_pe.c +109 -0
  257. data/dyncall/dynload/dynload_unix.c +57 -0
  258. data/dyncall/dynload/dynload_windows.c +59 -0
  259. data/dyncall/mkfile +36 -0
  260. data/dyncall/portasm/README.txt +42 -0
  261. data/dyncall/portasm/gen-masm.sh +3 -0
  262. data/dyncall/portasm/portasm-arm.S +36 -0
  263. data/dyncall/portasm/portasm-ppc.S +98 -0
  264. data/dyncall/portasm/portasm-x64-att.S +155 -0
  265. data/dyncall/portasm/portasm-x86.S +127 -0
  266. metadata +311 -0
@@ -0,0 +1,28 @@
1
+ #//////////////////////////////////////////////////////////////////////////////
2
+ #
3
+ # Copyright (c) 2007,2009 Daniel Adler <dadler@uni-goettingen.de>,
4
+ # Tassilo Philipp <tphilipp@potion-studios.com>
5
+ #
6
+ # Permission to use, copy, modify, and distribute this software for any
7
+ # purpose with or without fee is hereby granted, provided that the above
8
+ # copyright notice and this permission notice appear in all copies.
9
+ #
10
+ # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11
+ # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12
+ # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13
+ # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14
+ # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15
+ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16
+ # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17
+ #
18
+ #//////////////////////////////////////////////////////////////////////////////
19
+
20
+ #///////////////////////////////////////////////////
21
+ #
22
+ # nmake rules
23
+ # epilog.nmake
24
+ #
25
+ #///////////////////////////////////////////////////
26
+
27
+
28
+ !INCLUDE common.nmake
@@ -0,0 +1,76 @@
1
+ #//////////////////////////////////////////////////////////////////////////////
2
+ #
3
+ # Copyright (c) 2007,2009 Daniel Adler <dadler@uni-goettingen.de>,
4
+ # Tassilo Philipp <tphilipp@potion-studios.com>
5
+ #
6
+ # Permission to use, copy, modify, and distribute this software for any
7
+ # purpose with or without fee is hereby granted, provided that the above
8
+ # copyright notice and this permission notice appear in all copies.
9
+ #
10
+ # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11
+ # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12
+ # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13
+ # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14
+ # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15
+ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16
+ # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17
+ #
18
+ #//////////////////////////////////////////////////////////////////////////////
19
+
20
+ #///////////////////////////////////////////////////
21
+ #
22
+ # nmake rules
23
+ # prolog.nmake
24
+ #
25
+ #///////////////////////////////////////////////////
26
+
27
+
28
+ .SILENT:
29
+
30
+ # Default "build all" target.
31
+ all: configure build
32
+
33
+
34
+ # Check if library has been 'configured' properly. If not, tell the user and abort.
35
+ !IF !DEFINED(CONFIG_OS) || !DEFINED(CONFIG_ARCH)
36
+ configure: $(TOP)\ConfigVars
37
+ $(TOP)\ConfigVars:
38
+ echo "Library not configured properly! Run configure.bat from the library's root directory first!"
39
+ !ELSE
40
+ configure:
41
+ !ENDIF
42
+
43
+
44
+ # Include config rules.
45
+ !IF EXISTS($(TOP)\ConfigVars)
46
+ ! INCLUDE $(TOP)\ConfigVars
47
+ !ENDIF
48
+
49
+ # Include site rules.
50
+ !IF EXISTS($(TOP)\SiteVars)
51
+ ! INCLUDE $(TOP)\SiteVars
52
+ !ENDIF
53
+
54
+ # set BUILD_* from CONFIG_* variables
55
+ !IF !DEFINED(BUILD_HOST)
56
+ BUILD_HOST = $(CONFIG_HOST)
57
+ !ENDIF
58
+ !IF !DEFINED(BUILD_OS)
59
+ BUILD_OS = $(CONFIG_OS)
60
+ !ENDIF
61
+ !IF !DEFINED(BUILD_ARCH)
62
+ BUILD_ARCH = $(CONFIG_ARCH)
63
+ !ENDIF
64
+ !IF !DEFINED(BUILD_TOOL)
65
+ BUILD_TOOL = $(CONFIG_TOOL)
66
+ !ENDIF
67
+ !IF !DEFINED(BUILD_ASM)
68
+ BUILD_ASM = $(CONFIG_ASM)
69
+ !ENDIF
70
+ !IF !DEFINED(BUILD_CONFIG)
71
+ BUILD_CONFIG = $(CONFIG_CONFIG)
72
+ !ENDIF
73
+
74
+ !IF "$(BUILD_TOOL)" != ""
75
+ ! INCLUDE tool_$(BUILD_TOOL).nmake
76
+ !ENDIF
@@ -0,0 +1,82 @@
1
+ #//////////////////////////////////////////////////////////////////////////////
2
+ #
3
+ # Copyright (c) 2007,2009 Daniel Adler <dadler@uni-goettingen.de>,
4
+ # Tassilo Philipp <tphilipp@potion-studios.com>
5
+ #
6
+ # Permission to use, copy, modify, and distribute this software for any
7
+ # purpose with or without fee is hereby granted, provided that the above
8
+ # copyright notice and this permission notice appear in all copies.
9
+ #
10
+ # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11
+ # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12
+ # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13
+ # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14
+ # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15
+ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16
+ # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17
+ #
18
+ #//////////////////////////////////////////////////////////////////////////////
19
+
20
+ #///////////////////////////////////////////////////
21
+ #
22
+ # GCC nmake rules
23
+ # tool_gcc.nmake
24
+ #
25
+ #///////////////////////////////////////////////////
26
+
27
+
28
+ CC =arm-eabi-gcc
29
+ CXX =arm-eabi-g++
30
+ AR =arm-eabi-ar
31
+ AS =arm-eabi-as
32
+ LD =arm-eabi-g++#arm-eabi-ld
33
+ OCP =arm-eabi-objcopy
34
+
35
+ !IF "$(BUILD_ARCH)" == "arm32_thumb"
36
+
37
+ ASFLAGS = -g -mthumb -mthumb-interwork
38
+ CFLAGS = -g -Wall -O2 -I$(TOP)\dyncall -I$(TOP)\dyncallback -fomit-frame-pointer -ffast-math -fno-strict-aliasing -mthumb -mthumb-interwork
39
+ CXXFLAGS = $(CFLAGS) -fno-rtti -fno-exceptions
40
+ LDFLAGS = -g -mno-fpu -mthumb -mthumb-interwork
41
+ ARFLAGS =
42
+
43
+ !ELSE IF "$(BUILD_ARCH)" == "arm32_arm"
44
+
45
+ ASFLAGS = -g
46
+ CFLAGS = -g -Wall -O2 -I$(TOP)\dyncall -I$(TOP)\dyncallback -fomit-frame-pointer -ffast-math -fno-strict-aliasing
47
+ CXXFLAGS = $(CFLAGS) -fno-rtti -fno-exceptions
48
+ LDFLAGS = -g -mno-fpu
49
+ ARFLAGS =
50
+
51
+ !ENDIF
52
+
53
+
54
+ !IF "$(BUILD_OS)" == "nds"
55
+ CFLAGS = $(CFLAGS) -DARM9 -mcpu=arm9tdmi -mtune=arm9tdmi -D__nds__ -I"$(DEVKITPRO_PATH)/libnds/include"
56
+ CXXFLAGS = $(CXXFLAGS) -D__nds__ -I"$(DEVKITPRO_PATH)/libnds/include"
57
+ LDFLAGS = $(LDFLAGS) -specs=ds_arm9.specs
58
+ !ENDIF
59
+
60
+
61
+ .SUFFIXES:
62
+ .SUFFIXES: .o .so .a .arm9 .nds .pdf .c .cpp .S .tex .cc
63
+
64
+
65
+ .S.o:
66
+ echo .S.o: Assembling $< ...
67
+ $(CC) $(ASFLAGS) $(CFLAGS) -o $@ -c $<
68
+
69
+ .c.o:
70
+ echo .c.o: Compiling $< ...
71
+ $(CC) $(CFLAGS) -o $@ -c $<
72
+
73
+ .cpp.o:
74
+ echo .cpp.o: Compiling $< ...
75
+ $(CXX) $(CXXFLAGS) -o $@ -c $<
76
+
77
+ .cc.o:
78
+ echo .cc.o: Compiling $< ...
79
+ $(CXX) $(CXXFLAGS) -o $@ -c $<
80
+
81
+ .tex.pdf:
82
+ pdflatex $<
@@ -0,0 +1,67 @@
1
+ #//////////////////////////////////////////////////////////////////////////////
2
+ #
3
+ # Copyright (c) 2007,2009 Daniel Adler <dadler@uni-goettingen.de>,
4
+ # Tassilo Philipp <tphilipp@potion-studios.com>
5
+ #
6
+ # Permission to use, copy, modify, and distribute this software for any
7
+ # purpose with or without fee is hereby granted, provided that the above
8
+ # copyright notice and this permission notice appear in all copies.
9
+ #
10
+ # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11
+ # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12
+ # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13
+ # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14
+ # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15
+ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16
+ # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17
+ #
18
+ #//////////////////////////////////////////////////////////////////////////////
19
+
20
+ #///////////////////////////////////////////////////
21
+ #
22
+ # MSVC nmake rules
23
+ # tool_MSVC.nmake
24
+ #
25
+ #///////////////////////////////////////////////////
26
+
27
+
28
+
29
+ CC =cl
30
+ CXX =cl
31
+ AR =lib
32
+ !IF "$(BUILD_ARCH)" == "x64"
33
+ AS =ml64
34
+ !ELSE IF "$(BUILD_ARCH)" == "x86"
35
+ AS =ml
36
+ !ENDIF
37
+ LD =link
38
+
39
+ ASFLAGS = /c /nologo
40
+ CFLAGS = /EHsc /GR- /GS- /Ox /c /nologo /I$(TOP)\dyncall /I$(TOP)\dyncallback
41
+ CXXFLAGS = $(CFLAGS)
42
+ LDFLAGS = /OPT:REF /OPT:ICF /NOLOGO
43
+ ARFLAGS = /NOLOGO
44
+
45
+
46
+ .SUFFIXES:
47
+ .SUFFIXES: .obj .exe .dll .lib .pdf .c .cpp .asm .tex .cc
48
+
49
+
50
+ .asm.obj:
51
+ echo .asm.obj: Assembling $< ...
52
+ $(AS) $(ASFLAGS) /Fo$@ $<
53
+
54
+ .c.obj:
55
+ echo .c.obj: Compiling $< ...
56
+ $(CC) $(CFLAGS) /Fo$@ $<
57
+
58
+ .cpp.obj:
59
+ echo .cpp.obj: Compiling $< ...
60
+ $(CXX) $(CXXFLAGS) /Fo$@ $<
61
+
62
+ .cc.obj:
63
+ echo .cc.obj: Compiling $< ...
64
+ $(CXX) $(CXXFLAGS) /Fo$@ $<
65
+
66
+ .tex.pdf:
67
+ pdflatex $<
@@ -0,0 +1,11 @@
1
+ # Build libraries.
2
+
3
+ make -f Makefile.generc clean all
4
+
5
+ # Build tests: dynload tests need '-ldl'.
6
+
7
+ ( cd test ; make -f Makefile.generic clean )
8
+ ( cd test ; LDFLAGS=-ldl make -f Makefile.generic all-dynload )
9
+ ( cd test ; make -f Makefile.generic all )
10
+
11
+
@@ -0,0 +1,11 @@
1
+ #!/bin/sh
2
+
3
+ # ---------------------------------------------------------- #
4
+ # DynCall build script using Makefile.generic on Minix 3.1.8 #
5
+ # ---------------------------------------------------------- #
6
+
7
+ # build libs and tests, but exclude dynload
8
+
9
+ ./configure
10
+ make libdyncall libdyncallback tests-libdyncallback tests-libdyncall
11
+
@@ -0,0 +1,11 @@
1
+ #!/bin/sh
2
+
3
+ # ------------------------------------------------------------- #
4
+ # DynCall build script using Makefile.generic for PSP toolchain #
5
+ # ------------------------------------------------------------- #
6
+
7
+ # build libs and tests, but exclude dynload
8
+
9
+ ./configure --target=PSP
10
+ make libdyncall libdyncallback tests-libdyncallback tests-libdyncall
11
+
@@ -0,0 +1,41 @@
1
+ @ECHO OFF
2
+ REM ///////////////////////////////////////////////////////////////////////////
3
+ REM
4
+ REM Copyright (c) 2007-2009 Daniel Adler <dadler@uni-goettingen.de>,
5
+ REM Tassilo Philipp <tphilipp@potion-studios.com>
6
+ REM
7
+ REM Permission to use, copy, modify, and distribute this software for any
8
+ REM purpose with or without fee is hereby granted, provided that the above
9
+ REM copyright notice and this permission notice appear in all copies.
10
+ REM
11
+ REM THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12
+ REM WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13
+ REM MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14
+ REM ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15
+ REM WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16
+ REM ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17
+ REM OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18
+ REM
19
+ REM ///////////////////////////////////////////////////////////////////////////
20
+
21
+ REM We need at least 2 characters in the path.
22
+ IF [%DEVKITPRO:~0,1%]==[%DEVKITPRO%] (
23
+ GOTO END_ABORT
24
+ )
25
+
26
+ REM Extract devkitPro path.
27
+ IF [%DEVKITPRO:~0,1%]==[/] (
28
+ ECHO DEVKITPRO_PATH=%DEVKITPRO:~1,1%:%DEVKITPRO:~2%#>>ConfigVars
29
+ ) ELSE IF [%DEVKITPRO:~1,1%]==[:] (
30
+ ECHO DEVKITPRO_PATH=%DEVKITPRO%#>>ConfigVars
31
+ ) ELSE (
32
+ GOTO END_ABORT
33
+ )
34
+
35
+ GOTO END
36
+
37
+ :END_ABORT
38
+ ECHO ERROR: Environment variable DEVKITPRO must be set to absolute devkitPro path.
39
+ DEL ConfigVars
40
+
41
+ :END
@@ -0,0 +1,8 @@
1
+
2
+ IOS_ARCH="armv6"
3
+ IOS_SDK_VERSION="4.3"
4
+
5
+ export TARGET_MACH="-arch ${IOS_ARCH}"
6
+ export TARGET_ARCH="-arch ${IOS_ARCH} -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS${IOS_SDK_VERSION}.sdk"
7
+
8
+
@@ -0,0 +1,22 @@
1
+ #!/bin/sh
2
+ #export PATH=`xcode-select -print-path`/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:${PATH}
3
+ DEVELOPER=`xcode-select -print-path`
4
+ # WORKS: P="${DEVELOPER}/Platforms/iPhoneOS.platform/Developer"
5
+ P="${DEVELOPER}/Toolchains/XcodeDefault.xctoolchain"
6
+ export MANPATH="$P/usr/share/man:${MANPATH}"
7
+ export PATH="$P/usr/bin:${PATH}"
8
+
9
+ #if [ -z "${DEVELOPER}" ]; then
10
+ #DEVELOPER=/Developer
11
+ #fi
12
+ #export PATH="${DEVELOPER}/Platforms/iPhoneOS.platform/Developer/usr/bin:${PATH}"
13
+ # export CPATH="$P/usr/include:${CPATH}"
14
+ #if [ `exec sw_vers -productVersion` ]; then
15
+ # case `sw_vers -productVersion` in
16
+ # 10.*)
17
+ #
18
+ # ;;
19
+ # esac
20
+ #export PATH=${DEVELOPER}/Platforms/iPhoneOS.platform/Developer/usr/bin:${PATH}
21
+
22
+
@@ -0,0 +1,245 @@
1
+ <?xml version="1.0" encoding="Windows-1252"?>
2
+ <VisualStudioProject
3
+ ProjectType="Visual C++"
4
+ Version="8.00"
5
+ Name="dyncall"
6
+ ProjectGUID="{DF67B85F-C8F8-4FB1-A701-867A9C835ABA}"
7
+ RootNamespace="dyncall"
8
+ Keyword="Win32Proj"
9
+ >
10
+ <Platforms>
11
+ <Platform
12
+ Name="Win32"
13
+ />
14
+ </Platforms>
15
+ <ToolFiles>
16
+ <DefaultToolFile
17
+ FileName="masm.rules"
18
+ />
19
+ </ToolFiles>
20
+ <Configurations>
21
+ <Configuration
22
+ Name="Debug|Win32"
23
+ OutputDirectory="$(SolutionDir)$(ConfigurationName)"
24
+ IntermediateDirectory="$(ConfigurationName)"
25
+ ConfigurationType="4"
26
+ CharacterSet="1"
27
+ >
28
+ <Tool
29
+ Name="VCPreBuildEventTool"
30
+ />
31
+ <Tool
32
+ Name="VCCustomBuildTool"
33
+ />
34
+ <Tool
35
+ Name="MASM"
36
+ />
37
+ <Tool
38
+ Name="VCXMLDataGeneratorTool"
39
+ />
40
+ <Tool
41
+ Name="VCWebServiceProxyGeneratorTool"
42
+ />
43
+ <Tool
44
+ Name="VCMIDLTool"
45
+ />
46
+ <Tool
47
+ Name="VCCLCompilerTool"
48
+ Optimization="0"
49
+ PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
50
+ MinimalRebuild="true"
51
+ BasicRuntimeChecks="3"
52
+ RuntimeLibrary="3"
53
+ UsePrecompiledHeader="0"
54
+ WarningLevel="3"
55
+ Detect64BitPortabilityProblems="true"
56
+ DebugInformationFormat="4"
57
+ />
58
+ <Tool
59
+ Name="VCManagedResourceCompilerTool"
60
+ />
61
+ <Tool
62
+ Name="VCResourceCompilerTool"
63
+ />
64
+ <Tool
65
+ Name="VCPreLinkEventTool"
66
+ />
67
+ <Tool
68
+ Name="VCLibrarianTool"
69
+ />
70
+ <Tool
71
+ Name="VCALinkTool"
72
+ />
73
+ <Tool
74
+ Name="VCXDCMakeTool"
75
+ />
76
+ <Tool
77
+ Name="VCBscMakeTool"
78
+ />
79
+ <Tool
80
+ Name="VCFxCopTool"
81
+ />
82
+ <Tool
83
+ Name="VCPostBuildEventTool"
84
+ />
85
+ </Configuration>
86
+ <Configuration
87
+ Name="Release|Win32"
88
+ OutputDirectory="$(SolutionDir)$(ConfigurationName)"
89
+ IntermediateDirectory="$(ConfigurationName)"
90
+ ConfigurationType="4"
91
+ CharacterSet="1"
92
+ WholeProgramOptimization="1"
93
+ >
94
+ <Tool
95
+ Name="VCPreBuildEventTool"
96
+ />
97
+ <Tool
98
+ Name="VCCustomBuildTool"
99
+ />
100
+ <Tool
101
+ Name="MASM"
102
+ />
103
+ <Tool
104
+ Name="VCXMLDataGeneratorTool"
105
+ />
106
+ <Tool
107
+ Name="VCWebServiceProxyGeneratorTool"
108
+ />
109
+ <Tool
110
+ Name="VCMIDLTool"
111
+ />
112
+ <Tool
113
+ Name="VCCLCompilerTool"
114
+ PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
115
+ RuntimeLibrary="2"
116
+ UsePrecompiledHeader="0"
117
+ WarningLevel="3"
118
+ Detect64BitPortabilityProblems="true"
119
+ DebugInformationFormat="3"
120
+ />
121
+ <Tool
122
+ Name="VCManagedResourceCompilerTool"
123
+ />
124
+ <Tool
125
+ Name="VCResourceCompilerTool"
126
+ />
127
+ <Tool
128
+ Name="VCPreLinkEventTool"
129
+ />
130
+ <Tool
131
+ Name="VCLibrarianTool"
132
+ />
133
+ <Tool
134
+ Name="VCALinkTool"
135
+ />
136
+ <Tool
137
+ Name="VCXDCMakeTool"
138
+ />
139
+ <Tool
140
+ Name="VCBscMakeTool"
141
+ />
142
+ <Tool
143
+ Name="VCFxCopTool"
144
+ />
145
+ <Tool
146
+ Name="VCPostBuildEventTool"
147
+ />
148
+ </Configuration>
149
+ </Configurations>
150
+ <References>
151
+ </References>
152
+ <Files>
153
+ <Filter
154
+ Name="Source Files"
155
+ Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
156
+ UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
157
+ >
158
+ <File
159
+ RelativePath="..\..\..\dyncall\dyncall_api.c"
160
+ >
161
+ </File>
162
+ <File
163
+ RelativePath="..\..\..\dyncall\dyncall_call_x86_generic_masm.asm"
164
+ >
165
+ </File>
166
+ <File
167
+ RelativePath="..\..\..\dyncall\dyncall_callf.c"
168
+ >
169
+ </File>
170
+ <File
171
+ RelativePath="..\..\..\dyncall\dyncall_callvm.c"
172
+ >
173
+ <File
174
+ RelativePath="..\..\..\dyncall\dyncall_callvm_base.c"
175
+ >
176
+ </File>
177
+ <File
178
+ RelativePath="..\..\..\dyncall\dyncall_vector.c"
179
+ >
180
+ </File>
181
+ </Filter>
182
+ <Filter
183
+ Name="Header Files"
184
+ Filter="h;hpp;hxx;hm;inl;inc;xsd"
185
+ UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
186
+ >
187
+ <File
188
+ RelativePath="..\..\..\dyncall\dyncall.h"
189
+ >
190
+ </File>
191
+ <File
192
+ RelativePath="..\..\..\dyncall\dyncall_alloc.h"
193
+ >
194
+ </File>
195
+ <File
196
+ RelativePath="..\..\..\dyncall\dyncall_call_x86.h"
197
+ >
198
+ </File>
199
+ <File
200
+ RelativePath="..\..\..\dyncall\dyncall_callf.h"
201
+ >
202
+ </File>
203
+ <File
204
+ RelativePath="..\..\..\dyncall\dyncall_callvm.h"
205
+ >
206
+ </File>
207
+ <File
208
+ RelativePath="..\..\..\dyncall\dyncall_callvm_x86.h"
209
+ >
210
+ </File>
211
+ <File
212
+ RelativePath="..\..\..\dyncall\dyncall_config.h"
213
+ >
214
+ </File>
215
+ <File
216
+ RelativePath="..\..\..\dyncall\dyncall_macros.h"
217
+ >
218
+ </File>
219
+ <File
220
+ RelativePath="..\..\..\dyncall\dyncall_signature.h"
221
+ >
222
+ </File>
223
+ <File
224
+ RelativePath="..\..\..\dyncall\dyncall_types.h"
225
+ >
226
+ </File>
227
+ <File
228
+ RelativePath="..\..\..\dyncall\dyncall_value.h"
229
+ >
230
+ </File>
231
+ <File
232
+ RelativePath="..\..\..\dyncall\dyncall_vector.h"
233
+ >
234
+ </File>
235
+ </Filter>
236
+ <Filter
237
+ Name="Resource Files"
238
+ Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
239
+ UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
240
+ >
241
+ </Filter>
242
+ </Files>
243
+ <Globals>
244
+ </Globals>
245
+ </VisualStudioProject>