diff --git a/CHANGELOG b/CHANGELOG index 1ab90582..57069baf 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,7 @@ +0.6.1 - 17.9.2016 +Fixed: +- Removed all mappings to C# structures because their empty constructors are not correctly wrapped yet. + 0.6.0 - 14.9.2016 BREAKING: The bindings are now named according to the pattern: Qt.Sharp diff --git a/QtSharp.CLI/QtSharp.CLI.csproj b/QtSharp.CLI/QtSharp.CLI.csproj index 4ab64fd9..6b53956d 100644 --- a/QtSharp.CLI/QtSharp.CLI.csproj +++ b/QtSharp.CLI/QtSharp.CLI.csproj @@ -63,27 +63,27 @@ - ..\packages\CppSharp.0.7.1\lib\CppSharp.dll + ..\packages\CppSharp.0.7.2\lib\CppSharp.dll True - ..\packages\CppSharp.0.7.1\lib\CppSharp.AST.dll + ..\packages\CppSharp.0.7.2\lib\CppSharp.AST.dll True - ..\packages\CppSharp.0.7.1\lib\CppSharp.Generator.dll + ..\packages\CppSharp.0.7.2\lib\CppSharp.Generator.dll True - ..\packages\CppSharp.0.7.1\lib\CppSharp.Parser.dll + ..\packages\CppSharp.0.7.2\lib\CppSharp.Parser.dll True - ..\packages\CppSharp.0.7.1\lib\CppSharp.Parser.CLI.dll + ..\packages\CppSharp.0.7.2\lib\CppSharp.Parser.CLI.dll True - ..\packages\CppSharp.0.7.1\lib\CppSharp.Runtime.dll + ..\packages\CppSharp.0.7.2\lib\CppSharp.Runtime.dll True diff --git a/QtSharp.CLI/packages.config b/QtSharp.CLI/packages.config index 1dd0edb1..c481f25e 100644 --- a/QtSharp.CLI/packages.config +++ b/QtSharp.CLI/packages.config @@ -1,5 +1,5 @@  - + \ No newline at end of file diff --git a/QtSharp/CompileInlinesPass.cs b/QtSharp/CompileInlinesPass.cs index e662e904..4b221a88 100644 --- a/QtSharp/CompileInlinesPass.cs +++ b/QtSharp/CompileInlinesPass.cs @@ -22,27 +22,26 @@ public CompileInlinesPass(string qmake, string make) public override bool VisitLibrary(ASTContext context) { + string error; + const string qtVersionVariable = "QT_VERSION"; + var qtVersion = ProcessHelper.Run(this.qmake, string.Format("-query {0}", qtVersionVariable), out error); + var qtVersionFile = Path.Combine(this.Context.Options.OutputDir, qtVersionVariable); + var qtVersionFileInfo = new FileInfo(qtVersionFile); + var text = string.Empty; + if (!qtVersionFileInfo.Exists || (text = File.ReadAllText(qtVersionFile)) != qtVersion) + { + File.WriteAllText(qtVersionFile, qtVersion); + qtVersionFileInfo = new FileInfo(qtVersionFile); + } + var dir = Platform.IsMacOS ? this.Context.Options.OutputDir : Path.Combine(this.Context.Options.OutputDir, "release"); foreach (var module in this.Context.Options.Modules) { - string error; - const string qtVersionVariable = "QT_VERSION"; - var qtVersion = ProcessHelper.Run(this.qmake, string.Format("-query {0}", qtVersionVariable), out error); - var qtVersionFile = Path.Combine(this.Context.Options.OutputDir, qtVersionVariable); - var dir = Platform.IsMacOS ? this.Context.Options.OutputDir : Path.Combine(this.Context.Options.OutputDir, "release"); var inlines = Path.GetFileName(string.Format("{0}{1}.{2}", Platform.IsWindows ? string.Empty : "lib", module.InlinesLibraryName, Platform.IsMacOS ? "dylib" : "dll")); var libFile = Path.Combine(dir, inlines); - var qtVersionFileInfo = new FileInfo(qtVersionFile); var inlinesFileInfo = new FileInfo(libFile); - string text = string.Empty; - if (!qtVersionFileInfo.Exists || (text = File.ReadAllText(qtVersionFile)) != qtVersion || - !inlinesFileInfo.Exists || qtVersionFileInfo.CreationTimeUtc > inlinesFileInfo.CreationTimeUtc || - qtVersionFileInfo.LastWriteTimeUtc > inlinesFileInfo.LastWriteTimeUtc) + if (!inlinesFileInfo.Exists || qtVersionFileInfo.LastWriteTimeUtc > inlinesFileInfo.LastWriteTimeUtc) { - if (text != qtVersion) - { - File.WriteAllText(qtVersionFile, qtVersion); - } if (!this.CompileInlines(module)) { continue; diff --git a/QtSharp/QtSharp.cs b/QtSharp/QtSharp.cs index b9d54281..d07b1e07 100644 --- a/QtSharp/QtSharp.cs +++ b/QtSharp/QtSharp.cs @@ -45,18 +45,6 @@ public void Preprocess(Driver driver, ASTContext lib) IgnorePrivateDeclarations(unit); } } - lib.SetClassAsValueType("QByteArray"); - lib.SetClassAsValueType("QLocale"); - lib.SetClassAsValueType("QModelIndex"); - lib.SetClassAsValueType("QPoint"); - lib.SetClassAsValueType("QPointF"); - lib.SetClassAsValueType("QSize"); - lib.SetClassAsValueType("QSizeF"); - lib.SetClassAsValueType("QRect"); - lib.SetClassAsValueType("QRectF"); - lib.SetClassAsValueType("QGenericArgument"); - lib.SetClassAsValueType("QGenericReturnArgument"); - lib.SetClassAsValueType("QVariant"); // QString is type-mapped to string so we only need two methods for the conversion var qString = lib.FindCompleteClass("QString"); diff --git a/QtSharp/QtSharp.csproj b/QtSharp/QtSharp.csproj index c620186e..7398c9ca 100644 --- a/QtSharp/QtSharp.csproj +++ b/QtSharp/QtSharp.csproj @@ -38,27 +38,27 @@ - ..\packages\CppSharp.0.7.1\lib\CppSharp.dll + ..\packages\CppSharp.0.7.2\lib\CppSharp.dll True - ..\packages\CppSharp.0.7.1\lib\CppSharp.AST.dll + ..\packages\CppSharp.0.7.2\lib\CppSharp.AST.dll True - ..\packages\CppSharp.0.7.1\lib\CppSharp.Generator.dll + ..\packages\CppSharp.0.7.2\lib\CppSharp.Generator.dll True - ..\packages\CppSharp.0.7.1\lib\CppSharp.Parser.dll + ..\packages\CppSharp.0.7.2\lib\CppSharp.Parser.dll True - ..\packages\CppSharp.0.7.1\lib\CppSharp.Parser.CLI.dll + ..\packages\CppSharp.0.7.2\lib\CppSharp.Parser.CLI.dll True - ..\packages\CppSharp.0.7.1\lib\CppSharp.Runtime.dll + ..\packages\CppSharp.0.7.2\lib\CppSharp.Runtime.dll True diff --git a/QtSharp/packages.config b/QtSharp/packages.config index 000ee18a..2b046f20 100644 --- a/QtSharp/packages.config +++ b/QtSharp/packages.config @@ -1,7 +1,7 @@  - + \ No newline at end of file