bindings: Rename dotnet project to UnicornEngine
Add a few more properties to prepare a nuget package
This commit is contained in:
parent
a16f4ff911
commit
1d12e8778b
|
@ -90,10 +90,10 @@ template = {
|
|||
'comment_close': '',
|
||||
},
|
||||
'dotnet': {
|
||||
'header': "// For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT\n\nnamespace UnicornManaged.Const\n\nopen System\n\n[<AutoOpen>]\nmodule %s =\n",
|
||||
'header': "// For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT\n\nnamespace UnicornEngine.Const\n\nopen System\n\n[<AutoOpen>]\nmodule %s =\n",
|
||||
'footer': "\n",
|
||||
'line_format': ' let UC_%s = %s\n',
|
||||
'out_file': os.path.join('dotnet', 'UnicornManaged', 'Const', '%s.fs'),
|
||||
'out_file': os.path.join('dotnet', 'UnicornEngine', 'Const', '%s.fs'),
|
||||
# prefixes for constant filenames of all archs - case sensitive
|
||||
'arm.h': 'Arm',
|
||||
'arm64.h': 'Arm64',
|
||||
|
|
|
@ -5,7 +5,7 @@ VisualStudioVersion = 14.0.23107.0
|
|||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnicornSamples", "UnicornSamples\UnicornSamples.csproj", "{B80B5987-1E24-4309-8BF9-C4F91270F21C}"
|
||||
EndProject
|
||||
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "UnicornManaged", "UnicornManaged\UnicornManaged.fsproj", "{0C21F1C1-2725-4A46-9022-1905F85822A5}"
|
||||
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "UnicornEngine", "UnicornEngine\UnicornEngine.fsproj", "{0C21F1C1-2725-4A46-9022-1905F85822A5}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace UnicornManaged.Binding
|
||||
namespace UnicornEngine.Binding
|
||||
|
||||
|
||||
module BindingFactory =
|
|
@ -1,4 +1,4 @@
|
|||
namespace UnicornManaged.Binding
|
||||
namespace UnicornEngine.Binding
|
||||
|
||||
open System
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace UnicornManaged.Binding
|
||||
namespace UnicornEngine.Binding
|
||||
|
||||
open System
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace UnicornManaged.Binding
|
||||
namespace UnicornEngine.Binding
|
||||
|
||||
open System
|
||||
open System.Runtime.InteropServices
|
|
@ -1,6 +1,6 @@
|
|||
// For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT
|
||||
|
||||
namespace UnicornManaged.Const
|
||||
namespace UnicornEngine.Const
|
||||
|
||||
open System
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
// For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT
|
||||
|
||||
namespace UnicornManaged.Const
|
||||
namespace UnicornEngine.Const
|
||||
|
||||
open System
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
// For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT
|
||||
|
||||
namespace UnicornManaged.Const
|
||||
namespace UnicornEngine.Const
|
||||
|
||||
open System
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
// For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT
|
||||
|
||||
namespace UnicornManaged.Const
|
||||
namespace UnicornEngine.Const
|
||||
|
||||
open System
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
// For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT
|
||||
|
||||
namespace UnicornManaged.Const
|
||||
namespace UnicornEngine.Const
|
||||
|
||||
open System
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
// For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT
|
||||
|
||||
namespace UnicornManaged.Const
|
||||
namespace UnicornEngine.Const
|
||||
|
||||
open System
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
// For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT
|
||||
|
||||
namespace UnicornManaged.Const
|
||||
namespace UnicornEngine.Const
|
||||
|
||||
open System
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
// For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT
|
||||
|
||||
namespace UnicornManaged.Const
|
||||
namespace UnicornEngine.Const
|
||||
|
||||
open System
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
// For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT
|
||||
|
||||
namespace UnicornManaged.Const
|
||||
namespace UnicornEngine.Const
|
||||
|
||||
open System
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
// For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT
|
||||
|
||||
namespace UnicornManaged.Const
|
||||
namespace UnicornEngine.Const
|
||||
|
||||
open System
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
// For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT
|
||||
|
||||
namespace UnicornManaged.Const
|
||||
namespace UnicornEngine.Const
|
||||
|
||||
open System
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace UnicornManaged
|
||||
namespace UnicornEngine
|
||||
|
||||
open System
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace UnicornManaged
|
||||
namespace UnicornEngine
|
||||
|
||||
open System
|
||||
open System.Runtime.InteropServices
|
|
@ -1,11 +1,11 @@
|
|||
namespace UnicornManaged
|
||||
namespace UnicornEngine
|
||||
|
||||
open System
|
||||
open System.Collections.Generic
|
||||
open System.Runtime.InteropServices
|
||||
open System.Linq
|
||||
open UnicornManaged.Const
|
||||
open UnicornManaged.Binding
|
||||
open UnicornEngine.Const
|
||||
open UnicornEngine.Binding
|
||||
|
||||
// exported hooks
|
||||
type CodeHook = delegate of Unicorn * Int64 * Int32 * Object -> unit
|
|
@ -1,11 +1,13 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<RootNamespace>UnicornManaged</RootNamespace>
|
||||
<AssemblyName>UnicornManaged</AssemblyName>
|
||||
<PackageId>UnicornEngine.Unicorn</PackageId>
|
||||
<Authors>UnicornEngine</Authors>
|
||||
<Copyright>Copyright © Antonio Parata 2016</Copyright>
|
||||
<RepositoryUrl>https://github.com/unicorn-engine/unicorn</RepositoryUrl>
|
||||
<Version>2.0.0</Version>
|
||||
<PackageDescription>.NET bindings for unicorn</PackageDescription>
|
||||
<VersionPrefix>2.0.0</VersionPrefix>
|
||||
<VersionSuffix>$(VersionSuffix)</VersionSuffix>
|
||||
<ProjectGuid>0c21f1c1-2725-4a46-9022-1905f85822a5</ProjectGuid>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||
|
@ -15,6 +17,10 @@
|
|||
<WarningLevel>3</WarningLevel>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
|
||||
<DebugType>none</DebugType>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="Const\Arm.fs" />
|
||||
<Compile Include="Const\Arm64.fs" />
|
|
@ -1,4 +1,4 @@
|
|||
namespace UnicornManaged
|
||||
namespace UnicornEngine
|
||||
|
||||
open System
|
||||
|
|
@ -3,8 +3,8 @@ using Gee.External.Capstone.X86;
|
|||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Text;
|
||||
using UnicornManaged;
|
||||
using UnicornManaged.Const;
|
||||
using UnicornEngine;
|
||||
using UnicornEngine.Const;
|
||||
|
||||
namespace UnicornSamples
|
||||
{
|
||||
|
|
|
@ -17,9 +17,9 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\UnicornManaged\UnicornManaged.fsproj">
|
||||
<ProjectReference Include="..\UnicornEngine\UnicornEngine.fsproj">
|
||||
<Project>{0c21f1c1-2725-4a46-9022-1905f85822a5}</Project>
|
||||
<Name>UnicornManaged</Name>
|
||||
<Name>UnicornEngine</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
|
||||
|
|
|
@ -3,8 +3,8 @@ using Gee.External.Capstone.X86;
|
|||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Text;
|
||||
using UnicornManaged;
|
||||
using UnicornManaged.Const;
|
||||
using UnicornEngine;
|
||||
using UnicornEngine.Const;
|
||||
|
||||
namespace UnicornSamples
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue