Re: [Qbs] A simple project that copy an executable does not work

2019-08-20 Thread Vincent Hui
Hi Christian, Did the doc person you asked reply you? br, Vincent On Tue, 13 Aug 2019 at 19:51, Christian Kandeler wrote: > On Mon, 12 Aug 2019 21:57:34 +0800 > Vincent Hui wrote: > > > Do you know why the document for Rule is not updated? > >

Re: [Qbs] A simple project that copy an executable does not work

2019-08-13 Thread Christian Kandeler
On Mon, 12 Aug 2019 21:57:34 +0800 Vincent Hui wrote: > Do you know why the document for Rule is not updated? > https://doc-snapshots.qt.io/qbs/qml-qbslanguageitems-rule.html The snapshots are probably updated manually, or the script is broken. I'll ask a doc person. Christian

Re: [Qbs] A simple project that copy an executable does not work

2019-08-12 Thread Vincent Hui
Hi Christian, Do you know why the document for Rule is not updated? https://doc-snapshots.qt.io/qbs/qml-qbslanguageitems-rule.html Thank you. br, Vincent On Fri, 9 Aug 2019 at 20:21, Christian Gagneraud wrote: > On Fri, 9 Aug 2019 at 13:28, Иван Комиссаров wrote: > > > > I guess,

Re: [Qbs] A simple project that copy an executable does not work

2019-08-09 Thread Christian Gagneraud
On Fri, 9 Aug 2019 at 13:28, Иван Комиссаров wrote: > > I guess, documentation is updated manually as a part of the release process > (which did not happen yet AFAIK). > Christian should know better, he is the maintainer:) > I hope that some day when we will have a proper CI for Qbs, we can

Re: [Qbs] A simple project that copy an executable does not work

2019-08-09 Thread Иван Комиссаров
I guess, documentation is updated manually as a part of the release process (which did not happen yet AFAIK). Christian should know better, he is the maintainer:) I hope that some day when we will have a proper CI for Qbs, we can update doc on a daily basis Иван Комиссаров > 9 авг. 2019 г., в

Re: [Qbs] A simple project that copy an executable does not work

2019-08-08 Thread Vincent Hui
Hi Ivan, Do you know why the document for Rule is not updated? Your commit was merged, am I right? https://doc-snapshots.qt.io/qbs/qml-qbslanguageitems-rule.html Thank you again for making a complete example for Rule. br, Vincent On Sat, 6 Jul 2019 at 23:15, Иван Комиссаров wrote: >

Re: [Qbs] A simple project that copy an executable does not work

2019-07-08 Thread Christian Gagneraud
On Mon, 8 Jul 2019 at 18:15, Vincent Hui wrote: > > Hi Richard and Ivan, > > I tried a project called qbs-autoproject that can generate qbs files > automatically. I modified the example to try whether multiple executables can > be generated without adding CppApplication by myself, the result

Re: [Qbs] A simple project that copy an executable does not work

2019-07-08 Thread Vincent Hui
Hi Richard and Ivan, I tried a project called qbs-autoproject that can generate qbs files automatically. I modified the example to try whether multiple executables can be generated without adding CppApplication by myself, the result was that

Re: [Qbs] A simple project that copy an executable does not work

2019-07-07 Thread Richard Weickelt
> No, this is not possible. The reason is that in common case those products > (applications, libraries) will diverge in some way. For example, you might > want to use different resources - icons (you probably do not want to name > them icon1.png and icon2.png, right?), .desktop entires on Linux,

Re: [Qbs] A simple project that copy an executable does not work

2019-07-07 Thread Иван Комиссаров
No, this is not possible. The reason is that in common case those products (applications, libraries) will diverge in some way. For example, you might want to use different resources - icons (you probably do not want to name them icon1.png and icon2.png, right?), .desktop entires on Linux, plist

Re: [Qbs] A simple project that copy an executable does not work

2019-07-07 Thread Vincent Hui
Hi Ivan, Thank you very much for creating a complete example in Rule document. That definitely helps new qbs users. I have another question that I didn't find answers after reading qbs doc. Is it possible to create CppApplication dynamically to generate multiple executables? For example, I

Re: [Qbs] A simple project that copy an executable does not work

2019-07-06 Thread Иван Комиссаров
https://codereview.qt-project.org/c/qbs/qbs/+/267333 > 6 июля 2019 г., в 15:51, Иван Комиссаров написал(а): > > Ivan. ___ Qbs mailing list Qbs@qt-project.org https://lists.qt-project.org/listinfo/qbs

Re: [Qbs] A simple project that copy an executable does not work

2019-07-06 Thread Иван Комиссаров
Yes, Qbs doc is a bit incomplete and contains some confusing and misleading examples. I even failed to answer your question myself. Well, I understood the reason correctly (there’s no dependent product), but failed to provide a working example in reasonable time. Feel free to create tickets

Re: [Qbs] A simple project that copy an executable does not work

2019-07-06 Thread Vincent Hui
Hi Richard, Thank you very much for your reply. I am creating toy projects for learning how to use qbs. In the document of Rule, A simple example is not a complete example. It does not tell user to assign the product type to "txt_output" explicitly. I hope the document can be improved in the

Re: [Qbs] A simple project that copy an executable does not work

2019-07-06 Thread Richard Weickelt
> I created a simple project to copy an executable generated by > CppApplication. However the executable is not copied. > > I cannot figure out why? Can anyone tell me why? Please read https://doc.qt.io/qbs/qml-qbslanguageitems-rule.html#rules-and-product-types Your rule is not executed because

[Qbs] A simple project that copy an executable does not work

2019-07-06 Thread Vincent Hui
Hi, I created a simple project to copy an executable generated by CppApplication. However the executable is not copied. I cannot figure out why? Can anyone tell me why? Thank you very much. Regards, Vincent my qbs file " import qbs.base import qbs.File import qbs.FileInfo CppApplication {