[Mono-dev] dllmap os/cpu selection

Paolo Molaro lupus at ximian.com
Tue Sep 19 13:16:39 EDT 2006


On 09/18/06 Paolo Molaro wrote:
> <configuration>
>   <!-- the default entry for all the sane operating systems, will be
>   overriden by later more specific entries if any apply -->
>   <dllmap dll="libglib-2.0-0.dll" target="libglib-2.0.so.0"/>
> 
>   <!-- OSX wants the dylib extension -->
>   <dllmap os="osx" dll="libglib-2.0-0.dll" target="libglib-2.0.0.dylib"/>
> 
>   <!-- this would not be needed if we didn't install a config file, but it
>   is added here because most OSes use the first entry and it is more
>   convenient to add a single entry for windows here than add an entry
>   for each of the sane operating systems -->
>   <dllmap os="windows" dll="libglib-2.0-0.dll" target="libglib-2.0-0.dll"/>
> </configuration>

svn has now a couple of additional features: the attribute values can be
a comma-separated list of architectures and they can be negated by
prepending an exclamation mark at the start of the value.
With these changes the above config file can be simplified to:

<configuration>
  <!-- the default entry for all the sane operating systems, will be
  overriden by later more specific entries if any apply: this is ignored
  on Windows and OS X -->
  <dllmap os="!windows,osx" dll="libglib-2.0-0.dll" target="libglib-2.0.so.0"/>

  <!-- OSX wants the dylib extension -->
  <dllmap os="osx" dll="libglib-2.0-0.dll" target="libglib-2.0.0.dylib"/>
</configuration>

Happy hacking.

lupus

-- 
-----------------------------------------------------------------
lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better



More information about the Mono-devel-list mailing list