[cmake-developers] CMake, Ninja and Clang on windows?

2018-11-06 Thread Tobias Hunger
Hi CMake Developers, we are currently trying to support Clang (without the -cl;-) on Windows. This fails since CMake adds extra compiler flags to the command line which are not in the expected format. Stackoverflow[1] suggests to set CMAKE_SYSTEM_NAME to "Generic" to stop that from happening. Th

Re: [cmake-developers] Cmake-server question

2018-02-15 Thread Tobias Hunger
On Thu, Feb 15, 2018 at 3:18 PM, Ben Boeckel wrote: > On Wed, Feb 14, 2018 at 19:19:39 +0100, Paweł Rutka wrote: >> I would like to ask about some important feature: >> Is there any possibility to provide form Cmake Server side location of >> command that generate the target? The Use Case is as fo

Re: [cmake-developers] Cmake-server question

2018-02-15 Thread Tobias Hunger
On Wed, Feb 14, 2018 at 7:27 PM, Rich Chiodo via cmake-developers wrote: > This would require backtraces, I believe, on every property so you can trace > all the properties back to where they’re defined. I need this too for Visual > Studio to support adding files as well. I disagree: Using backtr

Re: [cmake-developers] Server handshake with only build directory

2018-01-24 Thread Tobias Hunger
nor...@gmail.com] > Sent: Tuesday, January 23, 2018 7:16 AM > To: Brad King > Cc: Tobias Hunger ; Rich Chiodo > ; CMake Developers > Subject: Re: [cmake-developers] Server handshake with only build directory > > > >> Any objections from the core team about enabling server-mod

Re: [cmake-developers] Server handshake with only build directory

2018-01-23 Thread Tobias Hunger
Hi Rich, On Mon, Jan 22, 2018 at 5:48 PM, Rich Chiodo wrote: > If you have the build directory, can’t you just parse the CmakeCache.txt? > CMAKE_HOME_DIRECTORY in the cache is the source folder. Seems easier than > writing something to talk to CMake server. Sure, but part of the reason to have s

Re: [cmake-developers] Server handshake with only build directory

2018-01-22 Thread Tobias Hunger
Hi Isaiah, the idea was to make sure the IDE and cmake agree on the settings being used and to make it very explicit what is going to be used. Best Regards, Tobias On Mon, Jan 22, 2018 at 4:54 PM, Isaiah Norton wrote: > I'd like to use cmake server with only a build directory argument (mostly i

Re: [cmake-developers] CMAKE Generator for Embacardero RAD Studio IDE

2017-11-18 Thread Tobias Hunger
On Nov 17, 2017 15:14, "Brad King" wrote: > Or perhaps, there is some technical issue related to this particular > IDE that makes it impossible to support such IDE. I'm not familiar with that IDE, but in order to be directly supported by a generator its native build system would need to support

Re: [cmake-developers] cmake-server protocol versioning

2017-09-14 Thread Tobias Hunger
Hi Justin, On Thu, Sep 14, 2017 at 6:52 PM, Justin Goshi via cmake-developers wrote: > I work at Microsoft on the version of CMake shipping with Visual Studio, and > we use the cmake-server to talk to CMake. Cool! > At some point between cmake version 3.9.0 and 3.9.1 the cmake-server > protocol

Re: [cmake-developers] Dependency graph in server mode?

2017-08-25 Thread Tobias Hunger
Hi Eric, On Fri, Aug 25, 2017 at 3:53 PM, Eric Noulard wrote: > Is it possible to get the dependency graph one can get with the --graphviz > option when running in server mode. Not yet:-) > From my understanding the current "codeModel" message does not contain such > information. Am I right? Y

[cmake-developers] Targets with same name in different projects

2017-03-30 Thread Tobias Hunger
Hello, I found a project recently which looks odd in the Qt Creator project tree. Looking into it I found that this project has several projects defined and two of those define the same target (same SOURCE file, same name, etc.). It seems like both projects somehow include the same CMakeLists.txt

[cmake-developers] How to get install locations?

2017-03-23 Thread Tobias Hunger
Hello CMake developers, I got a bug assigned to me about missing information on install locations in cmake server-mode. I wanted to fix that today, but so far I failed to get that information. Does somebody have some hint? What I tried is to just call cmInstallTargetGenerator::GetInstallFilename

Re: [cmake-developers] [Qt-creator] ​Qt Creator vs CMake server mode

2017-02-10 Thread Tobias Hunger
Hi all, On Fri, Feb 10, 2017 at 1:08 AM, Mike Jackson wrote: > I can confirm with QtCreator 4.3 nightly builds and CMake 3.7.1 those > "utility" targets do not show up. Server-mode reports the following targets: EXECUTABLE, STATIC_LIBRARY, SHARED_LIBRARY, MODULE_LIBRARY, OBJECT_LIBRARY, UTILITY

Re: [cmake-developers] Debugger for CMake

2017-01-30 Thread Tobias Hunger
On Jan 30, 2017 20:03, "Sylvain Joubert" wrote: > c) What is the best > approach to make this kind of feature appealing to IDE / UI tools which > currently work with CMake? > > If I recall correctly, one of the initial use cases for the server mode was exactly that. The very first prototype of S

[cmake-developers] CMake server-mode aborting

2017-01-26 Thread Tobias Hunger
Hello CMake developers, I have been using Qt Creator extensively with cmake server-mode for a while now and am very happy with the results so far. Once the project is initially configured by cmake it is really nice. Today I started to look into a bug report that creator behaves horribly when not

Re: [cmake-developers] How to use cmake::SetCacheArgs(...)?

2016-11-30 Thread Tobias Hunger
Am 30.11.2016 19:10 schrieb "Brad King" : > If you want to ensure a fresh one-step configuration then always remove > CMakeCache.txt and CMakeFiles/ before configuring. People are really attached to their configuration and get upset when creator runs CMake. Creator running CMake with arguments is

[cmake-developers] How to use cmake::SetCacheArgs(...)?

2016-11-30 Thread Tobias Hunger
Hello CMake developers, I am trying to pass a number of arguments to cmake server-mode's configure command. The exact call is: [== "CMake Server" ==[ { "cacheArguments": [ "-DCMAKE_BUILD_TYPE:STRING=Debug", "-DCMAKE_CXX_COMPILER:STRING=/usr/lib/ccache/bin/g++", "-DCMAK

Re: [cmake-developers] improved CodeBlocks group support

2016-11-21 Thread Tobias Hunger
Hi Tim, Am 21.11.2016 01:19 schrieb "tim cotter" : > > i've patched my local cmake to automatically add a virtual folder group option for every file in a code blocks project. > > it's not proper support for cmake source groups. > but it does what i want it to do. > > the patch is small. > > would

Re: [cmake-developers] [PATCH] Help: Fix cmake-server typo and message type consistency

2016-10-21 Thread Tobias Hunger
Yes, this change is correct. I stumbled over this myself this afternoon. I changed the name pretty late before submitting the patches and apparently mused some occurrences in the docs:-( Best regards, Tobias Sylvain: Thanks for noticing and sending in patches to correct the mistakes you found! -

Re: [cmake-developers] Current deficiencies of automoc

2016-10-20 Thread Tobias Hunger
Hi! Am 20.10.2016 21:08 schrieb "Brad King" : > On 10/20/2016 02:30 PM, Alan W. Irwin wrote: > > To be specific here is the way I believe automoc should work. If > > > > #include "moc_.cpp" > > > > is found in a source file under automoc > > control, then if moc_.cpp could not be found in any of

Re: [cmake-developers] Is there a way in CMake to get a list of all CTest tests added with add_test?

2016-10-04 Thread Tobias Hunger
e server-mode, too:-) If some work is done in that direction, please keep server-mode in mind when designing the APIs. I would love to reuse them to expose that information to clients. Best Regards, Tobias -- Tobias Hunger, Senior Software Engineer | The Qt Company The Qt Company GmbH, Rudow

Re: [cmake-developers] cmake server mode

2016-09-28 Thread Tobias Hunger
Hi Michele, cmake -E server mode will always trigger something in cmake, so the help will report that. I think it is nicer to report "Server mode unavailable" when somebody attempts to run "cmake -E server" when that is not available than to produce a "Unknown command". To check whether or not se

Re: [cmake-developers] [PATCH] QtCreator integration: C++ includes must come first

2016-08-26 Thread Tobias Hunger
Hello CMake developers, CMake used to break C++ projects in its CodeBlocks generator. Now it probably breaks C projects. I think the approach is wrong: C and C++ includes should never get concatenated. Please consider to report compiler flags/include paths/defines by language. You might want to k

Re: [cmake-developers] Unix makefile: concurrent build configurations

2016-08-22 Thread Tobias Hunger
ame behaviour with Unix makefiles? IMHO VisualStudio is rather broken in that regard. Please do not let the insanity pass over to Makefiles! :-) Best Regards, Tobias -- Tobias Hunger, Senior Software Engineer | The Qt Company The Qt Company GmbH, Rudower Chaussee 13, D-12489 Berlin Geschäfts

Re: [cmake-developers] Security in CMake

2016-08-21 Thread Tobias Hunger
Hi Egor, Am 21.08.2016 12:34 schrieb "Egor Pugin" : > > > What are the attack scenarios you want to defend against? What should not be possible in your system that currently is in CMake? > > At least downloading or executing bad scripts and commands. What is the attack you want to stop? What are

Re: [cmake-developers] Security in CMake

2016-08-21 Thread Tobias Hunger
As a user of CMake I am very much opposed to disabling functionality based on the context: That forces me to keep more state in my head when reading CMakeLists.txt files. CMake does way too much in a way to obscure syntax already! Best regards, Tobias > On 21 August 2016 at 00:25, Tobias Hung

Re: [cmake-developers] Security in CMake

2016-08-20 Thread Tobias Hunger
Hi Egor, Am 20.08.2016 13:48 schrieb "Egor Pugin" : > > Hi, > > I'm working on a package manager based on cmake. > And some cmake instructions are downloaded with user packages. > I'd like to have an ability to deny some cmake features in such > external untrusted insertions. I am no CMake expert

Re: [cmake-developers] cmake -E capabilities [v3]

2016-08-16 Thread Tobias Hunger
Hi Brad! Am 16.08.2016 20:09 schrieb "Brad King" : > > On 08/15/2016 09:56 AM, Tobias Hunger wrote: > > here is a new update of the cmake -E capabilities patch. > > Thanks. Applied with minor revisions and an additional test: > > cmake: Add `cmake -E capab

[cmake-developers] cmake -E capabilities [v3]

2016-08-15 Thread Tobias Hunger
Hi CMake developers, I am back to a internet-connected world, so here is a new update of the cmake -E capabilities patch. I did the changes Brad requested: * Rebased on cmake master branch * Add documentation * Add a smoke test that makes sure that "cmake -E capabilities" can run. Code is on git

Re: [cmake-developers] cmake -E capabilities [attempt 2]

2016-08-05 Thread Tobias Hunger
Hi Brad, I will add the requested changes ASAP, but I have hardly any internet connectivity at this time, so it might take a while to get the necessary patches in shape and sent. Sorry for that! Best Regards, Tobias On Thu, Aug 4, 2016 at 4:25 PM, Brad King wrote: > On 08/03/2016 09:52 AM, Bra

Re: [cmake-developers] cmake -E capabilities [attempt 2]

2016-07-29 Thread Tobias Hunger
Hi Stephen, thanks for taking the time to do such a thorough review! I pushed an update that takes most of the feedback into account. Still at: https://github.com/hunger/CMake/commits/cmake-capabilities On Wed, Jul 27, 2016 at 1:11 AM, Stephen Kelly wrote: > Tobias Hunger wrote: >

Re: [cmake-developers] cmake -E capabilities [attempt 2]

2016-07-25 Thread Tobias Hunger
Did anyone find some time for a review yet? Best regards, Tobias Am 22.07.2016 01:37 schrieb "Tobias Hunger" : > Hello fellow developers, > > https://github.com/hunger/CMake/commits/cmake-capabilities > > has my attempt to get "cmake -E capabilities" merged

[cmake-developers] cmake -E capabilities [attempt 2]

2016-07-21 Thread Tobias Hunger
. I now suppress all aliases in the output of -E capabilities  as I think it makes no sense to have new code announce compatibility bridges (and the last version already hardcoded KDevelop3 to be suppressed). Best Regards, Tobias -- Tobias Hunger, Senior Software Engineer | The Qt Company The Qt C

Re: [cmake-developers] Question over language bindings / daemon

2016-07-18 Thread Tobias Hunger
a by-product of the idea of server mode helping IDEs with code- completion of CMakeLists.txt files. Best Regards, Tobias -- Tobias Hunger, Senior Software Engineer | The Qt Company The Qt Company GmbH, Rudower Chaussee 13, D-12489 Berlin Geschäftsführer: Mika Pälsi, Juha Varelius, Mika Harjuah

Re: [cmake-developers] cmake -E capabilities

2016-07-13 Thread Tobias Hunger
Ping? On Mo, 2016-07-11 at 14:13 +, Tobias Hunger wrote: > https://github.com/hunger/CMake/commits/cmake-capabilities > > is in a state now that could use another review. -- Tobias Hunger, Senior Software Engineer | The Qt Company The Qt Company GmbH, Rudower Chaussee 13, D-124

Re: [cmake-developers] cmake -E capabilities

2016-07-11 Thread Tobias Hunger
string-parsing is going to be necessary. I'd move that into cmake::GetRegisteredGenerators, where it is more of an implementation detail than in the code that actually handles the capability reporting. Best Regards, Tobias -- Tobias Hunger, Senior Software Engineer | The Qt Company The Qt Company

Re: [cmake-developers] cmake -E capabilities

2016-07-08 Thread Tobias Hunger
ators: * Hide KDevelop3 generator Best Regads, Tobias From: cmake-developers on behalf of Tobias Hunger Sent: Thursday, July 7, 2016 3:51:52 PM To: Stephen Kelly Cc: CMake Developers Subject: Re: [cmake-developers] cmake -E capabilities Hello, On Tue, Jul

Re: [cmake-developers] cmake -E capabilities

2016-07-07 Thread Tobias Hunger
Hello, On Tue, Jul 5, 2016 at 1:48 AM, Stephen Kelly , me, Stephen Kelly wrote: >>> Such a feature would also work with cmake projects if the user chooses to >>> use the XCode generator on mac or VS generator on Windows (or if someday >>> we have a multi-config Ninja generator or so). >> >> How is

Re: [cmake-developers] cmake -E capabilities

2016-07-07 Thread Tobias Hunger
Sorry for the late reply... we had a beta release and a new patch level release out this week and I had to fix some bugs in both:-) On Sun, Jul 3, 2016 at 1:30 PM, Stephen Kelly wrote: >> "KDevelop3", > > This generator should probably be removed/hidden by now. It has > confused users of more-re

Re: [cmake-developers] cmake -E capabilities

2016-07-04 Thread Tobias Hunger
On So, 2016-07-03 at 12:33 +0200, Stephen Kelly wrote: > Tobias Hunger wrote: > > > Either we should have multiConfig return a list of configuration names > > that will be generated or I do not see any need to have the information in > > the first place. > >

Re: [cmake-developers] cmake -E capabilities

2016-07-01 Thread Tobias Hunger
On Do, 2016-06-30 at 15:00 -0400, Brad King wrote: > On 06/30/2016 09:51 AM, Tobias Hunger wrote: > > Compared to the bug report mentioned above the fields "multiconfig" and > > "recursive" are missing. I could not figure out how to get that > > i

Re: [cmake-developers] cmake -E capabilities

2016-07-01 Thread Tobias Hunger
l be made later, in a different part of the code. Best Regards, Tobias -- Tobias Hunger, Senior Software Engineer | The Qt Company The Qt Company GmbH, Rudower Chaussee 13, D-12489 Berlin Geschäftsführer: Mika Pälsi, Juha Varelius, Mika Harjuaho. Sitz der Gesellschaft: Berlin, Registergericht: Amtsg

[cmake-developers] cmake -E capabilities

2016-06-30 Thread Tobias Hunger
ether a generator supports toolsets, but nothing similar seems to exist for the platform part. Does anyone have an idea how I could retrieve this information? I would also welcome some code review on the patch. The remaining items on my server-mode todo list are all about removing similar information f

Re: [cmake-developers] Please apply patch from https://github.com/hunger/CMake/commits/for-upstream to master

2016-06-29 Thread Tobias Hunger
On Mi, 2016-06-29 at 09:54 +0200, Rolf Eike Beer wrote: > Am 2016-06-29 09:35, schrieb Tobias Hunger: > > Hello Brad, > > > > I currently get more than 2000 warnings when building cmake master, all  > > about > > missing overrides. > > > > Cou

[cmake-developers] Please apply patch from https://github.com/hunger/CMake/commits/for-upstream to master

2016-06-29 Thread Tobias Hunger
, Tobias -- Tobias Hunger, Senior Software Engineer | The Qt Company The Qt Company GmbH, Rudower Chaussee 13, D-12489 Berlin Geschäftsführer: Mika Pälsi, Juha Varelius, Mika Harjuaho. Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B -- Powered by

Re: [cmake-developers] daemon-mode meeting last Tuesday

2016-06-28 Thread Tobias Hunger
Hello everyone, On Wed, Jun 29, 2016 at 12:41 AM, Stephen Kelly wrote: > Tobias Hunger wrote: > Name > > > Last year before publication I was calling this feature a 'metadata server' > (class called cmMetadataServer etc). I probably made a mistake renaming it &

Re: [cmake-developers] daemon-mode meeting last Tuesday

2016-06-28 Thread Tobias Hunger
Hi Brad, Am 27.06.2016 7:18 nachm. schrieb "Brad King" : > I will take care of making libuv available within CMake's implementation > prior to merging the server mode work. See the "libuv in cmake" branch > of this thread. Perfect. Sorry, I only noticed the other thread after sending my mail. B

Re: [cmake-developers] daemon-mode meeting last Tuesday

2016-06-27 Thread Tobias Hunger
27, 2016 at 5:03 PM, Brad King wrote: > On 06/23/2016 05:19 PM, Tobias Hunger wrote: >> I'll create a task to rename it to "server" then. > > Sounds good. > >>> Would each type of query have a known type of response? >> >> It has a type: &qu

Re: [cmake-developers] daemon-mode meeting last Tuesday

2016-06-24 Thread Tobias Hunger
Hi Daniel, On Fri, Jun 24, 2016 at 5:08 PM, Daniel Pfeifer wrote: >>> Currently cmake-gui supports switching generators, build trees, etc., so >>> there is some precedent for such switching within a single process. If >>> we have (re-)initialization bugs they should simply be fixed. >> >> So you

Re: [cmake-developers] daemon-mode meeting last Tuesday

2016-06-24 Thread Tobias Hunger
Hi Brad, On Thu, Jun 23, 2016 at 10:46 PM, Brad King wrote: >> * This is currently used to set sourcedirectory, builddirectory and >> generator. >> >> These three should be passed in via the command line instead, again >> to avoid trouble with users switching to different build dire

Re: [cmake-developers] daemon-mode meeting last Tuesday

2016-06-24 Thread Tobias Hunger
Hallo Daniel, On Fri, Jun 24, 2016 at 9:59 AM, Daniel Pfeifer wrote: > On Thu, Jun 23, 2016 at 2:27 PM, Tobias Hunger wrote: >> * We both think it only makes sense to merge the infrastructure part into >> cmake (if it passes review first of course) once we have some &

Re: [cmake-developers] daemon-mode meeting last Tuesday

2016-06-23 Thread Tobias Hunger
Hi Rolf, Am 23.06.2016 23:00 schrieb "Rolf Eike Beer" : > What about just passing --server-fd= into it? That way the client can set > up whatever if wants to pass there and CMake has nothing to do with any setup. > And if one really wants to get messy one could pass a tty there. Not sure whether

Re: [cmake-developers] daemon-mode meeting last Tuesday

2016-06-23 Thread Tobias Hunger
Hi Ben, Am 23.06.2016 22:48 schrieb "Ben Boeckel" : > cmake-oracle sounds reasonable for what it's doing to me. I hope this thing will provide information more reliable than e.g. the Oracle of Delphi in ancient Greece:-) Best Regards, Tobias -- Powered by www.kitware.com Please keep messages

Re: [cmake-developers] daemon-mode meeting last Tuesday

2016-06-23 Thread Tobias Hunger
Am 23.06.2016 22:46 schrieb "Brad King" : > > On 06/23/2016 08:27 AM, Tobias Hunger wrote: > Great! Thanks for the detailed summary of the meeting and status of the design. You are welcome. > > * Some names could be improved. Suggestions welcome. > > We'

[cmake-developers] daemon-mode meeting last Tuesday

2016-06-23 Thread Tobias Hunger
, as many of his highlights need refactoring in cmake    to land first.    3.1 parse        * This duplicates the parser and will need some refactoring.         Status Information: I started to add some tasks to github to track what needs to be done before proposing the daemon-mode branch for release

Re: [cmake-developers] CMake daemon-mode

2016-06-19 Thread Tobias Hunger
Hi Brad, Am 17.06.2016 22:09 schrieb "Brad King" : > Then I applied the patches with some revisions: > > cmGeneratorTarget: Adopt Fortran module directory generation > https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=49f10f0d > > cmLocalGenerator: Add method to get Fortran-specific compiler

Re: [cmake-developers] daemon-mode: Infrastructure

2016-06-19 Thread Tobias Hunger
Hi Brad, Am 17.06.2016 22:24 schrieb "Brad King" : > > On 06/13/2016 08:00 PM, Tobias Hunger wrote: > > * There will always be 1 client talking to a server. > > * Client/Server communicate using JSON messages > > Yes. IIRC it is using stdin/stdout (I haven

Re: [cmake-developers] codeblocks generator: Fix include directories being in unexpected order

2016-06-17 Thread Tobias Hunger
On Do, 2016-06-16 at 13:14 -0400, Brad King wrote: > On 06/14/2016 11:52 AM, Tobias Hunger wrote: > > https://github.com/hunger/CMake/commit/f190b069db2e430fd94b25e6287cd7fbc2866 > > 1e3 > > > > Is the same thing updated based on suggestions from St

Re: [cmake-developers] daemon-mode: Project structure

2016-06-15 Thread Tobias Hunger
Hi Brad, The project structure now lists an array of artifacts per target. Best Regards, Tobias On Fri, Jun 10, 2016 at 5:48 PM, Brad King wrote: > On 06/10/2016 11:24 AM, Tobias Hunger wrote: >>> The cmGeneratorTarget::GetFullName method will give you the name of the >>&

Re: [cmake-developers] codeblocks generator: Fix include directories being in unexpected order

2016-06-14 Thread Tobias Hunger
On Di, 2016-06-14 at 15:21 +, Tobias Hunger wrote: > Hello, > > https://github.com/hunger/CMake/commit/a87e306fd03e7fae7409b16e4e586083822c6fe > 8 https://github.com/hunger/CMake/commit/f190b069db2e430fd94b25e6287cd7fbc28661e3 Is the same thing updated based on suggestions

[cmake-developers] codeblocks generator: Fix include directories being in unexpected order

2016-06-14 Thread Tobias Hunger
-- Tobias Hunger, Senior Software Engineer | The Qt Company The Qt Company GmbH, Rudower Chaussee 13, D-12489 Berlin Geschäftsführer: Mika Pälsi, Juha Varelius, Mika Harjuaho. Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B -- Powered by www.kitware.com

Re: [cmake-developers] daemon-mode: Infrastructure

2016-06-14 Thread Tobias Hunger
once the first release is out and users can test it without building the code themselves. So this would provide an opportunity to battle-harden all the daemon-mode APIs without commiting us too early. Best Regards, Tobias -- Tobias Hunger, Senior Software Engineer | The Qt Company The Qt Company

Re: [cmake-developers] CMake daemon-mode

2016-06-13 Thread Tobias Hunger
Hi Brad, I just rebased this branch on top of current master and pushed it. There were some conflicts. Best Regards, Tobias On Mon, Jun 13, 2016 at 4:16 PM, Brad King wrote: > On 06/10/2016 12:31 PM, Tobias Hunger wrote: >> I did try to do the changes you requested. The branc

[cmake-developers] daemon-mode: Infrastructure

2016-06-13 Thread Tobias Hunger
Hello, one important piece of feedback from the daemon-mode: Project structure discussion is that we need a policy to remove old code again. So I thought I should write up a bit about the infrastructure and versioning support of the daemon-mode branch I am working on. Basic Assumptions:

Re: [cmake-developers] daemon-mode: Project structure

2016-06-11 Thread Tobias Hunger
Hi Stephen, Am 11.06.2016 15:37 schrieb "Stephen Kelly" : > > On 06/10/2016 11:35 PM, Tobias Hunger wrote: > > > > > Part of the design of the daemon is that messages that it sends can be > > > 'spontaneous' - it watches for filesystem cha

Re: [cmake-developers] daemon-mode: Project structure

2016-06-10 Thread Tobias Hunger
Hi Stephen, Am 10.06.2016 20:53 schrieb "Stephen Kelly" : > > [== CMake MetaMagic ==[ > > { > > # Reply header: > > "cookie":"", > > "type":"reply" > > "inReplyTo":"project", > > Part of the design of the daemon is that messages that it sends can be > 'spontaneous' - it watches for filesystem chan

Re: [cmake-developers] CMake daemon-mode

2016-06-10 Thread Tobias Hunger
Hi Brad, On Thu, Jun 9, 2016 at 7:57 PM, Brad King wrote: > On 06/09/2016 09:27 AM, Brad King wrote: >>> https://github.com/hunger/CMake/commit/bc060a44b6b2c2281ffe99815163ba02ec835dd6 >> Good. I need to review that one more deeply but should be able to integrate >> it. > > I split out some incr

Re: [cmake-developers] Questions about coding conventions

2016-06-10 Thread Tobias Hunger
ok at code that does not have semantic highlighting (eg. > inside diffs). So you optimize for teletype terminals and punish everybody that has invested in new stuff like screens with *color* in the last couple of decades:-/ /me is trapped in 1995! Best Regards, Tobias -- Tobias Hunger, S

Re: [cmake-developers] daemon-mode: Project structure

2016-06-10 Thread Tobias Hunger
On Fr, 2016-06-10 at 10:41 -0400, Brad King wrote: > On 06/10/2016 10:28 AM, Tobias Hunger wrote: > > Any pointers on how to get to that information? Any example code that gets > > the > > artifact list? > > > > I do not think this information is particularly w

Re: [cmake-developers] daemon-mode: Project structure

2016-06-10 Thread Tobias Hunger
On Fr, 2016-06-10 at 10:06 -0400, Brad King wrote: > On 06/09/2016 11:52 AM, Tobias Hunger wrote: > >   [== CMake MetaMagic ==[ > > What is the purpose of this non-json wrapper in the content? > Just part of the message protocol so that readers do not have > to parse the json

Re: [cmake-developers] Questions about coding conventions

2016-06-10 Thread Tobias Hunger
ent. But how to name free functions and macros? I have > seen all kinds of variations. May I asked why "this->" is used so often? I find it totally annoying to skip this line noise all the time and I never encountered this convention before. Best Regards, Tobias -- Tobias Hunger, Se

[cmake-developers] cmCacheManager related changes

2016-06-10 Thread Tobias Hunger
interface to cmState to retrieve the property list. Best Regards, Tobias -- Tobias Hunger, Senior Software Engineer | The Qt Company The Qt Company GmbH, Rudower Chaussee 13, D-12489 Berlin Geschäftsführer: Mika Pälsi, Juha Varelius, Mika Harjuaho. Sitz der Gesellschaft: Berlin, Registergericht

Re: [cmake-developers] CMake daemon-mode

2016-06-09 Thread Tobias Hunger
Hi Brad, Am 09.06.2016 19:57 schrieb "Brad King" : > > On 06/09/2016 09:27 AM, Brad King wrote: > >> https://github.com/hunger/CMake/commit/bc060a44b6b2c2281ffe99815163ba02ec835dd6 > > Good. I need to review that one more deeply but should be able to integrate it. > > I split out some incremental

Re: [cmake-developers] daemon-mode: Project structure

2016-06-09 Thread Tobias Hunger
      "fullName":"libcmForm.a",               "linkerLanguage":"C",               "name":"cmForm",               "type":"STATIC_LIBRARY"             }           ]         }       ],     }, # end of project     #   ] #

Re: [cmake-developers] daemon-mode: Project structure

2016-06-09 Thread Tobias Hunger
On Do, 2016-06-09 at 16:07 +0200, Milian Wolff wrote: > On Donnerstag, 9. Juni 2016 13:27:26 CEST Tobias Hunger wrote: > > On Do, 2016-06-09 at 08:43 -0400, Brad King wrote: > > > >   "includePath": > > > >   [ > &g

Re: [cmake-developers] daemon-mode: Project structure

2016-06-09 Thread Tobias Hunger
On Do, 2016-06-09 at 09:47 -0400, Brad King wrote: > On 06/09/2016 09:27 AM, Tobias Hunger wrote: > > I am using the output of cmState::GetTargetTypeName. > > Okay.  We could consider excluding GLOBAL_TARGET targets from the > output.  They never have source files and are nebul

Re: [cmake-developers] daemon-mode: Project structure

2016-06-09 Thread Tobias Hunger
On Do, 2016-06-09 at 08:43 -0400, Brad King wrote: > On 06/09/2016 05:47 AM, Tobias Hunger wrote: > > I made some progress with extracting project structure from cmake via the > > daemon-mode. I am rather happy with the information and would love to get > > some > > fee

Re: [cmake-developers] daemon-mode: Project structure

2016-06-09 Thread Tobias Hunger
make project is ~102KiB of raw JSON > > data. > > > > What is not listed is the build system file list and the CMakeCache. I want > > to keep these two separate: I can think of some use cases where that > > information is not at all necessary:-) > > What

[cmake-developers] daemon-mode: Project structure

2016-06-09 Thread Tobias Hunger
uot;/home/code/src/cmake/Source/CursesDialog/form",   "name":"CMAKE_FORM" }, # end of one project object     #   ] # end of project list } ]== CMake MetaMagic ==] Is this the information you need for IDE integration? Do you cmake developers feel comfortable to ex

Re: [cmake-developers] Review request: extract-cmMessenger branch

2016-06-09 Thread Tobias Hunger
on e.g. CMake Error at FILE:LINE (OPTIONAL_EXTRA_INFO):   MULTILINE_MESSAGE_WITH_INDENT_ENDING_IN_TWO_NEWLINES then you will probably hit existing code paths in IDEs. Best Regards, Tobias -- Tobias Hunger, Senior Software Engineer | The Qt Company The Qt Company GmbH, Rudower Chaus

[cmake-developers] cmLocalGenerator::GetTargetFlags

2016-06-08 Thread Tobias Hunger
I need to create that? cmCommonTargetGenerator does caching of results. Should this be also done for cmLocalGenerator::GetTargetFlags, etc? Best Regards, Tobias -- Tobias Hunger, Senior Software Engineer | The Qt Company The Qt Company GmbH, Rudower Chaussee 13, D-12489 Berlin Geschäftsführer:

Re: [cmake-developers] CMake daemon-mode

2016-06-07 Thread Tobias Hunger
Hi Brad, Am 07.06.2016 19:23 schrieb "Brad King" : > If it doesn't conflict with 'master' too much I can take it directly. It should not. I regularly rebase my branch on top of master. > I've cherry-picked 124f8295bee0c228b79a5cf38f0b2581be308118 and merged > to 'next' for testing: > > cmLocalG

Re: [cmake-developers] CMake daemon-mode

2016-06-07 Thread Tobias Hunger
Hi Brad, sorry for the empty mail, my phone acted up:-) Am 07.06.2016 16:48 schrieb "Brad King" : > > On 06/07/2016 10:42 AM, Tobias Hunger wrote: > > On Mo, 2016-06-06 at 13:24 -0400, Brad King wrote: > >> We should be able to refactor things to share the flags

Re: [cmake-developers] CMake daemon-mode

2016-06-07 Thread Tobias Hunger
Hi Am 07.06.2016 16:48 schrieb "Brad King" : > On 06/07/2016 10:42 AM, Tobias Hunger wrote: > > On Mo, 2016-06-06 at 13:24 -0400, Brad King wrote: > >> We should be able to refactor things to share the flags computation. > >> Methods like > >> > &

Re: [cmake-developers] CMake daemon-mode

2016-06-07 Thread Tobias Hunger
be308118 It passes the configuration to GetTargetFlags instead of forcing it to the build type. Since I may end up with different configurations in the project structure, I think this is necessary. Best Regards, Tobias -- Tobias Hunger, Senior Software Engineer | The Qt Company The Qt Company G

Re: [cmake-developers] CMake daemon-mode

2016-06-07 Thread Tobias Hunger
Hi Brad! On Mon, Jun 6, 2016 at 7:24 PM, Brad King wrote: >> A big chunk of Stephen's work has not even landed in my branch yet. Since >> cmake >> reformated all the source in the meantime it is a bit tedious to apply >> patches >> from his tree and I have simply not yet needed the changes as

Re: [cmake-developers] CMake daemon-mode

2016-06-07 Thread Tobias Hunger
Hi Daniel, On Tue, Jun 7, 2016 at 11:27 AM, Daniel Pfeifer wrote: > On Mon, Jun 6, 2016 at 5:39 PM, Tobias Hunger wrote: >> Please help to support your use-cases. > > A while ago I wrote a graphical cache editor in GTK: > https://github.com/purpleKarrot/cmake-gtk > The too

[cmake-developers] CMake daemon-mode

2016-06-06 Thread Tobias Hunger
ke debugging Help needed: === Please help to support your use-cases. Please report what information you would like to have available from your cmake projects via daemon-mode. Patches are of course welcome at any time! Any help in getting any interesting information out of cmake is hi

Re: [cmake-developers] Some trivial patches

2016-06-02 Thread Tobias Hunger
On Mi, 2016-06-01 at 11:18 -0400, Brad King wrote: > On 06/01/2016 05:04 AM, Tobias Hunger wrote: > > Attached you will find a couple of really small changes that add const to a > > method and fix a couple of typos in comments. Trivial stuff. > > Thanks.  I&#

[cmake-developers] Some trivial patches

2016-06-01 Thread Tobias Hunger
somehow? How can I create an account in the bug tracker? Best Regards, Tobias -- Tobias Hunger, Senior Software Engineer | The Qt Company The Qt Company GmbH, Rudower Chaussee 13, D-12489 Berlin Geschäftsführer: Mika Pälsi, Juha Varelius, Mika Harjuaho. Sitz der Gesellschaft: Berlin, Registergericht

Re: [cmake-developers] [Qt-creator] CMake daemon for user tools

2016-03-25 Thread Tobias Hunger
Am 24.03.2016 16:13 schrieb "Aleix Pol" : > Hey, > I'll be going to Berlin the weekend of the 14th May (Board meeting, > I'll be busy during the weekend). > > Would it make sense for me to book one day before/after to meet and > hack on this? Hey Aleix, I did already do some work on that front, t

Re: [cmake-developers] [Qt-creator] CMake daemon for user tools

2016-02-22 Thread Tobias Hunger
Am 22.02.2016 23:14 schrieb "Stephen Kelly" : > If anyone can get me a working java environment and a way to asynchronously > write stdin/stdout on long-running processes, I can write a plugin for > eclipse which would be independent of cevelop afaict. > > Do you know enough java to help get starte

Re: [cmake-developers] [Qt-creator] CMake daemon for user tools

2016-02-15 Thread Tobias Hunger
Hi Dominik, Am 15.02.2016 19:01 schrieb "Dominik Haumann" : > 1. Wouldn't it make sense you have a developer sprint ASAP for this? I'd be in, but I do not have the time to organize one. I could probably get a room in our office though (in Berlin). > 2. Reading about this deamon approach, rtags c

Re: [cmake-developers] CMake Daemon blog

2016-02-14 Thread Tobias Hunger
hrieb "Klaim - Joël Lamotte" : > I'm surprised too that there isn't more feedback around here. > This seems to be a marjor potential improvement and definitely necessary > if CMake need to be usable in the coming years. > > On 10 February 2016 at 09:42, Tobias Hu

[cmake-developers] [PATCH]: Fix compiler warnings (clang from trunk)

2016-02-11 Thread Tobias Hunger
Just a small patch to fix a couple of compiler warnings that drove me crazy. From 82f8ccb9afe7b07d42a772025498bb63f42f296c Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Thu, 11 Feb 2016 17:47:42 +0100 Subject: [PATCH 01/43] cmListFileCache: Fix warnings during build Fix warning about

Re: [cmake-developers] CMake Daemon

2016-02-10 Thread Tobias Hunger
Hi Stephen, thanks for that information! Now I can finally fix the tests again (and add a couple for the error cases my branch handles;-). I did play some more and implemented support for consistent progress reporting and multiple protocol versions now in my branch at https://github.com/hunger/C

Re: [cmake-developers] CMake Daemon

2016-02-10 Thread Tobias Hunger
Hi Stephen, stupid question: How do I run the server-mode autotests? I just implemented a unified way to do progress reporting and want to make sure that did not break too much. Running Tests/Server/daemon-test.py manually works, but how do I run all those tests configured in the CMakeLists.txt?

Re: [cmake-developers] CMake Daemon

2016-02-10 Thread Tobias Hunger
Hi Stephen, I will then continue down that road. Next steps are a way to consistently report progress as well as being able to have several protocol versions at the same time and have a client pick one. I will just put them atop my current branch, as that is going to need basically the same amou

Re: [cmake-developers] CMake Daemon blog

2016-02-10 Thread Tobias Hunger
Hey, I did send a MR on github:-) But I agree, I had also hoped for more active participation. Best Regards, Tobias On Wed, Feb 10, 2016 at 12:07 AM, Stephen Kelly wrote: > Stephen Kelly wrote: > >> Hi, >> >> I just made a blog and video about the advanced features and possibilities >> that a d

Re: [cmake-developers] cmake daemon mode protocol

2016-01-16 Thread Tobias Hunger
Hi Stephen, I think what I suggested so far is covered by the first way of interaction covered in http://thread.gmane.org/gmane.comp.lib.qt.creator/11794/focus=15411 . I am just proposing something that is convenient for me to use. On Sat, Jan 16, 2016 at 12:26 PM, Stephen Kelly wrote: >>> For

Re: [cmake-developers] cmake daemon mode protocol

2016-01-16 Thread Tobias Hunger
Hi Stephen, Am 15.01.2016 00:38 schrieb "Stephen Kelly" : > > * Start daemon-mode without any additional parameters > > > > * Daemon responds with " > > { > > "type": "handShake", > > "version": "3.5.x", > > "supportedProtocols": "3.5" > > } > > As you discovered, the cmake binary

  1   2   >