[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bindings
Subject:    Re: [Kde-bindings] Install Windows Binaries
From:       Dimitar Dobrev <dpldobrev () yahoo ! com>
Date:       2013-10-26 13:37:11
Message-ID: 1382794631.59708.YahooMailNeo () web122403 ! mail ! ne1 ! yahoo ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


    Yes, it's QtCore only. It's been artificially configured to wrap only \
QtCore for now because managing dependencies between Qt modules is not that \
trivial a task and I haven't completed it yet. In Program.cs you can see \
this:

            foreach (string libFile in libFiles)
            {
                if (libFile == "libQt5Core.a")
                {
                    string module = Regex.Match(libFile, \
                @"Qt\d?(?<module>\w+)\.\w+$").Groups["module"].Value;
                    ConsoleDriver.Run(new QtSharp(qmake, makePath, headers, \
module, libs, libFile));  }
            }
   This hacky check allows only QtCore through. I'd recommend leaving it \
for now.

   About tasks, here's one: compile the generated files. For independence \
of the build system, I've been thinking about using System.CodeDom which \
has an API for compiling a project from source files. You can see an \
example in the code of the old Qyoto  at \
https://projects.kde.org/projects/kde/kdebindings/csharp/assemblygen/repository/revisions/master/entry/src/main.cs, \
starting at line 282. However, please note that System.CodeDom is obsolete \
and while it works, It would be better if there was a newer alternative. \
This is why this task also includes some research. As a starting point you \
could check if NRefactory (https://github.com/icsharpcode/NRefactory/)can \
do the same and if so, it'd be a better choice that CodeDom.


    Good luck,
    Dimitar  



On Saturday, October 26, 2013 4:25 PM, Manickkavasakam <manikk.h@gmail.com> \
wrote:  
Hi Dimitar,

I am able to generate the files. Are they just the classes in QtCore? How \
to check the generated cs files are working fine?

Sure. Tell me the tasks.

Thanks,
Manikk




On Sat, Oct 26, 2013 at 6:50 PM, Dimitar Dobrev <dpldobrev@yahoo.com> \
wrote:

    Hi Manikk,
> 
> 
> Glad to see it worked out. About proceeding, it depends on what you mean. \
> If you mean work, I have some tasks in mind you could do. Let me know if \
> this is what you'd like. 
> 
> 
> Dimitar
> 
> 
> 
> 
> On Saturday, October 26, 2013 4:39 PM, Manickkavasakam \
> <manikk.h@gmail.com> wrote: 
> Hi Dimitar,
> 
> I am able to generate the CS classes. How to proceed from there?
> 
> 
> 
> Thanks,
> Manikk
> 
> 


[Attachment #5 (text/html)]

<html><body><div style="color:#000; background-color:#fff; \
font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, \
sans-serif;font-size:12pt"><div><span class="tab">&nbsp;&nbsp;&nbsp; Yes, \
it's QtCore only. It's been artificially configured to wrap only QtCore for \
now because managing dependencies between Qt modules is not that trivial a \
task and I haven't completed it yet.</span> In Program.cs you can see \
this:</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: \
HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; \
background-color: transparent; font-style: normal;"><span \
class="tab"><br></span></div><div style="color: rgb(0, 0, 0); font-size: \
16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida \
Grande,sans-serif; background-color: transparent; font-style: \
normal;"><span class="tab">&nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; foreach (string libFile in  \
libFiles)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
if (libFile == "libQt5Core.a")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
string module = Regex.Match(libFile, \
@"Qt\d?(?&lt;module&gt;\w+)\.\w+$").Groups["module"].Value;<br>&nbsp;&nbsp;& \
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
ConsoleDriver.Run(new QtSharp(qmake, makePath, headers, module, libs, \
libFile));<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
}</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; \
font-family:  HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida \
Grande,sans-serif; background-color: transparent; font-style: \
normal;"><span class="tab"></span><span class="tab">&nbsp;&nbsp; This hacky \
check allows only QtCore through. I'd recommend leaving it for \
now.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; \
font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida \
Grande,sans-serif; background-color: transparent; font-style: \
normal;"><br><span class="tab"></span></div><div \
class="yui_3_13_0_8_1382793699712_7" style="color: rgb(0, 0, 0); font-size: \
16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida \
Grande,sans-serif; background-color: transparent; font-style: \
normal;"><span class="tab">&nbsp;&nbsp; About tasks, here's one: compile \
the generated files. For independence of the build system, I've been \
thinking about using System.CodeDom which has an API for compiling a \
project from source files. You can see an example  in the code of the old \
Qyoto&nbsp; </span>at <a \
href="https://projects.kde.org/projects/kde/kdebindings/csharp/assemblygen/r \
epository/revisions/master/entry/src/main.cs">https://projects.kde.org/proje \
cts/kde/kdebindings/csharp/assemblygen/repository/revisions/master/entry/src/main.cs</a>, \
starting at line 282. However, please note that System.CodeDom is obsolete \
and while it works, It would be better if there was a newer alternative. \
This is why this task also includes some research. As a starting point you \
could check if NRefactory (<a \
href="https://github.com/icsharpcode/NRefactory/">https://github.com/icsharpcode/NRefactory/</a>)<span \
class="tab"> can do the same and if so, it'd be a better choice that \
CodeDom.<br></span></div><div class="yui_3_13_0_8_1382793699712_7" \
style="color: rgb(0, 0, 0); font-size: 16px; font-family: \
HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; \
background-color: transparent; font-style:  normal;"><span \
class="tab"><br></span></div><div class="yui_3_13_0_8_1382793699712_7" \
style="color: rgb(0, 0, 0); font-size: 16px; font-family: \
HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; \
background-color: transparent; font-style: normal;"><span \
class="tab">&nbsp;&nbsp;&nbsp; Good luck,</span></div><div style="color: \
rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica \
Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: \
transparent; font-style: normal;"><span class="tab">&nbsp;&nbsp;&nbsp; \
Dimitar</span><span class="tab"> &nbsp; </span></div><div style="display: \
block;" class="yahoo_quoted"> <br> <br> <div style="font-family: \
HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; \
font-size: 12pt;"> <div style="font-family: HelveticaNeue, Helvetica Neue, \
Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div \
dir="ltr"> <font face="Arial" size="2"> On Saturday,  October 26, 2013 4:25 \
PM, Manickkavasakam &lt;manikk.h@gmail.com&gt; wrote:<br> </font> </div>  \
<div class="y_msg_container"><div id="yiv4498926989"><div><div \
dir="ltr"><div><div><div>Hi Dimitar,<br clear="none"><br \
clear="none"></div>I am able to generate the files. Are they just the \
classes in QtCore? How to check the generated cs files are working fine?<br \
clear="none"><br clear="none"></div>Sure. Tell me the tasks.<br \
clear="none"><br clear="none"> Thanks,<br clear="none"></div>Manikk<br \
clear="none"></div><div class="yiv4498926989yqt0037450125" \
id="yiv4498926989yqt92680"><div class="yiv4498926989gmail_extra"><br \
clear="none"><br clear="none"><div class="yiv4498926989gmail_quote">On Sat, \
Oct 26, 2013 at 6:50 PM, Dimitar Dobrev <span dir="ltr">&lt;<a \
rel="nofollow" shape="rect" ymailto="mailto:dpldobrev@yahoo.com" \
target="_blank" href="mailto:dpldobrev@yahoo.com">dpldobrev@yahoo.com</a>&gt;</span> \
wrote:<br clear="none"> <blockquote class="yiv4498926989gmail_quote" \
style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex;"><div><div \
style="font-size:12pt;font-family:HelveticaNeue, Helvetica Neue, Helvetica, \
Arial, Lucida Grande, sans-serif;"><div> <div><div \
style="font-size:12pt;font-family:HelveticaNeue, Helvetica Neue, Helvetica, \
Arial, Lucida Grande, sans-serif;"><div><span>&nbsp;&nbsp;&nbsp; Hi \
Manikk,</span></div><div \
style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, \
Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;"> <br \
clear="none"><span></span></div><div \
style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, \
Helvetica Neue, Helvetica, Arial, Lucida Grande, \
sans-serif;"><span>&nbsp;&nbsp;&nbsp; Glad to see it worked out. About \
proceeding, it depends on what you mean.  If you mean work, I have some \
tasks in mind you could do. Let me know if this is what you'd \
like.</span><span class="yiv4498926989HOEnZb"><font color="#888888"><br \
clear="none"></font></span></div><span class="yiv4498926989HOEnZb"><font \
color="#888888"></font></span><div \
style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, \
Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;"> <br \
clear="none"><span></span></div><div \
style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue, \
Helvetica Neue, Helvetica, Arial, Lucida Grande, \
sans-serif;"><span>&nbsp;&nbsp;&nbsp; Dimitar</span><span><br clear="none"> \
</span></div><div><div style="display:block;"> <br clear="none"> <br \
clear="none"> <div style="font-family:HelveticaNeue, Helvetica Neue, \
Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt;"> <div \
style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida \
Grande, sans-serif;font-size:12pt;"> <div class="yiv4498926989im"> <div \
dir="ltr"> <font face="Arial"> On Saturday, October 26, 2013 4:39 PM, \
Manickkavasakam &lt;<a rel="nofollow" shape="rect" \
ymailto="mailto:manikk.h@gmail.com" target="_blank" \
href="mailto:manikk.h@gmail.com">manikk.h@gmail.com</a>&gt; wrote:<br \
clear="none"> </font> </div>  </div><div><div \
class="yiv4498926989h5"><div><div><div><div dir="ltr"><div><div>Hi \
Dimitar,<br clear="none"><br clear="none"></div>I am able to generate the \
CS classes. How to proceed from there?<div><br clear="none"><br \
clear="none"> </div></div><div>Thanks,<br \
clear="none">Manikk</div></div><div> </div></div></div><br clear="none"><br \
clear="none"></div>  </div></div></div> </div>  </div></div> \
</div></div></div></div></div></blockquote></div><br \
clear="none"></div></div></div></div><br><br></div>  </div> </div>  </div> \
</div></body></html>



_______________________________________________
Kde-bindings mailing list
Kde-bindings@kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic