mrward / typescript-addin

TypeScript addin for MonoDevelop and Xamarin Studio
MIT License
29 stars 9 forks source link

V8dotnet one package for all environments #10

Closed chrisber closed 9 years ago

chrisber commented 9 years ago

This change adds v8dotnet for all environments by using a dllmap

Supported environment:

The library for osx fixes also the segmentation fault when using in release mode.

The package was tested in release mode on Ubuntu x64 14.04.2, Windows 7 and OSX 10.10 Demo package

mrward commented 9 years ago

So we now support Linux x86 and x64 with the same addin .mpack? Great work.

chrisber commented 9 years ago

Yes the binaries are all included. We use a dllmap V8.Net.Proxy.Interface.dll.config on Unix systems:

<configuration>
    <dllmap dll="V8_Net_Proxy" os="linux" wordsize="64" target="linux/x64/libV8_Net_Proxy.so" />
    <dllmap dll="V8_Net_Proxy" os="linux" wordsize="32" target="linux/x86/libV8_Net_Proxy.so" />
    <dllmap dll="V8_Net_Proxy" os="osx"   wordsize="32" target="osx/x86/libV8_Net_Proxy.dylib" />
    <startup> 
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup>
</configuration>

And for Windows we are placing the V8_Net_Proxy.dll next to the V8.Net.Proxy.Interface.dll, this allows to load the dll with .net and mono.

Note that all libraries are statically linked, so that no other binaries are needed.

mrward commented 9 years ago

This has now been merged. Thanks.