Skip to content

Commit

Permalink
Updated to the latest C++#.
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitar Dobrev <[email protected]>
  • Loading branch information
ddobrev committed Oct 25, 2016
1 parent 06dc367 commit c87bf12
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 21 deletions.
12 changes: 6 additions & 6 deletions QtSharp.CLI/QtSharp.CLI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -63,27 +63,27 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="CppSharp, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\CppSharp.0.7.3\lib\CppSharp.dll</HintPath>
<HintPath>..\packages\CppSharp.0.7.4\lib\CppSharp.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="CppSharp.AST, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\CppSharp.0.7.3\lib\CppSharp.AST.dll</HintPath>
<HintPath>..\packages\CppSharp.0.7.4\lib\CppSharp.AST.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="CppSharp.Generator, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\CppSharp.0.7.3\lib\CppSharp.Generator.dll</HintPath>
<HintPath>..\packages\CppSharp.0.7.4\lib\CppSharp.Generator.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="CppSharp.Parser, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\CppSharp.0.7.3\lib\CppSharp.Parser.dll</HintPath>
<HintPath>..\packages\CppSharp.0.7.4\lib\CppSharp.Parser.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="CppSharp.Parser.CLI, Version=0.0.0.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>..\packages\CppSharp.0.7.3\lib\CppSharp.Parser.CLI.dll</HintPath>
<HintPath>..\packages\CppSharp.0.7.4\lib\CppSharp.Parser.CLI.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="CppSharp.Runtime, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\CppSharp.0.7.3\lib\CppSharp.Runtime.dll</HintPath>
<HintPath>..\packages\CppSharp.0.7.4\lib\CppSharp.Runtime.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
Expand Down
2 changes: 1 addition & 1 deletion QtSharp.CLI/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Baseclass.Contrib.Nuget.Output" version="2.1.0" targetFramework="net451" />
<package id="CppSharp" version="0.7.3" targetFramework="net451" developmentDependency="true" />
<package id="CppSharp" version="0.7.4" targetFramework="net451" developmentDependency="true" />
</packages>
2 changes: 1 addition & 1 deletion QtSharp/CompileInlinesPass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public CompileInlinesPass(string qmake, string make)
this.make = make;
}

public override bool VisitLibrary(ASTContext context)
public override bool VisitASTContext(ASTContext context)
{
string error;
const string qtVersionVariable = "QT_VERSION";
Expand Down
4 changes: 2 additions & 2 deletions QtSharp/GetCommentsFromQtDocsPass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ public GetCommentsFromQtDocsPass(string docsPath, IEnumerable<string> modules)
this.VisitOptions.VisitClassFields = false;
}

public override bool VisitLibrary(ASTContext context)
public override bool VisitASTContext(ASTContext context)
{
return this.documentation.Exists && base.VisitLibrary(context);
return this.documentation.Exists && base.VisitASTContext(context);
}

public override bool VisitTranslationUnit(TranslationUnit unit)
Expand Down
7 changes: 3 additions & 4 deletions QtSharp/QtSharp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,15 @@ private static void IgnorePrivateDeclaration(Declaration declaration)

public void Postprocess(Driver driver, ASTContext lib)
{
new ClearCommentsPass().VisitLibrary(driver.Context.ASTContext);
new ClearCommentsPass().VisitASTContext(driver.Context.ASTContext);
var modules = this.qtInfo.LibFiles.Select(l => GetModuleNameFromLibFile(l));
var s = System.Diagnostics.Stopwatch.StartNew();
new GetCommentsFromQtDocsPass(this.qtInfo.Docs, modules).VisitLibrary(driver.Context.ASTContext);
new GetCommentsFromQtDocsPass(this.qtInfo.Docs, modules).VisitASTContext(driver.Context.ASTContext);
System.Console.WriteLine("Documentation done in: {0}", s.Elapsed);
new CaseRenamePass(
RenameTargets.Function | RenameTargets.Method | RenameTargets.Property | RenameTargets.Delegate |
RenameTargets.Field | RenameTargets.Variable,
RenameCasePattern.UpperCamelCase).VisitLibrary(driver.Context.ASTContext);
RenameCasePattern.UpperCamelCase).VisitASTContext(driver.Context.ASTContext);

var qChar = lib.FindCompleteClass("QChar");
var op = qChar.FindOperator(CXXOperatorKind.ExplicitConversion)
Expand Down Expand Up @@ -230,7 +230,6 @@ public void Setup(Driver driver)
driver.ParserOptions.Verbose = true;
driver.ParserOptions.addDefines("__float128=void");
driver.Options.GeneratorKind = GeneratorKind.CSharp;
driver.Options.GenerateInterfacesForMultipleInheritance = true;
driver.Options.GeneratePropertiesAdvanced = true;
driver.Options.UnityBuild = true;
driver.Options.IgnoreParseWarnings = true;
Expand Down
12 changes: 6 additions & 6 deletions QtSharp/QtSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,27 +38,27 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="CppSharp, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\CppSharp.0.7.3\lib\CppSharp.dll</HintPath>
<HintPath>..\packages\CppSharp.0.7.4\lib\CppSharp.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="CppSharp.AST, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\CppSharp.0.7.3\lib\CppSharp.AST.dll</HintPath>
<HintPath>..\packages\CppSharp.0.7.4\lib\CppSharp.AST.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="CppSharp.Generator, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\CppSharp.0.7.3\lib\CppSharp.Generator.dll</HintPath>
<HintPath>..\packages\CppSharp.0.7.4\lib\CppSharp.Generator.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="CppSharp.Parser, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\CppSharp.0.7.3\lib\CppSharp.Parser.dll</HintPath>
<HintPath>..\packages\CppSharp.0.7.4\lib\CppSharp.Parser.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="CppSharp.Parser.CLI, Version=0.0.0.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>..\packages\CppSharp.0.7.3\lib\CppSharp.Parser.CLI.dll</HintPath>
<HintPath>..\packages\CppSharp.0.7.4\lib\CppSharp.Parser.CLI.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="CppSharp.Runtime, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\CppSharp.0.7.3\lib\CppSharp.Runtime.dll</HintPath>
<HintPath>..\packages\CppSharp.0.7.4\lib\CppSharp.Runtime.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="HtmlAgilityPack, Version=1.4.9.5, Culture=neutral, PublicKeyToken=bd319b19eaf3b43a, processorArchitecture=MSIL">
Expand Down
2 changes: 1 addition & 1 deletion QtSharp/packages.config
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Baseclass.Contrib.Nuget.Output" version="2.1.0" targetFramework="net451" />
<package id="CppSharp" version="0.7.3" targetFramework="net451" developmentDependency="true" />
<package id="CppSharp" version="0.7.4" targetFramework="net451" developmentDependency="true" />
<package id="HtmlAgilityPack" version="1.4.9.5" targetFramework="net451" />
<package id="zlib.net" version="1.0.4" targetFramework="net451" />
</packages>

0 comments on commit c87bf12

Please sign in to comment.