Permalink
Browse files

Upgrade 'tools'. Initial import of the bridge.

  • Loading branch information...
1 parent 6802882 commit 7c9c3197d630b0247c5af58c4ea82f08ed438ba2 @letiemble letiemble committed Feb 2, 2011
Showing with 26,896 additions and 1 deletion.
  1. +18 −0 .gitignore
  2. +231 −0 GPL.rtf
  3. +71 −0 LGPL.rtf
  4. +27 −0 MIT.rtf
  5. +86 −0 Monobjc.build
  6. +85 −0 Monobjc.sh
  7. +58 −0 Monobjc.sln
  8. BIN Monobjc.snk
  9. BIN external/nunit.framework.dll
  10. +146 −0 libraries/Modules.build
  11. +448 −0 libraries/Monobjc/Attributes.cs
  12. +178 −0 libraries/Monobjc/Block.cs
  13. +163 −0 libraries/Monobjc/Class.cs
  14. +249 −0 libraries/Monobjc/Exception.cs
  15. +44 −0 libraries/Monobjc/Generators/BlockGenerator.Utils.cs
  16. +195 −0 libraries/Monobjc/Generators/BlockGenerator.cs
  17. +231 −0 libraries/Monobjc/Generators/CategoryGenerator.Generation.cs
  18. +75 −0 libraries/Monobjc/Generators/CategoryGenerator.cs
  19. +354 −0 libraries/Monobjc/Generators/ClassGenerator.Generation.cs
  20. +89 −0 libraries/Monobjc/Generators/ClassGenerator.cs
  21. +467 −0 libraries/Monobjc/Generators/CodeGenerator.Generation.cs
  22. +45 −0 libraries/Monobjc/Generators/CodeGenerator.Types.cs
  23. +53 −0 libraries/Monobjc/Generators/CodeGenerator.cs
  24. +84 −0 libraries/Monobjc/Generators/DynamicAssembly.cs
  25. +341 −0 libraries/Monobjc/Generators/EmitTools.cs
  26. +61 −0 libraries/Monobjc/Generators/Tuples.cs
  27. +190 −0 libraries/Monobjc/Generators/WrapperGenerator.Generation.cs
  28. +47 −0 libraries/Monobjc/Generators/WrapperGenerator.Utils.cs
  29. +174 −0 libraries/Monobjc/Generators/WrapperGenerator.cs
  30. +102 −0 libraries/Monobjc/IManagedWrapper.Messaging.cs
  31. +53 −0 libraries/Monobjc/IManagedWrapper.cs
  32. +105 −0 libraries/Monobjc/Id.Extensions.cs
  33. +126 −0 libraries/Monobjc/Id.Messaging.cs
  34. +108 −0 libraries/Monobjc/Id.Methods.cs
  35. +263 −0 libraries/Monobjc/Id.cs
  36. +96 −0 libraries/Monobjc/IdMarshaler.cs
  37. +181 −0 libraries/Monobjc/Logger.cs
  38. +75 −0 libraries/Monobjc/MacOSVersion.cs
  39. +145 −0 libraries/Monobjc/Monobjc.csproj
  40. +90 −0 libraries/Monobjc/NativeMethods.cs
  41. +273 −0 libraries/Monobjc/ObjectiveCEncoding.cs
  42. +71 −0 libraries/Monobjc/ObjectiveCRuntime.Exceptions.cs
  43. +57 −0 libraries/Monobjc/ObjectiveCRuntime.Extensions.cs
  44. +96 −0 libraries/Monobjc/ObjectiveCRuntime.Instances.cs
  45. +147 −0 libraries/Monobjc/ObjectiveCRuntime.Messaging.cs
  46. +71 −0 libraries/Monobjc/ObjectiveCRuntime.Utils.cs
  47. +539 −0 libraries/Monobjc/ObjectiveCRuntime.cs
  48. +44 −0 libraries/Monobjc/Properties/AssemblyInfo.cs
  49. +288 −0 libraries/Monobjc/Properties/Resources.Designer.cs
  50. +195 −0 libraries/Monobjc/Properties/Resources.resx
  51. +192 −0 libraries/Monobjc/Runtime/Bridge.Utils.cs
  52. +190 −0 libraries/Monobjc/Runtime/Bridge.cs
  53. +36 −0 libraries/Monobjc/Runtime/Messaging.cs
  54. +42 −0 libraries/Monobjc/Runtime/Platform.cs
  55. +52 −0 libraries/Monobjc/SelectorExtensions.cs
  56. +98 −0 libraries/Monobjc/Utils/ArrayHelper.cs
  57. +171 −0 libraries/Monobjc/Utils/GenericMethodBinder.cs
  58. +212 −0 libraries/Monobjc/Utils/ImplicitMethodBinder.cs
  59. +180 −0 libraries/Monobjc/Utils/TypeHelper.cs
  60. +47 −0 native/Modules.build
  61. +2 −0 native/Monobjc/.gitignore
  62. +1,558 −0 native/Monobjc/Doxyfile
  63. +1,376 −0 native/Monobjc/Monobjc.xcodeproj/project.pbxproj
  64. +5 −0 native/Monobjc/config/Debug-libeglib.xcconfig
  65. +6 −0 native/Monobjc/config/Debug-libmonobjc.xcconfig
  66. +6 −0 native/Monobjc/config/Debug-runtime.xcconfig
  67. +4 −0 native/Monobjc/config/Debug.xcconfig
  68. +6 −0 native/Monobjc/config/Release-libeglib.xcconfig
  69. +7 −0 native/Monobjc/config/Release-libmonobjc.xcconfig
  70. +7 −0 native/Monobjc/config/Release-runtime.xcconfig
  71. +1 −0 native/Monobjc/config/Release.xcconfig
  72. +2 −0 native/Monobjc/config/Shared-libeglib.xcconfig
  73. +8 −0 native/Monobjc/config/Shared-libmonobjc.xcconfig
  74. +5 −0 native/Monobjc/config/Shared-monobjc.xcconfig
  75. +5 −0 native/Monobjc/config/Shared-runtime.xcconfig
  76. +12 −0 native/Monobjc/config/Shared.xcconfig
  77. +3 −0 native/Monobjc/external/.gitignore
  78. +176 −0 native/Monobjc/external/eglib.patch
  79. BIN native/Monobjc/external/eglib.tar.gz
  80. +47 −0 native/Monobjc/external/libffi-15.patch
  81. BIN native/Monobjc/external/libffi-15.tar.gz
  82. +30 −0 native/Monobjc/fix_references.sh
  83. +91 −0 native/Monobjc/generate_descriptors.sh
  84. +94 −0 native/Monobjc/main.mm
  85. +60 −0 native/Monobjc/sources/blocks.h
  86. +69 −0 native/Monobjc/sources/cache.h
  87. +89 −0 native/Monobjc/sources/cache.mm
  88. +70 −0 native/Monobjc/sources/constants.h
  89. +43 −0 native/Monobjc/sources/definitions.def
  90. +42 −0 native/Monobjc/sources/definitions.h
  91. +91 −0 native/Monobjc/sources/definitions.mm
  92. +117 −0 native/Monobjc/sources/descriptors/descriptor-Monobjc.Block.mm
  93. +120 −0 native/Monobjc/sources/descriptors/descriptor-Monobjc.Class.mm
  94. +128 −0 native/Monobjc/sources/descriptors/descriptor-Monobjc.Id.mm
  95. +133 −0 native/Monobjc/sources/descriptors/descriptor-System.Boolean.mm
  96. +133 −0 native/Monobjc/sources/descriptors/descriptor-System.Byte.mm
  97. +133 −0 native/Monobjc/sources/descriptors/descriptor-System.Char.mm
  98. +133 −0 native/Monobjc/sources/descriptors/descriptor-System.Int16.mm
  99. +118 −0 native/Monobjc/sources/descriptors/descriptor-System.Int32.mm
  100. +118 −0 native/Monobjc/sources/descriptors/descriptor-System.Int64.mm
  101. +118 −0 native/Monobjc/sources/descriptors/descriptor-System.IntPtr.mm
  102. +133 −0 native/Monobjc/sources/descriptors/descriptor-System.SByte.mm
  103. +123 −0 native/Monobjc/sources/descriptors/descriptor-System.String.mm
  104. +121 −0 native/Monobjc/sources/descriptors/descriptor-System.Struct.mm
  105. +133 −0 native/Monobjc/sources/descriptors/descriptor-System.UInt16.mm
  106. +118 −0 native/Monobjc/sources/descriptors/descriptor-System.UInt32.mm
  107. +118 −0 native/Monobjc/sources/descriptors/descriptor-System.UInt64.mm
  108. +99 −0 native/Monobjc/sources/descriptors/descriptor-System.Void.mm
  109. +147 −0 native/Monobjc/sources/descriptors/descriptor.def
  110. +130 −0 native/Monobjc/sources/domain.h
  111. +77 −0 native/Monobjc/sources/domain.mm
  112. +91 −0 native/Monobjc/sources/enumerations.h
  113. +103 −0 native/Monobjc/sources/icalls.def
  114. +34 −0 native/Monobjc/sources/icalls.h
  115. +80 −0 native/Monobjc/sources/icalls/icalls-Monobjc.Block.mm
  116. +121 −0 native/Monobjc/sources/icalls/icalls-Monobjc.Class.mm
  117. +113 −0 native/Monobjc/sources/icalls/icalls-Monobjc.Id.mm
  118. +111 −0 native/Monobjc/sources/icalls/icalls-Monobjc.Logger.mm
  119. +79 −0 native/Monobjc/sources/icalls/icalls-Monobjc.ObjectiveCEncoding.mm
  120. +164 −0 native/Monobjc/sources/icalls/icalls-Monobjc.ObjectiveCRuntime.mm
  121. +282 −0 native/Monobjc/sources/icalls/icalls-Monobjc.Runtime.Bridge.mm
  122. +168 −0 native/Monobjc/sources/icalls/icalls-Monobjc.Runtime.Messaging.mm
  123. +99 −0 native/Monobjc/sources/icalls/icalls-Monobjc.Runtime.Platform.mm
  124. +33 −0 native/Monobjc/sources/lifecycle.h
  125. +86 −0 native/Monobjc/sources/lifecycle.mm
  126. +24 −0 native/Monobjc/sources/logging.def
  127. +80 −0 native/Monobjc/sources/logging.h
  128. +137 −0 native/Monobjc/sources/logging.mm
  129. +189 −0 native/Monobjc/sources/marshal.h
  130. +353 −0 native/Monobjc/sources/marshal.mm
  131. +133 −0 native/Monobjc/sources/messaging.h
  132. +479 −0 native/Monobjc/sources/messaging.mm
  133. +130 −0 native/Monobjc/sources/monobjc.mm
  134. +68 −0 native/Monobjc/sources/monobjc_Prefix.pch
  135. +69 −0 native/Monobjc/sources/support-ffi.h
  136. +84 −0 native/Monobjc/sources/support-ffi.mm
  137. +130 −0 native/Monobjc/sources/support-mono.h
  138. +146 −0 native/Monobjc/sources/support-mono.mm
  139. +201 −0 native/Monobjc/sources/support-objc.h
  140. +343 −0 native/Monobjc/sources/support-objc.mm
  141. +107 −0 native/Monobjc/sources/threading.h
  142. +149 −0 native/Monobjc/sources/threading.mm
  143. +57 −0 native/Monobjc/test.mm
  144. +14 −0 native/monobjc
  145. +134 −0 tests/Modules.build
  146. +236 −0 tests/Monobjc.Tests/BlockTests.cs
  147. +174 −0 tests/Monobjc.Tests/CategoriesMessagingTests.cs
  148. +68 −0 tests/Monobjc.Tests/ClassLookupTests.cs
  149. +213 −0 tests/Monobjc.Tests/ClassesIVarTests.cs
  150. +182 −0 tests/Monobjc.Tests/ClassesMessagingTests.cs
  151. +190 −0 tests/Monobjc.Tests/EncodingBasicTests.cs
  152. +271 −0 tests/Monobjc.Tests/EncodingGenerationTests.cs
  153. +47 −0 tests/Monobjc.Tests/FrameworkLoadingTests.cs
  154. +1,027 −0 tests/Monobjc.Tests/Generators/BlockGeneratorTests.Expected.cs
  155. +181 −0 tests/Monobjc.Tests/Generators/BlockGeneratorTests.cs
  156. +631 −0 tests/Monobjc.Tests/Generators/CategoryGeneratorTests.Expected.cs
  157. +88 −0 tests/Monobjc.Tests/Generators/CategoryGeneratorTests.cs
  158. +155 −0 tests/Monobjc.Tests/Generators/Cecil/ByteBuffer.cs
  159. +116 −0 tests/Monobjc.Tests/Generators/Cecil/Instruction.cs
  160. +327 −0 tests/Monobjc.Tests/Generators/Cecil/MethodBodyReader.cs
  161. +1,330 −0 tests/Monobjc.Tests/Generators/ClassGeneratorTests.Expected.cs
  162. +121 −0 tests/Monobjc.Tests/Generators/ClassGeneratorTests.cs
  163. +271 −0 tests/Monobjc.Tests/Generators/DynamicAssemblyHelper.cs
  164. +149 −0 tests/Monobjc.Tests/Generators/WrapperGeneratorTests.Expected.cs
  165. +73 −0 tests/Monobjc.Tests/Generators/WrapperGeneratorTests.cs
  166. +193 −0 tests/Monobjc.Tests/MessagingTests.cs
  167. +93 −0 tests/Monobjc.Tests/Monobjc.Tests.csproj
  168. +36 −0 tests/Monobjc.Tests/Properties/AssemblyInfo.cs
  169. +229 −0 tests/Monobjc.Tests/RuntimeTests.cs
  170. +153 −0 tests/Monobjc.Tests/SelectorTests.cs
  171. +101 −0 tests/Monobjc.Tests/SymbolTests.cs
  172. +402 −0 tests/Monobjc.Tests/Types/TestingTypes.cs
  173. +235 −0 tests/Monobjc.Tests/Utils/CustomMethodBinderTests.cs
  174. +88 −0 tests/Monobjc.Tests/Utils/ImplicitMethodBinderTests.cs
  175. +2 −0 tests/nunit-10.5
  176. +2 −0 tests/nunit-10.6
  177. +1 −1 tools
View
@@ -0,0 +1,18 @@
+bin/
+build/
+dist/
+obj/
+_ReSharper*
+.generator
+*.Cache
+*.pbxuser
+*.perspectivev3
+*.pidb
+*.resources
+*.suo
+*.user
+*.userprefs
+libmonobjc.dylib
+monobjc.h
+runtime
+TestResult.xml
View
231 GPL.rtf

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -0,0 +1,71 @@
+{\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf430
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\paperw11900\paperh16840\margl1440\margr1440\vieww13320\viewh11760\viewkind0
+\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural\pardirnatural
+
+\f0\fs24 \cf0 GNU LESSER GENERAL PUBLIC LICENSE\
+\
+Version 3, 29 June 2007\
+\
+Copyright \'a9 2007 Free Software Foundation, Inc. <http://fsf.org/>\
+\
+Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.\
+\
+This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below.\
+0. Additional Definitions.\
+\
+As used herein, \'93this License\'94 refers to version 3 of the GNU Lesser General Public License, and the \'93GNU GPL\'94 refers to version 3 of the GNU General Public License.\
+\
+\'93The Library\'94 refers to a covered work governed by this License, other than an Application or a Combined Work as defined below.\
+\
+An \'93Application\'94 is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library.\
+\
+A \'93Combined Work\'94 is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the \'93Linked Version\'94.\
+\
+The \'93Minimal Corresponding Source\'94 for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version.\
+\
+The \'93Corresponding Application Code\'94 for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work.\
+1. Exception to Section 3 of the GNU GPL.\
+\
+You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL.\
+2. Conveying Modified Versions.\
+\
+If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version:\
+\
+ * a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or\
+ * b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy.\
+\
+3. Object Code Incorporating Material from Library Header Files.\
+\
+The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following:\
+\
+ * a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License.\
+ * b) Accompany the object code with a copy of the GNU GPL and this license document.\
+\
+4. Combined Works.\
+\
+You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following:\
+\
+ * a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License.\
+ * b) Accompany the Combined Work with a copy of the GNU GPL and this license document.\
+ * c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document.\
+ * d) Do one of the following:\
+ o 0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.\
+ o 1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version.\
+ * e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.)\
+\
+5. Combined Libraries.\
+\
+You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following:\
+\
+ * a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License.\
+ * b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work.\
+\
+6. Revised Versions of the GNU Lesser General Public License.\
+\
+The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.\
+\
+Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License \'93or any later version\'94 applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation.\
+\
+If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library.}
View
27 MIT.rtf
@@ -0,0 +1,27 @@
+{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf320
+{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\paperw11900\paperh16840\margl1440\margr1440\vieww9000\viewh8400\viewkind0
+\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
+
+\f0\fs24 \cf0 Monobjc, a .NET/Objective-C bridge\
+Copyright (C) 2007-2010 - Laurent Etiemble\
+\
+Permission is hereby granted, free of charge, to any person obtaining a copy\
+of this software and associated documentation files (the "Software"), to deal\
+in the Software without restriction, including without limitation the rights\
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\
+copies of the Software, and to permit persons to whom the Software is\
+furnished to do so, subject to the following conditions:\
+\
+The above copyright notice and this permission notice shall be included in\
+all copies or substantial portions of the Software.\
+\
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\
+THE SOFTWARE.\
+}
View
@@ -0,0 +1,86 @@
+<?xml version="1.0"?>
+<project name="Monobjc" default="build" basedir=".">
+ <description>Monobjc Build File</description>
+
+ <!-- Define properties -->
+ <property name="external.dir" value="${path::get-full-path('./external')}"/>
+ <property name="libraries.dir" value="${path::get-full-path('./libraries')}"/>
+ <property name="native.dir" value="${path::get-full-path('./native')}"/>
+ <property name="tests.dir" value="${path::get-full-path('./tests')}"/>
+ <property name="tools.dir" value="${path::get-full-path('./tools')}"/>
+ <property name="build.dir" value="${path::get-full-path('./build')}"/>
+ <property name="dist.dir" value="${path::get-full-path('./dist')}"/>
+ <property name="binaries.dir" value="${dist.dir}"/>
+
+ <property name="keyfile" value="Monobjc.snk"/>
+
+ <property name="define" value=""/>
+ <property name="debug" value="false"/>
+ <property name="testing" value="false"/>
+
+ <property name="min.version" value="10.5"/>
+ <property name="max.version" value="10.6"/>
+
+ <property name="strip.sources" value="${file::exists('strip.sh')}"/>
+
+ <!-- ===============================================================================
+ Build all the bridge
+ ================================================================================ -->
+ <target name="build" depends="build-libraries">
+ </target>
+
+ <!-- ===============================================================================
+ Build the native binaries
+ ================================================================================ -->
+ <target name="build-native" depends="prepare">
+ <!-- Build the custom runtimes -->
+ <nant buildfile="${native.dir}/Modules.build" if="${platform::is-unix()}"/>
+ </target>
+
+ <!-- ===============================================================================
+ Build the tools libraries
+ ================================================================================ -->
+ <target name="build-tools" depends="prepare,build-native">
+ <nant buildfile="${tools.dir}/Monobjc.Tools.build" inheritall="true"/>
+ </target>
+
+ <!-- ===============================================================================
+ Build the bridge libraries
+ ================================================================================ -->
+ <target name="build-libraries" depends="prepare">
+ <nant buildfile="${libraries.dir}/Modules.build"/>
+ </target>
+
+ <!-- ===============================================================================
+ Build the unit tests
+ ================================================================================ -->
+ <target name="build-tests" depends="build-libraries">
+ <nant buildfile="${tests.dir}/Modules.build"/>
+ </target>
+
+ <!-- ===============================================================================
+ Run the unit tests
+ ================================================================================ -->
+ <target name="run-tests" depends="build-tests">
+ <nant buildfile="${tests.dir}/Modules.build" target="run"/>
+ </target>
+
+ <!-- Prepare the directories -->
+ <target name="prepare">
+ <mkdir dir="${build.dir}"/>
+ <mkdir dir="${dist.dir}"/>
+
+ <!-- Compute the revision -->
+ <property name="revision" value="${timespan::get-days(datetime::now() - datetime::parse('2007-07-01'))}"/>
+ </target>
+
+ <!-- Clean the directories -->
+ <target name="clean">
+ <delete dir="${build.dir}" failonerror="false" />
+ <delete dir="${dist.dir}" failonerror="false" />
+
+ <!-- Clean submodules -->
+ <nant buildfile="${tools.dir}/Monobjc.Tools.build" target="clean"/>
+ </target>
+
+</project>
View
@@ -0,0 +1,85 @@
+#!/bin/bash
+
+echo "======================================="
+echo " __ __ _ _ "
+echo "| \/ | ___ _ __ ___ | |__ (_) ___ "
+echo "| |\/| |/ _ \| '_ \ / _ \| '_ \| |/ __|"
+echo "| | | | (_) | | | | (_) | |_) | | (__ "
+echo "|_| |_|\___/|_| |_|\___/|_.__// |\___|"
+echo " |__/ "
+echo "Installer "
+echo "======================================="
+echo
+
+if [ $UID != 0 ]; then
+ echo "!!! You must run this script as a sudoer !!!"
+ echo "Please launch this script by typing: sudo $0"
+ exit 1
+fi
+
+MONO_DIR="/Library/Frameworks/Mono.framework/Versions/Current"
+if [ ! -d $MONO_DIR ]; then
+ echo "Cannot find Mono.framework. Is it installed ?"
+ exit 1
+fi
+
+VERSIONS="10.5 10.6"
+
+# Perform the installation for each version
+for version in $VERSIONS; do
+ echo
+ echo "Installing Monobjc $version..."
+ echo "=============================="
+
+ LIB_DIR="$MONO_DIR/lib/mono/monobjc-$version"
+
+ # Create directory
+ mkdir -p "$LIB_DIR"
+
+ # Copy native libraries
+ cp ./dist/$version/libmonobjc.dylib "$LIB_DIR"
+ cp ./dist/$version/runtime "$LIB_DIR"
+ chmod a+rx "$LIB_DIR"/libmonobjc.dylib
+ chmod a+rx "$LIB_DIR"/runtime
+
+ # Register the Monobjc assemblies in the GAC
+ for file in `ls dist/$version/Monobjc*.dll`; do
+ gacutil -i "$file" -package monobjc-$version
+ done
+
+ # Create the list of assemblies
+ LIB_LIST="Libraries="
+ LIB_REFERENCES="Libs:"
+ for file in `ls dist/$version/Monobjc*.dll`; do
+ assembly=`basename $file`
+ LIB_LIST="$LIB_LIST \${pkglibdir}/$assembly"
+ LIB_REFERENCES="$LIB_REFERENCES -r:\${pkglibdir}/$assembly"
+ done
+
+ # Create the PKG-CONFIG file
+ PC_FILE="$MONO_DIR/share/pkgconfig/monobjc-$version.pc"
+ cat > "$PC_FILE" <<EOF
+prefix=$MONO_DIR
+exec_prefix=\${prefix}
+pkglibdir=\${exec_prefix}/lib/mono/monobjc-$version
+Libraries=$LIB_LIST
+
+Name: Monobjc
+Description: Monobjc Bridge $version
+Version: $version
+
+Requires:
+Libs: $LIB_REFERENCES
+EOF
+
+done
+
+# Make sure that pkg-config has its soft-link
+# because the Mono CSDK don't create it
+ln -s "$MONO_DIR/bin/pkg-config" "/usr/bin/pkg-config"
+
+# Copy runtime wrapper and soft-link it
+LAUNCHER_FILE="./dist/monobjc"
+cp "$LAUNCHER_FILE" "$MONO_DIR/bin/monobjc"
+chmod a+rx "$MONO_DIR/bin/monobjc"
+ln -s "$MONO_DIR/bin/monobjc" "/usr/bin/monobjc"
View
@@ -0,0 +1,58 @@
+
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual Studio 2010
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Libraries", "Libraries", "{84E05B26-2C67-4D75-A6F1-449EB4DDE85F}"
+ ProjectSection(SolutionItems) = preProject
+ libraries\Modules.build = libraries\Modules.build
+ EndProjectSection
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{C9CA3586-F7BD-4D17-B6E2-70D0E5CCB09B}"
+ ProjectSection(SolutionItems) = preProject
+ tests\Modules.build = tests\Modules.build
+ EndProjectSection
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{A0EA00FF-5BDF-47D2-BE84-269D1787C069}"
+ ProjectSection(SolutionItems) = preProject
+ Monobjc.build = Monobjc.build
+ Monobjc.snk = Monobjc.snk
+ EndProjectSection
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Native", "Native", "{A35D8D95-5A95-45AA-9370-A7E8A52CF68C}"
+ ProjectSection(SolutionItems) = preProject
+ native\Modules.build = native\Modules.build
+ EndProjectSection
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Monobjc", "libraries\Monobjc\Monobjc.csproj", "{DBFBEE0A-E5CE-40E8-9E34-34F0F54DACC1}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Monobjc.Tests", "tests\Monobjc.Tests\Monobjc.Tests.csproj", "{2EB6BD6B-2243-4208-8425-CE189866ADF2}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {DBFBEE0A-E5CE-40E8-9E34-34F0F54DACC1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {DBFBEE0A-E5CE-40E8-9E34-34F0F54DACC1}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {DBFBEE0A-E5CE-40E8-9E34-34F0F54DACC1}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {DBFBEE0A-E5CE-40E8-9E34-34F0F54DACC1}.Release|Any CPU.Build.0 = Release|Any CPU
+ {2EB6BD6B-2243-4208-8425-CE189866ADF2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {2EB6BD6B-2243-4208-8425-CE189866ADF2}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {2EB6BD6B-2243-4208-8425-CE189866ADF2}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {2EB6BD6B-2243-4208-8425-CE189866ADF2}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(NestedProjects) = preSolution
+ {DBFBEE0A-E5CE-40E8-9E34-34F0F54DACC1} = {84E05B26-2C67-4D75-A6F1-449EB4DDE85F}
+ {2EB6BD6B-2243-4208-8425-CE189866ADF2} = {C9CA3586-F7BD-4D17-B6E2-70D0E5CCB09B}
+ EndGlobalSection
+ GlobalSection(MonoDevelopProperties) = preSolution
+ StartupItem = src\tools\GenerateFromDocumentation\GenerateFromDocumentation.csproj
+ EndGlobalSection
+ GlobalSection(MercurialSourceControlSolutionProperties) = preSolution
+ SolutionIsControlled = True
+ SolutionBindings = <Solution Location In Database>
+ EndGlobalSection
+EndGlobal
View
Binary file not shown.
Binary file not shown.
Oops, something went wrong.

0 comments on commit 7c9c319

Please sign in to comment.