bindings: Rename dotnet project to UnicornEngine

Add a few more properties to prepare a nuget package
This commit is contained in:
TSR Berry
2022-10-31 22:56:44 +01:00
parent a16f4ff911
commit 1d12e8778b
25 changed files with 39 additions and 33 deletions

View File

@@ -90,10 +90,10 @@ template = {
'comment_close': '', 'comment_close': '',
}, },
'dotnet': { '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", 'footer': "\n",
'line_format': ' let UC_%s = %s\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 # prefixes for constant filenames of all archs - case sensitive
'arm.h': 'Arm', 'arm.h': 'Arm',
'arm64.h': 'Arm64', 'arm64.h': 'Arm64',

View File

@@ -5,7 +5,7 @@ VisualStudioVersion = 14.0.23107.0
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnicornSamples", "UnicornSamples\UnicornSamples.csproj", "{B80B5987-1E24-4309-8BF9-C4F91270F21C}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnicornSamples", "UnicornSamples\UnicornSamples.csproj", "{B80B5987-1E24-4309-8BF9-C4F91270F21C}"
EndProject 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 EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution

View File

@@ -1,4 +1,4 @@
namespace UnicornManaged.Binding namespace UnicornEngine.Binding
module BindingFactory = module BindingFactory =

View File

@@ -1,4 +1,4 @@
namespace UnicornManaged.Binding namespace UnicornEngine.Binding
open System open System

View File

@@ -1,4 +1,4 @@
namespace UnicornManaged.Binding namespace UnicornEngine.Binding
open System open System

View File

@@ -1,4 +1,4 @@
namespace UnicornManaged.Binding namespace UnicornEngine.Binding
open System open System
open System.Runtime.InteropServices open System.Runtime.InteropServices

View File

@@ -1,6 +1,6 @@
// For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT // For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT
namespace UnicornManaged.Const namespace UnicornEngine.Const
open System open System

View File

@@ -1,6 +1,6 @@
// For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT // For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT
namespace UnicornManaged.Const namespace UnicornEngine.Const
open System open System

View File

@@ -1,6 +1,6 @@
// For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT // For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT
namespace UnicornManaged.Const namespace UnicornEngine.Const
open System open System

View File

@@ -1,6 +1,6 @@
// For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT // For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT
namespace UnicornManaged.Const namespace UnicornEngine.Const
open System open System

View File

@@ -1,6 +1,6 @@
// For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT // For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT
namespace UnicornManaged.Const namespace UnicornEngine.Const
open System open System

View File

@@ -1,6 +1,6 @@
// For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT // For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT
namespace UnicornManaged.Const namespace UnicornEngine.Const
open System open System

View File

@@ -1,6 +1,6 @@
// For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT // For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT
namespace UnicornManaged.Const namespace UnicornEngine.Const
open System open System

View File

@@ -1,6 +1,6 @@
// For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT // For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT
namespace UnicornManaged.Const namespace UnicornEngine.Const
open System open System

View File

@@ -1,6 +1,6 @@
// For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT // For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT
namespace UnicornManaged.Const namespace UnicornEngine.Const
open System open System

View File

@@ -1,6 +1,6 @@
// For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT // For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT
namespace UnicornManaged.Const namespace UnicornEngine.Const
open System open System

View File

@@ -1,6 +1,6 @@
// For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT // For Unicorn Engine. AUTO-GENERATED FILE, DO NOT EDIT
namespace UnicornManaged.Const namespace UnicornEngine.Const
open System open System

View File

@@ -1,4 +1,4 @@
namespace UnicornManaged namespace UnicornEngine
open System open System

View File

@@ -1,4 +1,4 @@
namespace UnicornManaged namespace UnicornEngine
open System open System
open System.Runtime.InteropServices open System.Runtime.InteropServices

View File

@@ -1,11 +1,11 @@
namespace UnicornManaged namespace UnicornEngine
open System open System
open System.Collections.Generic open System.Collections.Generic
open System.Runtime.InteropServices open System.Runtime.InteropServices
open System.Linq open System.Linq
open UnicornManaged.Const open UnicornEngine.Const
open UnicornManaged.Binding open UnicornEngine.Binding
// exported hooks // exported hooks
type CodeHook = delegate of Unicorn * Int64 * Int32 * Object -> unit type CodeHook = delegate of Unicorn * Int64 * Int32 * Object -> unit

View File

@@ -1,11 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFramework>net6.0</TargetFramework> <TargetFramework>net6.0</TargetFramework>
<RootNamespace>UnicornManaged</RootNamespace> <PackageId>UnicornEngine.Unicorn</PackageId>
<AssemblyName>UnicornManaged</AssemblyName> <Authors>UnicornEngine</Authors>
<Copyright>Copyright © Antonio Parata 2016</Copyright> <Copyright>Copyright © Antonio Parata 2016</Copyright>
<RepositoryUrl>https://github.com/unicorn-engine/unicorn</RepositoryUrl> <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> <ProjectGuid>0c21f1c1-2725-4a46-9022-1905f85822a5</ProjectGuid>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<GenerateDocumentationFile>true</GenerateDocumentationFile> <GenerateDocumentationFile>true</GenerateDocumentationFile>
@@ -15,6 +17,10 @@
<WarningLevel>3</WarningLevel> <WarningLevel>3</WarningLevel>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<DebugType>none</DebugType>
</PropertyGroup>
<ItemGroup> <ItemGroup>
<Compile Include="Const\Arm.fs" /> <Compile Include="Const\Arm.fs" />
<Compile Include="Const\Arm64.fs" /> <Compile Include="Const\Arm64.fs" />

View File

@@ -1,4 +1,4 @@
namespace UnicornManaged namespace UnicornEngine
open System open System

View File

@@ -3,8 +3,8 @@ using Gee.External.Capstone.X86;
using System; using System;
using System.Diagnostics; using System.Diagnostics;
using System.Text; using System.Text;
using UnicornManaged; using UnicornEngine;
using UnicornManaged.Const; using UnicornEngine.Const;
namespace UnicornSamples namespace UnicornSamples
{ {

View File

@@ -17,9 +17,9 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\UnicornManaged\UnicornManaged.fsproj"> <ProjectReference Include="..\UnicornEngine\UnicornEngine.fsproj">
<Project>{0c21f1c1-2725-4a46-9022-1905f85822a5}</Project> <Project>{0c21f1c1-2725-4a46-9022-1905f85822a5}</Project>
<Name>UnicornManaged</Name> <Name>UnicornEngine</Name>
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>

View File

@@ -3,8 +3,8 @@ using Gee.External.Capstone.X86;
using System; using System;
using System.Diagnostics; using System.Diagnostics;
using System.Text; using System.Text;
using UnicornManaged; using UnicornEngine;
using UnicornManaged.Const; using UnicornEngine.Const;
namespace UnicornSamples namespace UnicornSamples
{ {