This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

libffi: Build as shared library

  • Loading branch information...
TingPing committed Apr 6, 2016
1 parent 0983425 commit 4d3299504af579a333f5610699ceedab5ea5de90
Showing with 38 additions and 2 deletions.
  1. +10 −0 build.ps1
  2. +22 −0 libffi/build/win32/vs12/libffi.def
  3. +5 −2 libffi/build/win32/vs12/libffi.vcxproj
  4. +1 −0 libffi/mod.md
View
@@ -637,6 +637,16 @@ $items['libffi'].BuildScript = {
[void] (Swap-Environment $originalEnvironment)
New-Item -Type Directory $packageDestination\bin
Copy-Item `
.\build\win32\vs12\Release\$platform\libffi.dll `
$packageDestination\bin
New-Item -Type Directory $packageDestination\lib
Copy-Item `
.\build\win32\vs12\Release\$platform\libffi.lib `
$packageDestination\lib
New-Item -Type Directory $packageDestination\include
Copy-Item `
.\$buildDestination\include\ffi.h, `
@@ -0,0 +1,22 @@
EXPORTS
ffi_type_void
ffi_type_uint8
ffi_type_sint8
ffi_type_uint16
ffi_type_sint16
ffi_type_uint32
ffi_type_sint32
ffi_type_uint64
ffi_type_sint64
ffi_type_float
ffi_type_double
ffi_type_pointer
ffi_type_double
ffi_closure_alloc
ffi_closure_free
ffi_prep_closure
ffi_prep_closure_loc
ffi_prep_cif
ffi_prep_cif_var
ffi_call
ffi_prep_cif_core
@@ -17,11 +17,11 @@
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup>
<ConfigurationType>StaticLibrary</ConfigurationType>
<ConfigurationType>DynamicLibrary</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<WholeProgramOptimization>true</WholeProgramOptimization>
<PlatformToolset>v120</PlatformToolset>
<OutDir>..\..\..\..\libffi-rel\lib\</OutDir>
<OutDir>$(Configuration)\$(Platform)</OutDir>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
@@ -45,6 +45,9 @@
<PreBuildEvent Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Command><![CDATA[cl /nologo /EP /DHAVE_CONFIG_H /DDLL_EXPORT /DPIC /I..\..\..\include /I..\..\..\x86_64-w64-mingw32 /I..\..\..\x86_64-w64-mingw32\include /I..\..\..\src\x86 ..\..\..\src\x86\win64.S > $(IntDir)\win64.asm]]></Command>
</PreBuildEvent>
<Link>
<ModuleDefinitionFile>libffi.def</ModuleDefinitionFile>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\..\..\src\prep_cif.c" />
View
@@ -14,3 +14,4 @@
```
* Convert commands to project file
* Create `libfii.def` file

0 comments on commit 4d32995

Please sign in to comment.