Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[submodule "external/mono"]
path = external/mono
url = https://github.com/mono/mono.git
branch = mono-4.6.0-branch
branch = mono-4.8.0-branch
[submodule "external/mxe"]
path = external/mxe
url = https://github.com/xamarin/mxe.git
Expand Down
3 changes: 2 additions & 1 deletion Configuration.props
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
<NeedMxe Condition=" '$(HostOS)' == 'Darwin' ">true</NeedMxe>
<MakeConcurrency Condition=" '$(MakeConcurrency)' == '' And '$(HostCpuCount)' != '' ">-j$(HostCpuCount)</MakeConcurrency>
<ManagedRuntime Condition=" '$(ManagedRuntime)' == '' And '$(OS)' != 'Windows_NT' ">mono</ManagedRuntime>
<MonoSgenBridgeVersion Condition=" '$(MonoSgenBridgeVersion)' == '' ">4</MonoSgenBridgeVersion>
<ManagedRuntimeArgs Condition=" '$(ManagedRuntimeArgs)' == '' And '$(ManagedRuntime)' == 'mono' ">--debug=casts</ManagedRuntimeArgs>
<MonoSgenBridgeVersion Condition=" '$(MonoSgenBridgeVersion)' == '' ">5</MonoSgenBridgeVersion>
<TargetFrameworkRootPath>$(MSBuildThisFileDirectory)bin\$(Configuration)\lib\xbuild-frameworks</TargetFrameworkRootPath>
<HOME Condition=" '$(HOME)' == '' ">$(HOMEDRIVE)$(HOMEPATH)</HOME>
<AndroidApiLevel Condition=" '$(AndroidApiLevel)' == '' ">24</AndroidApiLevel>
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ Overridable MSBuild properties include:
* `$(MonoSgenBridgeVersion)`: The Mono SGEN Bridge version to support.
Valid values include:

* `4`: Mono 4.6 support. This is the default.
* `5`: Mono 4.8 support.
* `4`: Mono 4.6 support.
* `5`: Mono 4.8 support. This is the default.

# Build Requirements

Expand Down
2 changes: 1 addition & 1 deletion build-tools/libzip/libzip.mdproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</PropertyGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.Common.targets" />
<PropertyGroup>
<BuildDependsOn/>
<BuildDependsOn />
<BuildDependsOn Condition="'$(HostOS)' == 'Windows' OR '$(HostOS)' == 'Darwin'">
ResolveReferences;
_BuildUnlessCached
Expand Down
14 changes: 2 additions & 12 deletions build-tools/unix-distribution-setup/unix-distribution-setup.mdproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,14 @@
<ItemType>GenericProject</ItemType>
<ProjectGuid>{2CF172E5-BDAE-4ABA-8BC8-08040ED3E77A}</ProjectGuid>
</PropertyGroup>
<Import Project="..\..\Configuration.props" />
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<OutputPath>..\..\bin\Debug\</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<OutputPath>..\..\bin\Release\</OutputPath>
</PropertyGroup>

<Import Project="..\..\Configuration.props" />

<Target Name="Build">
<Copy SourceFiles="..\..\tools\scripts\generator" DestinationFiles="$(OutputPath)bin\generator" />
<Exec
Condition=" '$(HostOS)' != 'Windows' "
Command="chmod +x $(OutputPath)bin\generator" />
</Target>

<Target Name="Clean">
<Delete Files="$(OutputPath)bin\generator" />
</Target>
<Import Project="unix-distribution-setup.targets" />
</Project>

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<Target Name="Build">
<Copy
SourceFiles="..\..\tools\scripts\generator"
DestinationFiles="$(OutputPath)bin\generator"
/>
<Exec
Condition=" '$(HostOS)' != 'Windows' "
Command="chmod +x $(OutputPath)bin\generator"
/>
</Target>

<Target Name="Clean">
<Delete Files="$(OutputPath)bin\generator" />
</Target>
</Project>

2 changes: 1 addition & 1 deletion external/Java.Interop
2 changes: 1 addition & 1 deletion external/mono
Submodule mono updated 1331 files
4 changes: 2 additions & 2 deletions src/Mono.Android/Mono.Android.targets
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@
<MakeDir Directories="$(IntermediateOutputPath)jcw;$(IntermediateOutputPath)jcw\bin" />
<PropertyGroup>
<OutputPathAbs>$(MSBuildProjectDirectory)\$(OutputPath)</OutputPathAbs>
<JcwGen>$(JavaInteropFullPath)\bin\$(Configuration)\jcw-gen.exe</JcwGen>
<JcwGen>"$(JavaInteropFullPath)\bin\$(Configuration)\jcw-gen.exe" -v10</JcwGen>
<_LibDirs>-L "$(OutputPathAbs)" -L "$(OutputPathAbs)..\v1.0\" -L "$(OutputPathAbs)..\v1.0\Facades"</_LibDirs>
<_Assembly>"$(OutputPathAbs)$(AssemblyName).dll"</_Assembly>
<_Out>-o "$(MSBuildProjectDirectory)\$(IntermediateOutputPath)jcw\src"</_Out>
</PropertyGroup>
<Exec
Command="$(ManagedRuntime) $(JcwGen) $(_Out) $(_LibDirs) $(_Assembly)"
Command="$(ManagedRuntime) $(ManagedRuntimeArgs) $(JcwGen) $(_Out) $(_LibDirs) $(_Assembly)"
/>
<ItemGroup>
<_JavaSources Include="$(IntermediateOutputPath)jcw\src\**\*.java" />
Expand Down
3 changes: 3 additions & 0 deletions src/Mono.Data.Sqlite/Mono.Data.Sqlite.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
<AndroidResgenFile>Resources\Resource.designer.cs</AndroidResgenFile>
<AssemblyName>Mono.Data.Sqlite</AssemblyName>
<SignAssembly>true</SignAssembly>
<AndroidApplication>false</AndroidApplication>
<AndroidUseLatestPlatformSdk>false</AndroidUseLatestPlatformSdk>
</PropertyGroup>
<Import Project="..\..\Configuration.props" />
<PropertyGroup>
Expand All @@ -27,6 +29,7 @@
<DefineConstants>DEBUG;TRACE;NET_4_0;NET_4_5;MONO;DISABLE_CAS_USE;SQLITE_STANDARD;MONODROID</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AndroidUseSharedRuntime>True</AndroidUseSharedRuntime>
<AndroidLinkMode>None</AndroidLinkMode>
<ConsolePause>false</ConsolePause>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
Expand Down
3 changes: 3 additions & 0 deletions src/Mono.Posix/Mono.Posix.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
<AndroidResgenFile>Resources\Resource.designer.cs</AndroidResgenFile>
<AssemblyName>Mono.Posix</AssemblyName>
<SignAssembly>true</SignAssembly>
<AndroidApplication>false</AndroidApplication>
<AndroidUseLatestPlatformSdk>false</AndroidUseLatestPlatformSdk>
</PropertyGroup>
<Import Project="..\..\Configuration.props" />
<PropertyGroup>
Expand All @@ -26,6 +28,7 @@
<OutputPath>..\..\bin\$(Configuration)\lib\xbuild-frameworks\MonoAndroid\v1.0</OutputPath>
<DefineConstants>DEBUG;TRACE;NET_4_0;NET_4_5;MONO;DISABLE_CAS_USE;MONODROID</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<AndroidUseSharedRuntime>True</AndroidUseSharedRuntime>
<WarningLevel>4</WarningLevel>
<AndroidLinkMode>None</AndroidLinkMode>
<ConsolePause>false</ConsolePause>
Expand Down
4 changes: 3 additions & 1 deletion src/OpenTK-1.0/OpenTK.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
<NoWarn>3001,3002,3003,3005,3006,3021,3014,0618,1591,0414,0169,0419,1635</NoWarn>
<NoStdLib>true</NoStdLib>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AndroidApplication>false</AndroidApplication>
<AndroidUseLatestPlatformSdk>false</AndroidUseLatestPlatformSdk>
</PropertyGroup>
<Import Project="..\..\Configuration.props" />
<PropertyGroup>
Expand Down Expand Up @@ -67,7 +69,7 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="GlobalAssemblyInfo.cs"/>
<Compile Include="GlobalAssemblyInfo.cs" />
<Compile Include="$(OpenTKSourceDirectory)\Source\OpenTK\Audio\AudioCapture.cs">
<Link>Audio\AudioCapture.cs</Link>
</Compile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
<RootNamespace>System.Drawing</RootNamespace>
<AssemblyName>System.Drawing.Primitives</AssemblyName>
<NoStdLib>true</NoStdLib>
<AndroidApplication>false</AndroidApplication>
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
<AndroidUseLatestPlatformSdk>false</AndroidUseLatestPlatformSdk>
</PropertyGroup>
<Import Project="..\..\Configuration.props" />
<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ public static bool Implements (TypeDefinition type, string interfaceName, bool g
while (type != null) {
// does the type implements it itself
if (type.HasInterfaces) {
foreach (TypeReference iface in type.Interfaces) {
foreach (var ifaceInfo in type.Interfaces) {
var iface = ifaceInfo.InterfaceType;
string fullname = (generic) ? iface.GetElementType ().FullName : iface.FullName;
if (fullname == interfaceName)
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ bool FixAbstractMethods (TypeDefinition type)
foreach (var baseType in type.GetBaseTypes ())
typeMethods.AddRange (baseType.Methods);

foreach (var iface in type.Interfaces) {
foreach (var ifaceInfo in type.Interfaces) {
var iface = ifaceInfo.InterfaceType;
var ifaceDef = iface.Resolve ();
if (ifaceDef == null) {
if (Context.LogInternalExceptions)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ bool IsLinqProvider (TypeDefinition type)
return false; // we are not looking for default system types.
if (!type.HasInterfaces)
return false;
return type.Interfaces.Any (i => i.FullName == "System.Linq.IQueryProvider")
|| type.Interfaces.Select (t => t.Resolve ()).Any (t => t != null && IsLinqProvider (t));
return type.Interfaces.Any (i => i.InterfaceType.FullName == "System.Linq.IQueryProvider")
|| type.Interfaces.Select (t => t.InterfaceType.Resolve ()).Any (t => t != null && IsLinqProvider (t));
}
}
}
Loading