[QBS] Usage qbs for editing Qt sources

2015-07-04 Thread Smirnov Vladimir
Hello, I just tried some strange things which I want to share with others. 1. I downloaded latest (5.5) Qt Sources, including all Addons. 2. I created qbs file: CppApplication { Depends { name: "Qt"; submodules: ['core', 'gui', 'widgets', 'network'] } name: 'qt-source' files: ['**/*.c','**/*.cc',

Re: [QBS] Not applying moc to certain parts of the project

2015-04-18 Thread Smirnov Vladimir
On 18.04.2015 19:15, Sergey Semushin wrote: > I'm testing with a few million lines of code on Windows 8 with NTFS > HDD, rebuilding with changing one almost empty file takes around 22 > seconds (with incremental linking), Sounds strange, though. QtC already has "few mlns loc", but I built it do

Re: [QBS] Not applying moc to certain parts of the project

2015-04-18 Thread Smirnov Vladimir
On 18.04.2015 18:40, Sergey Semushin wrote: > Yeah that's reasonable. However I noticed that QtMocScanner takes a > lot of time even after touching just single file, anyway I need to > investigate it more thoroughly and figure out why this happens. > Anyway, thank you. > What OS and filesystem

[QBS] Re: Not applying moc to certain parts of the project

2015-04-18 Thread Smirnov Vladimir
On 18.04.2015 18:00, qbs-requ...@qt-project.org wrote: > I noticed that scanning > for files in need of moc takes large amount of time cpp_scanner in QBS scans cpp and .h files for parsing include directives first of all. As it does that, it also fetches Q_OBJECT and so tokens. I don't think th

Re: [QBS] what about path magic variable?

2015-01-08 Thread Smirnov Vladimir
> Vladimir, you can use > > Export { > ... > cpp.includePaths: ["."] > } > > as a temporary workaround. I already widely use Export item, I didn't know that such use IS "workaround" (just thought it's normal). > It's not documented because it is a terrible name that needs to change. > S

[QBS] what about path magic variable?

2015-01-07 Thread Smirnov Vladimir
I have found such an example of Export Item: (https://codereview.qt-project.org/#/c/103016/2/examples/app-and-lib/lib/lib.qbs) Export { Depends { name: "cpp" } cpp.includePaths: [path] } What is a "path" magic? it does not appear in Product item or Export item docs. In Language int

[QBS] What about generator APIs reviews?

2014-12-13 Thread Smirnov Vladimir
Greetings, Since November, 12th, I don't see any activity on reviews - Joerg, Christian, what's up? https://codereview.qt-project.org/#/c/89972/ nor https://codereview.qt-project.org/#/c/91353/ Are you too overworked, or there are some plan on that (may be we should wait for some months, pls sa

[QBS] What is the semantic difference between Rule and Transformer?

2014-11-08 Thread Smirnov Vladimir
From docs: -A /multiplex rule/ creates one /transformer/ that takes all input artifacts with the matching input file tag and creates one or more artifacts. -A /simplex rule/ creates one transformer per matching input file. -A /transformer/ takes zero or more inputs and produces one or more out

Re: [QBS] Corrupted object files on qbs builds.

2014-09-08 Thread Smirnov Vladimir
On 08.09.2014 21:24, Orgad Shaneh wrote: Hi, I've also noticed it, but only on some of the machines here (my machine for example has Win7 with the same setup, and it doesn't happen to me). I remember having these corruptions when we changed the Can

[QBS] Corrupted object files on qbs builds.

2014-09-08 Thread Smirnov Vladimir
Hello, I noticed that in latest QtC 3.2 (win7), after cancelling build (or build failed during compile errors), rarely i get "Invalit or corruped object file" linker errors. Toolchain MSVS 2010, compiling project with Qt 4.8 lib. I am using qbs and this toolchain past last year, but such errors

Re: [QBS] Strange incremental build in QtC 3.2 qbs.

2014-09-08 Thread Smirnov Vladimir
On 08.09.2014 19:00, qbs-requ...@qt-project.org wrote: > Err, no, please don't. It's supposed to be off by default. If it had > been on, that could have been a possible problem source. Yes, i noticed that it had been turned on. But i have more interesting results... I found on qbs tracker env vari

Re: [QBS] Strange incremental build in QtC 3.2 qbs.

2014-09-06 Thread Smirnov Vladimir
On 06.09.2014 19:00, qbs-requ...@qt-project.org wrote: > Do you have the "check timestamps" option enabled? Hmm, i didn't noticed that option before :) I see now it disabled by default. I will enable in on Monday and see if it helps! ___ QBS mailing list

Re: [QBS] Some common questions about roadmap: destDir and generators

2014-09-05 Thread Smirnov Vladimir
On 05.09.2014 07:21, Jake Petroules wrote: > On 2014-09-04, at 05:03 PM, Smirnov Vladimir wrote: > >> 1. "product.destination must die". Is it right, that we should replace >> it with install dir? How can i setup such behaviour: >> having different products in p

Re: [QBS] Strange incremental build in QtC 3.2 qbs.

2014-09-05 Thread Smirnov Vladimir
> Sorry, I cannot follow. What does that mean, "instantly rebuilding"? Please explain - what you do - what you expect to happen - what happens instead. -I opening my project ion QtC and press build. Project builds. Then i press build again. -I expect nothing happens and no file

[QBS] Some common questions about roadmap: destDir and generators

2014-09-04 Thread Smirnov Vladimir
1. "product.destination must die". Is it right, that we should replace it with install dir? How can i setup such behaviour: having different products in project, which targets in different folders/drives? What are plans to create API in qbs to access product targets before full build (maybe inac

[QBS] Strange incremental build in QtC 3.2 qbs.

2014-09-04 Thread Smirnov Vladimir
Hi everyone, I have now strange bug (maybe not in qbs, not sure), after upgrading Creator to 3.2 (just downloaded Win installer). When build executed, SOMETIMES qbs instantly starting rebuilding one of the files. mutexRW.cpp (it tiny wrapper on boost thread and IPC mutexes). i've tried to rename

[QBS] About vcproj generators

2014-07-26 Thread Smirnov Vladimir
Greetings, I just wonder, does anybody tried to implement .vsproj/.sln generator for qbs? I have created such tool some weeks ago, but it has some possible flaws: -It uses qbscore library (so it low integreated to qbs tree), -It generates projects which uses "NMake tool" template and runs qbs on

Re: [QBS] Absolute paths in Product.destination question

2013-03-11 Thread Smirnov Vladimir
Thanks for help, i've done some digging and understand my mistake, I now tell it, if it helps somebody: if we write Depends block, we dont need to owerwrite the absolute path of the lib, qbs done all the work automatically (it suprising, but non-intuitive) StaticLibrary{ Depends { name: "cp

Re: [QBS] Absolute paths in Product.destination question

2013-03-08 Thread Smirnov Vladimir
"If the app and the lib are in the same project, then qbs knows where the lib is when linking the app, so installation of the lib is not part of that process. " Is it right that even .lib file placed in temporarily build folder ,then in another product (app) build it (lib) will be passed to linke

[QBS] Absolute paths in Product.destination question

2013-03-07 Thread Smirnov Vladimir
First: according to https://bugreports.qt-project.org/browse/QBS-116 , in QBS ideology we shouldn't have output artifacts outside build dir. When we build application, it should moved to dest using install comand. Okay. Just imagine (real for me) situation: we have large project with some static