Add arm linux stubs

This commit is contained in:
cra0zy 2017-10-29 16:46:34 +01:00
parent 32bf88c341
commit cfc794c3bd
18 changed files with 28 additions and 13 deletions

View file

@ -85,16 +85,20 @@ public class GAssembly
{
for (int i = 0; i < NativeDeps.Length; i += 2)
{
// Generate x64 stubs
Cake.CreateDirectory(P.Combine(Dir, "linux-x64"));
Cake.CreateDirectory(P.Combine(Dir, "linux-x86"));
// Generate x64 stub
Cake.StartProcess("gcc", "-shared -o BuildOutput/LinuxStubs/" + NativeDeps[i] + " BuildOutput/LinuxStubs/empty.c");
Cake.StartProcess("gcc", "-Wl,--no-as-needed -shared -o " + P.Combine(Dir, "linux-x64", NativeDeps[i + 1] + ".so") + " -fPIC -L. -l:BuildOutput/LinuxStubs/" + NativeDeps[i] + "");
// GEnerate x86 stub
// Generate x86 stubs
Cake.CreateDirectory(P.Combine(Dir, "linux-x86"));
Cake.StartProcess("gcc", "-m32 -shared -o BuildOutput/LinuxStubs/" + NativeDeps[i] + " BuildOutput/LinuxStubs/empty.c");
Cake.StartProcess("gcc", "-m32 -Wl,--no-as-needed -shared -o " + P.Combine(Dir, "linux-x86", NativeDeps[i + 1] + ".so") + " -fPIC -L. -l:BuildOutput/LinuxStubs/" + NativeDeps[i] + "");
// Generate arm stubs
Cake.CreateDirectory(P.Combine(Dir, "linux-arm"));
Cake.StartProcess("arm-none-eabi-gcc", "-shared -o BuildOutput/LinuxStubs/" + NativeDeps[i] + " BuildOutput/LinuxStubs/empty.c");
Cake.StartProcess("arm-none-eabi-gcc", "-Wl,--no-as-needed -shared -o " + P.Combine(Dir, "linux-arm", NativeDeps[i + 1] + ".so") + " -fPIC -L. -l:BuildOutput/LinuxStubs/" + NativeDeps[i] + "");
}
}
}

View file

@ -20,6 +20,8 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Content Include="linux-x86\libatk-1.0-0.so" PackagePath="runtimes\linux-x86\native" Visible="false" />
<Content Include="linux-x64\libatk-1.0-0.so" PackagePath="runtimes\linux-x64\native" Visible="false" />
<Content Include="linux-arm\libatk-1.0-0.so" PackagePath="runtimes\linux-arm\native" Visible="false" />
</ItemGroup>
</Project>

Binary file not shown.

View file

@ -15,7 +15,8 @@
<OutputPath>..\..\..\BuildOutput\Release</OutputPath>
</PropertyGroup>
<ItemGroup>
<Content Include="linux-x64\libcairo-2.so" PackagePath="runtimes\linux-x64\native" Visible="false" />
<Content Include="linux-x86\libcairo-2.so" PackagePath="runtimes\linux-x86\native" Visible="false" />
<Content Include="linux-x64\libcairo-2.so" PackagePath="runtimes\linux-x64\native" Visible="false" />
<Content Include="linux-arm\libcairo-2.so" PackagePath="runtimes\linux-arm\native" Visible="false" />
</ItemGroup>
</Project>

Binary file not shown.

View file

@ -15,11 +15,14 @@
<OutputPath>..\..\..\BuildOutput\Release</OutputPath>
</PropertyGroup>
<ItemGroup>
<Content Include="linux-x64\libglib-2.0-0.so" PackagePath="runtimes\linux-x64\native" Visible="false" />
<Content Include="linux-x64\libgobject-2.0-0.so" PackagePath="runtimes\linux-x64\native" Visible="false" />
<Content Include="linux-x64\libgthread-2.0-0.so" PackagePath="runtimes\linux-x64\native" Visible="false" />
<Content Include="linux-x86\libglib-2.0-0.so" PackagePath="runtimes\linux-x86\native" Visible="false" />
<Content Include="linux-x86\libgobject-2.0-0.so" PackagePath="runtimes\linux-x86\native" Visible="false" />
<Content Include="linux-x86\libgthread-2.0-0.so" PackagePath="runtimes\linux-x86\native" Visible="false" />
<Content Include="linux-x64\libglib-2.0-0.so" PackagePath="runtimes\linux-x64\native" Visible="false" />
<Content Include="linux-x64\libgobject-2.0-0.so" PackagePath="runtimes\linux-x64\native" Visible="false" />
<Content Include="linux-x64\libgthread-2.0-0.so" PackagePath="runtimes\linux-x64\native" Visible="false" />
<Content Include="linux-arm\libglib-2.0-0.so" PackagePath="runtimes\linux-arm\native" Visible="false" />
<Content Include="linux-arm\libgobject-2.0-0.so" PackagePath="runtimes\linux-arm\native" Visible="false" />
<Content Include="linux-arm\libgthread-2.0-0.so" PackagePath="runtimes\linux-arm\native" Visible="false" />
</ItemGroup>
</Project>

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -29,9 +29,11 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Content Include="linux-x64\libgdk_pixbuf-2.0-0.so" PackagePath="runtimes\linux-x64\native" Visible="false" />
<Content Include="linux-x64\libgdk-3-0.so" PackagePath="runtimes\linux-x64\native" Visible="false" />
<Content Include="linux-x86\libgdk_pixbuf-2.0-0.so" PackagePath="runtimes\linux-x86\native" Visible="false" />
<Content Include="linux-x86\libgdk-3-0.so" PackagePath="runtimes\linux-x86\native" Visible="false" />
<Content Include="linux-x64\libgdk_pixbuf-2.0-0.so" PackagePath="runtimes\linux-x64\native" Visible="false" />
<Content Include="linux-x64\libgdk-3-0.so" PackagePath="runtimes\linux-x64\native" Visible="false" />
<Content Include="linux-arm\libgdk_pixbuf-2.0-0.so" PackagePath="runtimes\linux-arm\native" Visible="false" />
<Content Include="linux-arm\libgdk-3-0.so" PackagePath="runtimes\linux-arm\native" Visible="false" />
</ItemGroup>
</Project>

Binary file not shown.

Binary file not shown.

View file

@ -20,7 +20,8 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Content Include="linux-x64\libgio-2.0-0.so" PackagePath="runtimes\linux-x64\native" Visible="false" />
<Content Include="linux-x86\libgio-2.0-0.so" PackagePath="runtimes\linux-x86\native" Visible="false" />
<Content Include="linux-x64\libgio-2.0-0.so" PackagePath="runtimes\linux-x64\native" Visible="false" />
<Content Include="linux-arm\libgio-2.0-0.so" PackagePath="runtimes\linux-arm\native" Visible="false" />
</ItemGroup>
</Project>

Binary file not shown.

View file

@ -37,7 +37,8 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Content Include="linux-x64\libgtk-3-0.so" PackagePath="runtimes\linux-x64\native" Visible="false" />
<Content Include="linux-x86\libgtk-3-0.so" PackagePath="runtimes\linux-x86\native" Visible="false" />
<Content Include="linux-x64\libgtk-3-0.so" PackagePath="runtimes\linux-x64\native" Visible="false" />
<Content Include="linux-arm\libgtk-3-0.so" PackagePath="runtimes\linux-arm\native" Visible="false" />
</ItemGroup>
</Project>

Binary file not shown.

View file

@ -23,7 +23,8 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Content Include="linux-x64\libpango-1.0-0.so" PackagePath="runtimes\linux-x64\native" Visible="false" />
<Content Include="linux-x86\libpango-1.0-0.so" PackagePath="runtimes\linux-x86\native" Visible="false" />
<Content Include="linux-x64\libpango-1.0-0.so" PackagePath="runtimes\linux-x64\native" Visible="false" />
<Content Include="linux-arm\libpango-1.0-0.so" PackagePath="runtimes\linux-arm\native" Visible="false" />
</ItemGroup>
</Project>

Binary file not shown.